Disable oom killer completely
This commit is contained in:
parent
ec1f0d3f3a
commit
c7ed0f148f
1 changed files with 7 additions and 4 deletions
|
@ -338,10 +338,13 @@ func (d *Driver) Create(name string, image string, volumePath string, HTTPPort i
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
OOMKillDisable := false
|
// OOMKillDisable := false
|
||||||
if memory < 1500 {
|
// if memory < 1500 {
|
||||||
OOMKillDisable = true
|
// OOMKillDisable = true
|
||||||
}
|
// }
|
||||||
|
// We disable OOM killer because it keeps containers in resource heavy loop
|
||||||
|
// This is from some discussion: If OOM-killer is disabled, tasks under cgroup will hang/sleep in memory cgroup's OOM-waitqueue when they request accountable memory
|
||||||
|
OOMKillDisable := true
|
||||||
|
|
||||||
envList := []string{}
|
envList := []string{}
|
||||||
for key, value := range env {
|
for key, value := range env {
|
||||||
|
|
Loading…
Reference in a new issue