I was looking at the lxcfs source code and this is what I noticed. (
https://github.com/lxc/lxcfs/blob/master/lxcfs.c)

For
/proc/meminfo => calls function proc_meminfo_read(), which goes into the
cgroup location and reads from  memory_limit_in_bytes,
memory.usage_in_bytes and memory.stat files
/proc/dikstats => calls function proc_diskstats_read() which goes into the
cgroup location for blkio.* files and get data

However for /proc/stat, which calls proc_stat_read(), it is reading data
straight from /proc/stat rather than going to the cgroup location and read
cpuacct.usage or other files? As a result its displaying host data and so
top and other applications are not displaying accurate cpu usage data....

Any specific reason? Please let me know

Thanks
Raj
_______________________________________________
lxc-users mailing list
[email protected]
http://lists.linuxcontainers.org/listinfo/lxc-users

Reply via email to