mirror of
https://github.com/containers/youki
synced 2024-11-23 09:21:57 +01:00
flip oom control
This commit is contained in:
parent
6d8fbae0b9
commit
b246640ce6
@ -43,6 +43,8 @@ impl Controller for Memory {
|
||||
}
|
||||
|
||||
if linux_resources.disable_oom_killer {
|
||||
Self::set_u64(0, &cgroup_root.join(CGROUP_MEMORY_OOM_CONTROL))?;
|
||||
} else {
|
||||
Self::set_u64(1, &cgroup_root.join(CGROUP_MEMORY_OOM_CONTROL))?;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user