Apply customized attributes in MemController.apply

Fixes: #25

Signed-off-by: Tim Zhang <tim@hyper.sh>
This commit is contained in:
Tim Zhang
2021-01-25 11:27:39 +08:00
parent 87f8ac7f0d
commit 15b65c5e5e

View File

@@ -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(())
}
}