Messages in this thread Patch in this message | | | Date | Fri, 04 Oct 2002 19:04:29 +0200 | From | Manfred Spraul <> | 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); } } } | |