Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
I am wondering how often cgroup memory usage values are refreshed? Is there any parameter to tune it? I saw something similar for CPU, but not memory.
For example in this file:
There’s no refresh, the values given when you read one of the cgroup files reflect the actual use at the time. You can see this in action by watching the memory.stat file, highlighting differences:
watch -d cat /sys/fs/cgroup/memory/memory.stat