Monero Farm

World of Crypto

How to get 2000H/s at CryptoNight-R with AMD Radeon VEGA cards

AMD Radeon VEGA is the champion of GPU cards for mining. You can easily get around or above 1950H/s at CryptoNight V8 and also over 44MH/s at mining Ethereum, and all with medium power consumption. Prices of VEGAs are continuously growing and you can imagine why. But, what about the VEGA performance on the new CryptoNight-R algorithm?

AMD Radeon VEGA is the champion of GPU cards for mining
AMD Radeon VEGA is the champion of GPU cards for mining

AMD Radeon VEGA 56 and 64. It’s time to get the high hash rate on CryptoNight V8

AMD Radeon VEGA is designed for folks who want to spend a lot of money to buy a video card for mining, but with the expectation of big results in mining. It’s ideal to mine CryptoNight, but it’s also a superpower card with other algorithms.

For less money, you can’t buy the good performance at the mining of VEGA cards. It’s not clear a bargain, but it’s the best power you can buy now. A rig of AMD Radeon VEGA cards is more powerful than the most part of ASICs, so you can understand why all the miners want to buy VEGA cards.

There’s not a huge difference between the GPUs at the heart of the top-end RX VEGA 64 and the lower one RX VEGA 56. As the name suggests, the second-tier card has 56 compute units (CUs) compared with the 64 CU count of the higher-spec card. That means 3,584 GCN cores into the RX VEGA 56 and 4,096 GCN cores in the RX VEGA 64. In both cases, we are talking about 8GB of HBM2 video memory and a 2,048-bit bus. This is pure power, like for the new Ryzen CPU processors.

You don’t need to make a BIOS modification to push high the VEGA 56, so a big WARNING: if you’ want to do it anyway and aren’t really too techie, pay attention because you can basically brick your GPU if you do it incorrectly.

Let’s start. First you need a Linux or Windows 10 operating system with installed the AMD Adrenaline Radeon driver because the official ReLive Blockchain driver, specifically for blockchain computing, released by AMD doesn’t work well with the CryptoNight V8 and the CryptoNight-R algorithm.  So you can find the Adrenaline at https://www.amd.com/en/support/graphics/radeon-rx-vega-series/radeon-rx-vega-series/radeon-rx-vega-56.

Pay attention to use 18.5.118.6.1 or 18.9.3 versions (18.5.1 seems to be the best for low power consumption) on Windows and a version prior to 18.40 on Linux. Also, don’t forget to enable compute mode!

How to Switch Between Graphics and Compute GPU Workloads Within AMD Radeon™ Settingshttps://support.amd.com/en-us/kb-articles/Pages/DH-024.aspx

Or using this dword in Windows registry:

Windows Registry Editor Version 5.00


[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0000]
"KMD_EnableInternalLargePage"=dword:00000002

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0001]
"KMD_EnableInternalLargePage"=dword:00000002

You need to add as many voices as many cards you have. For example, if you have 4 VEGA Cards, add the \0000, \0001, \0002 and \0003 lines. Also, before doing it, check in the registry the {4d36e968-e325-11ce-bfc1-08002be10318} class to see the relative numbers of your cards.

Additionally, only if you want to mod the BIOS of the VEGA 56, you need the AMD/ATI ATIFlash utility. This is the program to flash and back-up the BIOS of the card. For Windows 10 at https://www.techpowerup.com/download/ati-atiflash/ and for Linux at https://bitcointalk.org/index.php?topic=1809527.0. In this case, you need also the VEGA 64 BIOS. If you own a 64 card, you can take the BIOS from that. If not, you should check for an original VEGA 64 BIOS on AnorakTech.

I suggest you also to get one of the following programs, they are for editing some parameters (especially frequencies and voltages) in the modern AMD cards. So with these, you’ll be to tweak a bit more your cards. Get OverdriveNTool for Windows at https://forums.guru3d.com/threads/overdriventool-tool-for-amd-gpus.416116/ or AMDCOVC for Linux at https://github.com/matszpk/amdcovc.

Then, the miner. I always used XMR-Stak and I like it, but you can find really a lot of programs that do the same thing and they are both for Windows 10 and Linux. You can find XMR-Stak binaries and sources at https://github.com/fireice-uk/xmr-stak. The latest 2.10.1 release is compatible with the new CryptoNight-R and provides an auto-config mode that adjusts settings to the best value for your card. This release fixes many issues from 2.10.0 and we recommend to update to this version, also The POW cryptonight_v8_double for X_CACHE is added too. Pay attention, because the config files from 2.5.X+ are compatible and 2.4.X or older are NOT compatible with this release. If you remove the old amd.txt file you will get a new version with new tuning parameter.

When you run XMR-Stak for the first time, you will be prompted to answer really few questions and for the question about the currency you’re mining, select the one you like or just put in “monero”. – UPDATE: after the network upgrade, you should put ‘monero’ or ‘cryptonight_r’ for mining Monero or you’ll mine for nothing – For the rest of the answers, you must type your wallet address and the pool chosen for mining.


To push the VEGA cards higher on mining, you must follow one of the following resources because these are absolutely the best instructions to power the VEGA cards. Follow these guides especially for the part about the Power Play Table and to get the best low power consumption, use 800 mV instead of 900 mV.

So take a look at:

Monero and Vega – the definitive guide

Monero mining tutorial for VEGA over 2000+ H/s

