diff options
author | Richard Yao <[email protected]> | 2013-08-04 19:48:24 -0400 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2014-04-14 16:29:01 -0700 |
commit | 89aa97059d7ddad668a5118aef7914743162a5e8 (patch) | |
tree | 8246c13e30c7a15322123c15154195c3d7b4aa14 | |
parent | bdfbe594a109933e72103bd720d2c6aa560dc400 (diff) |
Change spl_kmem_cache_expire default setting to 2
This behavior is more consistent with the way memory reclaim
is expected to work under Linux.
Signed-off-by: Richard Yao <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes #349
-rw-r--r-- | module/spl/spl-kmem.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/module/spl/spl-kmem.c b/module/spl/spl-kmem.c index e43e9170b..55c467b97 100644 --- a/module/spl/spl-kmem.c +++ b/module/spl/spl-kmem.c @@ -38,10 +38,11 @@ * kmem_cache behavior. The idea is that per-cpu objects which haven't been * accessed in several seconds should be returned to the cache. On the other * hand Linux slabs never move objects back to the slabs unless there is - * memory pressure on the system. By default both methods are disabled, but - * may be enabled by setting KMC_EXPIRE_AGE or KMC_EXPIRE_MEM. + * memory pressure on the system. By default the Linux method is enabled + * because it has been shown to improve responsiveness on low memory systems. + * This policy may be changed by setting KMC_EXPIRE_AGE or KMC_EXPIRE_MEM. */ -unsigned int spl_kmem_cache_expire = 0; +unsigned int spl_kmem_cache_expire = KMC_EXPIRE_MEM; EXPORT_SYMBOL(spl_kmem_cache_expire); module_param(spl_kmem_cache_expire, uint, 0644); MODULE_PARM_DESC(spl_kmem_cache_expire, "By age (0x1) or low memory (0x2)"); |