We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a89ced commit ddcaca3Copy full SHA for ddcaca3
crates/containerd-shim-wasm/src/sandbox/cli.rs
@@ -41,6 +41,9 @@ fn get_mem(pid: u32) -> (usize, usize) {
41
.lines()
42
{
43
let line = line.trim();
44
+ // VmPeak is the maximum total virtual memory used so far.
45
+ // VmHWM (high water mark) is the maximum resident set memory used so far.
46
+ // See: https://man7.org/linux/man-pages/man5/proc_pid_status.5.html
47
if let Some(rest) = line.strip_prefix("VmPeak:") {
48
if let Some(rest) = rest.strip_suffix("kB") {
49
total = rest.trim().parse().unwrap_or(0);
0 commit comments