login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
October
»
5
Re: [PATCH 02/10] memcg: document cgroup dirty memory interfaces
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: KAMEZAWA Hiroyuki
Subject:
Re: [PATCH 02/10] memcg: document cgroup dirty memory interfaces
Date: Monday, October 4, 2010 - 11:48 pm
On Sun, 3 Oct 2010 23:57:57 -0700 Greg Thelen <gthelen@google.com> wrote:
quoted text
> Document cgroup dirty memory interfaces and statistics. > > Signed-off-by: Andrea Righi <arighi@develer.com> > Signed-off-by: Greg Thelen <gthelen@google.com>
Nice. Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
quoted text
> --- > Documentation/cgroups/memory.txt | 37 +++++++++++++++++++++++++++++++++++++ > 1 files changed, 37 insertions(+), 0 deletions(-) > > diff --git a/Documentation/cgroups/memory.txt b/Documentation/cgroups/memory.txt > index 7781857..eab65e2 100644 > --- a/Documentation/cgroups/memory.txt > +++ b/Documentation/cgroups/memory.txt > @@ -385,6 +385,10 @@ mapped_file - # of bytes of mapped file (includes tmpfs/shmem) > pgpgin - # of pages paged in (equivalent to # of charging events). > pgpgout - # of pages paged out (equivalent to # of uncharging events). > swap - # of bytes of swap usage > +dirty - # of bytes that are waiting to get written back to the disk. > +writeback - # of bytes that are actively being written back to the disk. > +nfs - # of bytes sent to the NFS server, but not yet committed to > + the actual storage. > inactive_anon - # of bytes of anonymous memory and swap cache memory on > LRU list. > active_anon - # of bytes of anonymous and swap cache memory on active > @@ -453,6 +457,39 @@ memory under it will be reclaimed. > You can reset failcnt by writing 0 to failcnt file. > # echo 0 > .../memory.failcnt > > +5.5 dirty memory > + > +Control the maximum amount of dirty pages a cgroup can have at any given time. > + > +Limiting dirty memory is like fixing the max amount of dirty (hard to reclaim) > +page cache used by a cgroup. So, in case of multiple cgroup writers, they will > +not be able to consume more than their designated share of dirty pages and will > +be forced to perform write-out if they cross that limit. > + > +The interface is equivalent to the procfs interface: /proc/sys/vm/dirty_*. It > +is possible to configure a limit to trigger both a direct writeback or a > +background writeback performed by per-bdi flusher threads. The root cgroup > +memory.dirty_* control files are read-only and match the contents of > +the /proc/sys/vm/dirty_* files. > + > +Per-cgroup dirty limits can be set using the following files in the cgroupfs: > + > +- memory.dirty_ratio: the amount of dirty memory (expressed as a percentage of > + cgroup memory) at which a process generating dirty pages will itself start > + writing out dirty data. > + > +- memory.dirty_bytes: the amount of dirty memory (expressed in bytes) in the > + cgroup at which a process generating dirty pages will start itself writing out > + dirty data. > + > +- memory.dirty_background_ratio: the amount of dirty memory of the cgroup > + (expressed as a percentage of cgroup memory) at which background writeback > + kernel threads will start writing out dirty data. > + > +- memory.dirty_background_bytes: the amount of dirty memory (expressed in bytes) > + in the cgroup at which background writeback kernel threads will start writing > + out dirty data. > + > 6. Hierarchy support > > The memory controller supports a deep hierarchy and hierarchical accounting. > -- > 1.7.1 > >
--
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH 00/10] memcg: per cgroup dirty page accounting
, Greg Thelen
, (Sun Oct 3, 11:57 pm)
[PATCH 01/10] memcg: add page_cgroup flags for dirty page ...
, Greg Thelen
, (Sun Oct 3, 11:57 pm)
[PATCH 02/10] memcg: document cgroup dirty memory interfaces
, Greg Thelen
, (Sun Oct 3, 11:57 pm)
[PATCH 03/10] memcg: create extensible page stat update ro ...
, Greg Thelen
, (Sun Oct 3, 11:57 pm)
[PATCH 04/10] memcg: disable local interrupts in lock_page ...
, Greg Thelen
, (Sun Oct 3, 11:57 pm)
[PATCH 05/10] memcg: add dirty page accounting infrastructure
, Greg Thelen
, (Sun Oct 3, 11:58 pm)
[PATCH 06/10] memcg: add kernel calls for memcg dirty page ...
, Greg Thelen
, (Sun Oct 3, 11:58 pm)
[PATCH 07/10] memcg: add dirty limits to mem_cgroup
, Greg Thelen
, (Sun Oct 3, 11:58 pm)
[PATCH 08/10] memcg: add cgroupfs interface to memcg dirty ...
, Greg Thelen
, (Sun Oct 3, 11:58 pm)
[PATCH 09/10] writeback: make determine_dirtyable_memory() ...
, Greg Thelen
, (Sun Oct 3, 11:58 pm)
[PATCH 10/10] memcg: check memcg dirty limits in page writ ...
, Greg Thelen
, (Sun Oct 3, 11:58 pm)
Re: [PATCH 03/10] memcg: create extensible page stat updat ...
, Ciju Rajan K
, (Mon Oct 4, 6:48 am)
Re: [PATCH 03/10] memcg: create extensible page stat updat ...
, Greg Thelen
, (Mon Oct 4, 8:43 am)
Re: [PATCH 03/10] memcg: create extensible page stat updat ...
, Ciju Rajan K
, (Mon Oct 4, 10:35 am)
Re: [PATCH 00/10] memcg: per cgroup dirty page accounting
, Balbir Singh
, (Mon Oct 4, 9:20 pm)
Re: [PATCH 00/10] memcg: per cgroup dirty page accounting
, Balbir Singh
, (Mon Oct 4, 9:50 pm)
Re: [PATCH 00/10] memcg: per cgroup dirty page accounting
, Greg Thelen
, (Mon Oct 4, 10:50 pm)
Re: [PATCH 01/10] memcg: add page_cgroup flags for dirty p ...
, KAMEZAWA Hiroyuki
, (Mon Oct 4, 11:20 pm)
Re: [PATCH 02/10] memcg: document cgroup dirty memory inte ...
, KAMEZAWA Hiroyuki
, (Mon Oct 4, 11:48 pm)
Re: [PATCH 03/10] memcg: create extensible page stat updat ...
, KAMEZAWA Hiroyuki
, (Mon Oct 4, 11:51 pm)
Re: [PATCH 04/10] memcg: disable local interrupts in lock_ ...
, KAMEZAWA Hiroyuki
, (Mon Oct 4, 11:54 pm)
Re: [PATCH 06/10] memcg: add kernel calls for memcg dirty ...
, KAMEZAWA Hiroyuki
, (Mon Oct 4, 11:55 pm)
Re: [PATCH 07/10] memcg: add dirty limits to mem_cgroup
, KAMEZAWA Hiroyuki
, (Tue Oct 5, 12:07 am)
Re: [PATCH 03/10] memcg: create extensible page stat updat ...
, Greg Thelen
, (Tue Oct 5, 12:10 am)
Re: [PATCH 08/10] memcg: add cgroupfs interface to memcg d ...
, KAMEZAWA Hiroyuki
, (Tue Oct 5, 12:13 am)
Re: [PATCH 09/10] writeback: make determine_dirtyable_memo ...
, KAMEZAWA Hiroyuki
, (Tue Oct 5, 12:15 am)
Re: [PATCH 04/10] memcg: disable local interrupts in lock_ ...
, Greg Thelen
, (Tue Oct 5, 12:18 am)
Re: [PATCH 05/10] memcg: add dirty page accounting infrast ...
, KAMEZAWA Hiroyuki
, (Tue Oct 5, 12:22 am)
Re: [PATCH 10/10] memcg: check memcg dirty limits in page ...
, KAMEZAWA Hiroyuki
, (Tue Oct 5, 12:29 am)
Re: [PATCH 08/10] memcg: add cgroupfs interface to memcg d ...
, KAMEZAWA Hiroyuki
, (Tue Oct 5, 12:31 am)
Re: [PATCH 08/10] memcg: add cgroupfs interface to memcg d ...
, Greg Thelen
, (Tue Oct 5, 12:33 am)
Re: [PATCH 05/10] memcg: add dirty page accounting infrast ...
, Greg Thelen
, (Tue Oct 5, 12:35 am)
Re: [PATCH 00/10] memcg: per cgroup dirty page accounting
, Ciju Rajan K
, (Tue Oct 5, 1:37 am)
Re: [PATCH 08/10] memcg: add cgroupfs interface to memcg d ...
, Andrea Righi
, (Tue Oct 5, 2:18 am)
Re: [PATCH 07/10] memcg: add dirty limits to mem_cgroup
, Andrea Righi
, (Tue Oct 5, 2:43 am)
Re: [PATCH 03/10] memcg: create extensible page stat updat ...
, Minchan Kim
, (Tue Oct 5, 8:42 am)
Re: [PATCH 04/10] memcg: disable local interrupts in lock_ ...
, Minchan Kim
, (Tue Oct 5, 9:03 am)
Re: [PATCH 05/10] memcg: add dirty page accounting infrast ...
, Minchan Kim
, (Tue Oct 5, 9:09 am)
Re: [PATCH 08/10] memcg: add cgroupfs interface to memcg d ...
, David Rientjes
, (Tue Oct 5, 11:31 am)
Re: [PATCH 07/10] memcg: add dirty limits to mem_cgroup
, Greg Thelen
, (Tue Oct 5, 12:00 pm)
Re: [PATCH 03/10] memcg: create extensible page stat updat ...
, Greg Thelen
, (Tue Oct 5, 12:59 pm)
Re: [PATCH 05/10] memcg: add dirty page accounting infrast ...
, Greg Thelen
, (Tue Oct 5, 1:06 pm)
Re: [PATCH 00/10] memcg: per cgroup dirty page accounting
, Andrea Righi
, (Tue Oct 5, 3:15 pm)
Re: [PATCH 04/10] memcg: disable local interrupts in lock_ ...
, Greg Thelen
, (Tue Oct 5, 4:26 pm)
Re: [PATCH 03/10] memcg: create extensible page stat updat ...
, Minchan Kim
, (Tue Oct 5, 4:57 pm)
Re: [PATCH 04/10] memcg: disable local interrupts in lock_ ...
, Minchan Kim
, (Tue Oct 5, 5:15 pm)
Re: [PATCH 10/10] memcg: check memcg dirty limits in page ...
, Minchan Kim
, (Tue Oct 5, 5:32 pm)
Re: [PATCH 01/10] memcg: add page_cgroup flags for dirty p ...
, Daisuke Nishimura
, (Tue Oct 5, 5:37 pm)
Re: [PATCH 03/10] memcg: create extensible page stat updat ...
, Greg Thelen
, (Tue Oct 5, 5:48 pm)
Re: [PATCH 02/10] memcg: document cgroup dirty memory inte ...
, Daisuke Nishimura
, (Tue Oct 5, 5:49 pm)
Re: [PATCH 00/10] memcg: per cgroup dirty page accounting
, Balbir Singh
, (Tue Oct 5, 8:23 pm)
Re: [PATCH 01/10] memcg: add page_cgroup flags for dirty p ...
, Balbir Singh
, (Wed Oct 6, 4:07 am)
Re: [PATCH 02/10] memcg: document cgroup dirty memory inte ...
, Balbir Singh
, (Wed Oct 6, 4:12 am)
Re: [PATCH 08/10] memcg: add cgroupfs interface to memcg d ...
, Balbir Singh
, (Wed Oct 6, 6:30 am)
Re: [PATCH 08/10] memcg: add cgroupfs interface to memcg d ...
, Balbir Singh
, (Wed Oct 6, 6:32 am)
Re: [PATCH 03/10] memcg: create extensible page stat updat ...
, Balbir Singh
, (Wed Oct 6, 9:19 am)
Re: [PATCH 08/10] memcg: add cgroupfs interface to memcg d ...
, Greg Thelen
, (Wed Oct 6, 9:21 am)
Re: [PATCH 08/10] memcg: add cgroupfs interface to memcg d ...
, Balbir Singh
, (Wed Oct 6, 9:24 am)
Re: [PATCH 08/10] memcg: add cgroupfs interface to memcg d ...
, Greg Thelen
, (Wed Oct 6, 11:34 am)
Re: [PATCH 08/10] memcg: add cgroupfs interface to memcg d ...
, Andrea Righi
, (Wed Oct 6, 1:54 pm)
Re: [PATCH 07/10] memcg: add dirty limits to mem_cgroup
, KAMEZAWA Hiroyuki
, (Wed Oct 6, 5:13 pm)
Re: [PATCH 07/10] memcg: add dirty limits to mem_cgroup
, Greg Thelen
, (Wed Oct 6, 5:27 pm)
Re: [PATCH 04/10] memcg: disable local interrupts in lock_ ...
, KAMEZAWA Hiroyuki
, (Wed Oct 6, 5:35 pm)
Re: [PATCH 07/10] memcg: add dirty limits to mem_cgroup
, KAMEZAWA Hiroyuki
, (Wed Oct 6, 5:48 pm)
Re: [PATCH 04/10] memcg: disable local interrupts in lock_ ...
, Daisuke Nishimura
, (Wed Oct 6, 6:54 pm)
Re: [PATCH 04/10] memcg: disable local interrupts in lock_ ...
, KAMEZAWA Hiroyuki
, (Wed Oct 6, 7:17 pm)
[PATCH] memcg: reduce lock time at move charge (Was Re: [P ...
, KAMEZAWA Hiroyuki
, (Wed Oct 6, 11:21 pm)
Re: [PATCH 08/10] memcg: add cgroupfs interface to memcg d ...
, Ciju Rajan K
, (Wed Oct 6, 11:23 pm)
[PATCH] memcg: lock-free clear page writeback (Was Re: [P ...
, KAMEZAWA Hiroyuki
, (Wed Oct 6, 11:24 pm)
Re: [PATCH] memcg: reduce lock time at move charge (Was Re ...
, Daisuke Nishimura
, (Thu Oct 7, 12:28 am)
Re: [PATCH] memcg: reduce lock time at move charge (Was Re ...
, KAMEZAWA Hiroyuki
, (Thu Oct 7, 12:42 am)
[PATCH v2] memcg: reduce lock time at move charge (Was Re: ...
, KAMEZAWA Hiroyuki
, (Thu Oct 7, 1:04 am)
Re: [PATCH] memcg: lock-free clear page writeback (Was Re ...
, KAMEZAWA Hiroyuki
, (Thu Oct 7, 2:05 am)
Re: [PATCH 08/10] memcg: add cgroupfs interface to memcg d ...
, Greg Thelen
, (Thu Oct 7, 10:46 am)
Re: [PATCH v2] memcg: reduce lock time at move charge (Was ...
, Andrew Morton
, (Thu Oct 7, 4:14 pm)
Re: [PATCH] memcg: lock-free clear page writeback (Was Re: ...
, Minchan Kim
, (Thu Oct 7, 4:35 pm)
Re: [PATCH v2] memcg: reduce lock time at move charge (Was ...
, Daisuke Nishimura
, (Thu Oct 7, 6:12 pm)
Re: [PATCH v2] memcg: reduce lock time at move charge (Was ...
, KAMEZAWA Hiroyuki
, (Thu Oct 7, 9:37 pm)
Re: [PATCH] memcg: lock-free clear page writeback (Was Re: ...
, KAMEZAWA Hiroyuki
, (Thu Oct 7, 9:41 pm)
Re: [PATCH v2] memcg: reduce lock time at move charge (Was ...
, Andrew Morton
, (Thu Oct 7, 9:55 pm)
Re: [PATCH v2] memcg: reduce lock time at move charge (Was ...
, KAMEZAWA Hiroyuki
, (Thu Oct 7, 10:12 pm)
Re: [PATCH v2] memcg: reduce lock time at move charge (Was ...
, KAMEZAWA Hiroyuki
, (Fri Oct 8, 3:41 am)
Re: [PATCH 07/10] memcg: add dirty limits to mem_cgroup
, Greg Thelen
, (Mon Oct 11, 5:24 pm)
Re: [PATCH 07/10] memcg: add dirty limits to mem_cgroup
, KAMEZAWA Hiroyuki
, (Mon Oct 11, 5:55 pm)
Re: [PATCH v2] memcg: reduce lock time at move charge (Was ...
, Balbir Singh
, (Mon Oct 11, 8:39 pm)
Re: [PATCH v2] memcg: reduce lock time at move charge (Was ...
, KAMEZAWA Hiroyuki
, (Mon Oct 11, 8:42 pm)
Re: [PATCH v2] memcg: reduce lock time at move charge (Was ...
, Balbir Singh
, (Mon Oct 11, 8:54 pm)
Re: [PATCH v2] memcg: reduce lock time at move charge (Was ...
, Daisuke Nishimura
, (Mon Oct 11, 8:56 pm)
Re: [PATCH v2] memcg: reduce lock time at move charge (Was ...
, KAMEZAWA Hiroyuki
, (Mon Oct 11, 10:01 pm)
Re: [PATCH 04/10] memcg: disable local interrupts in lock_ ...
, Balbir Singh
, (Mon Oct 11, 10:39 pm)
[PATCH v4] memcg: reduce lock time at move charge
, KAMEZAWA Hiroyuki
, (Mon Oct 11, 10:48 pm)
Re: [PATCH v4] memcg: reduce lock time at move charge
, Daisuke Nishimura
, (Mon Oct 11, 11:23 pm)
Re: [PATCH 07/10] memcg: add dirty limits to mem_cgroup
, Greg Thelen
, (Tue Oct 12, 12:32 am)
Re: [PATCH 07/10] memcg: add dirty limits to mem_cgroup
, KAMEZAWA Hiroyuki
, (Tue Oct 12, 1:38 am)
Re: [PATCH 00/10] memcg: per cgroup dirty page accounting
, KAMEZAWA Hiroyuki
, (Sun Oct 17, 10:56 pm)
Re: [PATCH 00/10] memcg: per cgroup dirty page accounting
, Greg Thelen
, (Mon Oct 18, 11:09 am)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Greg KH
Og dreams of kernels
Jens Axboe
[PATCH 31/33] Fusion: sg chaining support
Arnd Bergmann
Re: finding your own dead "CONFIG_" variables
Mark Brown
[PATCH 2/2] Subject: natsemi: Allow users to disable workaround for DspCfg reset
Tony Breeds
[LGUEST] Look in object dir for .config
git
:
Brian Downing
Re: Git in a Nutshell guide
John Benes
Re: master has some toys
Matthias Lederhofer
[PATCH 4/7] introduce GIT_WORK_TREE to specify the work tree
Alexander Sulfrian
[RFC/PATCH] RE: git calls SSH_ASKPASS even if DISPLAY is not set
Junio C Hamano
Re: Rss produced by git is not valid xml?
git-commits-head
:
Linux Kernel Mailing List
iSeries: fix section mismatch in iseries_veth
Linux Kernel Mailing List
ixbge: remove TX lock and redo TX accounting.
Linux Kernel Mailing List
ixgbe: fix several counter register errata
Linux K