From: David Rientjes <rientjes@google.com>
To: Dave Hansen <dave@linux.vnet.ibm.com>
Cc: Andrew Morton <akpm@linux-foundation.org>,
Mel Gorman <mgorman@suse.de>,
linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-mm@kvack.org
Subject: Re: [patch] mm, show_mem: suppress page counts in non-blockable contexts
Date: Wed, 27 Feb 2013 14:13:37 -0800 (PST) [thread overview]
Message-ID: <alpine.DEB.2.02.1302271410230.7155@chino.kir.corp.google.com> (raw)
In-Reply-To: <512E2B91.6000506@linux.vnet.ibm.com>
On Wed, 27 Feb 2013, Dave Hansen wrote:
> On 02/26/2013 04:46 PM, David Rientjes wrote:
> > diff --git a/arch/arm/mm/init.c b/arch/arm/mm/init.c
> > --- a/arch/arm/mm/init.c
> > +++ b/arch/arm/mm/init.c
> > @@ -99,6 +99,9 @@ void show_mem(unsigned int filter)
> > printk("Mem-info:\n");
> > show_free_areas(filter);
> >
> > + if (filter & SHOW_MEM_FILTER_PAGE_COUNT)
> > + return;
> > +
>
> Won't this just look like a funky truncated warning to the end user?
>
No, because of the uninhibited call to show_free_areas() above. This
still dumps the pcp state, global and per-node page type breakdown, and
free pages at given order. The only things suppresses are the total
pages, pages reserved, pages shared, and pages non-shared counts that are
quite expensive to determine because it walks all memory while irqs are
disabled and increases with the amount of RAM a system has.
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
prev parent reply other threads:[~2013-02-27 22:13 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-27 0:46 David Rientjes
2013-02-27 10:00 ` Michal Hocko
2013-02-27 22:16 ` David Rientjes
2013-02-27 15:51 ` Dave Hansen
2013-02-27 22:13 ` David Rientjes [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.DEB.2.02.1302271410230.7155@chino.kir.corp.google.com \
--to=rientjes@google.com \
--cc=akpm@linux-foundation.org \
--cc=dave@linux.vnet.ibm.com \
--cc=linux-arch@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=mgorman@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox