Messages in this thread |  | | | Date | Thu, 8 Sep 2011 12:09:23 +0200 | | From | Johannes Weiner <> | | Subject | Re: [PATCH] memcg: drain all stocks for the cgroup before read usage |
| |
On Thu, Sep 08, 2011 at 03:49:07AM +0300, Kirill A. Shutemov wrote: > On Thu, Sep 08, 2011 at 09:19:14AM +0900, KAMEZAWA Hiroyuki wrote: > > > Should we have field 'ram' (or 'memory') for rss+cache in memory.stat? > > > > Why do you think so ? > > It may be useful for scripting purpose. Just an idea.
$ awk '/^cache/{mem+=$2} /^rss/{mem+=$2} END{print(mem)}' /sys/fs/cgroup/memory/memory.stat 1904500736 Am I missing something here?
|  |