Re: Vanilla-Kernel 3 - page allocation failure

From: Dave Jones
Date: Tue Oct 18 2011 - 13:02:20 EST


On Tue, Oct 18, 2011 at 08:51:54AM -0700, Andi Kleen wrote:
> Philipp Herz - Profihost AG <p.herz@xxxxxxxxxxxx> writes:
>
> > After updating kernel (x86_64) to stable version 3 there are a few
> > messages appearing in the kernel log such as
> >
> > kworker/0:1: page allocation failure: order:1, mode:0x20
> > mysql: page allocation failure: order:1, mode:0x20
> > php5: page allocation failure: order:1, mode:0x20
>
> You just ran out of memory.
>
> The problem here seems to be that the kernel is unable to communicate
> in a language you can understand.
>
> How do you think the message should have been phrased to make the
> issue more clear?

We get reports like this fairly regularly, usually accompanied by
"But I had lots of free memory and/or swap!"

The order/mode stuff is completely opaque to end-users, who have no
clue that there are different types of memory, and exhausting one type
can happen even when plenty of other memory is free.

I've been toying with the idea of hacking up a patch to turn those mode
flags into printing things like "mode:GFP_ATOMIC|GFP_NOIO" instead though, as I can
never remember those flags off the top of my head.
Still won't help end-users, but it would at least speed up diagnosing reports.

Dave

--
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/