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

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

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

On Mon,  5 Dec 2011 19:34:57 -0200
Glauber Costa [off-list ref] 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 that accounts allocated memory to a cgroup is
hidden inside a static_branch(). This branch is patched out
until the first non-root cgroup is created. So when nobody
is using cgroups, even if it is mounted, no significant performance
penalty should be seen.

This patch handles the generic part of the code, and has nothing
tcp-specific.

Signed-off-by: Glauber Costa <redacted>
CC: Kirill A. Shutemov <redacted>
CC: KAMEZAWA Hiroyuki <redacted>
CC: David S. Miller <davem-fT/PcQaiUtIeIZ0/mPfg9Q@public.gmane.org>
CC: Eric W. Biederman <ebiederm-aS9lmoZGLiVWk0Htik3J/w@public.gmane.org>
CC: Eric Dumazet <redacted>
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