Hey! I got a solution:
A) Don`t use MinerGate, it stoles about 50% of your money (!), use
https://moneroocean.stream with zero (0%) fee now (until pool reach 2000 mining accounts or pool costs will reach 400 USD monthly, then fee will be 0.5%).
B) Compile XMRig (it`s better than other miners) it with GCC 7.1:
sudo apt-get update
sudo apt-get install git build-essential cmake libuv1-dev libmicrohttpd-dev gcc-7 g++-7
git clone
https://github.com/xmrig/xmrig.gitcd xmrig
mkdir build
cd build
cmake .. -DCMAKE_C_COMPILER=gcc-7 -DCMAKE_CXX_COMPILER=g++-7
make
C) Then execute:
chmod +x xmrig
D) Enable huge pages support (it will increase miners` hashrate), use bash script:
#!/bin/bash
script=`basename "$0"`
HPS=`grep Hugepagesize /proc/meminfo | awk -F" " {'print $2'}`
NC=`grep -c processor /proc/cpuinfo`
NHP=$(($(($NC*2200/$HPS))+1))
case $@ in
enable)
echo $NHP > /proc/sys/vm/nr_hugepages
ulimit -l $(($NHP * $HPS))
echo "Huge pages enabled"
;;
disable)
echo 0 > /proc/sys/vm/nr_hugepages
echo "Huge pages disabled"
;;
*)
echo -e "Usage: \n$script enable - Enabling Huge Pages\n$script disable - Disabling Huge Pages"
;;
esac
E) Execute miner:
./xmrig YOUR_PARAMETERS (
Options
-a, --algo=ALGO cryptonight (default) or cryptonight-lite
-o, --url=URL URL of mining server
-O, --userpass=U:P username:password pair for mining server
-u, --user=USERNAME username for mining server
-p, --pass=PASSWORD password for mining server
-t, --threads=N number of miner threads
-v, --av=N algorithm variation, 0 auto select
-k, --keepalive send keepalived for prevent timeout (need pool support)
-r, --retries=N number of times to retry before switch to backup server (default: 5)
-R, --retry-pause=N time to pause between retries (default: 5)
--cpu-affinity set process affinity to CPU core(s), mask 0x3 for cores 0 and 1
--cpu-priority set process priority (0 idle, 2 normal to 5 highest)
--no-huge-pages disable huge pages support
--no-color disable colored output
--variant algorithm PoW variant
--donate-level=N donate level, default 5% (5 minutes in 100 minutes)
--user-agent set custom user-agent string for pool
-B, --background run the miner in the background
-c, --config=FILE load a JSON-format configuration file
-l, --log-file=FILE log all output to a file
-S, --syslog use system log for output messages
--max-cpu-usage=N maximum CPU usage for automatic threads mode (default 75)
--safe safe adjust threads and av settings for current CPU
--nicehash enable nicehash/xmrig-proxy support
--print-time=N print hashrate report every N seconds
--api-port=N port for the miner API
--api-access-token=T access token for API
--api-worker-id=ID custom worker-id for API
-h, --help display this help and exit
-V, --version output version information and exit
Also you can use configuration via config file, default config.json. You can load multiple config files and combine it with command line options.
Algorithm variations
Since version 0.8.0.
--av=1 For CPUs with hardware AES.
--av=2 Lower power mode (double hash) of 1.
--av=3 Software AES implementation.
--av=4 Lower power mode (double hash) of 3.
)
F) Done!
P.S. PM me, I want to get VPS.