xmrig / xmrig-nvidia

Monero (XMR) NVIDIA miner
GNU General Public License v3.0
700 stars 260 forks source link

On Ubuntu,when I set background option true, the miner will not work! #68

Closed YourWildDad closed 6 years ago

YourWildDad commented 6 years ago

On Ubuntu server 16.04, I compiled xmrig with CUDA9. when the background option is false. everythings is well. but when the backgroud option is true, the miner looks like working, but speed always is n/a. when I run the xmrig-nvidia ,my console output some result like:

root@server91:/tmp# xmrig-nvidia 
root@server91:/tmp# 
GPU 0: initialization error
cuda_get_deviceinfo line 302
Setup failed for GPU 0. Exitting.

I also set the log-file option, the log looks like this:

[2017-12-23 09:23:34]  * VERSIONS:     XMRig/2.4.2 libuv/1.8.0 CUDA/7.50 gcc/5.4.0
[2017-12-23 09:23:34]  * CPU:                Intel(R) Core(TM) i7-2630QM CPU @ 2.00GHz (1) x64 AES-NI
[2017-12-23 09:23:34]  * GPU #0:       GeForce GT 555M @ 1180/900 MHz 64x6 0x0 arch:21 SMX:3
[2017-12-23 09:23:34]  * ALGO:         cryptonight, donate=0%
[2017-12-23 09:23:34]  * POOL #1:      gulf.moneroocean.stream:10001
[2017-12-23 09:23:34]  * COMMANDS:     'h' hashrate, 'e' health, 'p' pause, 'r' resume
[2017-12-23 09:23:34] use pool gulf.moneroocean.stream:10001 45.32.81.217
[2017-12-23 09:23:34] new job from gulf.moneroocean.stream:10001 diff 1000
[2017-12-23 09:23:35] new job from gulf.moneroocean.stream:10001 diff 1935
[2017-12-23 09:24:35] no active pools, stop mining
[2017-12-23 09:24:37] speed 10s/60s/15m n/a n/a n/a H/s max: n/a H/s
[2017-12-23 09:24:41] use pool gulf.moneroocean.stream:10001 45.32.81.217
[2017-12-23 09:24:41] new job from gulf.moneroocean.stream:10001 diff 1000
[2017-12-23 09:24:53] new job from gulf.moneroocean.stream:10001 diff 1463
[2017-12-23 09:25:23] new job from gulf.moneroocean.stream:10001 diff 1463
[2017-12-23 09:25:37] speed 10s/60s/15m n/a n/a n/a H/s max: n/a H/s
[2017-12-23 09:25:53] new job from gulf.moneroocean.stream:10001 diff 975
[2017-12-23 09:25:57] new job from gulf.moneroocean.stream:10001 diff 975

How can i make this program run in background? Thank you.

seadonfrank commented 6 years ago

xmrig-nvidia -B -l log-file-name -o stratum_url -u wallet_address -p x 2>&1 1> /dev/null

Notice in the last portion I added 2>&1 1> /dev/null - this will run the code in the background thus keeping all the logs on the log-file-name specified

https://github.com/xmrig/xmrig-nvidia/issues/3

xmrig commented 6 years ago

Duplicate #3