From c7ed0f148f4aa0d54bdecd2d8612436d0156e7d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20=C5=A0trauch?= Date: Sat, 14 Jun 2025 12:38:08 +0200 Subject: [PATCH] Disable oom killer completely --- containers/docker.go | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/containers/docker.go b/containers/docker.go index 573983f..5842514 100644 --- a/containers/docker.go +++ b/containers/docker.go @@ -338,10 +338,13 @@ func (d *Driver) Create(name string, image string, volumePath string, HTTPPort i } } - OOMKillDisable := false - if memory < 1500 { - OOMKillDisable = true - } + // OOMKillDisable := false + // if memory < 1500 { + // 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{} for key, value := range env {