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

Add OOM guard #141

Merged
merged 4 commits into from
May 27, 2021
Merged

Add OOM guard #141

merged 4 commits into from
May 27, 2021

Conversation

anayden
Copy link
Contributor

@anayden anayden commented May 27, 2021

Adds a script /root/oom_guard.sh and a corresponding crontab entry to run it every minute.

The script sets oom_score_adj to 1000 for all processes except pid=1. This ensures all other procs are get OOM-killed first.

@anayden anayden requested a review from YevheniiSemendiak May 27, 2021 11:56
Copy link
Contributor

@YevheniiSemendiak YevheniiSemendiak left a comment

Choose a reason for hiding this comment

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

Super elegant and awesome improvement, thank you 💪

# neuro-cli 21.3.3 (pip)
# neuro-flow 21.3.17 (pip)
# neuro-cli 21.5.17 (pip)
# neuro-flow 21.5.25 (pip)
# neuro-extras 20.12.16 (pip)
Copy link
Contributor

Choose a reason for hiding this comment

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

minor: extras version also was changed

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thanks!

@anayden anayden merged commit 38dfe09 into master May 27, 2021
@anayden anayden deleted the an/oom_guard branch May 27, 2021 14:06
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.

2 participants