lkml.org 
[lkml]   [2002]   [Oct]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] patch-slab-split-03-tail
part 3:
[depends on -02-SMP]

If an object is freed from a slab, then move the slab to the tail of the
partial list - this should increase the probability that the other
objects from the same page are freed, too, and that a page can be
returned to gfp later.

The cpu arrays are now always in front of the list, i.e. cache hit rates
should not matter.


Please apply

--
Manfred

--- 2.5/mm/slab.c Fri Oct 4 18:59:01 2002
+++ build-2.5/mm/slab.c Fri Oct 4 18:59:11 2002
@@ -1478,7 +1478,7 @@
} else if (unlikely(inuse == cachep->num)) {
/* Was full. */
list_del(&slabp->list);
- list_add(&slabp->list, &cachep->slabs_partial);
+ list_add_tail(&slabp->list, &cachep->slabs_partial);
}
}
}
\
 
 \ /
  Last update: 2005-03-22 13:29    [from the cache]
©2003-2014 Jasper Spaans. Advertise on this site