Re: hackbench regression since 2.6.25-rc

From: Christoph Lameter
Date: Fri Mar 14 2008 - 20:17:08 EST


Here is a patch to just not perform refills but switch slabs instead.
Could check what effect doing so has on the statistics you see on the 16p?

---
mm/slub.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)

Index: linux-2.6/mm/slub.c
===================================================================
--- linux-2.6.orig/mm/slub.c 2008-03-14 16:49:36.000000000 -0700
+++ linux-2.6/mm/slub.c 2008-03-14 16:50:04.000000000 -0700
@@ -1474,10 +1474,7 @@ static void *__slab_alloc(struct kmem_ca
goto new_slab;

slab_lock(c->page);
- if (unlikely(!node_match(c, node)))
- goto another_slab;
-
- stat(c, ALLOC_REFILL);
+ goto another_slab;

load_freelist:
object = c->page->freelist;
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/