Skip to content

Commit 3accabd

Browse files
committed
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: Suren Baghdasaryan <[email protected]> Signed-off-by: Vlastimil Babka <[email protected]>
1 parent c4fb7f0 commit 3accabd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

mm/vma_init.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ void __init vma_state_init(void)
1616
struct kmem_cache_args args = {
1717
.use_freeptr_offset = true,
1818
.freeptr_offset = offsetof(struct vm_area_struct, vm_freeptr),
19+
.sheaf_capacity = 32,
1920
};
2021

2122
vm_area_cachep = kmem_cache_create("vm_area_struct",

0 commit comments

Comments
 (0)