1

Is there anything like renice for OOM adjust? That is, something that would allow a non-root user to increase (but not decrease) the OOM score adjust of processes they own?

0

There's not anything that does it as a program, but that's when scripting comes in, write a script that finds any PIDs started by their UID, then lets them pick the process, and echoes -1000 (for example) to /proc/<pid>/oom_score_adj.

You can then make it a root only executable, and allow sudo access to the people who need it.

0

We have choom now.

tl;dr: choom --adjust -100 myprogram.

The man page has more information.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.