Thread (29 messages) flat view 29 messages, 3 authors, 2011-12-12

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

From: KAMEZAWA Hiroyuki <hidden>
Date: 2011-12-09 01:25:56
Also in: cgroups, linux-mm, lkml

On Mon,  5 Dec 2011 19:34:56 -0200
Glauber Costa [off-list ref] 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 <redacted>
CC: David S. Miller <davem-fT/PcQaiUtIeIZ0/mPfg9Q@public.gmane.org>
CC: Hiroyouki Kamezawa <redacted>
CC: Eric W. Biederman <ebiederm-aS9lmoZGLiVWk0Htik3J/w@public.gmane.org>
CC: Eric Dumazet <redacted>
please get ack from network guys. 
from me.
Reviewed-by: KAMEZAWA Hiroyuki <redacted>

--
To unsubscribe from this list: send the line "unsubscribe cgroups" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help