fireice-uk / xmr-stak

Free Monero RandomX Miner and unified CryptoNight miner

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ubuntu 20.04.5 - kernel 5.13.0-52-generic - AMDGPU 21.50 - CryptoNightGPU - Running miner in background gives low hash-rate

blackmennewstyle opened this issue · comments

Hello,

I'm trying to run the miner in the background using the following command-line:

/home/ceedii/xmr-stak-linux-2.10.8-cpu_opencl-amd/xmr-stak --noCPU --currency cryptonight_gpu -O sg.conceal.herominers.com:1115 -u ccxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx-p calypso -r calypso --openCLVendor AMD --noAMDCache --amdGpus 0,1,2,3 --h-print-time 15 -i 4454 > /dev/null 2>&1 & 

I modified the config.text

/*
 * Daemon mode
 *
 * If you are running the process in the background and you don't need the keyboard reports, set this to true.
 * This should solve the hashrate problems on some emulated terminals.
 */
"daemon_mode" : true,

But my has-hate remains low despite the modification :'(
Please, can anyone provide any input?

Nevermind, i found the answer #1411 (comment)

/home/ceedii/xmr-stak-linux-2.10.8-cpu_opencl-amd/xmr-stak --noCPU --currency cryptonight_gpu -O sg.conceal.herominers.com:1115 -u ccxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx-p calypso -r calypso --openCLVendor AMD --noAMDCache --amdGpus 0,1,2,3 --h-print-time 15 -i 4454 > /dev/null 2>&1 & disown

Adding the command disown at the end of my command-line made the trick :)

I actually found an alternative way with the command screen

apt-get update
apt-get install screen

Normally already installed on Ubuntu Server 20.04

screen -S xmr-stack-miner -d -m /home/ceedii/xmr-stak-linux-2.10.8-cpu_opencl-amd/xmr-stak --noCPU --currency cryptonight_gpu -O sg.conceal.herominers.com:1115 -u ccxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx-p calypso -r calypso --openCLVendor AMD --noAMDCache --amdGpus 0,1,2,3 --h-print-time 15 -i 4454 -c /home/ceedii/config.txt --amd /home/ceedii/amd.txt

DO NOT FORGET to use the option -c and --amd because the miner can not access these files if the command line is executed from bash script for example, you will experience low hash-rate anyway, these options are mandatory when running xmr-stack in the background.