diff options
| author | Glauber Costa <[email protected]> | 2011-12-11 21:47:06 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2011-12-12 19:04:11 -0500 |
| commit | 3aaabe2342c36bf48567b88fa78b819eee14bb5e (patch) | |
| tree | 1364c84c53ba6382f9a9df9d6f42a3bc37427d05 /tools/perf/scripts/python/bin | |
| parent | 3dc43e3e4d0b52197d3205214fe8f162f9e0c334 (diff) | |
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 <[email protected]>
Reviewed-by: Hiroyouki Kamezawa <[email protected]>
CC: David S. Miller <[email protected]>
CC: Eric W. Biederman <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions