8000 feat(minvmd): resource monitoring, configuration, and warnings (#747) by norrietaylor · Pull Request #775 · gominimal/minimal · GitHub
[go: up one dir, main page]

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
65 changes: 65 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ sha2 = "0.11"
shlex = "2.0"
size = "0.5"
smallvec = {version = "1.15", features = ["serde"]}
sysinfo = { version = "0.39", default-features = false, features = ["system"] }
tar = "0.4"
tempfile = "3.27"
tokio = { version = "1.52", features = ["full"] }
Expand Down
2 changes: 2 additions & 0 deletions crates/minimal/src/autospawn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,7 @@ mod tests {
lifecycle: l,
vmm_pid: Some(999_999_999),
started_at: Some(0),
..State::stopped()
}
}

Expand Down Expand Up @@ -425,6 +426,7 @@ mod tests {
lifecycle: Lifecycle::Running,
vmm_pid: Some(999_999_999),
started_at: Some(0),
..State::stopped()
})
.unwrap();
wait_for_minvmd_stopped(Some(tmp.path())).expect("stale Running must resolve as stopped");
Expand Down
3 changes: 3 additions & 0 deletions crates/minvmd/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ serde = { workspace = true }
thiserror.workspace = true
serde_json.workspace = true
toml.workspace = true
# Cross-platform per-process resource sampling (CPU%, RSS, disk I/O) of the VMM
# child PID, and host capacity (cores/memory) for `config set` validation (#747).
sysinfo.workspace = true
tracing.workspace = true
tracing-subscriber.workspace = true
# Shares minimald's portable RPC wire types: `NetworkMode` / `IpProto` drive the
Expand Down
Loading
Loading
0