]> 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>
Tue, 26 Mar 2013 23:24:17 +0000 (10:24 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 4 Apr 2013 06:12:02 +0000 (17:12 +1100)
commitd63fa776c1560c8cdc67352bdbe10543e8b13d75
tree3c375ce0b6791f7d714ca2d220e86ce0653e5fc4
parent9135fc80e83e7d3c1fd85cc377def2f13a2b31cf
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