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 --prefer-only option to only kill processes matching --prefer #310

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

chombourger
Copy link

While --avoid exists to list processes that should not be killed, it may be desirable to have earlyoom simply ignore any processes that do not match the regex specified in --prefer. It should be noted that the Linux kernel may still opt to kill other processes if earlyoom did not free up enough memory to prevent an oom.

While --avoid exists to list processes that should not be killed, it may
be desirable to have earlyoom simply ignore any processes that do not
match the regex specified in --prefer. It should be noted that the Linux
kernel may still opt to kill other processes if earlyoom did not free up
enough memory to prevent an oom.

Signed-off-by: Murat Boyar <murat.boyar@siemens.com>
Signed-off-by: Cedric Hombourger <cedric.hombourger@siemens.com>
@rfjakob
Copy link
Owner

rfjakob commented Apr 7, 2024

Looks good, please rename the flag to --only.

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.

Feature is good, but:

  1. Change to MANPAGE.md is missing
  2. I would like the CLI differently.

Please make the flag --only which takes a regex to match how --ignore works.

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