Re: [RFC][PATCH] big continuous memory allocator v2

From: Andi Kleen
Date: Tue Sep 07 2010 - 05:45:48 EST


On Tue, 7 Sep 2010 18:03:54 +0900
KAMEZAWA Hiroyuki <kamezawa.hiroyu@xxxxxxxxxxxxxx> wrote:


> Oh, I didn't consider that. Hmm. If x86 really wants to support 1GB
> page, MAX_ORDER should be raised. (I'm sorry if it was already
> disccused.)

That doesn't really work, it requires alignment of all the
zones to 1GB too (not practical) and has a lot of overhead.

Also for the normal case it wouldn't work anyways due to fragmentation.

> > One issue is also that it would be good to be able to decide
> > in advance if the OOM killer is likely triggered (and if yes
> > reject the allocation in the first place).
> >
>
> Checking the amount of memory and swap before starts ?
> It sounds nice. I'd like to add something.

That would be the simple variant, but perhaps it could
even consider parallel traffic? (I guess that would
be difficult) Or perhaps bail out early if OOM is likely.

-Andi

--
ak@xxxxxxxxxxxxxxx -- Speaking for myself only.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/