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

oom-score: restore oom score before running exit command #464

Merged

Conversation

giuseppe
Copy link
Member

When the exit command is executed, the oom score is restored to its original value otherwise the command runs with -1000.

Closes: containers/podman#20765

@rhatdan
Copy link
Member

rhatdan commented Nov 24, 2023

LGTM

@giuseppe
Copy link
Member Author

@haircommander PTAL

Comment on lines 619 to 621
unlink(k8s_log_path_tmp_old);
link(k8s_log_path, k8s_log_path_tmp_old);
rename(k8s_log_path_tmp_old, k8s_log_path_old);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what's this piece?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't be there :/

removed and pushed a new version

When the exit command is executed, the oom score is restored to its
original value otherwise the command runs with -1000.

Closes: containers/podman#20765

Signed-off-by: Giuseppe Scrivano <[email protected]>
@giuseppe giuseppe force-pushed the restore-oom-score-before-exit-command branch from 2deff03 to ba335ee Compare November 28, 2023 14:58
@haircommander
Copy link
Collaborator

LGTM

@haircommander haircommander merged commit 633ac6b into containers:main Nov 28, 2023
10 of 18 checks passed
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.

Process oom_score_adj is set to -1000 after termination by oom-killer
3 participants