Re: page allocation failure when cached memory is close to thetotal memory.
From: Andrew Morton
Date: Wed Mar 01 2006 - 05:35:25 EST
Aubrey <aubreylee@xxxxxxxxx> wrote:
>
> I'm working on the blackfin uclinux. And the kernel version is 2.6.12.
> I have an application to malloc 0Mb memory.
You mean 10MB.
The chances of finding 10MB of contiguous free pages are basically nil, so
the page allocator doesn't even try to free up pages to attempt to satisfy
such a large request. If it can't find the 10MB of free memory
immediately, it just gives up.
-
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/