[lxc-users] LXCFS - proc_stat_read()
Rajasekar Darapuram
raj at robinsystems.com
Tue Mar 24 23:11:24 UTC 2015
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20150324/4d090c00/attachment-0001.html>
More information about the lxc-users
mailing list