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); } } }
- 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/
This archive was generated by hypermail 2b29 : Mon Oct 07 2002 - 22:00:46 EST