Re: page allocation failure when cached memory is close to thetotal memory.

From: Andrew Morton
Date: Wed Mar 01 2006 - 23:00:34 EST


Aubrey <aubreylee@xxxxxxxxx> wrote:
>
> > 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.
>
> Nope.

Yup.

> I've tested the case on the host. See below. The allocation for
> 300MB was sucessful when the cached memory was close to the total
> memory.

The host has an MMU and hence is able to map discontiguous physical pages
into a virtually contiguous block. The blackfin doesn't have an MMU and
hence requires that 10MB's worth of physically contiguous pages be free.
Which is so hard to achieve after the system has been up for a while that
the kernel won't even attempt it.
-
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/