Skip to content

OOMWatcher does not detect victim container correctly on some OSs #2417

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
dashpole opened this issue Mar 5, 2020 · 1 comment · Fixed by #2418
Closed

OOMWatcher does not detect victim container correctly on some OSs #2417

dashpole opened this issue Mar 5, 2020 · 1 comment · Fixed by #2418

Comments

@dashpole
Copy link
Collaborator

dashpole commented Mar 5, 2020

Linux 5.0
Ubuntu 18.04

The OOM Parser code looks for Task in (.*) killed as a result of limit of (.*), which doesn't seem to match what this kernel is putting out...

I am seeing:

[180042.118480] oom-kill:constraint=CONSTRAINT_MEMCG,nodemask=(null),cpuset=ef807430361e6e82b45db92e2e9b6fbec98f419b12c591e655c1a725565e73a8,mems_allowed=0,oom_memcg=/kubepods/burstable/podfbdfe8e3-1c87-4ff2-907
c-b2ec8e25d012,task_memcg=/kubepods/burstable/podfbdfe8e3-1c87-4ff2-907c-b2ec8e25d012/ef807430361e6e82b45db92e2e9b6fbec98f419b12c591e655c1a725565e73a8,task=manager,pid=966,uid=0

instead.

This causes all OOMs to be reported as system OOMs, since we default the ContainerName and VictimContainerName to "/".

@dashpole
Copy link
Collaborator Author

dashpole commented Mar 5, 2020

Looks like this is a change in 5.0 kernels:

torvalds/linux@f0c867d#diff-c14acc69885a24f354bc607686800e23

cc @derekwaynecarr @sjenning

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant