systemctl start = no GPU

Message boards : Questions and problems : systemctl start = no GPU
Message board moderation

To post messages, you must log in.

AuthorMessage
liderbug

Send message
Joined: 10 Dec 11
Posts: 24
United States
Message 92133 - Posted: 11 Jul 2019, 3:00:32 UTC

Fedora 30 5.1.16-300.fc30.x86_64
Boinc 7.14.2 x86_64-pc-linux-gnu
NVIDIA-SMI 430.34 Driver Version: 430.34 CUDA Version: 10.1
GeForce GTX 960

boinc --detect_gpus creates the file coproc_info.xml which says I have
cuda>1
name>GeForce GTX 960
ram>1.9gig
etc.....
stdoutgpudetect.txt says Missing start tag in cc_config.xml

If I systemctl start boinc-client.service and run boincmgr I don't get any GPU work
If I cd /var/lib/boinc and nohup boinc & I get GPU work.
What's the fix?
Thanks
ID: 92133 · Report as offensive     Reply Quote
Profile JStateson
Avatar

Send message
Joined: 27 Jun 08
Posts: 411
United States
Message 92137 - Posted: 11 Jul 2019, 19:42:38 UTC - in response to Message 92133.  

I am guessing that manually starting boinc (user? root?) is different than starting via the service.

I see "boinc" as owner for just about all in var/boinc but
"root" seems to be owner of script in /etc

How does your service compare to mine?
[Unit]
Description=Berkeley Open Infrastructure Network Computing Client
Documentation=man:boinc(1)
After=network-online.target

[Service]
ProtectHome=true
Type=simple
Nice=10
User=boinc
WorkingDirectory=/var/lib/boinc
ExecStart=/usr/bin/boinc
ExecStop=/usr/bin/boinccmd --quit
ExecReload=/usr/bin/boinccmd --read_cc_config
ExecStopPost=/bin/rm -f lockfile
IOSchedulingClass=idle

[Install]
WantedBy=multi-user.target
ID: 92137 · Report as offensive     Reply Quote
liderbug

Send message
Joined: 10 Dec 11
Posts: 24
United States
Message 92138 - Posted: 12 Jul 2019, 13:01:21 UTC - in response to Message 92137.  

Matches 1:1
I just changed the "User" to root and ran restart. Seems to work.
ID: 92138 · Report as offensive     Reply Quote
jglrogujgv

Send message
Joined: 6 Jul 18
Posts: 49
Barbados
Message 92141 - Posted: 13 Jul 2019, 13:49:17 UTC - in response to Message 92138.  

Matches 1:1
I just changed the "User" to root and ran restart. Seems to work.


Huge security risk running BOINC as root. I haven't used GPU for crunching for many years but IIRC boinc needs to be added to the GPU user group?
ID: 92141 · Report as offensive     Reply Quote
siu77

Send message
Joined: 20 Jun 12
Posts: 12
Russia
Message 92152 - Posted: 14 Jul 2019, 13:38:25 UTC - in response to Message 92141.  

I've found this. But, how it's possible to use gpu then, without security risks? If it can't access group 'video', than what should it do?
ID: 92152 · Report as offensive     Reply Quote
jglrogujgv

Send message
Joined: 6 Jul 18
Posts: 49
Barbados
Message 92222 - Posted: 19 Jul 2019, 2:13:13 UTC - in response to Message 92152.  

Risk is everywhere. Some people just ignore it and have fun for as long as it lasts. Others minimize the risk and then decide whether the minimum level is acceptable or not. Crunching with boinc as member of video group is less risky than running the client as root, IMHO. Yes, somebody might turn my webcam on and yes that might cause me to lose my virginity but I'm 67, maybe it's time.
The link you gave seems to suggest the risk can be reduced even further but I don't understand it.
ID: 92222 · Report as offensive     Reply Quote
siu77

Send message
Joined: 20 Jun 12
Posts: 12
Russia
Message 92223 - Posted: 19 Jul 2019, 6:01:20 UTC - in response to Message 92222.  

I don't understand it.
I' don't understand how one can add one group to another group.
ID: 92223 · Report as offensive     Reply Quote
Profile Ageless-Away
Volunteer moderator
Project administrator
Avatar

Send message
Joined: 29 Aug 05
Posts: 13290
Netherlands
Message 92224 - Posted: 19 Jul 2019, 6:11:20 UTC - in response to Message 92223.  

sudo usermod -a -G video boinc

Jord
Please do not private message me for tech support. Use the forums for that. Tech PMs will be ignored!
ID: 92224 · Report as offensive     Reply Quote
jglrogujgv

Send message
Joined: 6 Jul 18
Posts: 49
Barbados
Message 92230 - Posted: 19 Jul 2019, 14:06:08 UTC - in response to Message 92223.  
Last modified: 19 Jul 2019, 14:10:37 UTC

I don't understand it.
I' don't understand how one can add one group to another group.


You're not adding one group to another group. You're adding a user named boinc to the group named video.

Jordan gave the right command but IIRC the syntax is incorrect. If his version does not work then try
sudo usermod -a boinc -G video

Do "man usermod" for details.
ID: 92230 · Report as offensive     Reply Quote
Profile Ageless-Away
Volunteer moderator
Project administrator
Avatar

Send message
Joined: 29 Aug 05
Posts: 13290
Netherlands
Message 92233 - Posted: 19 Jul 2019, 16:51:24 UTC - in response to Message 92230.  
Last modified: 19 Jul 2019, 16:52:01 UTC

Jordan
My name is Jorden, but since no one cares enough anymore to see if they spelled that correctly - you just showed that - I call myself Jord. Which people then still bastardise into the weirdest of spellings and adaptions.

gave the right command but IIRC the syntax is incorrect.
I did a search on the forums and picked it up from another thread. Shrug, go blame them if it doesn't work.
Jord
Please do not private message me for tech support. Use the forums for that. Tech PMs will be ignored!
ID: 92233 · Report as offensive     Reply Quote
jglrogujgv

Send message
Joined: 6 Jul 18
Posts: 49
Barbados
Message 92243 - Posted: 20 Jul 2019, 16:49:20 UTC - in response to Message 92233.  

Jordan
My name is Jorden, but since no one cares enough anymore to see if they spelled that correctly - you just showed that - I call myself Jord. Which people then still bastardise into the weirdest of spellings and adaptions.
Take a look at my name and then tell me about it, Jurgen. I'm tempted to just change it to something easy like Bob. Anyway, how about we just call each other "J", OK?

gave the right command but IIRC the syntax is incorrect.
I did a search on the forums and picked it up from another thread.
I saw it too. Methinks they mangled the parameters the way they mangle our names. Those silly name manglers huh?

Shrug, go blame them if it doesn't work

If you had provided a URL to the forum where you allegedly found the command, I would give them the same advice.... do man usermod. As for blaming them.... since when did blame enter the pic? I thought we were all just helping each other out here for free. You mean Toddler Tyrant needs to fire somebody over this? OMG, what did we start here? OMG^2... you going be fired?

BTW, I pre-shrugged this whole thing before you shrugged.
ID: 92243 · Report as offensive     Reply Quote

Message boards : Questions and problems : systemctl start = no GPU

Copyright © 2019 University of California. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.