Vous êtes sur la page 1sur 5

13/1/2018 Monero and Vega - the definitive guide : MoneroMining

V56 flashed and V64 instructions and files updated.

Hi all,
A couple months ago I published here on reddit a post which I kept updating with my findings optimizing my 3 Vega56 in both
Hash and Power. As you can see there, from 4860H/s @ 670WI've managed, with the help of many on reddit and thisthread
at bitcointalk.org, to increase the hash rate to 5700H/swhile lowering the power to 525W.
Note that at stock config one Vega 56 does "only" 1100 H/s, but this guide should help you to reach over 1850H/s on Vega 56
and over 1950H/s on Vega 64.
V56 can be optimized with and without V64 bios, and the V56 with V64 bios guide is also valid for V64.

Disclaimer:every GPU is different and some values might not be possible for all
cards. Please make sure you know what you're doing instead of just copy/pasting
stuff from this guide. In case of doubt, google it ;)

My system is the following:


EVGA 1300W supernova Gold PSU
16GB DDR3 Corsair Vengeance 1600 CL9 (4Gb is enough)
ASROCK H81 PRO BTC v2.0
Intel Celeron G1840
The cheapest 126Gb SSD available
6 x Sapphire Vega 56
6 x PCI-e risers
Power on switch
Custom built open air frame
6 EVGA dual 8 PCIe cables (do not use splitters from 8 pin cables to dual as those introduce noise on the card voltage.
Original dual 6+2 PCIe cables or 8 + 6+2 cables will do as well)

Before we start:
You'll need XMR-STAK-AMDminer;
Note:you can get higher hash values with Cast XMR miner, but its code is not open and so I can not recommend it;
I am sticking to the previous xmr-stak-amd release, as the new one is still very fresh and uses a slightly different
config system;
You'll need the Blockchain Beta driver;
You'll need Windows10 64;
You'll need Windows Virtual Memory set up with "high values". To set it up, on windows search for "View advanced
system settings" > Performance > Settings... > Advanced > Virtual Memory > Change... > set up an initial and max
custom size. I'm using 40Gb min and max for 6 V56.
You'll most likely need the Display Driver Uninstalltool;
For each of your GPUs, you'll need a device reset before mining:
The blockchain Beta driver has some sort of a bug (i see it as a feature) that when you restart the GPU device some
sort of power saving feature (i see it as a bug) doesn't get activated. Therefore, by restarting your GPU device it
will hash higher.
In the past I was to believe that this hash increase was related with turning on HBCC but in fact, turning on/off
HBCC disables and enables the video card, triggering the bug above.
You can perform this reset at Windows Device Manager, disabling and enabling each of your video cards, or you can
automate this system using Windows DevCon.exetool.
Follow the instructions on the provided link to get devcon.exe without downloading over 1Gb of Ms crap. Remember
that any 64-bit install is running amd64.
Note: Restart Windows, every miner crash, disconneting a monitor, powering off a monitor, logging out from
windows and even starting some display tools will most likely end in the need to disable/enable the devices
again.
Lastly, you'll need OverdriveNToolto further optimize your setup and GPU-zor Hwinfo64 to debug your power consumption.

https://www.reddit.com/r/MoneroMining/comments/74hjqn/monero_and_vega_the_definitive_guide/ 1/5
13/1/2018 Monero and Vega - the definitive guide : MoneroMining

Additional Tips:
To avoid the need to have a plugged and always on monitor, I've purchased thisHDMI Ghost dongle. It will "tell" the GPU
that a Monitor is pluged and active;
To avoid Hash drop on one of the cards, I have activated the integrated iGPU, where the dongle is connected. This slightly
increases power consumption but provides more stability to the miner;
I connect the machine via Team Viewer. Every time I do, I check the "Actions > Log off" settings to make sure I will not log
out the windows session after closing team viewer;
Other than during tests, I never start or keep open GPU-z nor Hinfo64;

VEGA 56 with Stock bios:

