lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Tue, 18 Oct 2011 13:02:04 -0400
From:	Dave Jones <davej@...hat.com>
To:	Andi Kleen <andi@...stfloor.org>
Cc:	p.herz@...fihost.ag, linux-kernel@...r.kernel.org
Subject: Re: Vanilla-Kernel 3 - page allocation failure

On Tue, Oct 18, 2011 at 08:51:54AM -0700, Andi Kleen wrote:
 > Philipp Herz - Profihost AG <p.herz@...fihost.ag> 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@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