Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

maple_tree: use percpu sheaves for maple_node_cache

Setup the maple_node_cache with percpu sheaves of size 32 to hopefully
improve its performance. Note this will not immediately take advantage
of sheaf batching of kfree_rcu() operations due to the maple tree using
call_rcu with custom callbacks. The followup changes to maple tree will
change that and also make use of the prefilled sheaves functionality.

Reviewed-by: Sidhartha Kumar <sidhartha.kumar@oracle.com>
Reviewed-by: Suren Baghdasaryan <surenb@google.com>
Signed-off-by: Vlastimil Babka <vbabka@suse.cz>

+7 -2
+7 -2
lib/maple_tree.c
··· 6040 6040 6041 6041 void __init maple_tree_init(void) 6042 6042 { 6043 + struct kmem_cache_args args = { 6044 + .align = sizeof(struct maple_node), 6045 + .sheaf_capacity = 32, 6046 + }; 6047 + 6043 6048 maple_node_cache = kmem_cache_create("maple_node", 6044 - sizeof(struct maple_node), sizeof(struct maple_node), 6045 - SLAB_PANIC, NULL); 6049 + sizeof(struct maple_node), &args, 6050 + SLAB_PANIC); 6046 6051 } 6047 6052 6048 6053 /**