[RFC][PATCH][1/4] RSS controller setup (v2)

2007-02-25 Thread Balbir Singh
Changelog 1. Change the name from memctlr to memcontrol 2. Coding style changes, call the API and then check return value (for kmalloc). 3. Change the output format, to print sizes in both pages and kB 4. Split the usage and limit files to be independent (cat memcontrol_usage no longer prints

[RFC][PATCH][1/4] RSS controller setup (

2007-02-24 Thread Balbir Singh
Changelog 1. Change the name from memctlr to memcontrol 2. Coding style changes, call the API and then check return value (for kmalloc). 3. Change the output format, to print sizes in both pages and kB 4. Split the usage and limit files to be independent (cat memcontrol_usage no longer prints

Re: [RFC][PATCH][1/4] RSS controller setup

2007-02-19 Thread Matthew Helsley
On Mon, 2007-02-19 at 16:43 +0530, Balbir Singh wrote: > Paul Menage wrote: > > On 2/19/07, Andrew Morton <[EMAIL PROTECTED]> wrote: > > Hmm, I don't appear to have documented this yet, but I think a good > > naming scheme for container files is . - i.e. > > these should be memctlr.usage and mem

Re: [RFC][PATCH][1/4] RSS controller setup

2007-02-19 Thread Balbir Singh
Paul Menage wrote: On 2/19/07, Andrew Morton <[EMAIL PROTECTED]> wrote: This output is hard to parse and to extend. I'd suggest either two separate files, or multi-line output: usage: %lu kB limit: %lu kB Two separate files would be the container usage model that I envisaged, inherited from

Re: [RFC][PATCH][1/4] RSS controller setup

2007-02-19 Thread Balbir Singh
Andrew Morton wrote: On Mon, 19 Feb 2007 12:20:26 +0530 Balbir Singh <[EMAIL PROTECTED]> wrote: This patch sets up the basic controller infrastructure on top of the containers infrastructure. Two files are provided for monitoring and control memctlr_usage and memctlr_limit. The patches use t

Re: [RFC][PATCH][1/4] RSS controller setup

2007-02-19 Thread Paul Menage
On 2/19/07, Andrew Morton <[EMAIL PROTECTED]> wrote: This output is hard to parse and to extend. I'd suggest either two separate files, or multi-line output: usage: %lu kB limit: %lu kB Two separate files would be the container usage model that I envisaged, inherited from the way cpusets doe

Re: [RFC][PATCH][1/4] RSS controller setup

2007-02-19 Thread Andrew Morton
On Mon, 19 Feb 2007 12:20:26 +0530 Balbir Singh <[EMAIL PROTECTED]> wrote: > > This patch sets up the basic controller infrastructure on top of the > containers infrastructure. Two files are provided for monitoring > and control memctlr_usage and memctlr_limit. The patches use the identifier "m

[RFC][PATCH][1/4] RSS controller setup

2007-02-18 Thread Balbir Singh
This patch sets up the basic controller infrastructure on top of the containers infrastructure. Two files are provided for monitoring and control memctlr_usage and memctlr_limit. memctlr_usage shows the current usage (in pages, of RSS) and the limit set by the user. memctlr_limit can be used to