Re: [RFC][PATCH 1/6] mm: slab allocation fairness
From: Peter Zijlstra <hidden>
Date: 2006-11-30 19:40:12
Also in:
linux-mm
From: Peter Zijlstra <hidden>
Date: 2006-11-30 19:40:12
Also in:
linux-mm
On Thu, 2006-11-30 at 11:37 -0800, Christoph Lameter wrote:
On Thu, 30 Nov 2006, Peter Zijlstra wrote:quoted
On Thu, 2006-11-30 at 10:52 -0800, Christoph Lameter wrote:quoted
I would think that one would need a rank with each cached object and free slab in order to do this the right way.Allocation hardness is a temporal attribute, ie. it changes over time. Hence I do it per slab.cached objects are also temporal and change over time.
Sure, but there is nothing wrong with using a slab page with a lower allocation rank when there is memory aplenty. I'm just not seeing how keeping all individual page ranks would make this better. The only thing that matters is the actual free pages limit, not that of a few allocation ago. The stored rank is a safe shortcut for it allows harder allocation to use easily obtainable free space not the other way around.