diff options
author | Kirill A. Shutemov <kirill.shutemov@linux.intel.com> | 2013-11-14 17:31:53 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-11-14 19:32:20 -0500 |
commit | ea1e7ed33708c7a760419ff9ded0a6cb90586a50 (patch) | |
tree | 553c0c4024639bf2b1706d144fd6bb8ada63861e /init | |
parent | 539edb5846c740d78a8b6c2e43a99ca4323df68f (diff) |
mm: create a separate slab for page->ptl allocation
If DEBUG_SPINLOCK and DEBUG_LOCK_ALLOC are enabled spinlock_t on x86_64
is 72 bytes. For page->ptl they will be allocated from kmalloc-96 slab,
so we loose 24 on each. An average system can easily allocate few tens
thousands of page->ptl and overhead is significant.
Let's create a separate slab for page->ptl allocation to solve this.
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'init')
-rw-r--r-- | init/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/init/main.c b/init/main.c index 6ad1a533a8c7..5f191133376f 100644 --- a/init/main.c +++ b/init/main.c | |||
@@ -473,7 +473,7 @@ static void __init mm_init(void) | |||
473 | mem_init(); | 473 | mem_init(); |
474 | kmem_cache_init(); | 474 | kmem_cache_init(); |
475 | percpu_init_late(); | 475 | percpu_init_late(); |
476 | pgtable_cache_init(); | 476 | pgtable_init(); |
477 | vmalloc_init(); | 477 | vmalloc_init(); |
478 | } | 478 | } |
479 | 479 | ||