XMRig v6.16.2 - CPU/GPU Miner [Download and configure]

GitHub:

XMRig – High-performance open-source cross-platform RandomX, CryptoNight, KawPow, AstroBWT and Argon2 miner, with official support for Windows and Linux. A program for mining coins using the RandomX and CryptoNight algorithms. Suitable for both AMD and Nvidia family video cards and processors. The program has a developer commission of 1-5%. In this step-by-step instructions we will tell you how to set up commissions and batch files for different coins.

Changes in v6.4.0:

  • #1862 RandomX: removed rx/loki algorithm.
  • #1890 Added argon2/chukwav2 algorithm.
  • #1895 #1897 Added benchmark and stress test.
  • #1864 RandomX: improved software AES performance.
  • #1870 RandomX: fixed unexpected resume due to disconnect during dataset init.
  • #1872 RandomX: fixed randomx_create_vm call.
  • #1875 RandomX: fixed crash on x86.
  • #1876 RandomX: added huge-pages-jit config parameter.
  • #1881 Fixed possible race condition in hashrate counting code.
  • #1882 #1886 #1887 #1893 General code improvements.
  • #1885 Added more precise hashrate calculation.
  • #1889 Fixed libuv performance issue on Linux.

Supports algorithms:

NameMemoryVersionNote
rx/arq256 KB4.3.0+RandomARQ (RandomX variant for ArQmA).
rx/02 MB3.2.0+RandomX (Monero).
argon2/chukwa512 KB3.1.0+Argon2id (Chukwa).
argon2/wrkz256 KB3.1.0+Argon2id (WRKZ)
rx/wow1 MB3.0.0+RandomWOW (RandomX variant for Wownero).
rx/loki2 MB3.0.0+RandomXL (RandomX variant for Loki).
cn/fast2 MB3.0.0+CryptoNight variant 1 with half iterations.
cn/rwz2 MB2.14.0+CryptoNight variant 2 with 3/4 iterations and reversed shuffle operation.
cn/zls2 MB2.14.0+CryptoNight variant 2 with 3/4 iterations.
cn/double2 MB2.14.0+CryptoNight variant 2 with double iterations.
cn/r2 MB2.13.0+CryptoNightR (Monero's variant 4).
cn/wow2 MB2.12.0+CryptoNightR (Wownero).
cn/gpu2 MB2.11.0+CryptoNight-GPU.
cn-pico256 KB2.10.0+CryptoNight-Pico.
cn/half2 MB2.9.0+CryptoNight variant 2 with half iterations.
cn/22 MB2.8.0+CryptoNight variant 2.
cn/xao2 MB2.6.4+CryptoNight variant 0 (modified).
cn/rto2 MB2.6.4+CryptoNight variant 1 (modified).
cn-heavy/tube4 MB2.6.4+CryptoNight-Heavy (modified).
cn-heavy/xhv4 MB2.6.3+CryptoNight-Heavy (modified).
cn-heavy/04 MB2.6.0+CryptoNight-Heavy.
cn/12 MB2.5.0+CryptoNight variant 1.
cn-lite/11 MB2.5.0+CryptoNight-Lite variant 1.
cn-lite/01 MB0.8.0+CryptoNight-Lite variant 0.
cn/02 MB0.5.0+CryptoNight (original).

CMake Options

Algorithms

  • -DWITH_CN_LITE=OFF disable all CryptoNight-Lite algorithms ( cn-lite/*).
  • -DWITH_CN_HEAVY=OFF disable all CryptoNight-Heavy algorithms ( cn-heavy/*).
  • -DWITH_CN_PICO=OFF disable CryptoNight-Pico algorithms (cn-pico and cn-pico/tlo).
  • -DWITH_RANDOMX=OFF disable RandomX algorithms ( rx/*).
  • -DWITH_ARGON2=OFF disable Argon2 algorithms ( argon2/*).
  • -DWITH_ASTROBWT=OFF disable the AstroBWT algorithm ( astrobwt).
  • -DWITH_KAWPOW=OFF disable the KawPow algorithm ( kawpow).

Functions

  • -DWITH_HWLOC=OFF disable hwloc support. In most cases, it is not recommended to disable this feature. This feature adds an external dependency to libhwloc (1.10.0+), excluding MSVC assemblies.
  • -DWITH_LIBCPUID=OFF disable native libcpuid support, this feature is always disabled if hwloc is enabled, if both hwloc and libcpuid are disabled autoconfiguration for the CPU will be very limited.
  • -DWITH_HTTP=OFF disable native HTTP support, this function is used to support HTTP API and daemon (solo mining).
  • -DWITH_TLS=OFF disable SSL/TLS support (secure pool connections). This feature adds an external dependency to OpenSSL.
  • -DWITH_ASM=OFF disable build optimization for modern CryptoNight algorithms.
  • -DWITH_EMBEDDED_CONFIG=ON enable embedded configuration support.
  • -DWITH_OPENCL=OFF Disable the OpenCL backend.
  • -DWITH_CUDA=OFF disable the NVIDIA CUDA backend.
  • -DWITH_NVML=OFF disable NVML (NVIDIA Management Library) support (this feature is only available when CUDA is enabled).
  • -DWITH_MSR=OFF Disable MSR mod and Ryzen 1st gen patch.
  • -DWITH_ADL=OFF disable ADL (AMD Display Library) or sysfs support (this feature is only available when OpenCL is enabled).
  • -DWITH_PROFILING=ON Enable profiling for developers.
  • -DWITH_SSE4_1=OFF disable SSE 4.1 for Blake2.
  • -DWITH_BENCHMARK=OFF disable the built-in RandomX benchmark and stress test.
  • -DWITH_SECURE_JIT=ON enable secure JIT memory access. OFF is the default on all OSes except macOS with an ARM processor.
  • -DWITH_DMI=OFF disable DMI/SMBIOS reader.

Debugging options

  • -DWITH_DEBUG_LOG=ON enable debug log (mainly network requests).
  • -DHWLOC_DEBUG=ON enable some debug logging for hwloc.
  • -DCMAKE_BUILD_TYPE=Debug enable debug build, only useful for crash investigation, this option slows down the miner.

Special assembly options

  • -DBUILD_STATIC=ON build a completely static executable, this option only works properly on Alpine Linux and FreeBSD.
  • -DXMRIG_DEPS= path to precompiled dependencies.
  • -DARM_TARGET= override the ARM target, possible values ​​are 7(ARMv7) and 8(ARMv8).
  • -DUV_INCLUDE_DIR= custom path to libuv headers.
  • -DUV_LIBRARY= custom path to the libuv library.
  • -DHWLOC_INCLUDE_DIR= custom path to hwloc headers.
  • -DHWLOC_LIBRARY= custom path to the hwloc library.
  • -DOPENSSL_ROOT_DIR= custom path to OpenSSL.
  • -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ custom C and C++ compiler.

Usage and Settings

The preferred way to configure the miner is with a JSON configuration file, as it is more flexible and user-friendly. The command line interface 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 configuration file or making API calls.

  • – will help you create the initial configuration for the miner.
  • – helps manage your miners via HTTP API.

Changes v6.16.2

  • Fixed a crash on processors that support VAES and run xmrig compiled by GCC.
  • Fixed incorrect auto-tuning in the GCC Windows build.
  • Support for fixed environment variables for GhostRider and KawPow.
  • Performance Fixes: Fixed several performance bottlenecks introduced in v6.16.1.
  • Fixed overall build performance when compiling GCC to be the same as when building MSVC.
  • Linux builds are now 10% faster compared to the GCC v6.16.0 build.
  • Windows builds are now 5% faster compared to the MSVC v6.16.0 build.

Fast start

In order to mine coins you need:

  1. Download program
  2. unzip to any convenient location
  3. edit the .bat file with the desired coin (change the wallet to yours)

Setting up xmrig for Monero mining

To mine coins using the randomx algorithm, we need to create or edit a ready-made batch file for the coin you need. These are the basic settings, which are enough for mining. We'll look at secondary settings later.

Decoding the contents of the batch file

  1. xmrig this key will indicate which program will be launched. Let's leave it as is. For Nvidia we specify xmrig-nvidia
  2. -a randomx specify the algorithm. For Monero we leave this one. For coins based on the cryptonight-lite algorithm, indicate it
  3. -o pool.supportxmr.com indicate the address of your pool. In this example we have supportxmr, because at the time of writing, it received the largest number of positive reviews
  4. 5555 after the pool address we indicate the pool port separated by a colon. dwarfpool has 8050
  5. -u 4ALcw9nTAStZSshoWVUJakZ6tLwTDhixhQUQNJkCn4t3fG3MMK19WZM44HnQRvjqmz4LkkA8t565v7iBwQXx2r34HNroSAZ after the -u key we indicate the address of your digital wallet. Get it at , or install a cold wallet
  6. —donate-level=1 configure the miner’s commission. By default it is 5%. level=1 means 1%

Example batch file for NiceHash:

xmrig -a randomx -o randomxmonero.eu.nicehash.com:3380 -u 1Pz3EcHsRuJkraNRACUrBrLaxiTPP1VHJZ.rig1 pause

Example batch file for AMD:

:start xmrig -a randomx -o xmr-eu1.nanopool.org:14444 -u 44tLjmXrQNrWJ5NBsEj2R77ZBEgDa3fEe9GLpSf2FRmhexPvfYDUAB7EXX1Hdb3aMQ9FLqdJ56yaAhiXoRsceGJCRS3Jxkn.5d3c802ee 0f8e12e4eb9792722b7816a42178aa29ef7477c138ddb940c55648d.rig1 -px —donate-level=1 —opencl goto start

Example batch file for Nvidia:

:start xmrig -a randomx -o pool.supportxmr.com:5555 -u 44tLjmXrQNrWJ5NBsEj2R77ZBEgDa3fEe9GLpSf2FRmhexPvfYDUAB7EXX1Hdb3aMQ9FLqdJ56yaAhiXoRsceGJCRS3Jxkn.5d3c802ee0f8e1 2e4eb9792722b7816a42178aa29ef7477c138ddb940c55648d.rig1 -px —donate-level=1 —cuda goto start
Download the ready-made .bat files right now:

v6.10.0 Release Note

  • CPU (x64/x86/ARM)
  • OpenCL for AMD GPUs.
  • CUDA for NVIDIA GPUs via external CUDA plugin.
  • Fixed pause logic when both battery pause and user activity are enabled.
  • Compatibility with gcc 4.8 has been fixed.
  • Fixed many new job messages when mining solo.
  • sse2neon.h has been updated to the latest version of the wizard, assemblies on ARMv7 have been fixed.
  • Fixed crash in cn-heavy on Zen3 with manual thread counting.
  • Fixed possible incorrect writing to the log file.
  • .
  • For official builds: libuv, hwloc and OpenSSL have been updated to the latest versions.

Command line options

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

Rating
( 1 rating, average 4 out of 5 )
Did you like the article? Share with friends:
For any suggestions regarding the site: [email protected]
Для любых предложений по сайту: [email protected]