Bitcoin Forum
April 20, 2014, 04:26:03 PM *
News: Due to the OpenSSL heartbleed bug, changing your forum password is recommended.
 
   Home   Help Search Donate Login Register  
Pages: [1] 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
  Print  
Author Topic: Consolidated Litecoin Mining Guide for 5xxx, 6xxx, and 7xxx GPUs  (Read 481160 times)
tacotime
Hero Member
*****
Online Online

Activity: 1022



View Profile

Ignore
October 08, 2012, 04:05:54 PM
 #1

I'll try to make it easy, as there's been a million people asking lately how to mine LTC.

DONATE (LTC): LiK1rotC2tNYNRbRfW2xsKLYJvKhQ3PwTN
DONATE (BTC): 17bmYcP6Vio6c1gnyPsaDSv4B11SLe81Ab

What is Litecoin?
Litecoin is a cryptocurrency that uses an alternative, memory hard hashing algorithm called scrypt that was devised by mathematics' prodigy Colin Percival. The algorithm utilizes SHA256 and a stream function called salsa20 to force devices that mine it to either use a lot of memory or use dramatically more ALU cycles to perform a hash.  With the parameters used in Litecoin's implementation of scrypt (N = 1024; p = 1; r = 1), each thread uses approximately 64-128 KB depending on the settings for lookup_gap and thread_concurrency in the mining program when mining with a GPU.  Because GPUs have such fast memory (bandwidth in the hundreds of GB/s) and roughly 128-512 KB of RAM per stream processor, they are ideal for mining Litecoin.  This requirement for fast memory in order to mine quickly results in Litecoin being FPGA and ASIC resistant; although ASICs may one day come out for Litecoin, they are not expected to garner the same performance increases as for Bitcoin (two orders of magnitude more efficient).

Mining Litecoin

The major factor which impacts hash rate/hardware errors is the thread_concurrency.  The second most important factor for some cards is the ratio of core speed to memory speed.  Typically optimum values of thread_concurrency are a multiple of 64 and vary per card and per card family (see below).  The (core speed/memory speed) quotient should be 0.8 or less for 5xxx/6xxx cards and 0.7 or less for most 7xxx cards.  Some evidence suggests that different 7xxx cards may have different ideal core:memory clock ratios, too.

GUIMiner-scrypt is out!  Comes with all settings in this thread and all miners.  No more command line interfaces!  Try it here.

For all series cards,
Install AMD APP SDK: http://developer.amd.com/tools/hc/AMDAPPSDK/downloads/Pages/default.aspx
Install latest AMD drivers: http://support.amd.com/us/gpudownload/Pages/index.aspx
or
Use current recommend AMD driver (12.8):
13.1 32-bit
13.1 64-bit
AVOID 12.10 DRIVERS, THEY SEEM TO BREAK LITECOIN PERFORMANCE. 13.X SEEM TO BE OKAY.

5xxx series cards
Use cgminer.
Command line to run:
Code:
cgminer --scrypt -o http://yourpool.com:port -u username -p password --thread-concurrency ???? -I 18 -g 1 -w 256
You can use pretty much any thread_concurrency between 1536 and 8192 that is a multiple of 64. Some people recommend using 4 or 5 * the number of SPs.  You can find those in the table here: http://en.wikipedia.org/wiki/Evergreen_(GPU_family) (1st number in core config)

Recommended thread concurrencies for
57xx cards: 2368-4096 (3200 is common)
58xx cards: 4096-8192 (5600, 7168, and 8000 are common)
5970 card: 4096-8192 (5632 or 8000 are common)

Typical 5xxx series performance: 0.255 kh/s/shader

6xxx series cards
Use cgminer.
Command line to run:
Code:
cgminer --scrypt -o http://yourpool.com:port -u username -p password --thread-concurrency ???? -I 18 -g 1 -w 256
You can use pretty much any thread_concurrency between 1536 and 8192 that is a multiple of 64.  Some people recommend using 4 or 5 * the number of SPs.  You can find those in the table here: http://en.wikipedia.org/wiki/Northern_Islands_(GPU_family) (1st number in core config)

