From: Michel Lespinasse <walken@google.com>
To: Zhu Yanhai <zhu.yanhai@gmail.com>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>,
lsf@lists.linux-foundation.org, linux-mm@kvack.org,
"balbir@linux.vnet.ibm.com" <balbir@linux.vnet.ibm.com>,
Ying Han <yinghan@google.com>, Michal Hocko <mhocko@suse.cz>,
Greg Thelen <gthelen@google.com>,
"minchan.kim@gmail.com" <minchan.kim@gmail.com>,
"hannes@cmpxchg.org" <hannes@cmpxchg.org>
Subject: Re: [LSF][MM] rough agenda for memcg.
Date: Thu, 31 Mar 2011 19:36:51 -0700 [thread overview]
Message-ID: <BANLkTimQw1LQ6+gDFbex-C-5=gVqJf7ZPg@mail.gmail.com> (raw)
In-Reply-To: <AANLkTi=D8pfyxf3Vr33YZvuQm9fQv+bthyiLLeRjaJt6@mail.gmail.com>
On Thu, Mar 31, 2011 at 2:15 AM, Zhu Yanhai <zhu.yanhai@gmail.com> wrote:
> Hi Kame,
>
> 2011/3/31 KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>:
>> c) Should we provide a auto memory cgroup for file caches ?
>> (Then we can implement a file-cache-limit.)
>> c) AFAIK, some other OSs have this kind of feature, a box for file-cache.
>> Because file-cache is a shared object between all cgroups, it's difficult
>> to handle. It may be better to have a auto cgroup for file caches and add knobs
>> for memcg.
>
> I have been thinking about this idea. It seems the root cause of
> current difficult is
> the whole cgroup infrastructure is based on process groups, so its counters
> naturally center on process. However, this is not nature for counters
> of file caches,
> which center on inodes/devs actually. This brought many confusing
> problems - e.g.
> who should be charged for a (dirty)file page? I think the answer is
> no process but
> the filesystem/block device it sits on.
This has been an open issue for Google as well. Greg Thelen gave this
some though last year and had a proposal around the idea of forcing
files within certain directories to be accounted to a given cgroup.
We're not actively implementing this right now, but if there is
outside interest this might be worth discussing (might just be as an
informal conversation rather than a session though).
--
Michel "Walken" Lespinasse
A program is never fully debugged until the last user dies.
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
next prev parent reply other threads:[~2011-04-01 2:36 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-31 2:01 [LSF][MM] rough agenda for memcg KAMEZAWA Hiroyuki
2011-03-31 5:52 ` Greg Thelen
2011-03-31 12:27 ` [Lsf] " Jan Kara
2011-03-31 6:01 ` Balbir Singh
2011-03-31 6:03 ` Ying Han
2011-03-31 9:15 ` Zhu Yanhai
2011-04-01 2:36 ` Michel Lespinasse [this message]
2011-03-31 9:23 ` [Lsf] " Pavel Emelyanov
2011-03-31 16:20 ` Andrea Arcangeli
2011-03-31 18:14 ` Ying Han
2011-03-31 19:00 ` Pavel Emelyanov
2011-03-31 19:16 ` Ying Han
2011-03-31 19:22 ` Ying Han
2011-03-31 15:59 ` Andrea Arcangeli
2011-03-31 20:06 ` Johannes Weiner
2011-04-01 3:18 ` Michel Lespinasse
2011-04-01 1:16 ` KAMEZAWA Hiroyuki
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='BANLkTimQw1LQ6+gDFbex-C-5=gVqJf7ZPg@mail.gmail.com' \
--to=walken@google.com \
--cc=balbir@linux.vnet.ibm.com \
--cc=gthelen@google.com \
--cc=hannes@cmpxchg.org \
--cc=kamezawa.hiroyu@jp.fujitsu.com \
--cc=linux-mm@kvack.org \
--cc=lsf@lists.linux-foundation.org \
--cc=mhocko@suse.cz \
--cc=minchan.kim@gmail.com \
--cc=yinghan@google.com \
--cc=zhu.yanhai@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).