Post
Topic
Board Mining (Altcoins)
Re: AMD Mem Tweak - Read/modify mem timings on the fly - [Vega Friendly] [Win/Linux]
by
scryptr
on 19/04/2019, 05:12:03 UTC
A QUICK TWEAK--

After running TRM for more than 5 hours with the AMDmemtweak values described in the quotes below, I made an on-the-fly clock change to my Vega/ethOS box.   I issued the following command at the command line:

      "$ sudo ethos-smi -c 1407 -m 1100"

This set my core clock to 1407 and my memory clock to 1100.  The system had been running at 1507/945 for the initial run.  A "stats" command showed a drop of about 20 watts per card to ~250W each.  The suprising result was that the hash rate increased about 300H/s per card.  See below:

    

Formerly, the cards had been running at about 2.08kh/s.  The "avg" and "pool" values are low because they were calculated based on the initial ~5 hours of the run.  Overall, not bad for an initial run!

A big Thank You! to Eliovp, pbfarmer, and the TRM coders Todd and Kerney, and to hammuh. whose clock settings I used.

AMDMEMTWEAK AND TEAMREDMINER V4.4 SUCCESS--

After reading this thread at least once a day since it opened, I finally set up AMDmemtweak on my Vega/ethOS box.  It was not a difficlult set up.  I simply followed these steps:

    1) Clone AMDmemtweak from git (https://github.com/eliovp).  Just follow the instructions on the README.md page.
    2) Compile the amdmemtweak.cpp file with g++.  Watch out for typos.  The instructions are in the README.md.
    3) Copy the executable binary to "/opt/ethos/bin".  This directory is in the system path and contains tools such as "OhGodADecode" and "ATIflash".    

You should now be able to run AMDmemtweak as a system utility.  After installing AMDmemtweak, I upgraded TeamRedMiner to version 4.4, setup a configuration using the new "15*15" mode, and launched TRM.

TRM boots and informs the miner when it is at full load.  When the miner is at full load, it is ready to receive a command from AMDmemtweak.  I ran the following command at the command prompt, utilizing pbfarmer's short string given in his attatched post below:

    "$ sudo amdmemtweak --RAS 32 --RCDRD 12 --RCDWR 5 --RC 44 --RP 12 --REF 15600"

The result was an immediate ~0.2kh/s increase in each of my Vega64 cards' CNr hash rate.  At about 2.08kh/s each, they are finally over the 2.0kh/s goal.  I will worry about additional tweaks later, and post a detailed tutorial in my Notebook.       --scryptr


To maybe make things simpler - you definitely don't need to set timings under load w/ vegas on linux.  Locking your mem to p3 or whatever your top state will be, w/ something like

Code:
$ echo "3" |sudo tee /sys/class/drm/card[N]/device/pp_dpm_mclk

will be enough (replace [N] w/ your GPU number).  Honestly, i'm not even sure if this is necessary, but i was already doing it for other reasons.