[Devel] Re: How to draw values for /proc/stat

2011-12-09 Thread Glauber Costa
On 12/09/2011 12:03 PM, Peter Zijlstra wrote: On Mon, 2011-12-05 at 07:32 -0200, Glauber Costa wrote: Hi, Specially Peter and Paul, but all the others: As you can see in https://lkml.org/lkml/2011/12/4/178, and in my answer to that, there is a question - one I've asked before but without that

[Devel] Re: [PATCH v8 1/9] Basic kernel memory functionality for the Memory Controller

2011-12-09 Thread Glauber Costa
On 12/09/2011 12:44 PM, David Laight wrote: How about this? val = !!val; /* * This follows the same hierarchy restrictions than * mem_cgroup_hierarchy_write() */ if (!parent || !parent->use_hierarchy) { if (list_

[Devel] Re: [PATCH v8 1/9] Basic kernel memory functionality for the Memory Controller

2011-12-09 Thread Glauber Costa
On 12/08/2011 11:21 PM, KAMEZAWA Hiroyuki wrote: Hm, why you check val != parent->kmem_independent_accounting ? if (parent&& parent->use_hierarchy) return -EINVAL; ? BTW, you didn't check this cgroup has children or not. I think if (this_cgroup->use_hierarchy&&

[Devel] Re: How to draw values for /proc/stat

2011-12-09 Thread Peter Zijlstra
On Wed, 2011-12-07 at 22:17 +0800, Zhu Yanhai wrote: > Let's include lxc-user mailing list for this topic. How many rotten cgroup related lists are there, it already had cgroups@ and containers@, which IMO is 1 too many already. ___ Devel mailing list

[Devel] Re: How to draw values for /proc/stat

2011-12-09 Thread Peter Zijlstra
On Mon, 2011-12-05 at 07:32 -0200, Glauber Costa wrote: > Hi, > > Specially Peter and Paul, but all the others: > > As you can see in https://lkml.org/lkml/2011/12/4/178, and in my answer > to that, there is a question - one I've asked before but without that > much of an audience - of whether

[Devel] Re: [PATCH v8 3/9] socket: initial cgroup code.

2011-12-09 Thread Glauber Costa
On 12/09/2011 12:05 AM, KAMEZAWA Hiroyuki wrote: On Mon, 5 Dec 2011 19:34:57 -0200 Glauber Costa wrote: The goal of this work is to move the memory pressure tcp controls to a cgroup, instead of just relying on global conditions. To avoid excessive overhead in the network fast paths, the code

[Devel] Re: [PATCH v8 2/9] foundations of per-cgroup memory pressure controlling.

2011-12-09 Thread Glauber Costa
On 12/08/2011 11:24 PM, KAMEZAWA Hiroyuki wrote: On Mon, 5 Dec 2011 19:34:56 -0200 Glauber Costa wrote: This patch replaces all uses of struct sock fields' memory_pressure, memory_allocated, sockets_allocated, and sysctl_mem to acessor macros. Those macros can either receive a socket argument

[Devel] Re: [PATCH v8 1/9] Basic kernel memory functionality for the Memory Controller

2011-12-09 Thread Glauber Costa
On 12/08/2011 11:21 PM, KAMEZAWA Hiroyuki wrote: On Mon, 5 Dec 2011 19:34:55 -0200 Glauber Costa wrote: This patch lays down the foundation for the kernel memory component of the Memory Controller. As of today, I am only laying down the following files: * memory.independent_kmem_limit *