Skip to content

Commit

Permalink
[vmm]: support sandbox cgroup management in the host
Browse files Browse the repository at this point in the history
fix: #51

reason:
1. limit the vm process resource usage in the specified cgroup dir
2. support pod_overhead conception actually, which limits the non-vcpu
type threads of vm process into pod_overhead cgroup dir and set the
pod_overhead resources limit in this cgroup dir.

Signed-off-by: flyflypeng <flyflyflypeng@gmail.com>
  • Loading branch information
flyflypeng committed Jul 28, 2023
1 parent 052022d commit a2aa43a
Show file tree
Hide file tree
Showing 12 changed files with 545 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,4 @@ jobs:
run: curl -sSf https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/utils/install.sh | bash -s -- -v ${{ matrix.wasmEdge }} >> /dev/null
- name: Test
working-directory: ${{ matrix.directories }}
run: sudo -E $(command -v cargo) test --all-features
run: RUST_BACKTRACE=1 RUST_BACKTRACE=full sudo -E $(command -v cargo) test --all-features
16 changes: 15 additions & 1 deletion vmm/sandbox/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 vmm/sandbox/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,4 @@ netlink-packet-route = "0.15"
netlink-packet-core = "0.5.0"
ttrpc = { version = "0.7", features = ["async"] }
protobuf = "3.2"
cgroups-rs = "0.3.2"
Loading

0 comments on commit a2aa43a

Please sign in to comment.