| 接口 | memory.current / memory.peak |
|---|---|
| peak 复位 | 向 memory.peak 写入任意值可清零(新版内核) |
| 口径 | 包含 page cache |
查看
查看
cat /sys/fs/cgroup/<组>/memory.current
cat /sys/fs/cgroup/<组>/memory.peak 2>/dev/null
systemd-cgtop -m | headmemory.current 是当前用量(含缓存),memory.peak(5.19+)记录峰值;用峰值判断与限额的安全距离比瞬时值可靠。
| 接口 | memory.current / memory.peak |
|---|---|
| peak 复位 | 向 memory.peak 写入任意值可清零(新版内核) |
| 口径 | 包含 page cache |
cat /sys/fs/cgroup/<组>/memory.current
cat /sys/fs/cgroup/<组>/memory.peak 2>/dev/null
systemd-cgtop -m | head