]> 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>
Thu, 21 Mar 2013 05:28:23 +0000 (16:28 +1100)
commit5b5ea1cd449b68fef9240e9f568e6bab7a5933a5
tree050824382bce7ba480ebbc97bfc15307f3bc6e28
parentb90fa1629fc010dc1ae1418d620ac31989b0e49f
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