Skip to content
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

Handle the new 5.0 linux format for oom messages #2418

Merged
merged 1 commit into from
Mar 6, 2020

Conversation

dashpole
Copy link
Collaborator

@dashpole dashpole commented Mar 5, 2020

Fixes #2417, which caused all OOMs on >5.0 kernels to be considered system ooms.

This adds parsing for the new format. When this format is found, we can "finish" immediately, since the message has all of the information we want in a single place. If the format is not found, we fall back to looking for the old message. It also grabs the Constraint that is hit, which may be useful for users that have topology constraints.

@dims
Copy link
Collaborator

dims commented Mar 6, 2020

@dashpole i've reviewed this. LGTM

@dashpole dashpole merged commit cfe6b50 into google:master Mar 6, 2020
@dashpole
Copy link
Collaborator Author

dashpole commented Mar 6, 2020

Merging based on lgtm above.

@dashpole dashpole deleted the oom_5_kernel branch March 6, 2020 17:58
kgtw added a commit to kgtw/cadvisor that referenced this pull request Mar 1, 2021
…ntroduced in google#2418

Signed-off-by: Kris Gambirazzi <kris.gambirazzi@transferwise.com>
iwankgb pushed a commit to iwankgb/cadvisor that referenced this pull request Mar 10, 2021
…ntroduced in google#2418

Signed-off-by: Kris Gambirazzi <kris.gambirazzi@transferwise.com>
iwankgb pushed a commit to iwankgb/cadvisor that referenced this pull request Mar 10, 2021
…ntroduced in google#2418

Signed-off-by: Kris Gambirazzi <kris.gambirazzi@transferwise.com>
dqminh pushed a commit to dqminh/cadvisor that referenced this pull request Oct 18, 2021
…ntroduced in google#2418

Signed-off-by: Kris Gambirazzi <kris.gambirazzi@transferwise.com>
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 this pull request may close these issues.

OOMWatcher does not detect victim container correctly on some OSs
2 participants