Thread (11 messages) 11 messages, 2 authors, 2006-12-01

Re: [RFC][PATCH 1/6] mm: slab allocation fairness

From: Peter Zijlstra <hidden>
Date: 2006-11-30 20:15:15
Also in: linux-mm

On Thu, 2006-11-30 at 12:11 -0800, Christoph Lameter wrote:
On Thu, 30 Nov 2006, Peter Zijlstra wrote:
quoted
Sure, but there is nothing wrong with using a slab page with a lower
allocation rank when there is memory aplenty. 
What does "a slab page with a lower allocation rank" mean? Slab pages have 
no allocation ranks that I am aware of.
I just added allocation rank and didn't you suggest tracking it for all
slab pages instead of per slab?

The rank is an expression of how hard it was to get that page, with 0
being the hardest allocation (ALLOC_NO_WATERMARK) and 16 the easiest
(ALLOC_WMARK_HIGH).

I store the rank of the last allocated page and retest the rank when a
gfp flag indicates a higher rank, that is when the current slab
allocation would have failed to grow the slab under the conditions of
the previous allocation.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help