Target objective: 1800H/s @ 160W per GPU.


This optimisation is all about standard configs and little risk.

First steps
1. Plug the cards, boot windows and install the blockchain driver.
2. Edit Windows Virtual Memory

GPU Config
1. Open Crimson Settings
2. Go to Gaming > Global
3. If you're not using iGPU as primary display graphics, most likely Crossfire is enabled. Disable it.
4. Open Windows Device Manager and disable and enable all the cards. To automatize this process read below about
devcon.exe setup.
5. Open Wattman, and apply the following values:
GPU Frequency: -30%
GPU Voltage: Automatic
HBM Frequency: 950 MHz
HBM Voltage: Automatic
MIN FAN SPEED: 3000 RPM (you'll need it way high and loudto keep HBM cool)
POWER LEVEL: -20%
Apply settings.
6. If you don't start having visual issues, all is set up on the GPU. But if you do, Wattman will reset, Windows will eventually
need to be restarted and you need to go back to step 4. If this happens, drop the HBM to 920 MHz.

Miner Config
1. Windows Defender will flag xmr-stak-amd as a threat. Add a folder to Windows Defender safe list and extract the miner into
that folder.
2. Open the file config.txt
Each GPU will work with 2 threads. "gpu_thread_num"should list the total num of threads, like so: 1 GPU = 2; 2 GPU = 4; and
so on. Here's the config for 3 V56:

"gpu_thread_num" : 6,

"gpu_threads_conf" : [
{ "index" : 0, "intensity" : 2016, "worksize" : 8, "affine_to_cpu" : false },
{ "index" : 0, "intensity" : 1600, "worksize" : 8, "affine_to_cpu" : false },
{ "index" : 1, "intensity" : 2016, "worksize" : 8, "affine_to_cpu" : false },
{ "index" : 1, "intensity" : 1600, "worksize" : 8, "affine_to_cpu" : false },
{ "index" : 2, "intensity" : 2016, "worksize" : 8, "affine_to_cpu" : false },
{ "index" : 2, "intensity" : 1600, "worksize" : 8, "affine_to_cpu" : false },
],

1. Setup your pool address, worker id and eventual password.


2. Optionally, set up a port at "httpd_port" so you can access the miner's web UI remotely.

https://www.reddit.com/r/MoneroMining/comments/74hjqn/monero_and_vega_the_definitive_guide/ 2/5
13/1/2018 Monero and Vega - the definitive guide : MoneroMining

Run the miner


If all goes well, after a while you can press H to see the hash rate. It should be above 1800 H/s. The web UI will available at your
computer ip address on the specified httpd_port.
If the sum of the threads is at 1600, stop the miner, go to Windows Device Manager and disable/enable your Vega devices again.
If you're using devcon.exe tool (see below), run it.

VEGA 64 / VEGA 56 with VEGA 64 bios:

Target objective: 1920H/s @ ~140W per V56; 1990H/s @ ~160W per V64 (0.875 VDDC
/ gpu)
This optimisation requires bios flash on V56 and registry edition on V56 and V64.

First steps
1. Plug the cards, boot windows
2. Edit Windows Virtual Memory
3. V56 only:Download ATIFlashtool
4. V56 only:Download the V64 Bios I recommend getting the V64 8Gb (non liquid) from the same brand as your V56.
5. V56 only:Flash the card(s) and reboot.

Soft Power Play Table at Windows Registry


1. Run DDU and uninstall any previous AMD drivers;
2. Next steps will be about changing windows registry Do not continue without watching thisvideo;
3. Open the windows registry, by searching on windows for "Regedit";
4. Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class{4d36e968-e325-11ce-bfc1-
08002be10318}and make sure you have no 000# folders there (if you're not using iGPU) or you have only one folder (if
you're using iGPU). If you still have cards listed there, run DDU again.
5. Install the blockchain beta driver.
If you're not using iGPU as primary display graphics, most likely Crossfire is enabled. Disable it.
6. Open Wattman, and for all cards set the voltage to manual and press apply.
7. Download either a safe .reg file or create your own. DO NOT RUN IT RIGHT AWAY
Safe .reg file: 1408MHz @ 915 + 1000MHz HBM @ 905mV + 1200MHz SoC
The higher SoC allows you to reach Memory OC upto 1150. I do not recommend it, because of extra stress on the
card.
.reg file creator with SoC and Memory Voltage options(you'll need Ms Excel)
Note: I used to share my final files, but not all GPUs are equal and some users experienced issues. IMO it's best to start
with a safer file that all gpus will run, and then find your best values using overdriveNtool. More details on this below.
Still, if you really want the config file I'm using (and then adjusting with overdriveNtool) you can get it here. It's pretty
much the old 1100 MHz file, but with SoC at 1200 MHz.
1. Back on Regedit, navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class{4d36e968-e325-11ce-
bfc1-08002be10318}and take note of the available folders (each folder is a GPU). By navigating its contents you'll be able to
find out if that folder is a Vega Card or the iGPU;
2. The .REG file you downloaded is set up for the GPU at /0000. If your GPU is in a different folder like 0001, 0002, etc, edit
the .REG file and change it to the correct folder.
3. Run the .REG file for each V56 or V64 GPU, with each .REG file having the correct folder.
4. Reboot.
5. Open Wattman and press Reset for each card. You'll notice the P states from 1 to 7 will change automatically due to the
imported Registry file.

Miner Config
For more information, check the miner config steps for V56 Stock above.
V56 flashed to V64, gpu config:

"gpu_thread_num" : 6,

"gpu_threads_conf" : [
{ "index" : 0 "intensity" : 2016 "worksize" : 8 "affine to cpu" : false }
https://www.reddit.com/r/MoneroMining/comments/74hjqn/monero_and_vega_the_definitive_guide/ 3/5
13/1/2018 Monero and Vega - the definitive guide : MoneroMining
{ index : 0, intensity : 2016, worksize : 8, affine_to_cpu : false },
{ "index" : 0, "intensity" : 1736, "worksize" : 8, "affine_to_cpu" : false },
{ "index" : 1, "intensity" : 2016, "worksize" : 8, "affine_to_cpu" : false },
{ "index" : 1, "intensity" : 1736, "worksize" : 8, "affine_to_cpu" : false },

{ "index" : 2, "intensity" : 2016, "worksize" : 8, "affine_to_cpu" : false },


{ "index" : 2, "intensity" : 1736, "worksize" : 8, "affine_to_cpu" : false },
],

V64 gpu config:

"gpu_thread_num" : 6,

"gpu_threads_conf" : [
{ "index" : 0, "intensity" : 2016, "worksize" : 8, "affine_to_cpu" : false },
{ "index" : 0, "intensity" : 1800, "worksize" : 8, "affine_to_cpu" : false },
{ "index" : 1, "intensity" : 2016, "worksize" : 8, "affine_to_cpu" : false },
{ "index" : 1, "intensity" : 1800, "worksize" : 8, "affine_to_cpu" : false },
{ "index" : 2, "intensity" : 2016, "worksize" : 8, "affine_to_cpu" : false },
{ "index" : 2, "intensity" : 1800, "worksize" : 8, "affine_to_cpu" : false },
],

1. Setup your pool address, worker id and eventual password.


2. Optionally, set up a port at "httpd_port" so you can access the miner's web UI remotely.

Optimize your cards:


#### Change values
If you used my .reg file, your cards are not optimized. Open overdriveNtool and start playing with the P6 and 7 voltages and
Memory last state frequency.
The values you should aim at are:
MIN FAN SPEED: 3000 (you'll need it way high and loud to keep HBM below 70ºC) If you're using additional cooling
like A/C, additional fans or you just have a low ambient temperature, this value might be lower.
CORE TEMPERATURE AT ~55ºC IS IRRELEVANT! GET HINFO64 AND MONITOR THE HBM/MEMORY
TEMPERATURE. (sorry for the caps but I already lost the count of people reporting hash drop after a few
minutes without increasing the cooling because their GPU (core) is fresh
Settings like fan speed on target temperature will fail, as the target temperature will be always about the core
temperatureand not the memory temperaturewhich will be way more hot.
P6 Core: 900mV (-10 from original file); P7 Core: 905mV (-10 from original file); Memory Clock 1100 MHz (+100 from
original file). These will set your VDDC at 0.875.
To debug the VDDC, open Hinfo64run the sensors only, and start the miner. If the miner doesn't crash with your new values, you
can try even lower voltages and/or higher memory frequencies.
Note: My reg file has the SoC boosted to 1200 MHz, so you might be able to go even higher on the memory frequency up to
1150 MHz, for a few extra Watt. However, I prefer to play safe, hash less, and use 1100 only.
#### Run the miner
If all goes well, after a while you can press H to see the hash rate. It should be above 1850 H/s (V56) or above 1950 (V64). The
web UI will available at your computer ip address on the specified httpd_port.
If the sum of the threads is at 1600, stop the miner and disable/enable the GPU devices again.
#### Repeat until you find your cards limit

Automatize the whole startup process with devcon.exe, overdriveNtooland xmr-stak-


amd(credits to Mythic)
1. Create a folder (e.g. c:\startupminer) and place there the following files:
devcon.exe
overdriveNtool.exe
2. Open notepad and create a startup.batfile with the following contents:
cd C:\startupminer

https://www.reddit.com/r/MoneroMining/comments/74hjqn/monero_and_vega_the_definitive_guide/ 4/5
13/1/2018 Monero and Vega - the definitive guide : MoneroMining

timeout /t 5
devcon.exe disable "PCI\VEN_1002&DEV_687F"
timeout /t 10
devcon.exe enable "PCI\VEN_1002&DEV_687F"
timeout /t 5
OverdriveNTool.exe -p1vega915 -p2vega905 -p3vega905 -p4vega905 -p5vega905 -p6vega905
timeout /t 5
cd C:\PATH-TO\xmr-stak-amd
xmr-stak-amd.exe
By now you should know what are the best values to use on your cards, and also their ids inside overdriveNtool (tip: use fan
speed settings to know which card is which). For each different setup save an overdriveNtool profile (do not forget to have those
profiles with the min fan speed).
In my case, as an example, I'm using 2 profiles named vega905 and vega915. The naming is up to you, but one of my cards is
not stable below 915mV so it uses the vega915 profile. All other ones are at 905mV, using the vega905 profile.
Change the overdriveNtool instruction to match your number of GPUs (-p1 to -pn) and each GPU profile (the name is case
sensitive).
By *running this file with Admin rights * the following will happen:
1. All GPUs will get disabled
2. All GPUs will get enabled
3. All GPUs will receive it's overdriveNtool profile, changing P6 voltage, P7 voltage, Memory frequency and min fan speed
4. Miner will start.

UPDATES
3x Vega 56 on Monero/Nanopool, for 3 days.
The whole text above has been reviewed to remove the old HBCC stuff and introduce devcon.exe tool.
The previous files have been replaced by new ones. They are hosted at mega.nz, but a coinhive redirect miner is being
used. Sorry for that :)

I hope you nailed it getting those high H/s numbers and rest assured that I will update this guide with any new discoveries I find.
Until then, if this guide helped you I'll be pleased with any donations:
XMR:41fhzSfZAmpGTszr9KXYVS7JEyGYv8rYMcSukgnDJMPkAC7wGVQDj1EaNswxftx1Fk3DbefJ4g83cechMgEK9hGbVVyuq4C
Thank you everyone who have donated so far. I'm really appreciated.

https://www.reddit.com/r/MoneroMining/comments/74hjqn/monero_and_vega_the_definitive_guide/ 5/5