]> git.proxmox.com Git - mirror_spl.git/commit
Improve spl slab cache alloc
authorJinshan Xiong <jinshan.xiong@intel.com>
Thu, 19 May 2016 17:59:40 +0000 (10:59 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 1 Jun 2016 17:26:42 +0000 (10:26 -0700)
commit16fc1ec3ba0438b1d657b421923b3969031f2678
tree737b9b2c9196b9a6631848e83725469ca40ac9b5
parentea5f1a200b974c8fdd51993c282d8ae0dc2aa871
Improve spl slab cache alloc

The policy is to try to allocate with KM_NOSLEEP, which will lead to
memory allocation with GFP_ATOMIC, and if it fails, it will launch
an taskq to expand slab space.

This way it should be able to get better NUMA memory locality and
reduce the overhead of context switch.

Signed-off-by: Jinshan Xiong <jinshan.xiong@gmail.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #551
module/spl/spl-kmem-cache.c