HomeFreeBSD

Ignore slab cache age and delay in direct reclaim

Description

Ignore slab cache age and delay in direct reclaim

When memory pressure triggers direct memory reclaim, a slabs age
and delay should not prevent it from being freed. This patch ensures
these values are ignored, allowing an empty slab to be freed in this
code path no matter the value of its age and delay.

This prevents needless scanning of the partial slabs and has been
observed to significantly reduce the total cpu usage. In addition,
it should allow for snappier reclaim under memory pressure.

Signed-off-by: Prakash Surya <surya1@llnl.gov>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #102

Details

Provenance
Prakash Surya <surya1@llnl.gov>Authored on Apr 27 2012, 7:43 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on May 7 2012, 6:50 PM
Parents
rGcef7605c342a: Throttle number of freed slabs based on nr_to_scan
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rGc0e0fc14e3e6: Ignore slab cache age and delay in direct reclaim (authored by Prakash Surya <surya1@llnl.gov>).May 7 2012, 6:50 PM