Recommended thread concurrencies for
67xx cards: 2368-4096 (3200 is common)
68xx cards: 3008-6144 (4800 is common)
69xx cards: 4096-8192 (5600, 7168, and 8000 are common)
6990 card: 4096-8192 (5632 or 8000 are common)

Typical 6xxx series performance: 0.313 kh/s/shader

7xxx series cards
Use reaper or cgminer versions 2.11.3 and up (see update below).  Set thread_concurrency to somewhere slightly below 64 * bus_width_of_card_in_bits.  So, for a 7950, that would be 64 * 384 = 24576; ideal values are 21712 or 24000.  Find your bus width here: http://en.wikipedia.org/wiki/Southern_Islands_(GPU_family)

To find the optimum thread_concurrency for your card, you will need to search above and below this estimate ideal value and see what is fastest.

If you'd like to use reaper, follow the steps below.

Make reaper.conf the following:
Code:
kernel reaper.cl
save_binaries yes
enable_graceful_shutdown no
long_polling yes
platform 0
device 0
# device 1
# device 2
# device 3

mine litecoin
device ? must be added for every card you have to avoid using the CPU as well to mine.  Make sure when reaper starts that it states that the CPU platform is disabled.  CPU mining does not work correctly and may actually slow down GPU mining with reaper.

Example configuration (550kh/s, 7950) of litecoin.conf:
Code:
host yourpool.com ### Do not add http://!!
port 8344
user username
pass password

protocol litecoin

worksize 256
vectors 1
aggression 20
threads_per_gpu 1
sharethreads 32
lookup_gap 2
gpu_thread_concurrency 21712
Save litecoin.conf and run reaper.exe.

The 7xxx series can be tricky, for instance the 7770 seems to have an optimum thread concurrency of 8000 and works fine with cgminer and an intensity of 16 (I get 191kh/s with those settings).  The 79xx cards should be amenable to the configuration above and are the fastest possible cards you can mine with.

