OS priority of boinc clients

Questions and Answers : Unix/Linux : OS priority of boinc clients
Message board moderation

To post messages, you must log in.

AuthorMessage
Profile ML1
Volunteer moderator
Volunteer tester

Send message
Joined: 25 Nov 01
Posts: 20289
Credit: 7,508,002
RAC: 20
United Kingdom
Message 112979 - Posted: 19 May 2005, 23:24:12 UTC

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)
ID: 112979 · Report as offensive
Profile ML1
Volunteer moderator
Volunteer tester

Send message
Joined: 25 Nov 01
Posts: 20289
Credit: 7,508,002
RAC: 20
United Kingdom
Message 114354 - Posted: 24 May 2005, 13:36:41 UTC
Last modified: 24 May 2005, 13:45:15 UTC

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)
ID: 114354 · Report as offensive
Profile ML1
Volunteer moderator
Volunteer tester

Send message
Joined: 25 Nov 01
Posts: 20289
Credit: 7,508,002
RAC: 20
United Kingdom
Message 125704 - Posted: 20 Jun 2005, 18:59:27 UTC
Last modified: 20 Jun 2005, 19:03:12 UTC

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)
ID: 125704 · Report as offensive

Questions and Answers : Unix/Linux : OS priority of boinc clients


 
©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.