lkml.org 
[lkml]   [2008]   [Mar]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: 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;

\
 
 \ /
  Last update: 2008-03-15 01:19    [W:0.055 / U:2.644 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site