Merge pull request #1186 from maruthgoyal/2.0-dev

Don't update cpusets if no CPUs changed closes #1172
This commit is contained in:
Bin Liu
2020-12-23 10:05:59 +08:00
committed by GitHub

View File

@@ -233,6 +233,10 @@ impl Sandbox {
online_memory(&self.logger)?;
}
if req.nb_cpus == 0 {
return Ok(());
}
let guest_cpuset = rustjail_cgroups::fs::get_guest_cpuset()?;
for (_, ctr) in self.containers.iter() {