You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add bounds on max oom_score_adj value for AdjustOOMScore
oom_score_adj must be in the range -1000 to 1000. In AdjustOOMScore if containerd's score is already at the maximum value we should set that value for the shim instead of trying to set 1001 which is invalid.
Signed-off-by: Simon Kaegi <[email protected]>
(cherry picked from commit da2fd65)
// OOMScoreMaxKillable is the maximum score keeping the process killable by the oom killer
32
-
constOOMScoreMaxKillable=-999
31
+
const (
32
+
// OOMScoreMaxKillable is the maximum score keeping the process killable by the oom killer
33
+
OOMScoreMaxKillable=-999
34
+
// OOMScoreAdjMax is from OOM_SCORE_ADJ_MAX https://github.com/torvalds/linux/blob/master/include/uapi/linux/oom.h
35
+
OOMScoreAdjMax=1000
36
+
)
33
37
34
38
// SetOOMScore sets the oom score for the provided pid
0 commit comments