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

find proccess with largest rss #300

Merged
merged 21 commits into from
Oct 11, 2023

Conversation

RanHuang
Copy link
Contributor

By default, earlyoom identifies and terminates the process with the highest oom_score. However, in my Linux system, the oom_score is not an accurate indicator.
Instead, I would like to identify and terminate the process with the highest memory usage.

  • find process with the largest oom_score
    image

  • find process with the largest rss
    image

@rfjakob
Copy link
Owner

rfjakob commented Sep 22, 2023

I'm curious how/when badness is not accurate.

In your screenshots it seems fine:

  • gunicorn ... badness 1004, VmRSS 129 MiB
  • java ........... badness 1040, VmRSS 3323 MiB

Copy link
Owner

@rfjakob rfjakob left a comment

Choose a reason for hiding this comment

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

Problem: --avoid / --prefer don't work with --sort-by-rss

kill.c Outdated Show resolved Hide resolved
@RanHuang
Copy link
Contributor Author

I'm curious how/when badness is not accurate.

In your screenshots it seems fine:

  • gunicorn ... badness 1004, VmRSS 129 MiB
  • java ........... badness 1040, VmRSS 3323 MiB

e.g: i want the process java... badness 73, VmRSS 2359MiB to be killed before gunicorn ... badness 1004, VmRSS 129 MiB

@RanHuang
Copy link
Contributor Author

RanHuang commented Sep 25, 2023

Problem: --avoid / --prefer don't work with --sort-by-rss

image

kill.c Outdated Show resolved Hide resolved
kill.c Outdated Show resolved Hide resolved
@RanHuang
Copy link
Contributor Author

Is there any issue or concern regarding this request?

@rfjakob
Copy link
Owner

rfjakob commented Oct 11, 2023 via email

@rfjakob rfjakob merged commit 90f1a67 into rfjakob:master Oct 11, 2023
4 checks passed
@rfjakob
Copy link
Owner

rfjakob commented Oct 11, 2023

Merged, thanks!

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