login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
October
»
21
Re: [PATCH v2][memcg+dirtylimit] Fix overwriting global vm dirty limit setting by memcg (Re: [PATCH v3 00/11] memcg: per cgroup dirty page accounting
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: KAMEZAWA Hiroyuki
Subject:
Re: [PATCH v2][memcg+dirtylimit] Fix overwriting global vm dirty limit setting by memcg (Re: [PATCH v3 00/11] memcg: per cgroup dirty page accounting
Date: Wednesday, October 20, 2010 - 5:10 pm
On Wed, 20 Oct 2010 23:35:15 +0900 Minchan Kim <minchan.kim@gmail.com> wrote:
quoted text
> On Wed, Oct 20, 2010 at 02:02:55PM +0900, KAMEZAWA Hiroyuki wrote: > > Fixed one here. > > == > > From: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> > > > > Now, at calculating dirty limit, vm_dirty_param() is called. > > This function returns dirty-limit related parameters considering > > memory cgroup settings. > > > > Now, assume that vm_dirty_bytes=100M (global dirty limit) and > > memory cgroup has 1G of pages and 40 dirty_ratio, dirtyable memory is > > 500MB. > > > > In this case, global_dirty_limits will consider dirty_limt as > > 500 *0.4 = 200MB. This is bad...memory cgroup is not back door. > > > > This patch limits the return value of vm_dirty_param() considring > > global settings. > > > > Changelog: > > - fixed an argument "mem" int to u64 > > - fixed to use global available memory to cap memcg's value. > > > > Signed-off-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> > Reviewed-by: Minchan Kim <minchan.kim@gmail.com> > > It should have written this on Documentation. > "memcg dirty limit can't exceed global dirty limit" >
Sure. Anyway we need review & rewrite Documenation after dirty limit merged. (I think Greg will do much.) 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
:
<