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

Balbir Singh
2009-02-03T04:34:14Z

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

> On Mon, 2 Feb 2009 19:38:49 +0530
> Balbir Singh <balbir@linux.vnet.ibm.com> wrote:
>
> > * Balbir Singh <balbir@linux.vnet.ibm.com> [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@linux.vnet.ibm.com>
> >
>
> > 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