Glauber Costa 3aaabe2342 tcp buffer limitation: per-cgroup limit
This patch uses the "tcp.limit_in_bytes" field of the kmem_cgroup to
effectively control the amount of kernel memory pinned by a cgroup.

This value is ignored in the root cgroup, and in all others,
caps the value specified by the admin in the net namespaces'
view of tcp_sysctl_mem.

If namespaces are being used, the admin is allowed to set a
value bigger than cgroup's maximum, the same way it is allowed
to set pretty much unlimited values in a real box.

Signed-off-by: Glauber Costa <glommer@parallels.com>
Reviewed-by: Hiroyouki Kamezawa <kamezawa.hiroyu@jp.fujitsu.com>
CC: David S. Miller <davem@davemloft.net>
CC: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2011-12-12 19:04:11 -05:00
..
2011-12-12 19:04:11 -05:00
2011-11-12 18:13:32 -05:00
2011-12-06 00:34:40 -05:00
2011-04-22 11:04:14 -07:00
2011-10-13 16:05:07 -04:00
2011-12-11 18:25:16 -05:00
2011-10-19 03:10:46 -04:00
2011-10-19 03:10:46 -04:00
2011-12-11 18:25:16 -05:00
2011-12-11 18:25:16 -05:00
2011-11-08 15:10:59 -05:00
2011-12-12 19:04:10 -05:00
2011-11-18 14:38:59 -05:00
2011-12-12 19:04:11 -05:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-12-12 19:04:11 -05:00
2011-12-11 18:25:16 -05:00
2011-12-10 13:14:59 -05:00
2011-12-09 14:14:08 -05:00
2010-07-12 12:57:54 -07:00