From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from sd0109e.au.ibm.com (d23rh905.au.ibm.com [202.81.18.225]) by e23smtp04.au.ibm.com (8.13.1/8.13.1) with ESMTP id l8CAAiOD015749 for ; Wed, 12 Sep 2007 20:10:45 +1000 Received: from d23av04.au.ibm.com (d23av04.au.ibm.com [9.190.235.139]) by sd0109e.au.ibm.com (8.13.8/8.13.8/NCO v8.5) with ESMTP id l8CA9HSa118824 for ; Wed, 12 Sep 2007 20:09:18 +1000 Received: from d23av04.au.ibm.com (loopback [127.0.0.1]) by d23av04.au.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id l8CB5Ql2030487 for ; Wed, 12 Sep 2007 21:05:27 +1000 Message-ID: <46E7B9DA.6070404@linux.vnet.ibm.com> Date: Wed, 12 Sep 2007 15:35:14 +0530 From: Balbir Singh Reply-To: balbir@linux.vnet.ibm.com MIME-Version: 1.0 Subject: Re: [-mm PATCH 1/9] Memory controller resource counters (v6) References: <20070817084228.26003.12568.sendpatchset@balbir-laptop> <20070817084238.26003.7733.sendpatchset@balbir-laptop> <6599ad830709101742k658234b4of59f14ef27e40d14@mail.gmail.com> In-Reply-To: <6599ad830709101742k658234b4of59f14ef27e40d14@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org Return-Path: To: Paul Menage Cc: Nick Piggin , Peter Zijlstra , YAMAMOTO Takashi , Linux Kernel Mailing List , Linux MM Mailing List , Eric W Biederman , Linux Containers , Andrew Morton , Pavel Emelianov List-ID: Paul Menage wrote: > 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 > Yes, I remember discussing it with you. I would expect res_counters definition to be dynamic (to be able to add the guarantee, soft limit, etc) for expansion in the future. In the future, I would also like to do hierarchical resource groups, the hierarchy would represent the current filesystem hierarchy. -- Warm Regards, Balbir Singh Linux Technology Center IBM, ISTL -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org