lkml.org 
[lkml]   [2013]   [Feb]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [patch] mm, show_mem: suppress page counts in non-blockable contexts
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.


\
 
 \ /
  Last update: 2013-02-27 23:41    [W:0.082 / U:0.196 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site