Re: [PATCH] mm: add show num_poisoned_pages when oom

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 9 Dec 2013, Naoya Horiguchi wrote:

> > Show num_poisoned_pages when oom, it is helpful to find the reason.
> > 
> > Signed-off-by: Xishi Qiu <qiuxishi@xxxxxxxxxx>
> > ---
> >  lib/show_mem.c |    3 +++
> >  1 files changed, 3 insertions(+), 0 deletions(-)
> > 
> > diff --git a/lib/show_mem.c b/lib/show_mem.c
> > index 5847a49..1cbdcd8 100644
> > --- a/lib/show_mem.c
> > +++ b/lib/show_mem.c
> > @@ -46,4 +46,7 @@ void show_mem(unsigned int filter)
> >  	printk("%lu pages in pagetable cache\n",
> >  		quicklist_total_size());
> >  #endif
> > +#ifdef CONFIG_MEMORY_FAILURE
> > +	printk("%lu pages poisoned\n", atomic_long_read(&num_poisoned_pages));
> > +#endif
> >  }
> 
> I think that just "poisoned" could be confusing because this word seems to
> be used also in other context (like slab and list_debug handling.)
> "hwpoisoned" or "hardware corrupted" (which is the same label in /proc/meminfo)
> looks better to me.
> 

Ah, good point.

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@xxxxxxxxx.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@xxxxxxxxx";> email@xxxxxxxxx </a>




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]