login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
October
»
20
Re: [PATCH v3 02/11] memcg: document cgroup dirty memory interfaces
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Daisuke Nishimura
Subject:
Re: [PATCH v3 02/11] memcg: document cgroup dirty memory interfaces
Date: Tuesday, October 19, 2010 - 8:47 pm
On Wed, 20 Oct 2010 11:24:31 +0900 KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> wrote:
quoted text
> On Wed, 20 Oct 2010 10:14:21 +0900 > KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> wrote: > > > On Wed, 20 Oct 2010 09:48:21 +0900 > > Daisuke Nishimura <nishimura@mxp.nes.nec.co.jp> wrote: > > > > > On Wed, 20 Oct 2010 09:11:09 +0900 > > > KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> wrote: > > > > > > > On Tue, 19 Oct 2010 14:00:58 -0700 > > > > Greg Thelen <gthelen@google.com> wrote: > > > > > > > (snip) > > > > > +When use_hierarchy=0, each cgroup has independent dirty memory usage and limits. > > > > > + > > > > > +When use_hierarchy=1, a parent cgroup increasing its dirty memory usage will > > > > > +compare its total_dirty memory (which includes sum of all child cgroup dirty > > > > > +memory) to its dirty limits. This keeps a parent from explicitly exceeding its > > > > > +dirty limits. However, a child cgroup can increase its dirty usage without > > > > > +considering the parent's dirty limits. Thus the parent's total_dirty can exceed > > > > > +the parent's dirty limits as a child dirties pages. > > > > > > > > Hmm. in short, dirty_ratio in use_hierarchy=1 doesn't work as an user expects. > > > > Is this a spec. or a current implementation ? > > > > > > > > I think as following. > > > > - add a limitation as "At setting chidlren's dirty_ratio, it must be below parent's. > > > > If it exceeds parent's dirty_ratio, EINVAL is returned." > > > > > > > > Could you modify setting memory.dirty_ratio code ? > > > > Then, parent's dirty_ratio will never exceeds its own. (If I understand correctly.) > > > > > > > > "memory.dirty_limit_in_bytes" will be a bit more complecated, but I think you can. > > > > > > > I agree. > > > > > > At the first impression, this limitation seems a bit overkill for me, because > > > we allow memory.limit_in_bytes of a child bigger than that of parent now. > > > But considering more, the situation is different, because usage_in_bytes never > > > exceeds limit_in_bytes. > > > > > > > I'd like to consider a patch. > > Please mention that "use_hierarchy=1 case depends on implemenation." for now. > > > > BTW, how about supporing dirty_limit_in_bytes when use_hierarchy=0 or leave it as > broken when use_hierarchy=1 ? > It seems we can only support dirty_ratio when hierarchy is used. >
It's all right for me. This feature would be useful even w/o hierarchy support. Thanks, Daisuke Nishimura. --
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 v3 00/11] memcg: per cgroup dirty page accounting
, Greg Thelen
, (Mon Oct 18, 5:39 pm)
[PATCH v3 01/11] memcg: add page_cgroup flags for dirty pa ...
, Greg Thelen
, (Mon Oct 18, 5:39 pm)
[PATCH v3 02/11] memcg: document cgroup dirty memory inter ...
, Greg Thelen
, (Mon Oct 18, 5:39 pm)
[PATCH v3 03/11] memcg: create extensible page stat update ...
, Greg Thelen
, (Mon Oct 18, 5:39 pm)
[PATCH v3 04/11] memcg: add lock to synchronize page accou ...
, Greg Thelen
, (Mon Oct 18, 5:39 pm)
[PATCH v3 05/11] memcg: add dirty page accounting infrastr ...
, Greg Thelen
, (Mon Oct 18, 5:39 pm)
[PATCH v3 06/11] memcg: add kernel calls for memcg dirty p ...
, Greg Thelen
, (Mon Oct 18, 5:39 pm)
[PATCH v3 07/11] memcg: add dirty limits to mem_cgroup
, Greg Thelen
, (Mon Oct 18, 5:39 pm)
[PATCH v3 08/11] memcg: CPU hotplug lockdep warning fix
, Greg Thelen
, (Mon Oct 18, 5:39 pm)
[PATCH v3 09/11] memcg: add cgroupfs interface to memcg di ...
, Greg Thelen
, (Mon Oct 18, 5:39 pm)
[PATCH v3 10/11] writeback: make determine_dirtyable_memor ...
, Greg Thelen
, (Mon Oct 18, 5:39 pm)
[PATCH v3 11/11] memcg: check memcg dirty limits in page w ...
, Greg Thelen
, (Mon Oct 18, 5:39 pm)
Re: [PATCH v3 04/11] memcg: add lock to synchronize page a ...
, KAMEZAWA Hiroyuki
, (Mon Oct 18, 5:45 pm)
Re: [PATCH v3 02/11] memcg: document cgroup dirty memory i ...
, KAMEZAWA Hiroyuki
, (Mon Oct 18, 5:46 pm)
Re: [PATCH v3 03/11] memcg: create extensible page stat up ...
, KAMEZAWA Hiroyuki
, (Mon Oct 18, 5:47 pm)
Re: [PATCH v3 05/11] memcg: add dirty page accounting infr ...
, KAMEZAWA Hiroyuki
, (Mon Oct 18, 5:49 pm)
Re: [PATCH v3 06/11] memcg: add kernel calls for memcg dir ...
, KAMEZAWA Hiroyuki
, (Mon Oct 18, 5:51 pm)
Re: [PATCH v3 07/11] memcg: add dirty limits to mem_cgroup
, KAMEZAWA Hiroyuki
, (Mon Oct 18, 5:53 pm)
Re: [PATCH v3 08/11] memcg: CPU hotplug lockdep warning fix
, KAMEZAWA Hiroyuki
, (Mon Oct 18, 5:54 pm)
Re: [PATCH v3 09/11] memcg: add cgroupfs interface to memc ...
, KAMEZAWA Hiroyuki
, (Mon Oct 18, 5:56 pm)
Re: [PATCH v3 10/11] writeback: make determine_dirtyable_m ...
, KAMEZAWA Hiroyuki
, (Mon Oct 18, 5:57 pm)
Re: [PATCH v3 11/11] memcg: check memcg dirty limits in pa ...
, KAMEZAWA Hiroyuki
, (Mon Oct 18, 6:00 pm)
Re: [PATCH v3 04/11] memcg: add lock to synchronize page a ...
, Minchan Kim
, (Mon Oct 18, 6:17 pm)
Re: [PATCH v3 01/11] memcg: add page_cgroup flags for dirt ...
, Daisuke Nishimura
, (Mon Oct 18, 9:31 pm)
[RFC][PATCH 1/2] memcg: move_account optimization by redu ...
, KAMEZAWA Hiroyuki
, (Mon Oct 18, 9:43 pm)
[RFC][PATCH 2/2] memcg: move_account optimization by redu ...
, KAMEZAWA Hiroyuki
, (Mon Oct 18, 9:45 pm)
Re: [PATCH v3 03/11] memcg: create extensible page stat up ...
, Daisuke Nishimura
, (Mon Oct 18, 9:52 pm)
Re: [PATCH v3 04/11] memcg: add lock to synchronize page a ...
, Daisuke Nishimura
, (Mon Oct 18, 10:03 pm)
Re: [PATCH v3 06/11] memcg: add kernel calls for memcg dir ...
, Daisuke Nishimura
, (Tue Oct 19, 12:03 am)
Re: [PATCH v3 02/11] memcg: document cgroup dirty memory i ...
, Daisuke Nishimura
, (Tue Oct 19, 1:27 am)
Re: [PATCH v3 02/11] memcg: document cgroup dirty memory i ...
, Greg Thelen
, (Tue Oct 19, 2:00 pm)
Re: [PATCH v3 02/11] memcg: document cgroup dirty memory i ...
, KAMEZAWA Hiroyuki
, (Tue Oct 19, 5:11 pm)
Re: [PATCH v3 02/11] memcg: document cgroup dirty memory i ...
, Greg Thelen
, (Tue Oct 19, 5:45 pm)
Re: [PATCH v3 02/11] memcg: document cgroup dirty memory i ...
, Daisuke Nishimura
, (Tue Oct 19, 5:48 pm)
Re: [PATCH v3 07/11] memcg: add dirty limits to mem_cgroup
, Daisuke Nishimura
, (Tue Oct 19, 5:50 pm)
Re: [PATCH v3 05/11] memcg: add dirty page accounting infr ...
, Daisuke Nishimura
, (Tue Oct 19, 5:53 pm)
Re: [PATCH v3 02/11] memcg: document cgroup dirty memory i ...
, KAMEZAWA Hiroyuki
, (Tue Oct 19, 6:14 pm)
Re: [PATCH v3 02/11] memcg: document cgroup dirty memory i ...
, KAMEZAWA Hiroyuki
, (Tue Oct 19, 7:24 pm)
[PATCH][memcg+dirtylimit] Fix overwriting global vm dirty ...
, KAMEZAWA Hiroyuki
, (Tue Oct 19, 8:21 pm)
Re: [PATCH v3 09/11] memcg: add cgroupfs interface to memc ...
, Daisuke Nishimura
, (Tue Oct 19, 8:31 pm)
Re: [PATCH v3 09/11] memcg: add cgroupfs interface to memc ...
, KAMEZAWA Hiroyuki
, (Tue Oct 19, 8:44 pm)
Re: [PATCH v3 09/11] memcg: add cgroupfs interface to memc ...
, Daisuke Nishimura
, (Tue Oct 19, 8:46 pm)
Re: [PATCH v3 02/11] memcg: document cgroup dirty memory i ...
, Daisuke Nishimura
, (Tue Oct 19, 8:47 pm)
Re: [PATCH v3 10/11] writeback: make determine_dirtyable_m ...
, Daisuke Nishimura
, (Tue Oct 19, 8:47 pm)
Re: [PATCH v3 08/11] memcg: CPU hotplug lockdep warning fix
, Daisuke Nishimura
, (Tue Oct 19, 8:47 pm)
Re: [PATCH v3 02/11] memcg: document cgroup dirty memory i ...
, KAMEZAWA Hiroyuki
, (Tue Oct 19, 9:06 pm)
Re: [PATCH v3 07/11] memcg: add dirty limits to mem_cgroup
, Greg Thelen
, (Tue Oct 19, 9:08 pm)
Re: [PATCH][memcg+dirtylimit] Fix overwriting global vm d ...
, KAMEZAWA Hiroyuki
, (Tue Oct 19, 9:14 pm)
Re: [PATCH v3 11/11] memcg: check memcg dirty limits in pa ...
, KAMEZAWA Hiroyuki
, (Tue Oct 19, 9:18 pm)
Re: [PATCH v3 02/11] memcg: document cgroup dirty memory i ...
, Greg Thelen
, (Tue Oct 19, 9:25 pm)
Re: [PATCH v3 02/11] memcg: document cgroup dirty memory i ...
, KAMEZAWA Hiroyuki
, (Tue Oct 19, 9:26 pm)
Re: [PATCH v3 11/11] memcg: check memcg dirty limits in pa ...
, KAMEZAWA Hiroyuki
, (Tue Oct 19, 9:33 pm)
Re: [PATCH v3 11/11] memcg: check memcg dirty limits in pa ...
, Greg Thelen
, (Tue Oct 19, 9:33 pm)
Re: [PATCH v3 11/11] memcg: check memcg dirty limits in pa ...
, Daisuke Nishimura
, (Tue Oct 19, 9:34 pm)
[PATCH v2][memcg+dirtylimit] Fix overwriting global vm di ...
, KAMEZAWA Hiroyuki
, (Tue Oct 19, 10:02 pm)
Re: [PATCH v3 11/11] memcg: check memcg dirty limits in pa ...
, Daisuke Nishimura
, (Tue Oct 19, 10:25 pm)
Re: [PATCH v2][memcg+dirtylimit] Fix overwriting global v ...
, Daisuke Nishimura
, (Tue Oct 19, 11:09 pm)
Re: [PATCH v2][memcg+dirtylimit] Fix overwriting global v ...
, Minchan Kim
, (Wed Oct 20, 7:35 am)
Re: [PATCH v2][memcg+dirtylimit] Fix overwriting global v ...
, KAMEZAWA Hiroyuki
, (Wed Oct 20, 5:10 pm)
Re: [PATCH v2][memcg+dirtylimit] Fix overwriting global v ...
, Greg Thelen
, (Sun Oct 24, 11:44 am)
Re: [PATCH v2][memcg+dirtylimit] Fix overwriting global v ...
, KAMEZAWA Hiroyuki
, (Sun Oct 24, 5:24 pm)
Re: [PATCH v2][memcg+dirtylimit] Fix overwriting global v ...
, Daisuke Nishimura
, (Sun Oct 24, 7:00 pm)
Re: [PATCH v2][memcg+dirtylimit] Fix overwriting global v ...
, Ciju Rajan K
, (Mon Oct 25, 12:03 am)
Re: [PATCH v2][memcg+dirtylimit] Fix overwriting global v ...
, KAMEZAWA Hiroyuki
, (Mon Oct 25, 12:08 am)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Greg Kroah-Hartman
[PATCH 041/196] kobject: add kobject_init_and_add function
Lukas Hejtmanek
Re: Another libata error related to OCZ SSD
Greg Kroah-Hartman
[PATCH 023/196] MCP_UCB1200: Convert from class_device to device
Florian Fainelli
Re: System clock runs too fast after 2.6.27 -> 2.6.28.1 upgrade
Christoph Lameter
[patch 1/4] mmu_notifier: Core code
git
:
Johannes Schindelin
Re: [PATCH 1/2] Add strbuf_initf()
John Bito
[EGIT] Push to GitHub caused corruption
Jakub Narebski
Re: [PATCH 0/2] gitweb: patch view
Junio C Hamano
Re: [PATCH] When a remote is added but not fetched, tell the user.
Andy Parkins
Re: [RFC] Submodules in GIT
git-commits-head
:
Linux Kernel Mailing List
ahci: Workaround HW bug for SB600/700 SATA controller PMP support
Linux Kernel Mailing List
V4L/DVB (11086): au0828: rename macro for currently non-function VBI support
Linux Kernel Mailing List
ceph: client types
Linux Kernel Mailing List
ceph: on-wire types
Linux Kernel Mailing List
crypto: chainiv - Use kcrypto_wq instead of keventd_wq
linux-netdev
:
Andrew Morton
Re: [Bugme-new] [Bug 14969] New: b44: WOL does not work in suspended state
Giuseppe CAVALLARO
Re: [PATCH 03/13] stmmac: add the new Header file for stmmac platform data
Taku Izumi
[PATCH 3/3] ixgbe: add registers etc. printout code just before resetting adapters
Eric Dumazet
rps: some comments
Thomas Gleixner
Re: [RFC PATCH 02/12] On Tue, 23 Sep 2008, David Miller wrote:
openbsd-misc
:
Stephan Andreas
problems with login after xlock in OpenBSD release 4.7
pmc
Make A Change. Alcoholism and Drug Addiction Treatment
ropers
Re: what exactly is enc0?
Fuad NAHDI
Re: What does your environment look like?
Matthew Szudzik
Typo on OpenBSD 4.4 CD Set
Colocation donated by:
Syndicate