HomeFreeBSD

Update ARC memory limits to account for SLUB internal fragmentation

Description

Update ARC memory limits to account for SLUB internal fragmentation

23bdb07d4e4c435205d25d3efdb5fef2d089ce5e updated the ARC memory limits
to be 1/2 of memory or all but 4GB. Unfortunately, these values assume
zero internal fragmentation in the SLUB allocator, when in reality, the
internal fragmentation could be as high as 50%, effectively doubling
memory usage. This poses clear safety issues, because it permits the
size of ARC to exceed system memory.

This patch changes this so that the default value of arc_c_max is always
1/2 of system memory. This effectively limits the ARC to the memory that
the system has physically installed.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #660

Details

Provenance
Richard Yao <ryao@cs.stonybrook.edu>Authored on Apr 12 2012, 9:22 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Apr 30 2012, 5:04 PM
Parents
rG302f753f1657: Integrate ARC more tightly with Linux
Branches
Unknown
Tags
Unknown