I've been trying to figure out why NetData was providing inaccurate memory data for LXC containers and during our investigation we found that the memory.stat information at /sys/fs/cgroup/memory/lxc/<container>/memory.stat is not giving the expected information. The top half of the stats are all showing zeros instead of actual values (the totals are showing values though). We did find something more along the lines of what we were looking for at /sys/fs/cgroup/memory/lxc/<container>/ns/memory.stat however the normal stats just seem to mirror the totals.
This confuses me because this cgroup structure isn't consistent with LXC/LXD installs on just straight linux. Is there a reason for this setup?
This confuses me because this cgroup structure isn't consistent with LXC/LXD installs on just straight linux. Is there a reason for this setup?