Vega mining guide – No Wattman. No flaky HBCC

After this, you are able to have your VEGA above 1950H/s with a power consumption of 150-165W.

If you want to get a little less hash rate on CryptoNight V8 but with a lot of less power consumption, you can do the next. First, modify the OverdriveNTool VEGA cards profile like that:

[Profile_0]
Name=Vega64
GPU_P0=852;900;0
GPU_P1=991;900;0
GPU_P2=1084;900;0
GPU_P3=1138;900;0
GPU_P4=1150;900;0
GPU_P5=1202;900;0
GPU_P6=1212;875;0
GPU_P7=1360;875
Mem_P0=167;900;0
Mem_P1=500;900;0
Mem_P2=800;900;0
Mem_P3=1050;875
Fan_Min=3000
Fan_Max=4900
Fan_Target=75
Fan_Acoustic=2400
Power_Temp=85
Power_Target=0

[Profile_1]
Name=Vega56
GPU_P0=852;900;0
GPU_P1=991;900;0
GPU_P2=1084;900;0
GPU_P3=1138;900;0
GPU_P4=1150;900;0
GPU_P5=1202;900;0
GPU_P6=1212;875;0
GPU_P7=1360;875
Mem_P0=167;900;0
Mem_P1=500;900;0
Mem_P2=800;900;0
Mem_P3=925;875
Fan_Min=3000
Fan_Max=4900
Fan_Target=75
Fan_Acoustic=2400
Power_Temp=85
Power_Target=0

And second, set the amd.txt file for each VEGA card in XMR-Stak as below:
"gpu_threads_conf" : [
{ "index" : 0,
"intensity" : 1920, "worksize" : 16,
"affine_to_cpu" : false, "strided_index" : 2, "mem_chunk" : 2, "unroll" : 8,
"comp_mode" : false
},
{ "index" : 0,
"intensity" : 1920, "worksize" : 16,
"affine_to_cpu" : false, "strided_index" : 2, "mem_chunk" : 2, "unroll" : 8,
"comp_mode" : false
},
],

Save the amd.txt file you just edited and re-run the XMR-Stak application. Check the new hash rate by pressing ‘H’. If you need one more step in consumption reduction, you can also change the 1920 intensity value to 1792 to get more savings on power consumption.

***WARNING!!! Pay attention to go high with frequency because you can burn your cards!!! Make a step-by-step trial period to test where your cards can go because every card is different, every memory is different and maybe you lose the silicon lottery!!!***

UPDATE: many people suggest me to use CastXMR to get the better hash rate like on CryptoNight V8. I remain with the XMR-Stak program, but if you want to try this is the link: http://www.gandalph3000.com/Sadly, CastXMR stopped the development.

After that, your VEGA cards should work around 1850-1950H/s but with a power consumption of around 130-145W. Definitely better, not?

If you want to get easily above 1950H/s and without the tuning session headache, I suggest you use the latest TeamRedMiner mining application. This miner currently supports the lyra2z, phi2, cryptonightv8/cnv2, and CryptoNight-R algorithms. Its only configuration is via command line to set the basic parameters for connecting to a stratum pool and selecting which platforms/devices to use. Invoking the miner with the –help option will print a short help message for how to use the options.

Example of TeamRedMiner command launch for a rig of 3 AMD VEGA cards:

  • Windows

teamredminer.exe -a cnr -o stratum+tcp://pool.somexmrpool.com:7777 -u -p MyWorker -d 0,1,2 --cn_config 16+14,16+14,16+14

  • Linux

./teamredminer -a cnr -o stratum+tcp://pool.somexmrpool.com:7777 -u -p MyWorker -d 0,1,2 --cn_config 16+14,16+14,16+14

Make your tests, but TeamRedMiner should put you above the 2000H/s easily and with about the same power consumption.

Obviously, if you don’t pay the electric energy (the power), don’t mind about that and push your VEGAs to the limit!

Remember that any card is different, any memory is different, you can win the memory lottery or not, you just need to try a different combination of frequencies and voltages to find the best one that fits your card. You can find all the info on how to use OverdriveNTool and AMDCOVC on the relative websites.

The issue on NiceHash: getting rejected shares on CryptoNight V8, CryptoNight-R or CryptoNightHeavy?

 

All the info at this address: https://www.nicehash.com/help/getting-rejected-shares-on-cryptonight-cryptonightv7-v8-or-cryptonightheavy

Using 3rd party miners (like xmr-stak, cc-miner, xmr, and cast-xmr), you might get rejected shares on CryptoNight-R algorithm due to wrongly set parameters. The most common reason for rejected shares is not choosing the correct algorithm for mining the desired coin. Make sure you select the correct algorithm for the coin you want to mine! Also, check the pool compatibility with the desired algorithm. 

For CryptoNight-R please make sure you are using the following settings (xmr-stak; LOCATION: eu, usa, hk, jp, in, br):

“pool_list”: [
       {
           “pool_address”: “stratum+tcp://cryptonightr.LOCATION.nicehash.com:3375”,
           “wallet_address”: “BitcoinWalletAddress.WorkerName”,
           “rig_id”: “”,
           “pool_password”: “x”,
           “use_nicehash”: true,
           “use_tls”: false,
           “tls_fingerprint”: “”,
           “pool_weight”: 1
       }
   ],
   “currency”: “cryptonight_r"