]> granicus.if.org Git - spl/commit
Ignore slab cache age and delay in direct reclaim
authorPrakash Surya <surya1@llnl.gov>
Fri, 27 Apr 2012 19:43:49 +0000 (12:43 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 7 May 2012 18:50:04 +0000 (11:50 -0700)
commitc0e0fc14e3e65e519849dd9fbfb94a6c79d0d149
tree9cd11c821b31173e2b816045165774ef7630bfa4
parentcef7605c342a87eb108b6eac919cae737c08a230
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
module/spl/spl-kmem.c