Commit 3accabda authored by Vlastimil Babka's avatar Vlastimil Babka
Browse files

mm, vma: use percpu sheaves for vm_area_struct cache



Create the vm_area_struct cache with percpu sheaves of size 32 to
improve its performance.

Reviewed-by: default avatarSuren Baghdasaryan <surenb@google.com>
Signed-off-by: default avatarVlastimil Babka <vbabka@suse.cz>
parent c4fb7f0a
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -16,6 +16,7 @@ void __init vma_state_init(void)
	struct kmem_cache_args args = {
		.use_freeptr_offset = true,
		.freeptr_offset = offsetof(struct vm_area_struct, vm_freeptr),
		.sheaf_capacity = 32,
	};

	vm_area_cachep = kmem_cache_create("vm_area_struct",