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

Adapt OOMKilling pattern to old and new Linux kernels #481

Merged
merged 1 commit into from
Nov 16, 2020

Conversation

tosi3k
Copy link
Member

@tosi3k tosi3k commented Oct 22, 2020

Context: #480.

Tl;dr: kernel commit torvalds/linux@bbbe480 removed logging the Kill process %d (%s) score %u or sacrifice child\n OOM message part we look for when tracing the kernel log in the kernel monitor. Because of that, the change removes that part from the kernel-monitor(-filelog).json regex pattern to handle both old and new kernel versions.

Successfully tested the change using https://github.com/kubernetes/node-problem-detector#try-it-out instruction (appropriate K8s events are emitted for both old and new OOM message formats).

Fixes #480.

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Oct 22, 2020
@tosi3k
Copy link
Member Author

tosi3k commented Oct 26, 2020

Friendly ping for a review request @andyxning @xueweiz :).

When could one expect a new release of NPD (incorporating this fix)?

@tosi3k
Copy link
Member Author

tosi3k commented Oct 27, 2020

/assign @Random-Liu

@Random-Liu
Copy link
Member

/lgtm
/approve

Thanks for the fix!

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Oct 27, 2020
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Random-Liu, tosi3k

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Oct 27, 2020
@tosi3k
Copy link
Member Author

tosi3k commented Oct 27, 2020

/retest

4 similar comments
@tosi3k
Copy link
Member Author

tosi3k commented Oct 27, 2020

/retest

@tosi3k
Copy link
Member Author

tosi3k commented Oct 27, 2020

/retest

@tosi3k
Copy link
Member Author

tosi3k commented Oct 28, 2020

/retest

@tosi3k
Copy link
Member Author

tosi3k commented Nov 12, 2020

/retest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

NPD doesn't notice OOMs in newer Linux kernels
3 participants