Skip to content

add --prefer-only option to only kill processes matching --prefer#310

Open
chombourger wants to merge 1 commit intorfjakob:masterfrom
chombourger:prefer-only
Open

add --prefer-only option to only kill processes matching --prefer#310
chombourger wants to merge 1 commit intorfjakob:masterfrom
chombourger:prefer-only

Conversation

@chombourger
Copy link
Copy Markdown

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
Copy Markdown
Owner

rfjakob commented Apr 7, 2024

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

Copy link
Copy Markdown
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