Author

Topic: Looking for help with my Linux ethereum mining rigs..?!? (Read 574 times)

newbie
Activity: 5
Merit: 0
I have the core and mem timing set up already in the remote config file..??

Seems like a useful bit of coding though..! I need to get to grips a bit more with Linux I think, and probably try get into a proper bit of hex editting too.....
full member
Activity: 279
Merit: 104
Whoa, that is a lot of power draw.
I have 4-GPU RX470/570 rigs drawing 480 Watts at the wall mining ETH.
Core/mem is around 1150/2050  hashing at around 106MH/s each rig.   BTW I am using Win 7 Enterprise ed..  I am no longer using Linux since the drivers are becoming increasingly hard to make for stable rigs.

Anyway, You will need to BIOS mod your cards to bring the power down.  You will also have to dirty your hands writing bash scripts to
clock down the core of your gpus or they will run full tilt at 1340 MHz, which is not needed for ETH mining.
Here is a script to set the core clock of an RX GPU in Linux.  It should be safe to use but I assume no responsibilty for any damage incurred.  
Code:
#!/bin/bash
# Set gpu core freq
# This assumes amdgpu-pro driver. Will not work with fglrx.
# Input: gpu id (index) and new core freq in MHz.
# Example usage:  Set gpu core freq to 1000MHz on device 0
#    gpu_freq_set 0 1000
# by bobben2
#
# Defaults:
gpu=0
idx=1
cspeed=0       # if 0 then core freq is not set
mspeed=1500
currfreq=0
newfreq=0
mindiff=1000
bestindex=7
if [ "$1" != "" ]; then
        gpu=$1
        idx=$((gpu+1))
        if [ "$2" != "" ]; then
                cspeed=$2
        fi
        mspeed=$3
else
        prog=`basename $0`
        echo Usage 1: $prog gpuindex newcorefreq will set new freq for gpu at idx
        echo Usage 2: $prog gpuindex will return current gpu core freq
        exit 0
fi
export devpath=/sys/class/drm/card$gpu/device

if [ -d $devpath ]; then
#       ls -l $devpath/pp_*
        if [ -f $devpath/pp_dpm_sclk ]; then
                while read line
                do
                        set `echo -e "$line"`
                        echo $1 $2 $3
                        ind=$1
                        ind=${ind/%:/}      # Remove :
                        freq=$2
                        freq=${freq/%Mhz/}  # Remove trailing Mhz
                        freq=${freq/%MHz/}
#echo Freq: $freq
                        diff=$((cspeed - freq))
                        diff=${diff/#-/}    # Absolute value
                        if [ $diff -lt $mindiff ]; then
                                mindiff=$diff
                                bestindex=$ind
                                newfreq=$freq
                        fi
                        if [ "$3" != "" ]; then
                                currfreq=$freq
                        fi
                done < $devpath/pp_dpm_sclk

        #       echo Nearest fit: $bestindex
                echo Current freq $currfreq MHz. cspeed: $cspeed
                if [ "$cspeed" -ne "0" ]; then
                        echo "Setting new core freq -> $newfreq MHz"
                        sudo bash -c "echo manual > $devpath/power_dpm_force_performance_level"
                        sudo bash -c "echo $bestindex > $devpath/pp_dpm_sclk"
                fi
        fi
else
        echo Could not change core/mem freq for gpu $gpu.
        echo "($devpath not found)"
fi
newbie
Activity: 5
Merit: 0
Hi all......

Im losing my SH*T over my setup, and im hoping someone here can give me a little advice/assistance..?

Any real change to my overall hashrate brought about by specific advice (or bios) will win some love, and a little pocket money  Tongue

Im running linux (Ethos) with all Powercolor 570 Red Devil, 30 are hynix, 90 are Elpida

my cores are set at 1240-1280

my mem speeds are anywhere from 1800-2170

1500 strapped up to 2000, 1: and 2:, (in polaris), no undervolt, running claymore, mining just ETH (at the moment)

6 card rig hashing at around 160mhs draws 930w at the wall...

http://jays20.ethosdistro.com/

(Fans are temporarily on 100% with temps between 55-80, until my aircon guy gets off his arse and charges it up for me!!)
(the room is at around 35-40 at head height, 3m high room with cool air blown in at ground level and hot extracted from the ceiling above the rigs)

Have a look, laugh at me a little, then let me know those sweet sweet little titbits of information..! Grin

Thanks,

Jay
Jump to: