Re: [-mm patch] Show memcg information during OOM

From: Balbir Singh
Date: Mon Feb 02 2009 - 23:34:35 EST


* KAMEZAWA Hiroyuki <kamezawa.hiroyu@xxxxxxxxxxxxxx> [2009-02-03 10:21:57]:

> On Mon, 2 Feb 2009 19:38:49 +0530
> Balbir Singh <balbir@xxxxxxxxxxxxxxxxxx> wrote:
>
> > * Balbir Singh <balbir@xxxxxxxxxxxxxxxxxx> [2009-02-02 18:22:40]:
> >
> > > Hi, All,
> > >
> > > I found the following patch useful while debugging the memory
> > > controller. It adds additional information if memcg invoked the OOM.
> > >
> > > Comments, Suggestions?
> > >
> >
> >
> > Description: Add RSS and swap to OOM output from memcg
> >
> > From: Balbir Singh <balbir@xxxxxxxxxxxxxxxxxx>
> >
>
> > This patch displays memcg values like failcnt, usage and limit
> > when an OOM occurs due to memcg.
> >
>
> please use "KB" not bytes in OOM killer information.
>
> And the most important information is dropped..
> Even if you show information, the most important information that
> "where I am and where we hit limit ?" is not coverred.
> Could you consider some way to show full-path ?
>
> OOM-Killer:
> Task in /memory/xxx/yyy/zzz is killed by
> Limit of /memory/xxxx
> RSS Limit : Usage: Failcnt....
> RSS+SWAP Limit: ....
>

Sounds good to me, let me add this information.

--
Balbir
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/