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

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Paul Menage
Date: Monday, September 10, 2007 - 5: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, 1:42 am)
[-mm PATCH 2/9] Memory controller containers setup (v6), Balbir Singh, (Fri Aug 17, 1:42 am)
[-mm PATCH 3/9] Memory controller accounting setup (v6), Balbir Singh, (Fri Aug 17, 1:42 am)
[-mm PATCH 5/9] Memory controller task migration (v6), Balbir Singh, (Fri Aug 17, 1:43 am)
[-mm PATCH 7/9] Memory controller OOM handling (v6), Balbir Singh, (Fri Aug 17, 1:43 am)
Re: [-mm PATCH 0/9] Memory controller introduction (v6), Dhaval Giani, (Fri Aug 17, 8:49 am)
Re: [-mm PATCH 1/9] Memory controller resource counters (v6), Paul Menage, (Mon Sep 10, 5:42 pm)