From: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
To: Greg Thelen <gthelen@google.com>
Cc: "linux-mm@kvack.org" <linux-mm@kvack.org>,
"balbir@linux.vnet.ibm.com" <balbir@linux.vnet.ibm.com>,
"nishimura@mxp.nes.nec.co.jp" <nishimura@mxp.nes.nec.co.jp>,
"akpm@linux-foundation.org" <akpm@linux-foundation.org>
Subject: Re: [RFC][PATCH] memcg documentaion update
Date: Tue, 30 Mar 2010 09:45:46 +0900 [thread overview]
Message-ID: <20100330094546.b7abca6d.kamezawa.hiroyu@jp.fujitsu.com> (raw)
In-Reply-To: <49b004811003291747s23c146ffx4a1aecc404b88145@mail.gmail.com>
On Mon, 29 Mar 2010 17:47:24 -0700
Greg Thelen <gthelen@google.com> wrote:
> On Sun, Mar 28, 2010 at 11:42 PM, KAMEZAWA Hiroyuki
> <kamezawa.hiroyu@jp.fujitsu.com> wrote:
> >
> > At reading Documentation/cgroup/memory.txt, I felt
> >
> > A - old
> > A - hard to find it's supported what I want to do
> >
> > Hmm..maybe some rewrite will be necessary.
> >
> > ==
> > Documentation update. We have too much files now....
> >
> > Signed-off-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
> > ---
> > A Documentation/cgroups/memory.txt | A 48 ++++++++++++++++++++++++++++++---------
> > A 1 file changed, 38 insertions(+), 10 deletions(-)
> >
> > Index: mmotm-2.6.34-Mar24/Documentation/cgroups/memory.txt
> > ===================================================================
> > --- mmotm-2.6.34-Mar24.orig/Documentation/cgroups/memory.txt
> > +++ mmotm-2.6.34-Mar24/Documentation/cgroups/memory.txt
> > @@ -4,16 +4,6 @@ NOTE: The Memory Resource Controller has
> > A to as the memory controller in this document. Do not confuse memory controller
> > A used here with the memory controller that is used in hardware.
> >
> > -Salient features
> > -
> > -a. Enable control of Anonymous, Page Cache (mapped and unmapped) and
> > - A Swap Cache memory pages.
> > -b. The infrastructure allows easy addition of other types of memory to control
> > -c. Provides *zero overhead* for non memory controller users
> > -d. Provides a double LRU: global memory pressure causes reclaim from the
> > - A global LRU; a cgroup on hitting a limit, reclaims from the per
> > - A cgroup LRU
> > -
> > A Benefits and Purpose of the memory controller
> >
> > A The memory controller isolates the memory behaviour of a group of tasks
> > @@ -33,6 +23,44 @@ d. A CD/DVD burner could control the amo
> > A e. There are several other use cases, find one or use the controller just
> > A A for fun (to learn and hack on the VM subsystem).
> >
> > +Current Status: linux-2.6.34-mmotom(2010/March)
> > +
> > +Features:
> > + - accounting anonymous pages, file caches, swap caches usage and limit them.
> > + - private LRU and reclaim routine. (system's global LRU and private LRU
> > + A work independently from each other)
> > + - optionaly, memory+swap usage
> > + - hierarchical accounting
> > + - softlimit
> > + - moving(recharging) account at moving a task
> > + - usage threshold notifier
> > + - oom-killer disable and oom-notifier
> > + - Root cgroup has no limit controls.
> > +
> > + Kernel memory and Hugepages are not under control yet. We just manage
> > + pages on LRU. To add more controls, we have to take care of performance.
> > +
> > +Brief summary of control files.
> > +
> > + tasks A A A A A A A A A A A A # attach a task(thread)
> > + cgroup.procs A A A A A A A A A # attach a process(all threads under it)
> > + cgroup.event_control A A A A A # an interface for event_fd()
> > + memory.usage_in_bytes A A A A # show current memory(RSS+Cache) usage.
> > + memory.memsw.usage_in_bytes A # show current memory+Swap usage.
> > + memory.limit_in_bytes A A A A # set/show limit of memory usage
> > + memory.memsw.limit_in_bytes A # set/show limit of memory+Swap usage.
> > + memory.failcnt A A A A A A A A A A A A # show the number of memory usage hit limits.
> > + memory.memsw.failcnt A A A A A # show the number of memory+Swap hit limits.
> > + memory.max_usage_in_bytes A A # show max memory usage recorded.
> > + memory.memsw.usage_in_bytes A # show max memory+Swap usage recorded.
> > + memory.stat A A A A A A A A A # show various statistics.
> > + memory.use_hierarchy A A A A A # set/show hierarchical account enabled.
> > + memory.force_empty A A A A A A # trigger forced move charge to parent.
> > + memory.swappiness A A A A A A # set/show swappiness parameter of vmscan
> > + A A A A A A A A A A A A A A A A (See sysctl's vm.swappiness)
> > + memory.move_charge_at_immigrate# set/show controls of moving charges
> > + memory.oom_control A A A A A A # set/show oom controls.
> > +
> > A 1. History
> >
> > A The memory controller has a long history. A request for comments for the memory
> >
> > --
> > To unsubscribe, send a message with 'unsubscribe linux-mm' in
> > the body to majordomo@kvack.org. A For more info on Linux MM,
> > see: http://www.linux-mm.org/ .
> > Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
>
> Two comments:
> 1. Should we also include a description of the
> memory.soft_limit_in_bytes control file in the "Brief summary"
> section?
>
Oh, it's just a mistake. I'll fix.
> 2. the subject of this thread misspelled "documentation
> (s/documentaion/documentation/). Not a problem, but you might want to
> fix it for eventually patch submission.
>
I'll use spell checker in the next post.
Thanks,
-Kame
> --
> Greg
>
--
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/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
next prev parent reply other threads:[~2010-03-30 0:49 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-29 6:42 KAMEZAWA Hiroyuki
2010-03-30 0:13 ` Daisuke Nishimura
2010-03-30 0:18 ` KAMEZAWA Hiroyuki
2010-03-30 0:47 ` Greg Thelen
2010-03-30 0:45 ` KAMEZAWA Hiroyuki [this message]
2010-03-31 8:51 ` [RFC][PATCH] memcg documentation update v2 KAMEZAWA Hiroyuki
2010-03-31 17:27 ` Randy Dunlap
2010-04-01 0:21 ` KAMEZAWA Hiroyuki
2010-03-30 2:06 ` [RFC][PATCH] memcg documentaion update Balbir Singh
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=20100330094546.b7abca6d.kamezawa.hiroyu@jp.fujitsu.com \
--to=kamezawa.hiroyu@jp.fujitsu.com \
--cc=akpm@linux-foundation.org \
--cc=balbir@linux.vnet.ibm.com \
--cc=gthelen@google.com \
--cc=linux-mm@kvack.org \
--cc=nishimura@mxp.nes.nec.co.jp \
/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