From ace760a0b488f73de5fe8d14b3f54e4dad5b7280 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=BD=D0=B0=D0=B1?= Date: Sat, 29 May 2021 19:10:49 +0200 Subject: [PATCH] spl-module-parameters.5: remove spl_kmem_cache_{expire,obj_per_slab_min} MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Both were removed in 4fbdb10c7b94439694ad18409662210099e09cb4 ("remove kmem_cache module parameter KMC_EXPIRE_AGE") Reviewed-by: Brian Behlendorf Reviewed-by: Richard Laager Signed-off-by: Ahelenia ZiemiaƄska Closes #12157 --- man/man5/spl-module-parameters.5 | 41 ---------------------------- module/os/linux/spl/spl-kmem-cache.c | 4 +-- 2 files changed, 1 insertion(+), 44 deletions(-) diff --git a/man/man5/spl-module-parameters.5 b/man/man5/spl-module-parameters.5 index 5e28e694e..69a8d1f50 100644 --- a/man/man5/spl-module-parameters.5 +++ b/man/man5/spl-module-parameters.5 @@ -14,33 +14,6 @@ Description of the different parameters to the SPL module. .sp .LP -.sp -.ne 2 -.na -\fBspl_kmem_cache_expire\fR (uint) -.ad -.RS 12n -Cache expiration is part of default Illumos cache behavior. The idea is -that objects in magazines which have not been recently accessed should be -returned to the slabs periodically. This is known as cache aging and -when enabled objects will be typically returned after 15 seconds. -.sp -On the other hand Linux slabs are designed to never move objects back to -the slabs unless there is memory pressure. This is possible because under -Linux the cache will be notified when memory is low and objects can be -released. -.sp -By default only the Linux method is enabled. It has been shown to improve -responsiveness on low memory systems and not negatively impact the performance -of systems with more memory. This policy may be changed by setting the -\fBspl_kmem_cache_expire\fR bit mask as follows, both policies may be enabled -concurrently. -.sp -0x01 - Aging (Illumos), 0x02 - Low memory (Linux) -.sp -Default value: \fB0x02\fR -.RE - .sp .ne 2 .na @@ -85,20 +58,6 @@ take longer. Default value: \fB8\fR .RE -.sp -.ne 2 -.na -\fBspl_kmem_cache_obj_per_slab_min\fR (uint) -.ad -.RS 12n -The minimum number of objects allowed per slab. Normally slabs will contain -\fBspl_kmem_cache_obj_per_slab\fR objects but for caches that contain very -large objects it's desirable to only have a few, or even just one, object per -slab. -.sp -Default value: \fB1\fR -.RE - .sp .ne 2 .na diff --git a/module/os/linux/spl/spl-kmem-cache.c b/module/os/linux/spl/spl-kmem-cache.c index 6b3d559ff..3699b6a15 100644 --- a/module/os/linux/spl/spl-kmem-cache.c +++ b/module/os/linux/spl/spl-kmem-cache.c @@ -527,9 +527,7 @@ spl_cache_flush(spl_kmem_cache_t *skc, spl_kmem_magazine_t *skm, int flush) * Size a slab based on the size of each aligned object plus spl_kmem_obj_t. * When on-slab we want to target spl_kmem_cache_obj_per_slab. However, * for very small objects we may end up with more than this so as not - * to waste space in the minimal allocation of a single page. Also for - * very large objects we may use as few as spl_kmem_cache_obj_per_slab_min, - * lower than this and we will fail. + * to waste space in the minimal allocation of a single page. */ static int spl_slab_size(spl_kmem_cache_t *skc, uint32_t *objs, uint32_t *size)