]> git.baikalelectronics.ru Git - kernel.git/commit
slab: skip calling cache_free_alien() when the platform is not numa capable
authorSiddha, Suresh B <suresh.b.siddha@intel.com>
Wed, 22 Aug 2007 21:01:49 +0000 (14:01 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Thu, 23 Aug 2007 02:52:46 +0000 (19:52 -0700)
commit31f8ae06bf46d4c94ccf2b29e7503e71f307259a
tree8b07b08bedebc9bc09648fa3443041a03121733f
parente0db0b59579e464ec49e5a296089d86dfef921ff
slab: skip calling cache_free_alien() when the platform is not numa capable

Skip calling cache_free_alien() when the platform is not numa capable.
This will avoid cache misses that happen while accessing slabp (which is
per page memory reference) to get nodeid.  Instead use a global variable to
skip the call, which is mostly likely to be present in the cache.

This gives a 0.8% performance boost with the database oltp workload on a
quad-core SMP platform and by any means the number is not small :)

Signed-off-by: Suresh Siddha <suresh.b.siddha@intel.com>
Acked-by: Christoph Lameter <clameter@sgi.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/slab.c