Increasing the number of tasks per GPU in BOINC

This process needs to be done per project.

Use GPU-Z to see that the GPU Load is under 100% https://www.techpowerup.com/gpuz

In BOINC’s data directory, find the short name of the project’s application in the client_state.xml file. For Windows, the data directory is C:\ProgramData\boinc.

type client_state.xml | findstr "app_name"

In the project’s data directory, create a app_config.xml file. For Windows, the projects’ directory is C:\ProgramData\boinc\project.

<app_config>
<app>
<name>GetDecics</name>
<gpu_versions>
<gpu_usage>0.5</gpu_usage>
<cpu_usage>0.49</cpu_usage>
</gpu_versions>
</app>
</app_config>

Use the list of names gathered from above to determine the appropriate name to use in the name field.

Enter a value for GPU usage between 0.1 – 1.0. A value of 0.5 indicates each task can use up to 0.5 of a GPU. Likewise for CPU usage.

In BOINC manager, click Options | Read config files to activate the new settings.

BOINC linux install notes

for ubuntu… i needed to

sudo chmod g+r /var/lib/boinc/gui_rpc_auth.cfg

as well as sudo usermod -a -G boinc $USER

optional step, if you’re using a boinc account manager, the syntax for sending the password is single quotes if you have a complex password. it took me many hours to figure this out.

boinccmd --join_acct_mgr bam.boincstats.com actng 'Passw0rd!!!'

(change your username from actng to your username. no, Passw0rd!!! isn’t my password but yes that is considered complex enough to warranty single quotes around or it won’t work.)

after waiting you can try boinccmd --get_tasks to check if tasks are downloaded/uninitialized or executing

Bash script to check if a process is running and if failed, restart it

Thanks to Karson for this one.

Create a file:

sudo nano ./run.sh

#!/bin/sh
if ps -ef | grep -v grep | grep boinc ; then
exit 1
else
sudo systemctl restart boinc-client &
exit 0
fi

Change permissions

sudo chmod +x ./run.sh

Make it run automatically

crontab -e

Every second

* * * * * /home/user/run.sh