[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <Pine.LNX.4.64.0611301049220.23820@schroedinger.engr.sgi.com>
Date: Thu, 30 Nov 2006 10:52:52 -0800 (PST)
From: Christoph Lameter <clameter@....com>
To: Peter Zijlstra <a.p.zijlstra@...llo.nl>
cc: netdev@...r.kernel.org, linux-mm@...ck.org,
David Miller <davem@...emloft.net>
Subject: Re: [RFC][PATCH 1/6] mm: slab allocation fairness
On Thu, 30 Nov 2006, Peter Zijlstra wrote:
> The slab has some unfairness wrt gfp flags; when the slab is grown the gfp
> flags are used to allocate more memory, however when there is slab space
> available, gfp flags are ignored. Thus it is possible for less critical
> slab allocations to succeed and gobble up precious memory.
The gfpflags are ignored if there are
1) objects in the per cpu, shared or alien caches
2) objects are in partial or free slabs in the per node queues.
> This patch avoids this by keeping track of the allocation hardness when
> growing. This is then compared to the current slab alloc's gfp flags.
The approach is to force the allocation of additional slab to increase the
number of free slabs? The next free will drop the number of free slabs
back again to the allowed amount.
I would think that one would need a rank with each cached object and
free slab in order to do this the right way.
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists