linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] patch-slab-split-03-tail
@ 2002-10-04 17:04 Manfred Spraul
  2002-10-04 19:06 ` Andrew Morton
  0 siblings, 1 reply; 10+ messages in thread
From: Manfred Spraul @ 2002-10-04 17:04 UTC (permalink / raw)
  To: akpm, linux-kernel; +Cc: mbligh

[-- Attachment #1: Type: text/plain, Size: 385 bytes --]

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


[-- Attachment #2: patch-slab-split-03-tail --]
[-- Type: text/plain, Size: 331 bytes --]

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

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2002-10-05  1:22 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-04 17:04 [PATCH] patch-slab-split-03-tail Manfred Spraul
2002-10-04 19:06 ` Andrew Morton
2002-10-04 19:07   ` Martin J. Bligh
2002-10-04 19:15     ` Andrew Morton
2002-10-04 19:15   ` Manfred Spraul
2002-10-04 20:22     ` Randy.Dunlap
2002-10-04 21:25       ` Manfred Spraul
2002-10-04 21:43         ` Robert Love
2002-10-04 22:30           ` Manfred Spraul
2002-10-05  0:14         ` Anton Blanchard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).