]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] slab: Bypass free lists for __drain_alien_cache()
authorChristoph Lameter <clameter@sgi.com>
Sat, 25 Mar 2006 11:06:45 +0000 (03:06 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sat, 25 Mar 2006 16:22:49 +0000 (08:22 -0800)
commitbd4e8f788cbe64d4bf06b75cb2862354a9cbb488
tree1567b4abe0ed56fbd960943da2c52278ea196c02
parent898f10176fb988b191a8214143775acf1f3184fa
[PATCH] slab: Bypass free lists for __drain_alien_cache()

__drain_alien_cache() currently drains objects by freeing them to the
(remote) freelists of the original node.  However, each node also has a
shared list containing objects to be used on any processor of that node.
We can avoid a number of remote node accesses by copying the pointers to
the free objects directly into the remote shared array.

And while we are at it: Skip alien draining if the alien cache spinlock is
already taken.

Kiran reported that this is a performance benefit.

Signed-off-by: Christoph Lameter <clameter@sgi.com>
Cc: Pekka Enberg <penberg@cs.helsinki.fi>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
mm/slab.c