]> git.proxmox.com Git - mirror_zfs.git/commit - module/os/linux/spl/spl-kmem-cache.c
Make slab reclaim more aggressive
authorBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 5 Dec 2014 22:11:18 +0000 (17:11 -0500)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 16 Jan 2015 21:55:09 +0000 (13:55 -0800)
commit1a20496834f4f270a45c68fd67ade7643442652f
tree06dfa88a950d27ba4bbcef0240f60b8ffcc9cc91
parenta988a35a93671c086c38ce5b71b6badb59a9c2de
Make slab reclaim more aggressive

Many people have noticed that the kmem cache implementation is slow
to release its memory.  This patch makes the reclaim behavior more
aggressive by immediately freeing a slab once it is empty.  Unused
objects which are cached in the magazines will still prevent a slab
from being freed.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
man/man5/spl-module-parameters.5
module/spl/spl-kmem-cache.c