-
Notifications
You must be signed in to change notification settings - Fork 49
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
Allow setting nice (process scheduling priority) #85
Labels
Comments
It might actually work via systemd-run --user --pty --quiet --nice=19 nice
systemd-run --user --pty --quiet --property=Nice=19 nice both lines should return 19. Neither version works in systemd 234 but work on systemd 246. Thus the issue can be closed. |
consideRatio
changed the title
allow setting nice
Allow setting nice (process scheduling priority)
May 26, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Proposed change
systemd-run
allows to set the niceness level withsystemd-run --nice=19 ...
. Would be nice if we could spawn kernels with reduced niceness to reduce their priority.Alternative options
--property=Nice=19
- Let me know if I am wrong.Who would use this feature?
Sysadmins who'd like to reduce the priority of the kernels run on the system.
(Optional): Suggest a solution
Nice
traitlet toSystemdSpawner
, defaulting toNone
systemd-run
command instart_transient_service
I am happy to open a PR if there's a chance to get this in.
The text was updated successfully, but these errors were encountered: