Messages in this thread Patch in this message | | | Date | Fri, 14 Mar 2008 17:15:27 -0700 (PDT) | From | Christoph Lameter <> | Subject | Re: hackbench regression since 2.6.25-rc |
| |
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;
| |