Messages in this thread | | | Date | Mon, 4 Jan 2010 05:37:52 +0530 | From | Balbir Singh <> | Subject | Re: [RFC] Shared page accounting for memory cgroup |
| |
* KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> [2010-01-04 08:51:08]:
> On Tue, 29 Dec 2009 23:57:43 +0530 > Balbir Singh <balbir@linux.vnet.ibm.com> wrote: > > > Hi, Everyone, > > > > I've been working on heuristics for shared page accounting for the > > memory cgroup. I've tested the patches by creating multiple cgroups > > and running programs that share memory and observed the output. > > > > Comments? > > Hmm? Why we have to do this in the kernel ? >
For several reasons that I can think of
1. With task migration changes coming in, getting consistent data free of races is going to be hard. 2. The cost of doing it in the kernel is not high, it does not impact the memcg runtime, it is a request-response sort of cost. 3. The cost in user space is going to be high and the implementation cumbersome to get right.
-- Balbir
| |