Bitcoin Forum

Other => Beginners & Help => Topic started by: homeminer on July 25, 2011, 04:06:50 AM



Title: AMD/ATI Overclocking on Linux (Ubuntu)?
Post by: homeminer on July 25, 2011, 04:06:50 AM
Wanted to see if folks have tips on how to overclock AMD cards on Linux.  I'm using aticonfig and it doesn't let me push my card as far as I see it is being pushed in the hardware list.    I've found rovclock, but it is OLD and I'm concerned it is too old for my system.  Any better options available?

Thanks!


Title: Re: AMD/ATI Overclocking on Linux (Ubuntu)?
Post by: gmannn on July 25, 2011, 04:22:39 AM
I had to flash my 5830s bios' in windows to overcome the AMDOverdriveCtrl limits.


Title: Re: AMD/ATI Overclocking on Linux (Ubuntu)?
Post by: boss cat on July 25, 2011, 08:56:23 AM
yep, i had to flash my 5870's to overclock more
be sure to back up the bios before you flash or config them


Title: Re: AMD/ATI Overclocking on Linux (Ubuntu)?
Post by: ovidiusoft on July 25, 2011, 09:31:31 AM
Well, I hope I don't get banned for this, since this is my 2nd post :). I wrote a blog post 2 weeks ago about it, you can read it at:

http://blog.mybox.ro/2011/07/14/overclocking-the-radeon-hd-5830-for-fun-and-profit/

In a nutshell, you will download the BIOS from your card, edit it with a BIOS editor and burn it back to the card. It's fairly easy and the only risk that I see is having a power cut while flashing (use a UPS). I was able to push my card to 1060 Mhz (the factory default was 800 and the hardcoded limit 900). Works very stable at 1040 for more than 3 weeks.

Hope it helps!


Title: Re: AMD/ATI Overclocking on Linux (Ubuntu)?
Post by: Bert on July 25, 2011, 01:28:18 PM
I downloaded the latest ati driver (ati-driver-installer-11-6-x86.x86_64.run) and was able to use aticonfig to overclock beyond 900 MHz.

DISPLAY=:0 aticonfig --od-enable --adapter=all
DISPLAY=:0 aticonfig --od-setclocks=1000,347 --adapter=all

aticonfig still claims that the limit is 400-900MHz, but it does allow me to overclock further. The clocks on my 5870's cards are currently 1000/347.

Before that I was using AMDOverdriveCtrl with a config file to over/underclock outside of AMD/ATI recommended limits.
DISPLAY=:0 AMDOverdriveCtrl -i 0 -b mining.ovdr
DISPLAY=:0 AMDOverdriveCtrl -i 3 -b mining.ovdr
DISPLAY=:0 AMDOverdriveCtrl -i 6 -b mining.ovdr


Title: Re: AMD/ATI Overclocking on Linux (Ubuntu)?
Post by: homeminer on July 26, 2011, 12:53:41 AM
Thanks all who responded.  The hardware flashing solutions I would like to avoid, so I'll start with the software based ones.

Bert - are you running in Ubuntu?  I had previously installed that package and even after re-installing, it remain unable to go beyond the 960MHz GPU clock and cannot lower Memory clock below 1200MHz.   Reason I ask for Ubuntu  is that on Ubuntu, I need to build a custom package for the distribution.  Did you use the default driver for X.org?  Would be interesting to know if this makes a difference.

I'll investigate AMDOverdriveCtrl.

Thanks!


Title: Re: AMD/ATI Overclocking on Linux (Ubuntu)?
Post by: Bert on July 26, 2011, 01:24:46 AM
Ubuntu 11.04, using an install guide that I found there, sorry but I can't find the exact forum post.
Maybe it is a hardware issue, I'm using Sapphire 5870 with 1GB of VRAM.

EDIT: I followed most of this guide - http://forum.bitcoin.org/index.php?topic=9239.0
Substituting
Code:
wget http://www2.ati.com/drivers/linux/ati-driver-installer-11-5-x86.x86_64.run
sudo sh ati-driver-installer-11-5-x86.x86_64.run --buildpkg Ubuntu/natty
sudo dpkg -i *.deb
sudo apt-get -f install
sudo aticonfig -f --initial --adapter=all
With
Code:
wget http://www2.ati.com/drivers/linux/ati-driver-installer-11-6-x86.x86_64.run
sudo sh ati-driver-installer-11-6-x86.x86_64.run --buildpkg Ubuntu/natty
sudo dpkg -i *.deb
sudo apt-get -f install
sudo aticonfig -f --initial --adapter=all
And I stopped following it when I hit "Setup Headless Bitcoin Mining"


Title: Re: AMD/ATI Overclocking on Linux (Ubuntu)?
Post by: Dargo on July 26, 2011, 02:38:39 AM
Here is a page with most of the commands you will need. The "Display=..." bit isn't needed except to get or set fan speeds.

https://github.com/secmff/Diskless-miner/wiki/Overclocking


Title: Re: AMD/ATI Overclocking on Linux (Ubuntu)?
Post by: blinklightbox on July 26, 2011, 02:58:26 AM
Extract, modify, and then flash BIOS within Windows for Linux

