Re: [-mm PATCH 1/9] Memory controller resource counters (v6)

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Balbir Singh <balbir@...>
Cc: Andrew Morton <akpm@...>, Linux Kernel Mailing List <linux-kernel@...>, Linux Containers <containers@...>, YAMAMOTO Takashi <yamamoto@...>, Peter Zijlstra <a.p.zijlstra@...>, Eric W Biederman <ebiederm@...>, Linux MM Mailing List <linux-mm@...>, Nick Piggin <npiggin@...>, Vaidyanathan Srinivasan <svaidy@...>, Pavel Emelianov <xemul@...>, Dhaval Giani <dhaval@...>, Dave Hansen <haveblue@...>, KAMEZAWA Hiroyuki <kamezawa.hiroyu@...>
Date: Monday, September 10, 2007 - 8:42 pm

Hi Balbir/Pavel,

As I mentioned to you directly at the kernel summit, I think it might
be cleaner to integrate resource counters more closely with control
groups. So rather than controllers such as the memory controller
having to create their own boilerplate cf_type structures and
read/write functions, it should be possible to just call a function
something like

control_group_add_rescounter(struct cgroup *cg, struct cgroup_subsys *ss,
                                             struct res_counter *res,
const char *name)

and have it handle all the userspace API. This would simplify the task
of keeping a consistent userspace API between different controllers
using the resource counter abstraction.

Paul


On 8/17/07, Balbir Singh <balbir@linux.vnet.ibm.com> wrote:
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[-mm PATCH 0/9] Memory controller introduction (v6), Balbir Singh, (Fri Aug 17, 4:42 am)
Re: [-mm PATCH 0/9] Memory controller introduction (v6), Dhaval Giani, (Fri Aug 17, 11:49 am)
[-mm PATCH 7/9] Memory controller OOM handling (v6), Balbir Singh, (Fri Aug 17, 4:43 am)
[-mm PATCH 5/9] Memory controller task migration (v6), Balbir Singh, (Fri Aug 17, 4:43 am)
[-mm PATCH 3/9] Memory controller accounting setup (v6), Balbir Singh, (Fri Aug 17, 4:42 am)
[-mm PATCH 2/9] Memory controller containers setup (v6), Balbir Singh, (Fri Aug 17, 4:42 am)
Re: [-mm PATCH 1/9] Memory controller resource counters (v6), Paul Menage, (Mon Sep 10, 8:42 pm)