]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm, show_mem: suppress page counts in non-blockable contexts
authorDavid Rientjes <rientjes@google.com>
Wed, 20 Mar 2013 04:07:04 +0000 (15:07 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 22 Mar 2013 04:32:56 +0000 (15:32 +1100)
commit02dec64bba94f7c1f15649613137ee6cc85e38f5
tree5349018d6eff7310063629c5438e27289d10113e
parent3f380d3e7ee5d9b063f3394041c9f2ac459f597b
mm, show_mem: suppress page counts in non-blockable contexts

On large systems with a lot of memory, walking all RAM to determine page
types may take a half second or even more.

In non-blockable contexts, the page allocator will emit a page allocation
failure warning unless __GFP_NOWARN is specified.  In such contexts, irqs
are typically disabled and such a lengthy delay may even result in NMI
watchdog timeouts.

To fix this, suppress the page walk in such contexts when printing the
page allocation failure warning.

Signed-off-by: David Rientjes <rientjes@google.com>
Cc: Mel Gorman <mgorman@suse.de>
Acked-by: Michal Hocko <mhocko@suse.cz>
Cc: Dave Hansen <dave@linux.vnet.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
arch/arm/mm/init.c
arch/ia64/mm/contig.c
arch/ia64/mm/discontig.c
arch/parisc/mm/init.c
arch/unicore32/mm/init.c
include/linux/mm.h
lib/show_mem.c
mm/page_alloc.c