diff --git a/Cargo.toml b/Cargo.toml index f6bdbb3..f7a20bc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,7 +5,7 @@ repository = "https://github.com/kata-containers/cgroups-rs" keywords = ["linux", "cgroup", "containers", "isolation"] categories = ["os", "api-bindings", "os::unix-apis"] license = "MIT OR Apache-2.0" -version = "0.2.1" +version = "0.2.2" authors = ["The Kata Containers community ", "Levente Kurusa ", "Sam Wilson "] edition = "2018" diff --git a/src/memory.rs b/src/memory.rs index 8ceb15a..b8e92a1 100644 --- a/src/memory.rs +++ b/src/memory.rs @@ -460,6 +460,10 @@ impl ControllerInternal for MemController { update!(self, set_tcp_limit, memres.kernel_tcp_memory_limit); update!(self, set_swappiness, memres.swappiness); + memres.attrs.iter().for_each(|(k, v)| { + let _ = self.set(k, v); + }); + Ok(()) } }