RBE

http://www.techpowerup.com/rbe/

Winflash

http://www.techpowerup.com/downloads/1967/ATI%20Winflash%202.0.1.14.html


Title: Re: AMD/ATI Overclocking on Linux (Ubuntu)?
Post by: homeminer on July 26, 2011, 03:47:03 AM
Thanks Bert. Reinstalling the graphics driver and following the specific steps you highlighted work the trick. Now I can overclock beyond limits shown by aticonfig --od-getclocks.

I'm using a 6770.

Thanks!!!


Title: Re: AMD/ATI Overclocking on Linux (Ubuntu)?
Post by: Bert on July 26, 2011, 03:25:56 PM
If you are really grateful, when you are up and mining throw a Bitcent on to dukejer @ 19oQLN2v1auiGqBDFfxSDUfu8Ax6ooT6xs . He wrote and shared the Ubuntu 11.04 Natty 64bit install guide, it was his info that helped you.


Title: Re: AMD/ATI Overclocking on Linux (Ubuntu)?
Post by: blinklightbox on July 26, 2011, 03:27:58 PM
What is your avg. MHash rate on the 6770?


Title: Re: AMD/ATI Overclocking on Linux (Ubuntu)?
Post by: homeminer on July 27, 2011, 02:59:05 AM
I most certainly will send a quick thank you.  I'm still trying to get the kinks worked out of the system, but things are looking up. 

For the 6770, I'm getting 226MHash/sec reliably at 1010MHz GPU Core and 300MHz memory.  System is stable at 64C with no changes to default fan.   Screen responsiveness is poor (GPU is at 99%, so go figure).   My enclosure has good air flow.  I cannot (yet) get the 230MHash/sec listed on the bitcoin.it page for the card (likely due to my monitors that are powered from the same card).   

HTH


Title: Re: AMD/ATI Overclocking on Linux (Ubuntu)?
Post by: Yeti on July 27, 2011, 07:43:08 AM
Why not use AMDOverdriveCtrl (http://sourceforge.net/projects/amdovdrvctrl/)? It works like a charm for me and does not require any BIOS flashing or other hardware mod.

If you want to thank me for this tip, join the pyramid (see signature). ;)

http://i55.tinypic.com/1zykf9x.png (http://sourceforge.net/projects/amdovdrvctrl/)


Title: Re: AMD/ATI Overclocking on Linux (Ubuntu)?
Post by: kano on July 27, 2011, 08:51:38 AM
I've been playing with AMDOverdriveCtrl (1.2.1) today with a 6950
(just got a second 6950 now ... still cant' get xubuntu to see it - though I haven't connected xfire)

Anyway, it seems to have some rules about GPU vs Mem clock speeds.
My (default) for GPU is 870, Mem is 1250
At GPU 870 it would only go down to 745 on the Memory (saving 30W) and Mh/s from about 335 down to about 325

(and I tried a lower - GPU=600 allows Mem down to 475)

Is that new in 1.2.1? Or is that a card thing?


Title: Re: AMD/ATI Overclocking on Linux (Ubuntu)?
Post by: ovidiusoft on August 03, 2011, 06:06:12 AM
@yeti, amdoverdrivectl will NOT go over a certain hardcoded limit in some cards. My example: Sapphire 5830 Xtreme. The high level profile was set to 800 Mhz for the GPU, but there was a overdrive limit of 900. I could NOT set the GPU frequency over 900 with either amdoverdrivectl or aticontrol. I had to edit the BIOS to increase the limit to 1100 Mhz, so I could run the card's GPU at 1040 Mhz.


Title: Re: AMD/ATI Overclocking on Linux (Ubuntu)?
Post by: UrbanAdventurer on August 03, 2011, 06:11:16 AM
Thanks for the BIOS flash guide.


Title: Re: AMD/ATI Overclocking on Linux (Ubuntu)?
Post by: BitcoinPappi on August 16, 2011, 11:53:07 PM
This works like a charm, thanks, no need for flashing

Ubuntu 11.04, using an install guide that I found there, sorry but I can't find the exact forum post.
Maybe it is a hardware issue, I'm using Sapphire 5870 with 1GB of VRAM.

EDIT: I followed most of this guide - http://forum.bitcoin.org/index.php?topic=9239.0
Substituting
Code:
wget http://www2.ati.com/drivers/linux/ati-driver-installer-11-5-x86.x86_64.run
sudo sh ati-driver-installer-11-5-x86.x86_64.run --buildpkg Ubuntu/natty
sudo dpkg -i *.deb
sudo apt-get -f install
sudo aticonfig -f --initial --adapter=all
With
Code:
wget http://www2.ati.com/drivers/linux/ati-driver-installer-11-6-x86.x86_64.run
sudo sh ati-driver-installer-11-6-x86.x86_64.run --buildpkg Ubuntu/natty
sudo dpkg -i *.deb
sudo apt-get -f install
sudo aticonfig -f --initial --adapter=all
And I stopped following it when I hit "Setup Headless Bitcoin Mining"