Questions and Answers :
Unix/Linux :
OS priority of boinc clients
Message board moderation
Author | Message |
---|---|
ML1 Send message Joined: 25 Nov 01 Posts: 20289 Credit: 7,508,002 RAC: 20 |
The boinc manager sets the OS priority of all clients to be 19 (OS minimum priority). Can this be set to a higher priority rather than having to use "renice" after the client has started? This is to give boinc a higher share of the CPU time against another long term background task. Thanks, Martin See new freedom: Mageia Linux Take a look for yourself: Linux Format The Future is what We all make IT (GPLv3) |
ML1 Send message Joined: 25 Nov 01 Posts: 20289 Credit: 7,508,002 RAC: 20 |
OK... Answering for myself, a 'quick kludge' fix is to run the following script as root from cron every 15 mins or so: #!/bin/bash user='Whatever_User_Name_for_boinc' ps -u $user -o pid,nice,cmd h |\\ grep ' 19 ' |\\ grep -v 'mprime' |\\ ( while read pslist do echo -e "\\n$(date -R): Renicing '$pslist'\\n" rnid="${pslist%% *}" renice 5 -p $rnid done ) (Note that there should be a double space after the double "%". How do you force that to show in these forums?!) Have fun, Martin See new freedom: Mageia Linux Take a look for yourself: Linux Format The Future is what We all make IT (GPLv3) |
ML1 Send message Joined: 25 Nov 01 Posts: 20289 Credit: 7,508,002 RAC: 20 |
For anyone interested, here's an updated version that correctly handles all tasks in a process thread. For example as you get with Einstein. #!/bin/bash user='Whatever user' ps -u $user -o tid,nice,cmd h H |\\ grep ' 19 ' |\\ grep -v 'mprime' |\\ ( while read pslist do echo -e "\\n$(date -R): Renicing '$pslist'\\n" rnid="${pslist%% *}" renice 5 -p $rnid done ) See new freedom: Mageia Linux Take a look for yourself: Linux Format The Future is what We all make IT (GPLv3) |
©2024 University of California
SETI@home and Astropulse are funded by grants from the National Science Foundation, NASA, and donations from SETI@home volunteers. AstroPulse is funded in part by the NSF through grant AST-0307956.