Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 665534

Summary: net-p2p/xmr-stak-{2.4.5,2.4.7} anomalous interaction with systemd failure
Product: Gentoo Linux Reporter: Dillon <developer>
Component: Current packagesAssignee: Craig Andrews <candrews>
Status: RESOLVED OBSOLETE    
Severity: minor CC: jstein
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Patching fixing unit file
xmr-stak cpu config
xmr-stak gpu config
xmr-stak main config
xmr-stak pool config

Description Dillon 2018-09-09 04:50:01 UTC
The xmr-stak ebuild creates a sandbox for xmr-stak using systyemd. In the default configuration the xmr-stak.service unit file creates an error (amdgpu,nvidia). When the sandboxing features are disabled, and xmr-stak is instead given it's own user, then it's able to initialize the cuda/opencl drivers. 

Upon repeat invocations(even after clearing and reloading the unit file) xmr-stak.service will continue to operate properly until the nvidia driver is removed and reinserted.

Reproducible: Always

Steps to Reproduce:
1.systemctl start xmr-stak
2.see failure
3.patch systemd unit to give xmr-stak it's own user/remove extra sandboxing
4.normal behaviour
Actual Results:  
Sep 09 00:35:24 undyne xmr-stak[15634]: WARNING: NVIDIA Unable to query number of CUDA devices!
Sep 09 00:35:24 undyne xmr-stak[15634]: WARNING: NVIDIA no device found
Sep 09 00:35:24 undyne xmr-stak[15634]: [2018-09-09 00:35:24] : WARNING: backend NVIDIA disabled.

Expected Results:  
Sep 09 00:31:04 undyne xmr-stak[3471]: [2018-09-09 00:31:04] : Starting NVIDIA GPU thread 0, no affinity.

I've tried individually individually disabling each of the options in the unit file and I can't seem to narrow it down to a single option that's causing the failure. The only thing that seems consistent is replacing DynamicUsers with User=foo is required for this to work
Comment 1 Dillon 2018-09-09 04:51:04 UTC
Created attachment 546320 [details, diff]
Patching fixing unit file
Comment 2 Dillon 2018-09-09 04:52:05 UTC
Created attachment 546322 [details]
xmr-stak cpu config
Comment 3 Dillon 2018-09-09 04:52:42 UTC
Created attachment 546324 [details]
xmr-stak gpu config
Comment 4 Dillon 2018-09-09 04:53:15 UTC
Created attachment 546326 [details]
xmr-stak main config
Comment 5 Dillon 2018-09-09 04:55:05 UTC
Created attachment 546328 [details]
xmr-stak pool config

Demonstration purposes, you would have to enter your address before this file would work
Comment 6 Dillon 2022-05-23 23:13:27 UTC
removed from portage