Optimal thread concurrencies for 7xxx family:
7770: 8000 (200 kh/s, aggression 19)
7850: ????
7870: 15360 (400 kh/s, aggression 19)
7950: 21712 or 24000 (~575 kh/s)
7970 (cgminer): 22392 (~700 kh/s can be obtained with a core/memory ratio of 0.57)
7970 (reaper): 20992, 21712, or 24000 (~
7750: ????
7770: 8000 (200 kh/s, aggression 19)
7850: ????
7870: 15360 (400 kh/s, aggression 19)
7950: 21712 or 24000 (~575 kh/s)
7970 (cgminer): 22392 (~700 kh/s can be obtained with a core/memory ratio of 0.57) or 8192 (-g 2 -w 256 -I 13)
7970 (reaper): 20992, 21712, or 24000 (~650 kh/s can be obtained with reaper and core/memory ratio of 0.57, e.g. 900 MHz core and 1580 MHz memory.  Over 725 KH/s can be achieved with memory overvolting.)

Typical 7xxx series performance: 0.321 kh/s/shader

If reaper crashes periodically on a single card, use the following python script to keep it alive (starts reaper, runs for two hours, shuts it down, then restarts it):
Code:
import os, subprocess, time

while True:
      print("Starting reaper...")
      p = subprocess.Popen("C:\\Users\\my-pc\\Desktop\\reaper\\reaper.exe")
      time.sleep(7200)
      print("Terminating reaper...")
      p.terminate()
      time.sleep(10)
This seems to fix the problem for my 3x 7950 rig.

Update: 3-20-13
cgminer versions 2.11.3 and up can be used to mine with high thread concurrencies now.  Follow these instructions:
WINDOWS: Open console and type
Code:
setx GPU_MAX_ALLOC_PERCENT 100
Now, close the console (it will not work if you open cgminer in the same window).  Open cgminer using a .bat or a new console, high thread concurrencies will now work.

LINUX: Open terminal and type
Code:
export GPU_MAX_ALLOC_PERCENT=100
Now high thread concurrencies should work in cgminer.

TABLE OF USER REPORTED HASH RATES AND SETTINGS
https://github.com/litecoin-project/litecoin/wiki/Mining-hardware-comparison

CARD MEMORY SPEED SETTINGS
Usually it is most effective to have the memory speed of the card equal to or greater than the core clock speed.  For some cards this is more important than others, but this is generally true.  From experimental data for a 7770, a (core speed)/(memory speed) ratio of 0.7 or less is recommended.

HETEROGENEOUS MIXTURES OF CARDS
CGMINER: Use a comma to separate thread-concurrency values, eg. --thread-concurrency 3200,8000.  Values correspond to the card number in zeroeth order.
REAPER: Run multiple instances of reaper.  To do this, clone the folder and then add "device x" to reaper.conf, where x is the number for the card in zeroeth order.

RAM REQUIREMENTS ON-MOTHERBOARD
The equivalent amount of system RAM as for the sum of all the vRAM used by the GPUs is required when mining with reaper.  For instance, 3x 5970s mining with thread_concurrency values of 8000 each would require 3x 500MB = 1500MB system ram (plus additional RAM for the OS).  The memory requirements for 7xxx cards are also higher because of larger thread_concurrency values, for instance a thread_concurrency of 24000 means 1.5GB system RAM per card is required.

THREADS PER GPU
Some people state that increased hash rates are experienced upon increasing the number of threads per GPU in 5xxx series cards (-g # in cgminer or threads_per_gpu # in reaper).  That has not been my experience with 6xxx or 7xxx cards, but you can try it and see if it helps out your hash rate.

STRATUM LTC MINING
Supported by some pools (ltcmine.ru, notroll.in, coinotron.com) in order to reduce the number of stales.  Typical results moving from JSON getwork to stratum is a reduction in stales from 1.5% to 0.5%.  If you use reaper, you need to use a fork which is available here and a stratum proxy.  Stratum mining works with cgminer for versions 2.10.3 and up using the "-o stratum+tcp://yourpool.com:port" command.

Run proxy program with this command for reaper:
Code:
mining_proxy.exe -pa scrypt --host yourpool.com --port ####
Then run reaper with the following host:
Code:
127.0.0.1:8332
and your normal user/password for the pool.

SOLO MINING
For large hash rates.  Go here: https://bitcointalk.org/index.php?topic=83371.0
The guide works the same for unix as well more or less.

POOL MINING
Go here and pick one: https://github.com/litecoin-project/litecoin/wiki/Comparison-of-mining-pools

1398011163
Hero Member
*
Offline Offline

Posts: 1398011163

View Profile Personal Message (Offline)

Ignore
1398011163
Reply with quote  #2

1398011163
Report to moderator
Buy a Blade, Get a 5-Chip Free!
Start Mining with GAWMiners.com
24/7 Live Phone & Tech Support
Free Hosting & Electricity for 1 Year!

Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1398011163
Hero Member
*
Offline Offline

Posts: 1398011163

View Profile Personal Message (Offline)

Ignore
1398011163
Reply with quote  #2

1398011163
Report to moderator
1398011163
Hero Member
*
Offline Offline

Posts: 1398011163

View Profile Personal Message (Offline)

Ignore
1398011163
Reply with quote  #2

1398011163
Report to moderator
1398011163
Hero Member
*
Offline Offline

Posts: 1398011163

View Profile Personal Message (Offline)

Ignore
1398011163
Reply with quote  #2

1398011163
Report to moderator
purelithium
Hero Member
*****
Offline Offline

Activity: 490



View Profile

Ignore
October 08, 2012, 04:58:50 PM
 #2

Why cgminer for 5xxx and 6xxx GPUs? Why not reaper as well?

SHA-256 11 Gh/s | scrypt 2.5 Mh/s
Like my post? 1H7bfRYh7F89mfmFgsRCdn4awDaUHQmYqY
tacotime
Hero Member
*****
Online Online

Activity: 1022



View Profile

Ignore
October 08, 2012, 05:05:07 PM
 #3

Why cgminer for 5xxx and 6xxx GPUs? Why not reaper as well?

You can use reaper if you want, but it's less stable in my experience than cgminer with no advantage is hash rate (the algorithms are almost exactly the same, check the code yourself).  For instance, reaper seems to always kill the buffer on one of my 7950 cards for no reason after about 24 hours whereas cgminer has been mining LTC for a couple weeks on my 7770 without error.

In order to use more than 512MB of memory, as required for 7xxx cards with high thread_concurrencies, you need a program that doesn't check for errors like reaper.  ckolivas has stated that he will not change this in cgminer because it will probably make cgminer unstable.

purelithium
Hero Member
*****
Offline Offline

Activity: 490



View Profile

Ignore
October 08, 2012, 05:56:57 PM
 #4

OK thanks for the informative reply!

SHA-256 11 Gh/s | scrypt 2.5 Mh/s
Like my post? 1H7bfRYh7F89mfmFgsRCdn4awDaUHQmYqY
meebs
Sr. Member
****
Offline Offline

Activity: 336


View Profile

Ignore
October 08, 2012, 10:32:02 PM
 #5

LTC mining IS VERY RAM INTENSIVE. on BOTH the GPU and systemwide.

I am using 2x7950s and reaper alone is using 2.8gb while each card has 1350mb used.

Please keep this in mind before making the switch.

This is my config... i'm getting 620/khash per 7950 (1020/1575 overclock, runs at 77C on a gigabyte 3 fan card)

worksize 256
vectors 1
aggression 20
threads_per_gpu 1
sharethreads 28
lookup_gap 2
gpu_thread_concurrency 21712

plus it only uses 1350mb/card vs 1500mb/card to boot.


If you enjoyed the advice I gave, feel free to toss over some loose change Smiley
1P67xUSyCchQSwngptRVBKso4mMEZMGALZ
Jack1Rip1BurnIt
Sr. Member
****
Offline Offline

Activity: 350


Trust me, these default swaps will limit the risks


View Profile

Ignore
October 09, 2012, 03:39:55 AM
 #6

This is a great thread! I was so afraid I would have to spend days trying to find the perfect settings for my 7950s. Thank you for the ease of mind. Grin

Successful trades with bels, misterbigg, ChrisNelson, shackleford, geniusboy91, and Isokivi.
420
Hero Member
*****
Offline Offline

Activity: 616



View Profile

Ignore
October 09, 2012, 07:23:39 AM
 #7

I'm having so many errors i don't know where to begin...

I only have 2GB ram is that a major problem? (with 3x5970's)

also, do i need to install SDK on top of latest Radeon drivers, I will clear all my drivers now, not sure what i used for bitcoin mining probably 12.6/SDK 2.4 or something

Donations: 13qvP8vSEKPxLHXNPeHtCE4TGgZFaZU6am - LTC: LUN2zTCEVScDJxccZQujB9Aph8EFjn5M6q
CoinLenders cost me $5,000 - Know where your BTC are!
Liquid
Hero Member
*****
Offline Offline

Activity: 574


Bitcoin - The Future Is Now


View Profile

Ignore
October 09, 2012, 11:07:25 AM
 #8

bro get some more ram its cheap as chips  Wink

Lifetime Member of the Bitcoin Foundation | Member of the Bitcoin Association of Australia  | Member of the Litecoin Association
Founder of Litecoin Australia
Founder of Digital Bitcoin
fabrizziop
Hero Member
*****
Offline Offline

Activity: 557


Mining LTC @ 4.5 MH/s (I'm NOT lending)


View Profile

Ignore
October 09, 2012, 11:44:34 AM
 #9

Can anyone do a test for me?, mining litecoins on a 5830 at stock speeds?. I need to know if it's worth it (kh/s) before I download a ton of drivers and disrupt my bitcoin mining.

Thanks in advance  Kiss

fabrizziop @ overclock.net, Reddit, THV, steam, #bitcoin-otc, TF2WH forum
BTC:1CgmAeaAq5X4kX17sH6kK4ZTJ3yqz9XFAo LTC:LR8M2umTw8yzSCQeNvQ1tXpwRhZgLHGCzQ XPM:AL6eTq3E4gRGruDtPKnuWrTu8BfceXXBYQ
NMC:MwhCNjThygv6Aw46C9YhtgJiKWCFniiYd8 Bitmessage:BM-2D7ardTxmgMsewNGxQuMd3p8448hjjGb7r
tacotime
Hero Member
*****
Online Online

Activity: 1022



View Profile

Ignore
October 09, 2012, 02:44:17 PM
 #10

I'm having so many errors i don't know where to begin...

I only have 2GB ram is that a major problem? (with 3x5970's)

also, do i need to install SDK on top of latest Radeon drivers, I will clear all my drivers now, not sure what i used for bitcoin mining probably 12.6/SDK 2.4 or something

Yes, it can be. With thread_concurrency = 8000 or so you may run out of ram.

you need the latest app sdk, yes.  driver is less crucial, but should be 12.6+

tacotime
Hero Member
*****
Online Online

Activity: 1022



View Profile

Ignore
October 09, 2012, 02:45:08 PM
 #11

Can anyone do a test for me?, mining litecoins on a 5830 at stock speeds?. I need to know if it's worth it (kh/s) before I download a ton of drivers and disrupt my bitcoin mining.

Thanks in advance  Kiss

You will get about 280kh/s stock.

ajareselde
Sr. Member
****
Online Online

Activity: 281


View Profile

Ignore
October 09, 2012, 03:25:12 PM
 #12

kinda funny, coz im getting 250 with 950/1000 on my 5830.

and as far sa i can see it has a much bigger load on card than bitcoin had.

cheers
420
Hero Member
*****
Offline Offline

Activity: 616



View Profile

Ignore
October 09, 2012, 03:46:14 PM
 #13

I'm having so many errors i don't know where to begin...

I only have 2GB ram is that a major problem? (with 3x5970's)

also, do i need to install SDK on top of latest Radeon drivers, I will clear all my drivers now, not sure what i used for bitcoin mining probably 12.6/SDK 2.4 or something

Yes, it can be. With thread_concurrency = 8000 or so you may run out of ram.

i was trying 5600. For some reason it tried to clock one of my cores at 822 as GPU-Z stated, even though i restarted between my bitcoin mining

and it just crashed right away I didn't even have time to look at ram usage...maybe I have some other problem?

either way bitcoin mining goes fine using cgminer overclock settings

Donations: 13qvP8vSEKPxLHXNPeHtCE4TGgZFaZU6am - LTC: LUN2zTCEVScDJxccZQujB9Aph8EFjn5M6q
CoinLenders cost me $5,000 - Know where your BTC are!
tacotime
Hero Member
*****
Online Online

Activity: 1022



View Profile

Ignore
October 09, 2012, 05:34:13 PM
 #14

the instantaneous crash of the driver is usually due to aggression being too high, try lowering the intensity to 10 and stepping it up incrementally.

try 3584, 4096, 4608, 5760, 6144, and 7168 for thread_concurrency

if the thread_concurrency too low you'll get hardware invalids (HW), so you have to test and see for yourself.  failing these values, try reaper.  a problem with cgminer is that it won't allow you to use more than 1/4 of the memory on the card for a pad buffer.  if you have 1gb in your 5830, it may not let you use more than 4096 (or sometimes 8192) as a thread_concurrency.  reaper doesn't care what thread_concurrency you use because it doesn't bother to clear it with opencl, it just executes the memory allocation.

tacotime
Hero Member
*****
Online Online

Activity: 1022



View Profile

Ignore
October 09, 2012, 05:41:32 PM
 #15

kinda funny, coz im getting 250 with 950/1000 on my 5830.

and as far sa i can see it has a much bigger load on card than bitcoin had.

cheers

increase thread_concurrency and intensity, try 7168 or 8000 and intensities from 13-20

420
Hero Member
*****
Offline Offline

Activity: 616



View Profile

Ignore
October 09, 2012, 05:48:51 PM
 #16

the instantaneous crash of the driver is usually due to aggression being too high, try lowering the intensity to 10 and stepping it up incrementally.

try 3584, 4096, 4608, 6144, and 7168 for thread_concurrency

if the thread_concurrency too low you'll get hardware invalids (HW), so you have to test and see for yourself.  failing these values, try reaper.  a problem with cgminer is that it won't allow you to use more than 1/4 of the memory on the card for a pad buffer.  if you have 1gb in your 5830, it probably won't let you use more than 4096 as a thread_concurrency.  reaper doesn't care what thread_concurrency you use because it doesn't bother to clear it with opencl, it just executes the memory allocation.

I lowered intensity to 10 and it did exactly the same thing, I'm using 5970's

oh well, was a nice thought as litecoin is slightly more profitable to mine but I'd rather sell my rig and get the cash:
https://bitcointalk.org/index.php?topic=115621

Donations: 13qvP8vSEKPxLHXNPeHtCE4TGgZFaZU6am - LTC: LUN2zTCEVScDJxccZQujB9Aph8EFjn5M6q
CoinLenders cost me $5,000 - Know where your BTC are!
tacotime
Hero Member
*****
Online Online

Activity: 1022



View Profile

Ignore
October 09, 2012, 05:49:41 PM
 #17

yeah, you probably need more ram.  properly configured 5970s get ~700-800kh/s (but it also heats the VRMs/memory hotter than BTC and will probably be harder on the cards).

vitruvio
Sr. Member
****
Offline Offline

Activity: 441



View Profile

Ignore
October 09, 2012, 06:42:40 PM
 #18

I got 5 Kh/s in my 6770 and PC almost hanged, for mine the best setup is :

Code:
cgminer --scrypt --shaders 800 --intensity 15 -I 18 -g 1 -w256
-I 15 for Desktop


Regards
powersync
Member
**
Offline Offline

Activity: 74


View Profile

Ignore
October 09, 2012, 09:23:21 PM
 #19

Anyone have better CGminer setting then this for 2 6950's?  I'm pulling 454 Kh/s on each card.  I think I should be able to get 500 out of them.

./cgminer --scrypt -w 256 -g 1 --thread-concurrency 7104 --intensity 19 --auto-fan --auto-gpu --gpu-engine 700-935,700-935, --gpu-memclock 1300,1300 --gpu-vddc 1.10,1.10 -o litecoinpool.org:9332 -u username -p password

Thanks for the help

Powersync
vitruvio
Sr. Member
****
Offline Offline

Activity: 441



View Profile

Ignore
October 09, 2012, 09:28:00 PM
 #20

Anyone have better CGminer setting then this for 2 6950's?  I'm pulling 454 Kh/s on each card.  I think I should be able to get 500 out of them.

./cgminer --scrypt -w 256 -g 1 --thread-concurrency 7104 --intensity 19 --auto-fan --auto-gpu --gpu-engine 700-935,700-935, --gpu-memclock 1300,1300 --gpu-vddc 1.10,1.10 -o litecoinpool.org:9332 -u username -p password

Thanks for the help

Powersync

Have you tried --shaders 1408,1408 instead of  --thread-concurrency 7104?

Regards
Pages: [1] 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!