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

KAMEZAWA Hiroyuki kamezawa.hiroyu at jp.fujitsu.com
Thu Dec 8 17:24:38 PST 2011


On Mon,  5 Dec 2011 19:34:56 -0200
Glauber Costa <glommer at parallels.com> 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, or a mem_cgroup
> argument, depending on the context they live in.
> 
> Since we're only doing a macro wrapping here, no performance impact at all is
> expected in the case where we don't have cgroups disabled.
> 
> Signed-off-by: Glauber Costa <glommer at parallels.com>
> CC: David S. Miller <davem at davemloft.net>
> CC: Hiroyouki Kamezawa <kamezawa.hiroyu at jp.fujitsu.com>
> CC: Eric W. Biederman <ebiederm at xmission.com>
> CC: Eric Dumazet <eric.dumazet at gmail.com>

please get ack from network guys. 
from me.
Reviewed-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu at jp.fujitsu.com>




More information about the Devel mailing list