2

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

1 Answer 1

4

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .