-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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 an option to run rustbuild on low priority on Windows #40776
Conversation
r? @brson (rust_highfive has picked a reviewer for you, use r? to override) |
Similar effect can be achieved on unix by setting the nice level. See setrlimit(2) RLIMIT_NICE. |
I personally feel like this is slightly weird to implement in a build system, but with a relatively clear implementation path on Unix then if we are to have it at all I feel like we should put in the extra effort to implement this on Unix as well. |
Hi @Zoxc! This looks awesome! 😆 Are you up for making the changes for Unix as well, or could you use some help with that? |
Hi @Zoxc, since we haven't heard back from you about whether you're willing and able to make the changes requested to support Unix as well, we’re going to close this for now. When you get a chance to update this or let us know that you need help, please reopen! |
This is a resurrection of rust-lang#40776, combining their Windows setup with an additional setup on Unix to set the program group's niceness to +10 (low-but-not-lowest priority) when the `low_priority` option is on.
…hton Add an option to run rustbuild on low priority on Windows and Unix This is a resurrection of rust-lang#40776, combining their Windows setup with an additional setup on Unix to set the program group's *nice*ness to +10 (low-but-not-lowest priority, mirroring the priority in the Windows setup) when the `low_priority` option is on.
Add an option to run rustbuild on low priority on Windows and Unix This is a resurrection of #40776, combining their Windows setup with an additional setup on Unix to set the program group's *nice*ness to +10 (low-but-not-lowest priority, mirroring the priority in the Windows setup) when the `low_priority` option is on.
Just so I can watch YouTube videos while compiling