Display current tcp memory allocation in kmem cgroup
authorGlauber Costa <glommer@parallels.com>
Sun, 11 Dec 2011 21:47:07 +0000 (21:47 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 13 Dec 2011 00:04:11 +0000 (19:04 -0500)
commit5a6dd343770d2ae2c25f7a4b1998c091e6252f42
tree2675741dd0e09d0099502da36cfb06a7b63dc746
parent3aaabe2342c36bf48567b88fa78b819eee14bb5e
Display current tcp memory allocation in kmem cgroup

This patch introduces kmem.tcp.usage_in_bytes file, living in the
kmem_cgroup filesystem. It is a simple read-only file that displays the
amount of kernel memory currently consumed by the cgroup.

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>
Documentation/cgroups/memory.txt
net/ipv4/tcp_memcontrol.c