]> git.proxmox.com Git - mirror_spl.git/commit
Set spl_kmem_cache_slab_limit=16384 to default
authorBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 7 Aug 2014 23:23:04 +0000 (16:23 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 8 Aug 2014 15:51:45 +0000 (08:51 -0700)
commitf2297b5a8932594a45c99d3d01b0d53a16ea9753
treead50b150984912e3b838e9b9d9ceebdb1302a3cd
parentc1aef26944ca8bc18e9f46f464c2957890c707e9
Set spl_kmem_cache_slab_limit=16384 to default

For small objects the Linux slab allocator should be used to make the most
efficient use of the memory.  However, large objects are not supported by
the Linux slab and therefore the SPL implementation is preferred.  A cutoff
of 16K was determined to be optimal for architectures using 4K pages.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: DHE <git@dehacked.net>
Issue #356
Closes #379
module/spl/spl-kmem.c