How to Mine Monero RandomX with CPU & GPU
|- Like
- Digg
- Del
- Tumblr
- VKontakte
- Buffer
- Love This
- Odnoklassniki
- Meneame
- Blogger
- Amazon
- Yahoo Mail
- Gmail
- AOL
- Newsvine
- HackerNews
- Evernote
- MySpace
- Mail.ru
- Viadeo
- Line
- Comments
- Yummly
- SMS
- Viber
- Telegram
- Subscribe
- Skype
- Facebook Messenger
- Kakao
- LiveJournal
- Yammer
- Edgar
- Fintel
- Mix
- Instapaper
- Copy Link
Monero just forked as planned and switched from the previous Cryptonight V8 algorithm to the new RandomX.
RandomX is pretty unique in a way so far, it’s best mined with CPUs and not GPUs. The change is pretty huge; CPUs now offer between 100-1000% better value for the money compared to GPUs.
What the Fork? Or why is Monero Forking Every 6 Months: A Recap
Initially, cryptocurrency mining started as a way to allow people like you and I help the blockchain remain decentralized. If the hashrate comes from a million small CPU and GPU miners, each belonging to a different person, there is no single weak link or node that could be attacked to compromise the network. That’s the definition of decentralization.
The introduction of ASICs affected decentralization in a few ways:
- First of all, ASICs are expensive and have to be bought separately, whereas everyone already has a CPU in their computer. This greatly limits the amount of people who is able to get involved into mining.
- The second thing is that ASICs can be easily stacked in farms; A company that can invest enough into a farm can get a decent share of the network hashrate.
To prevent all of that from happening to their coin, the Monero team decided to slightly change and improve their mining algorithm every six months. ASICs are fast but they are not flexible. They are hardwired to mine a certain algorithm. Any slight change in the algorithm renders all existing ASICs unable to mine it, whereas CPU and GPU miners only have to update their software.
Monero first forked in April 2018 and have been doing that regularly every 6 months since then. 6 Months is roughly what it takes for a company like Bitmain to design and release an ASIC on a certain algorithm.
Everything a Miner Should Know about RandomX
As the name suggests, RandomX is features random code execution, as well as memory-hard techniques. This makes the algorithm very CPU-friendly. So far, there are a few other coins based on RandomX, the most popular being LOKI, ArQmA and Wownero.
The three most popular miners used for this new algorithm are XMRig, SRBMiner-MULTI and XMR-STAK-RX.
- XMRig just received an update that made it the most flexible and fastest miner from this list.
- SRBMiner-MULTI is still a decent alternative.item
- XMR-STAK-RX the slowest of the bunch, though it’s also the newest one. It has no dev fee and if it gets a speed boost, it might become the new big thing.
Best CPU to Mine Monero RandomX – Benchmarks
to be updated soon..
- AMD Ryzen 9 3950X 16-core – 19,000 H/s – 170w
- AMD Ryzen 9 3900X 12-core – 7,700 H/s – 150w
- AMD Ryzen 7 3800X – 9,000 H/s – 105w
- AMD Ryzen 7 3700X – 7,000 H/s – 100w
- AMD Ryzen 5 3600 – 7,500 H/s – 135w
CPU | RAM | OS | AES | CNv4 | Fast mode | Light mode |
---|---|---|---|---|---|---|
Intel Core i9-9900K | 32G DDR4-3200 | Windows 10 | hw | 660 (8T) | 5770 (8T) | 1160 (16T) |
AMD Ryzen 7 1700 | 16G DDR4-2666 | Ubuntu 16.04 | hw | 520 (8T) | 4100 (8T) | 620 (16T) |
Intel Core i7-8550U | 16G DDR4-2400 | Windows 10 | hw | 200 (4T) | 1700 (4T) | 350 (8T) |
Intel Core i3-3220 | 4G DDR3-1333 | Ubuntu 16.04 | soft | 42 (4T) | 510 (4T) | 150 (4T) |
Raspberry Pi 3 | 1G LPDDR2 | Ubuntu 16.04 | soft | 3.5 (4T) | – | 20 (4T) |
How to Mine Monero RandomX with CPU
I will take as example for this article XMRig miner and i will be using a AMD FX-8350 CPU
- Download latest XMRig miner here: https://github.com/xmrig/xmrig/releases, i am using Windows 10 Home and downloaded the “xmrig-5.5.0-gcc-win64.zip“, extract archive contents
- To configure the miner is very simple and it can be done in different ways 1) edit “config.json” file and add wallet address, replace pool if needed ; 2) using the configuration wizard from here: https://xmrig.com/wizard , once details are added you can copy two types of commands a) Config file: copy and replace what is found in “config.json” ; b) Command line: create a text document like “monero_randomx.txt” and paste the details there, then rename from .txt to .bat
- Remember to use any pool from this list https://miningpoolstats.stream/monero to spread the hashrate.
- Start “xmrig.exe” to run the miner.
Note: If you’re running XMRig on a rig with an Intel processors you should disable “Hardware prefetcher” and “Adjacent cacheline prefetch” in BIOS to improve performance.
Also if you notice low hashrate you could try to add your username to “Lock pages in memory”. Go to gpedit.msc -> Windows Settings -> Security Settings -> Local Policies -> User Rights Assignment and look for “Lock pages in memory“, double click to open it, click “Add user or group” and type in your PC username, apply settings and reboot the machine. You can also try to increase virtual memory as we do on gpu mining rigs.
Monero RandomX Mining Calculator: https://whattomine.com/coins/101-xmr-randomx
How to mine Monero RandomX with GPU
RandomX GPU Hashrate Benchmarks
Monero RandomX Nvidia GPUs Hashrate Benchmarks by github.com/SChernykh
Model | CryptonightR H/S | RandomX H/S | Relative speed |
---|---|---|---|
GTX 1050 2GB (stock) | 299 (75 W) | 181 (75 W) | 60.5% |
GTX 1660 Ti max overclock (2070/13760 MHz) | 626 (98 W) | 671 (103 W) | 107.2% |
GTX 1660 Ti low power (1785/13760 MHz) | 604 (70 W) | 567 (70 W) | 93.9% |
GTX 1070 (1850/7600 MHz) | 612 (89 W) | 609 (108 W) | 99.5% |
GTX 1070 Ti (1900/7600 MHz) | 625 (97 W) | 769 (123 W) | 123.0% |
GTX 1080 Ti (1930/10010 MHz) | 787 (145 W) | 1136 (190 W) | 144.3% |
GTX 1080 Ti (2037/11800 MHz) | 927 (183 W) | 1122 (190 W) | 121.0% |
RTX 2080 (1980/13740 MHz) | 828 (142 W) | 1191 (189 W) | 143.8% |
RTX 2080 Ti (1915/13600 MHz) | 1105 (197 W) | 1641 (242 W) | 148.5% |
Titan V (1335/850 MHz) | 1436 (101 W) | 2199 (125 W) | 153.1% |
Tesla V100 (1530/877 MHz) | 1798 (134 W) | 2524 (177 W) | 140.4% |
Monero RandomX AMD GPUs Hashrate Benchmarks by github.com/SChernykh
Model | CryptonightR H/S | RandomX H/S | Relative speed | Comment |
---|---|---|---|---|
AMD Radeon VII (stock) | 3125 | 1500 | 48% | JIT compiled mode, 150W |
AMD Vega 64 (1700/1100 MHz) | 2200 | 1225 | 55.7% | JIT compiled mode, 285W |
AMD Vega 64 (1100/800 MHz) | 1023 | 845 | 82.6% | JIT compiled mode, 115W |
AMD Vega 64 (1700/1100 MHz) | 2200 | 163 | 7.4% | VM interpreted mode |
AMD Vega FE (stock) | 2150 | 980 | 45.6% | JIT compiled mode (intensity 4096) |
AMD Radeon RX 560 4GB (1400/2200 MHz) | 495 | 260 | 52.5% | JIT compiled mode (intensity 896) |
AMD Radeon RX RX470/570 4GB | 930-950 | 400-410 | 43% | JIT compiled mode, 50W |
AMD Radeon RX RX480/580 4GB | 960-1000 | 470 | 47% | JIT compiled mode, 60W |
In Conclusion
This new fork puts Monero in a pretty interesting spot. On one hand, it made all GPU miners switch to other coins though on the other hand, it might attract more different people. That’s definitely good for decentralization of the coin and since its global hashrate dropped because of that, a lot of people might find it interesting to try mining it.