[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20090312100112.6f010cae.kamezawa.hiroyu@jp.fujitsu.com>
Date: Thu, 12 Mar 2009 10:01:12 +0900
From: KAMEZAWA Hiroyuki <kamezawa.hiroyu@...fujitsu.com>
To: KAMEZAWA Hiroyuki <kamezawa.hiroyu@...fujitsu.com>
Cc: "linux-mm@...ck.org" <linux-mm@...ck.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"balbir@...ux.vnet.ibm.com" <balbir@...ux.vnet.ibm.com>,
"nishimura@....nes.nec.co.jp" <nishimura@....nes.nec.co.jp>,
"kosaki.motohiro@...fujitsu.com" <kosaki.motohiro@...fujitsu.com>
Subject: [RFC][PATCH 6/5] softlimit document
Sorry...6th patch.
==
From: KAMEZAWA Hiroyuki <kamezawa.hiroyu@...fujitsu.com>
Documentation for softlimit
Signed-off-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@...fujitsu.com>
---
Documentation/cgroups/memory.txt | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
Index: mmotm-2.6.29-Mar10/Documentation/cgroups/memory.txt
===================================================================
--- mmotm-2.6.29-Mar10.orig/Documentation/cgroups/memory.txt
+++ mmotm-2.6.29-Mar10/Documentation/cgroups/memory.txt
@@ -322,6 +322,25 @@ will be charged as a new owner of it.
- a cgroup which uses hierarchy and it has child cgroup.
- a cgroup which uses hierarchy and not the root of hierarchy.
+5.4 softlimit
+ Memory cgroup supports softlimit and has 2 params for control.
+ - memory.softlimit_in_bytes
+ - softlimit to this cgroup.
+ - memory.softlimit_priority.
+ - priority of this cgroup at softlimit reclaim.
+ Allowed priority level is 3-0 and 3 is the lowest.
+ If 0, this cgroup will not be target of softlimit.
+
+ At memory shortage of the system (or local node/zone), softlimit helps
+ kswapd(), a global memory recalim kernel thread, and inform victim cgroup
+ to be shrinked to kswapd.
+
+ Victim selection logic:
+ The kernel searches from the lowest priroty(3) up to the highest(1).
+ If it find a cgroup witch has memory larger than softlimit, steal memory
+ from it.
+ If multiple cgroups are on the same priority, each cgroup wil be a
+ victim in turn.
6. Hierarchy support
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists