HomeFreeBSD

Increase arc_c_min to allow safe operation of arc_adapt()

Description

Increase arc_c_min to allow safe operation of arc_adapt()

ZoL had lowered the minimum ARC size to 4MiB to better accommodate tiny
systems such as the raspberry pi, however, as of addition of large block
support, the arc_adapt() function depends on arc_c being >= 32MiB (2 *
SPA_MAXBLOCKSIZE).

This patch raises the minimum ARC size to 32MiB and adds a VERIFY test
to arc_adapt() for future-proofing.

Signed-off-by: Tim Chase <tim@chase2k.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>

Details

Provenance
Tim Chase <tim@chase2k.com>Authored on Jun 4 2015, 1:06 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Jun 11 2015, 5:27 PM
Parents
rGf60467383655: Make arc_prune() asynchronous
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG121b3cae742a: Increase arc_c_min to allow safe operation of arc_adapt() (authored by Tim Chase <tim@chase2k.com>).Jun 11 2015, 5:27 PM