Messages in this thread | | | Date | Fri, 27 Mar 2009 17:01:54 +0900 | From | KAMEZAWA Hiroyuki <> | Subject | Re: [RFC][PATCH 2/8] soft limit framework in memcg. |
| |
On Fri, 27 Mar 2009 14:03:46 +0900 KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> wrote:
> From: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> > > Add minimal modification for soft limit to res_counter_charge() and memcontol.c > Based on Balbir Singh <balbir@linux.vnet.ibm.com> 's work but most of > features are removed. (dropped or moved to later patch.) > > This is for building a frame to implement soft limit handler in memcg. > - Checks soft limit status at every charge. > - Adds mem_cgroup_soft_limit_check() as a function to detect we need > check now or not. > - mem_cgroup_update_soft_limit() is a function for updates internal status > of soft limit controller of memcg. > - This has no hooks in uncharge path. (see later patch.) Note: Why I don't insert hook to uncharge() is because uncharge() is called under spin locks (and my softlimit update() routine is heavy). But need some hook anyway. I'll take care of this in other patch if I got new idea.
Thanks, -Kame
| |