summaryrefslogtreecommitdiffstats
path: root/lib/lockref.c
diff options
context:
space:
mode:
authorKirill A. Shutemov2013-11-14 23:31:53 +0100
committerLinus Torvalds2013-11-15 01:32:20 +0100
commitea1e7ed33708c7a760419ff9ded0a6cb90586a50 (patch)
tree553c0c4024639bf2b1706d144fd6bb8ada63861e /lib/lockref.c
parentmm: properly separate the bloated ptl from the regular case (diff)
downloadkernel-qcow2-linux-ea1e7ed33708c7a760419ff9ded0a6cb90586a50.tar.gz
kernel-qcow2-linux-ea1e7ed33708c7a760419ff9ded0a6cb90586a50.tar.xz
kernel-qcow2-linux-ea1e7ed33708c7a760419ff9ded0a6cb90586a50.zip
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 'lib/lockref.c')
0 files changed, 0 insertions, 0 deletions