Welcome, Guest. Please login or register.
Did you miss your activation email?
April 16, 2014, 02:57:16 pm

Author Topic: Overclocking and Tuning your GPU with CGMINER  (Read 20502 times)

0 Members and 1 Guest are viewing this topic.

Offline SolidSnke

  • Administrator
  • Sr. Bonker
  • *****
  • Posts: 285
  • Karma: +5/-0
  • 1st FTC Found @ FCPool.com - 344,164
    • View Profile
    • SolidSnke.com '..helping you G33K better since 1998..'
Overclocking and Tuning your GPU with CGMINER
« on: April 26, 2013, 08:11:33 am »
Overclocking for scrypt mining:
First of all, do not underclock your memory initially. Scrypt mining requires
memory speed and on most, but not all, GPUs, lowering memory speed lowers
mining performance.

Second, absolute engine clock speeds do NOT correlate with hashrate. The ratio
of engine clock speed to memory matters, so if you set your memory to the
default value, and then start overclocking as you are running it, you should
find a sweet spot where the hashrate peaks and then it might actually drop if
you increase the engine clock speed further.

Third, the combination of motherboard, CPU and system ram ALSO makes a
difference, so values that work for a GPU on one system may not work for the
same GPU on a different system. A decent amount of system ram is actually
required for scrypt mining, and 4GB is suggested.

Finally, the power consumption while mining at high engine clocks, very high
memory clocks can be far in excess of what you might imagine.
For example, a 7970 running with the following settings:
--thread-concurrency 22392 --gpu-engine 1135 --gpu-memclock 1890
was using 305W!

TUNING AN AMD RADEON 7970 or really any GPU for that matter
Example tuning a 7970 for Scrypt mining:

On linux run this command:
export GPU_MAX_ALLOC_PERCENT=100

or on windows this:
setx GPU_MAX_ALLOC_PERCENT 100

in the same console/bash/dos prompt/bat file/whatever you want to call it,
before running cgminer.

First, find the highest thread concurrency that you can start it at. They should
all start at 8192 but some will go up to 3 times that. Don't go too high on the
intensity while testing and don't change gpu threads. If you cannot go above
8192, don't fret as you can still get a high hashrate.

Delete any .bin files so you're starting from scratch and see what bins get
generated.

First try without any thread concurrency or even shaders, as cgminer will try to
find an optimal value
cgminer -I 13

If that starts mining, see what bin was generated, it is likely the largest
meaningful TC you can set.
Starting it on mine I get:
scrypt130302Tahitiglg2tc22392w64l8.bin

See tc22392 that's telling you what thread concurrency it was. It should start
without TC parameters, but you never know. So if it doesn't, start with
--thread-concurrency 8192 and add 2048 to it at a time till you find the highest
value it will start successfully at.

Then start overclocking the eyeballs off your memory, as 7970s are exquisitely
sensitive to memory speed and amazingly overclockable but please make sure it
keeps adequately cooled with --auto-fan! Do it while it's running from the GPU
menu. Go up by 25 at a time every 30 seconds or so until your GPU crashes. Then
reboot and start it 25 lower as a rough start. Mine runs stable at 1900 memory
without overvolting. Overvolting is the only thing that can actually damage your
GPU so I wouldn't recommend it at all.

Then once you find the maximum memory clock speed, you need to find the sweet
spot engine clock speed that matches it. It's a fine line where one more MHz
will make the hashrate drop by 20%. It's somewhere in the .57 - 0.6 ratio range.
Start your engine clock speed at half your memory clock speed and then increase
it by 5 at a time. The hashrate should climb a little each rise in engine speed
and then suddenly drop above a certain value. Decrease it by 1 then until you
find it climbs dramatically. If your engine clock speed cannot get that high
without crashing the GPU, you will have to use a lower memclock.

Then, and only then, bother trying to increase intensity further.

My final settings were:
--gpu-engine 1141  --gpu-memclock 1875 -I 20
for a hashrate of 745kH.

Note I did not bother setting a thread concurrency. Once you have the magic
endpoint, look at what tc was chosen by the bin file generated and then hard
code that in next time (eg --thread-concurrency 22392) as slight changes in
thread concurrency will happen every time if you don't specify one, and the tc
to clock ratios are critical!

Good luck, and if this doesn't work for you, well same old magic discussion
applies, I cannot debug every hardware combo out there.

Your numbers will be your numbers depending on your hardware combination and OS,
so don't expect to get exactly the same results!
« Last Edit: April 26, 2013, 08:42:12 am by bigvern »



Offline spincycle

  • Global Moderator
  • Hero Bonker
  • *****
  • Posts: 580
  • Karma: +6/-0
    • View Profile
