cgroups-rs
cgroups-rs copied to clipboard
Native Rust library for managing control groups under Linux
In this function you use the unsafe keyword for almost the entrie function body. We need to mark unsafe operations more precisely using unsafe keyword. Keeping unsafe blocks small can...
…uset copy_parent_if_needed makes sure that the parent directory of current is created and populated with the proper cpus and mems files copied from it's parent. Signed-off-by: fupan.lfp
Hi, Thank you for writing such a useful project! [Kata Containers](http://katacontainers.io/) wants to use cgroups-rs for the [rust-agent](https://github.com/kata-containers/kata-containers/tree/2.0-dev/src/agent) subproject. However it seems that the cgroups-rs repository has not been updated...
I wanted to get a feel for the repo so decided to fix the compile-time warnings. * Replace `assert_eq!(1,0); std::mem::uninitialized` with a panic!. I've also wrapped this in a macro...
Hello everyone,I am a gree hand of Cgroup!About blkio Cgroup.I learned that the blkio Cgroup only controls the direct io of process.But,my question is that how the blkio Cgroup limit...
I can't seem to make it work on a Debian possibly because of Systemd. On which systems has this lib been tested ?
I've started working on an API that looks like this: ```rust let cgroup: Cgroup = CgroupBuilder::new("hello", V1) .memory() .kernel_memory_limit(1024 * 1024) .memory_hard_limit(1024 * 1024) .done() .cpu() .shares(100) .done() .build(); ```...