Tag Info

New answers tagged

0

The usual approach is to create a wrapper script. Create a script /usr/local/bin/nicer: #!/bin/sh exec ionice -c3 nice /usr/bin/"${0##*/}" "$@" Create symbolic links for each executable that you want to execute through this wrapper, e.g. ln -s nicer /usr/local/bin/myprogram Then when you run myprogram, it will execute the script ...


0

As others have said there are many parts of a system that can be affected including the memory bandwidth, and these other parts of the system will also have their own scheduling and priorities. You could always use chrt -i 0 to give the compilation true idle priority. http://linux.die.net/man/1/chrt Or throttle the compilation using cgroups. ...


0

If the process priority (nice value) is low then it will not be interrupting a higher priority process. The reason you're seeing the low priority process still consuming a significant amount of CPU when the higher priority process is running is because the higher priority process is not that busy. Probably waiting on IO. Use chrt -i 0 to run the process at ...



Top 50 recent answers are included