XMRig – High performance open source cross-platform miner RandomX, CryptoNight, KawPow, AstroBWT and Argon2, with official Windows and Linux support. Program for mining coins on the RandomX and CryptoNight algorithms. Suitable for both AMD and Nvidia video cards and processors. The program has a commission to the developer in the form of 1-5%. In this step-by-step instruction, we will tell you how to set up the commission and body shirts for different coins.
Release note v6.10.0
CPU (x64/x86/ARM)
OpenCL for AMD GPUs.
CUDA for NVIDIA GPUs via external CUDA plugin.
# 2122 Fixed pause logic when both battery pause and user activity are enabled.
# 2123 Fixed compatibility with gcc 4.8.
# 2147 Fixed many new job messages in single mining.
< a href = “https://github.com/xmrig/xmrig/pull/2150”> # 2150 sse2neon.h updated to the latest version of the wizard, fixed builds on ARMv7.
# 2157 Fixed crash in cn-heavy on Zen3 with manual counting streams.
Fixed possible incorrect writing to the log file.
http-parser replaced with llhttp .
For official builds: libuv, hwloc and OpenSSL updated to the latest their versions.
Donation & DevFee
Пожертвование по умолчанию 1% (1 минута из 100 минут) может быть увеличено с помощью параметра donate-level или отключено в исходном коде.
The preferred way to set up a miner is through a JSON configuration file as it is more flexible and user-friendly. The CLI does not cover all features such as mining profiles for different algorithms. Important parameters can be changed at runtime without rebooting the miner by editing the config file or making API calls.
xmrig.com/wizard – helps you create an initial configuration for the miner.
edit the .bat file with the desired coin (change the wallet to your own)
Mining RandomX (Monero XMR)
To mine coins on the randomx algorithm, we need to create or edit a ready-made batch file for the coin you need. These are basic settings that are sufficient for mining. We’ll look at the secondary settings later.
Decoding the contents of the batch file:
xmrig – this key will indicate which program will be launched. We leave it as it is. For Nvidia, we will specify xmrig-nvidia
-a randomx – specify the algorithm. For Monero, leave this one. For coins on the cryptonight-lite algorithm, we indicate it
-o pool.supportxmr.com – we indicate the address of your pool. In this example, we have supportxmr, because at the time of this writing, it has received the largest number of positive reviews
5555 – after the pool address, we indicate the pool port with a colon. for dwarfpool it is 8050
-u 4ALcw9nTAStZSshoWVUJakZ6tLwTDhixhQUQNJkCn4t3fG3MMK19WZM44HnQRvjqmz4LkkA8t565v7r34 your digital key. Get it on the cryptocurrency exchange, or install a cold wallet
–donate-level = 1 – set up the miner’s commission. By default, it is 5%. level = 1 means 1%
Examples of ready-made body shirts
An example of a batch file for NiceHash:
xmrig -a randomx -o randomxmonero.eu.nicehash.com:3380 -u 1Pz3EcHsRuJkraNRACUrBrLaxiTPP1VHJZ.rig1 pause
An example of a batch file for AMD:
:start
xmrig -a randomx -o xmr-eu1.nanopool.org:14444 -u 44tLjmXrQNrWJ5NBsEj2R77ZBEgDa3fEe9GLpSf2FRmhexPvfYDUAB7EXX1Hdb3aMQ9FLqdJ56yaAhiXoRsceGJCRS3Jxkn.5d3c802ee0f8e12e4eb9792722b7816a42178aa29ef7477c138ddb940c55648d.rig1 -p x --donate-level=1 --opencl
goto start
An example of a batch file for Nvidia:
:start
xmrig -a randomx -o pool.supportxmr.com:5555 -u 44tLjmXrQNrWJ5NBsEj2R77ZBEgDa3fEe9GLpSf2FRmhexPvfYDUAB7EXX1Hdb3aMQ9FLqdJ56yaAhiXoRsceGJCRS3Jxkn.5d3c802ee0f8e12e4eb9792722b7816a42178aa29ef7477c138ddb940c55648d.rig1 -p x --donate-level=1 --cuda
goto start
Command line parameters:
Network:
-o, --url=URL URL of mining server
-a, --algo=ALGO mining algorithm https://xmrig.com/docs/algorithms
--coin=COIN specify coin instead of algorithm
-u, --user=USERNAME username for mining server
-p, --pass=PASSWORD password for mining server
-O, --userpass=U:P username:password pair for mining server
-x, --proxy=HOST:PORT connect through a SOCKS5 proxy
-k, --keepalive send keepalive packet for prevent timeout (needs pool support)
--nicehash enable nicehash.com support
--rig-id=ID rig identifier for pool-side statistics (needs pool support)
--tls enable SSL/TLS support (needs pool support)
--tls-fingerprint=HEX pool TLS certificate fingerprint for strict certificate pinning
--daemon use daemon RPC instead of pool for solo mining
--daemon-poll-interval=N daemon poll interval in milliseconds (default: 1000)
-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)
--user-agent set custom user-agent string for pool
--donate-level=N donate level, default 5%% (5 minutes in 100 minutes)
--donate-over-proxy=N control donate over xmrig-proxy feature
CPU backend:
--no-cpu disable CPU mining backend
-t, --threads=N number of CPU threads
-v, --av=N algorithm variation, 0 auto select
--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)
--cpu-max-threads-hint=N maximum CPU threads count (in percentage) hint for autoconfig
--cpu-memory-pool=N number of 2 MB pages for persistent memory pool, -1 (auto), 0 (disable)
--cpu-no-yield prefer maximum hashrate rather than system response/stability
--no-huge-pages disable huge pages support
--asm=ASM ASM optimizations, possible values: auto, none, intel, ryzen, bulldozer
--randomx-init=N thread count to initialize RandomX dataset
--randomx-no-numa disable NUMA support for RandomX
--randomx-mode=MODE RandomX mode: auto, fast, light
--randomx-1gb-pages use 1GB hugepages for dataset (Linux only)
--randomx-wrmsr=N write custom value (0-15) to Intel MSR register 0x1a4 or disable MSR mod (-1)
--randomx-no-rdmsr disable reverting initial MSR values on exit
--astrobwt-max-size=N skip hashes with large stage 2 size, default: 550, min: 400, max: 1200
--astrobwt-avx2 enable AVX2 optimizations for AstroBWT algorithm
API:
--api-worker-id=ID custom worker-id for API
--api-id=ID custom instance ID for API
--http-host=HOST bind host for HTTP API (default: 127.0.0.1)
--http-port=N bind port for HTTP API
--http-access-token=T access token for HTTP API
--http-no-restricted enable full remote access to HTTP API (only if access token set)
OpenCL backend:
--opencl enable OpenCL mining backend
--opencl-devices=N comma separated list of OpenCL devices to use
--opencl-platform=N OpenCL platform index or name
--opencl-loader=PATH path to OpenCL-ICD-Loader (OpenCL.dll or libOpenCL.so)
--opencl-no-cache disable OpenCL cache
--print-platforms print available OpenCL platforms and exit
CUDA backend:
--cuda enable CUDA mining backend
--cuda-loader=PATH path to CUDA plugin (xmrig-cuda.dll or libxmrig-cuda.so)
--cuda-devices=N comma separated list of CUDA devices to use
--cuda-bfactor-hint=N bfactor hint for autoconfig (0-12)
--cuda-bsleep-hint=N bsleep hint for autoconfig
--no-nvml disable NVML (NVIDIA Management Library) support
TLS:
--tls-gen=HOSTNAME generate TLS certificate for specific hostname
--tls-cert=FILE load TLS certificate chain from a file in the PEM format
--tls-cert-key=FILE load TLS certificate private key from a file in the PEM format
--tls-dhparam=FILE load DH parameters for DHE ciphers from a file in the PEM format
--tls-protocols=N enable specified TLS protocols, example: "TLSv1 TLSv1.1 TLSv1.2 TLSv1.3"
--tls-ciphers=S set list of available ciphers (TLSv1.2 and below)
--tls-ciphersuites=S set list of available TLSv1.3 ciphersuites
Logging:
-S, --syslog use system log for output messages
-l, --log-file=FILE log all output to a file
--print-time=N print hashrate report every N seconds
--health-print-time=N print health report every N seconds
--no-color disable colored output
--verbose verbose output
Misc:
-c, --config=FILE load a JSON-format configuration file
-B, --background run the miner in the background
-V, --version output version information and exit
-h, --help display this help and exit
--dry-run test configuration and exit
--export-topology export hwloc topology to a XML file and exit
Post Comment