]> git.proxmox.com Git - mirror_zfs.git/commit
Add kmem_cache flag for forcing kvmalloc
authorMichael Niewöhner <michael.niewoehner@8com.de>
Sun, 21 Jul 2019 17:34:10 +0000 (19:34 +0200)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 13 Nov 2019 18:05:23 +0000 (10:05 -0800)
commit6d948c3519ab7a52c06f68927737a3199ba13f81
tree5c3ce17100b7959308857f536bbdf5620eff04fc
parent66955885e24427a94e938c013da214bd5c0177d4
Add kmem_cache flag for forcing kvmalloc

This adds a new KMC_KVMEM flag was added to enforce use of the
kvmalloc allocator in kmem_cache_create even for large blocks, which
may also increase performance in some specific cases (e.g. zstd), too.

Default to KVMEM instead of VMEM in spl_kmem_cache_create.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Matt Ahrens <matt@delphix.com>
Signed-off-by: Sebastian Gottschall <s.gottschall@dd-wrt.com>
Signed-off-by: Michael Niewöhner <foss@mniewoehner.de>
Closes #9034
include/os/linux/spl/sys/kmem_cache.h
include/sys/zfs_context.h
module/os/linux/spl/spl-kmem-cache.c
module/os/linux/spl/spl-proc.c
module/os/linux/spl/spl-zlib.c