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: KAMEZAWA Hiroyuki
Subject:
Re: [PATCH v3 02/11] memcg: document cgroup dirty memory interfaces
Date: Tuesday, October 19, 2010 - 6:14 pm
On Wed, 20 Oct 2010 09:48:21 +0900 Daisuke Nishimura <nishimura@mxp.nes.nec.co.jp> wrote:
quoted text
> 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. Thanks, -Kame --
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
:
monstr
[PATCH 46/56] microblaze_v2: headers files entry.h current.h mman.h registers.h se...
Jan Engelhardt
Re: Linux Security *Module* Framework (Was: LSM conversion to static interface)
Dave Jones
Re: Why do so many machines need "noapic"?
Michael Moore
Re: underage models, pre teen models, lolita porn, young preteens, little lolitas
Lars-Peter Clausen
[PATCH v4] MMC: Add JZ4740 mmc driver
git
:
Andy Parkins
git-fetch fails with error code 128
Eli Zaretskii
Re: Switching from CVS to GIT
Jan Harkes
Re: git-svn and huge data and modifying the git-svn-HEAD branch directly
Dan Chokola
Re: how do you "force a pull"?
Johan Herland
Re: Comment on weak refs
git-commits-head
:
Linux Kernel Mailing List
No need to do lock_super() for exclusion in generic_shutdown_super()
Linux Kernel Mailing List
x86, msr: Export the register-setting MSR functions via /dev/*/msr
Linux Kernel Mailing List
MIPS: SMTC: Fix lockup in smtc_distribute_timer
Linux Kernel Mailing List
Input: gpio-keys - add support for disabling gpios through sysfs
Linux Kernel Mailing List
sh-sci: update receive error handling for muxed irqs
linux-netdev
:
Patrick McHardy
Re: no reassembly for outgoing packets on RAW socket
Ilpo Järvinen
net-next/unix: BUG: using smp_processor_id() in preemptible
Herbert Xu
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Evgeniy Polyakov
Re: virt-manager broken by bind(0) in net-next.
Eric Dumazet
Re: [PATCH] conntrack: use SLAB_DESTROY_BY_RCU for nf_conn structs
openbsd-misc
:
elitdostlar
Seks partneri arayan bayanlar bu adreste - 8878xs706x6438
Marcus Andree
Re: This is what Linus Torvalds calls openBSD crowd
Lars D. Noodén
Re: sshd.config and AllowUsers
Henning Brauer
Re: Sun Blade 1000?
Laurens Vets
Re: OT: opinions on IDS / IPS solutions
Colocation donated by:
Syndicate