[PATCH] patch-slab-split-03-tail

Manfred Spraul (manfred@colorfullife.com)
Fri, 04 Oct 2002 19:04:29 +0200


This is a multi-part message in MIME format.
--------------010100020304010803080807
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

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

--------------010100020304010803080807 Content-Type: text/plain; name="patch-slab-split-03-tail" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="patch-slab-split-03-tail"

--- 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); } } }

--------------010100020304010803080807--

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