Re: Overclocking and Tuning your GPU with CGMINER
« Reply #1 on: April 26, 2013, 09:17:50 am »
Thanks Solidsnke,

This is great info, I feel or am such a noob, where do you edit these settings is this something that can be done on thecgminer program of do you need to do these setting changes in the system bios?

Thank you,

Spin
Current Drills
HP DV6000 Notebook Computer 8 KH/s | Dual Quad Core 1U Pizza Box 40-60 KH/s
MK808 Android Mini TV 0-1 KH/s | Whirlpool Miner No. 1 850-1150 KH/s

Future Drill
Bigger, Faster, Stronger.... ??? KH/s

Offline SolidSnke

  • Administrator
  • Sr. Bonker
  • *****
  • Posts: 285
  • Karma: +5/-0
  • 1st FTC Found @ FCPool.com - 344,164
    • View Profile
    • SolidSnke.com '..helping you G33K better since 1998..'
Re: Overclocking and Tuning your GPU with CGMINER
« Reply #2 on: April 26, 2013, 10:37:19 am »
Alot of them are in the batch file you create in windows or the sh file you use in linux. Basic these are your startup features.

Offline spincycle

  • Global Moderator
  • Hero Bonker
  • *****
  • Posts: 580
  • Karma: +6/-0
    • View Profile
Re: Overclocking and Tuning your GPU with CGMINER
« Reply #3 on: April 26, 2013, 10:49:09 am »
Thanks Solidsnke, I'll do some more probing on this to try and figure it out. Glad to know i don't have to mess with the bios to play with these settings.
Current Drills
HP DV6000 Notebook Computer 8 KH/s | Dual Quad Core 1U Pizza Box 40-60 KH/s
MK808 Android Mini TV 0-1 KH/s | Whirlpool Miner No. 1 850-1150 KH/s

Future Drill
Bigger, Faster, Stronger.... ??? KH/s

Offline SolidSnke

  • Administrator
  • Sr. Bonker
  • *****
  • Posts: 285
  • Karma: +5/-0
  • 1st FTC Found @ FCPool.com - 344,164
    • View Profile
    • SolidSnke.com '..helping you G33K better since 1998..'
Re: Overclocking and Tuning your GPU with CGMINER
« Reply #4 on: April 26, 2013, 10:55:05 am »
I tell people to OC your GPUs first and get a feel of what they can do, then start on the batch/sh file to really tweak in the settings.

Then keep a eye on them and make minor adjustments here and there to fully optimize the cards.

Takes a few days if your lucky, a week normally of non-stop running to get them to 95% eff.

Little bit of a chore but worth it in the end I think.

Offline spincycle

  • Global Moderator
  • Hero Bonker
  • *****
  • Posts: 580
  • Karma: +6/-0
    • View Profile
Re: Overclocking and Tuning your GPU with CGMINER
« Reply #5 on: April 26, 2013, 10:59:53 am »
Sounds good. I need to get some new equipment to try all this out. On another note, I do have 2 8800 GTS not being utilized at the moment. I did a test run on them but they were both only turning out about 5kh/s. I could maybe practice on those. I have not used the cudaminer before though. I was using cgminer which I do not think is optimized for nvidia cards. Not sure how it all works yet. Scared of trojans too. I might need to try building cudaminer from source to be safe.
Current Drills
HP DV6000 Notebook Computer 8 KH/s | Dual Quad Core 1U Pizza Box 40-60 KH/s
MK808 Android Mini TV 0-1 KH/s | Whirlpool Miner No. 1 850-1150 KH/s

Future Drill
Bigger, Faster, Stronger.... ??? KH/s

Offline mgoeuy

  • New Bonker
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
    • http://www.womencostume.co.uk/
Re: Overclocking and Tuning your GPU with CGMINER
« Reply #6 on: May 24, 2013, 03:10:46 am »
The hashrate should climb a little each rise in engine speed
and then suddenly drop above a certain value.

Offline spincycle

  • Global Moderator
  • Hero Bonker
  • *****
  • Posts: 580
  • Karma: +6/-0
    • View Profile
Re: Overclocking and Tuning your GPU with CGMINER
« Reply #7 on: June 07, 2013, 02:57:58 am »
The hashrate should climb a little each rise in engine speed
and then suddenly drop above a certain value.

Yes it does, I have found this out through trial and error.

Spin
Current Drills
HP DV6000 Notebook Computer 8 KH/s | Dual Quad Core 1U Pizza Box 40-60 KH/s
MK808 Android Mini TV 0-1 KH/s | Whirlpool Miner No. 1 850-1150 KH/s

Future Drill
Bigger, Faster, Stronger.... ??? KH/s