]> git.ipfire.org Git - thirdparty/libvirt.git/commit
make /proc/meminfo isolate with host through fuse
authorGao feng <gaofeng@cn.fujitsu.com>
Mon, 12 Nov 2012 11:52:01 +0000 (19:52 +0800)
committerDaniel P. Berrange <berrange@redhat.com>
Wed, 28 Nov 2012 10:28:49 +0000 (10:28 +0000)
commitd671c0ed1b933c73f1e2cc8e990bf06be3c84f05
tree547bb0ce81b3b61e6acff4831ebde13b275a9d03
parent729acc23dfe82cc494be561c90b1ceb45aebb08d
make /proc/meminfo isolate with host through fuse

with this patch,container's meminfo will be shown based on
containers' mem cgroup.

Right now,it's impossible to virtualize all values in meminfo,
I collect some values such as MemTotal,MemFree,Cached,Active,
Inactive,Active(anon),Inactive(anon),Active(file),Inactive(anon),
Active(file),Inactive(file),Unevictable,SwapTotal,SwapFree.

if I miss something, please let me know.

Signed-off-by: Gao feng <gaofeng@cn.fujitsu.com>
src/lxc/lxc_cgroup.c
src/lxc/lxc_cgroup.h
src/lxc/lxc_fuse.c
src/lxc/lxc_fuse.h