<div dir="ltr">I was looking at the lxcfs source code and this is what I noticed. (<a href="https://github.com/lxc/lxcfs/blob/master/lxcfs.c">https://github.com/lxc/lxcfs/blob/master/lxcfs.c</a>)<div><br></div><div>For </div><div>/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</div><div>/proc/dikstats => calls function <span style="color:rgb(121,93,163);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:16.7999992370605px;white-space:pre">proc_diskstats_read() </span>which goes into the cgroup location for blkio.* files and get data</div><div><br></div><div>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....</div><div><br></div><div>Any specific reason? Please let me know</div><div><br></div><div>Thanks</div><div>Raj</div><div><br></div><div class="gmail_extra"><br></div></div>