I know there is VmHWM entry in each process's /proc/[PID]/status file, however is there an aggregate of this that contains the high water mark for the system?

I understand the free command give the current RAM utilization, but I was hoping the system might maintain a HWM value somewhere.


If your kernel supports cgroup v1 memory controller, and it is enabled (as far as I know all the major Linux distributions have it enabled), you should be able to use the root memory.max_usage_in_bytes value for that:

echo "$(("$(cat /sys/fs/cgroup/memory/memory.max_usage_in_bytes)" / 2**20)) MB"
| improve this answer | |

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.