1

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:

/sys/fs/cgroup/memory/<cgroup-name>/memory.stat
3

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.