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

Change the oom_score_adj for a sandbox #5122

Closed
rusty-snake opened this issue Apr 29, 2022 · 4 comments
Closed

Change the oom_score_adj for a sandbox #5122

rusty-snake opened this issue Apr 29, 2022 · 4 comments
Labels
enhancement New feature request

Comments

@rusty-snake
Copy link
Collaborator

Describe the solution you'd like

choom 123

in the profile will write 123 into /proc/<pid>/oom_score_adj

Additional context

  • man 1 choom and man 5 proc
  • This should be done unprivileged because writing negative numbers is a privileged task.
@rusty-snake rusty-snake added the enhancement New feature request label Apr 29, 2022
@reinerh
Copy link
Collaborator

reinerh commented Apr 30, 2022

I like the idea!

* This should be done unprivileged because writing negative numbers is a privileged task.

(except the jail is started by root, similar to --nice)

netblue30 added a commit that referenced this issue May 20, 2022
@netblue30
Copy link
Owner

Very good idea, try it out!

@netblue30 netblue30 added the in testing A bugfix that is being tested label May 20, 2022
@rusty-snake
Copy link
Collaborator Author

undefined reference to `oom_set'

@netblue30 looks like you forgot to commit oom_set.

Shell completions and vim syntax files need to be updated as well. And a profile command would be nice too.

@netblue30
Copy link
Owner

Fixed now, I forgot to check in a new file

kmk3 added a commit that referenced this issue Jun 9, 2022
@rusty-snake rusty-snake removed the in testing A bugfix that is being tested label Jun 21, 2022
@kmk3 kmk3 changed the title Feature Request to change the oom_score_adj for a sandbox Change the oom_score_adj for a sandbox Sep 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature request
Projects
Status: Done (on RELNOTES)
Development

No branches or pull requests

3 participants