summaryrefslogtreecommitdiffstats
path: root/include/sys/kmem.h
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2011-03-29 22:38:53 -0700
committerBrian Behlendorf <[email protected]>2011-04-06 20:06:03 -0700
commit83150861e610701d44510816e2062bcf407f51ab (patch)
treea23e4cc4f59881d7faafce6254004ba2fc5b8dac /include/sys/kmem.h
parent3336e29cc2e328c6e665de9f4563aa8a4b874194 (diff)
Decrease target objects per slab
By decreasing the number of target objects per slab we increase the likelyhood that a slab can be freed. This reduces the level of fragmentation in the slab which has been observed to be a problem for certain workloads. The penalty for this is that we also decrease the speed which need objects can be allocated.
Diffstat (limited to 'include/sys/kmem.h')
-rw-r--r--include/sys/kmem.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sys/kmem.h b/include/sys/kmem.h
index d3972f1ca..72f70c282 100644
--- a/include/sys/kmem.h
+++ b/include/sys/kmem.h
@@ -334,7 +334,7 @@ extern struct rw_semaphore spl_kmem_cache_sem;
#define SPL_KMEM_CACHE_DELAY 15 /* Minimum slab release age */
#define SPL_KMEM_CACHE_REAP 0 /* Default reap everything */
-#define SPL_KMEM_CACHE_OBJ_PER_SLAB 32 /* Target objects per slab */
+#define SPL_KMEM_CACHE_OBJ_PER_SLAB 16 /* Target objects per slab */
#define SPL_KMEM_CACHE_OBJ_PER_SLAB_MIN 8 /* Minimum objects per slab */
#define SPL_KMEM_CACHE_ALIGN 8 /* Default object alignment */