How to set up XMR-Stak-RandomX?

XMR-Stak-RandomX is Nvidia and AMD mining client for mining RandomX algorithm. With Monero recently forking to RandomX, this is the mining client you can use on your msOS rigs.

If you want to use XMR-Stak-RandomX outside minerstat, you can download it through official sources:

How to set up XMR-Stak-RandomX with minerstat?

In this guide, we will show you how to mine XMR with XMR-Stak-RandomX. You can use the same procedure for other algorithms and coins.

1. Address editor

Open address editor and save the the pool and the wallet for mining XMR. We will save XMR pool under the (POOL:XMR)  tag and XMR wallet under the (WALLET:XMR) tag.

2. Default mining client

Open worker's config and select XMR-STAK-RANDOMX as a default mining client.

3. XMR-STAK-RANDOMX config

Update the mining client's configuration so that it will be defined as:

"pool_list":[{"pool_address" : "(POOL:XMR)", "wallet_address" : "(WALLET:XMR).(WORKER)", "rig_id" : "(WORKER)", "pool_password" : "x", "use_nicehash" : false, "use_tls" : false, "tls_fingerprint" : "", "pool_weight" : 1 },],"currency" : "randomx",

(WORKER) tag will be automatically replaced with your worker's name, so you don't have to change it. As you can see from the config there is a currency parameter in which the algorithm needs to be defined, in our case this is randomx.

4. Huge pages and swap space

To run RandomX algorithm, you will need to enable huge pages and set up swap space. There are two commands to do this under msOS:

  • hugepages to set up hugepages or toggle between smaller (128) and bigger (1169) settings.
  • mswap create 16384 which will create 16GB swap space. Change the number to fit your needs.

5. Save changes

Save changes and wait for mining client to restart. You are now mining XMR with XMR-Stak-RandomX.

Revolutionize your mining operation with minerstat

It's easy and free to get started. Monitor, manage, and optimize your mining rigs with our powerful platform.

Sign up for free now

Mining software