]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
slub: move kmem_cache_node into it's own cacheline
authorAlexander Duyck <alexander.h.duyck@intel.com>
Fri, 21 May 2010 21:41:35 +0000 (14:41 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 5 Jul 2010 18:22:37 +0000 (11:22 -0700)
commit68b99fb8e1e21209c9cad878e99947613e445777
tree1b389b662906c5acddcc707cf78ee561581684eb
parent0d28a228f4fc8d88deaafa4c284385271a84da5c
slub: move kmem_cache_node into it's own cacheline

commit 73367bd8eef4f4eb311005886aaa916013073265 upstream.

This patch is meant to improve the performance of SLUB by moving the local
kmem_cache_node lock into it's own cacheline separate from kmem_cache.
This is accomplished by simply removing the local_node when NUMA is enabled.

On my system with 2 nodes I saw around a 5% performance increase w/
hackbench times dropping from 6.2 seconds to 5.9 seconds on average.  I
suspect the performance gain would increase as the number of nodes
increases, but I do not have the data to currently back that up.

Bugzilla-Reference: http://bugzilla.kernel.org/show_bug.cgi?id=15713
Reported-by: Alex Shi <alex.shi@intel.com>
Tested-by: Alex Shi <alex.shi@intel.com>
Acked-by: Yanmin Zhang <yanmin_zhang@linux.intel.com>
Acked-by: Christoph Lameter <cl@linux-foundation.org>
Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
include/linux/slub_def.h
mm/slub.c