[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

[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

[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

[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

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

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

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

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

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

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 memctlr

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 does

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

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 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: snip Hmm, I don't appear to have documented this yet, but I think a good naming scheme for container files is subsystem.whatever - i.e. these should be

[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

[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