Bitcoin Forum
June 21, 2024, 08:22:46 AM *
News: Voting for pizza day contest
 
   Home   Help Search Login Register More  
Pages: [1] 2 »  All
  Print  
Author Topic: CGMiner only mines 1 card scrypt, 4 cards otherwise. Why?  (Read 1121 times)
kjib (OP)
Newbie
*
Offline Offline

Activity: 39
Merit: 0



View Profile
June 28, 2013, 02:00:47 PM
 #1

I'm running CGMiner on Ubuntu 12.04 and with SHA-256 all 4 GPUs will be doing stuff. Clearly all 4 cards are seen by CGMiner. BUT, with scrypt mining CGMiner only appears to be doing stuff on 1 card. The other cards will all be showing 0Kh.

With the same set-up and a single card it runs fine and on that machine I have 4G ram, all as expected. On the other machine I have 4 cards so thought that 4x the RAM would do the trick, I have 16G ram so I assume that's not the issue.

The cards are all 7970s.

Here's what the script looks like for starting CGMiner:
Code:
export GPU_MAX_ALLOC_PERCENT=100

cgminer.exe -o stratum+tcp://POOL_URL:POOL_PORT  -u MY_MINER_NAME -p x --scrypt -I 13 --shaders 2048 --thread-concurrency 8192 --lookup-gap 2 -g 4 -w 256 --gpu-engine 1045 --gpu-memclock 1750 --auto-fan


What am I doing wrong Huh
iGotSpots
Legendary
*
Offline Offline

Activity: 2548
Merit: 1054


CPU Web Mining 🕸️ on webmining.io


View Profile WWW
June 28, 2013, 02:02:44 PM
 #2

My suggestion would be to stop trying to run 4 threads per GPU before you get everything stable

Damnsammit
Sr. Member
****
Offline Offline

Activity: 406
Merit: 250



View Profile
June 28, 2013, 02:04:33 PM
 #3

My suggestion would be to stop trying to run 4 threads per GPU before you get everything stable

Right! 

Run everything at default and get them all working first.  Then play with thread concurrency, intensity, and the other stuff.

Walt Sobchak
Full Member
***
Offline Offline

Activity: 210
Merit: 100


God rest Donnie's soul.


View Profile
June 28, 2013, 02:08:19 PM
 #4

My suggestion would be to stop trying to run 4 threads per GPU before you get everything stable

Right! 

Run everything at default and get them all working first.  Then play with thread concurrency, intensity, and the other stuff.



Dude, your picture dude.

Smokey, this is not 'nam, this is bowling. There are rules. Do as the dude would wish, and mine some Lebowskis! https://bitcointalk.org/index.php?topic=260311.0
Damnsammit
Sr. Member
****
Offline Offline

Activity: 406
Merit: 250



View Profile
June 28, 2013, 02:15:11 PM
 #5

Fuck it man.  Let's go bowling.

My suggestion would be to stop trying to run 4 threads per GPU before you get everything stable

Right! 

Run everything at default and get them all working first.  Then play with thread concurrency, intensity, and the other stuff.



Dude, your picture dude.
Walt Sobchak
Full Member
***
Offline Offline

Activity: 210
Merit: 100


God rest Donnie's soul.


View Profile
June 28, 2013, 02:17:28 PM
 #6

Fuck it man.  Let's go bowling.

My suggestion would be to stop trying to run 4 threads per GPU before you get everything stable

Right! 

Run everything at default and get them all working first.  Then play with thread concurrency, intensity, and the other stuff.



Dude, your picture dude.

"I told that fucking kraut down at the league office a thousand times I don't roll on shabbos"

"They already posted it walter"

"WELL THEY CAN FUCKIN' UNPOST IT!!!!!"

Smokey, this is not 'nam, this is bowling. There are rules. Do as the dude would wish, and mine some Lebowskis! https://bitcointalk.org/index.php?topic=260311.0
Damnsammit
Sr. Member
****
Offline Offline

Activity: 406
Merit: 250



View Profile
June 28, 2013, 02:18:52 PM
 #7

Ahhh thread jack. 

What a great movie.
User_513
Member
**
Offline Offline

Activity: 87
Merit: 10


View Profile
June 28, 2013, 02:20:51 PM
 #8

I'm running CGMiner on Ubuntu 12.04 and with SHA-256 all 4 GPUs will be doing stuff. Clearly all 4 cards are seen by CGMiner. BUT, with scrypt mining CGMiner only appears to be doing stuff on 1 card. The other cards will all be showing 0Kh.

With the same set-up and a single card it runs fine and on that machine I have 4G ram, all as expected. On the other machine I have 4 cards so thought that 4x the RAM would do the trick, I have 16G ram so I assume that's not the issue.

The cards are all 7970s.

Here's what the script looks like for starting CGMiner:
Code:
export GPU_MAX_ALLOC_PERCENT=100

cgminer.exe -o stratum+tcp://POOL_URL:POOL_PORT  -u MY_MINER_NAME -p x --scrypt -I 13 --shaders 2048 --thread-concurrency 8192 --lookup-gap 2 -g 4 -w 256 --gpu-engine 1045 --gpu-memclock 1750 --auto-fan


What am I doing wrong Huh

Um, not using the 'search' function for the forum? https://bitcointalk.org/index.php?topic=117221.0
Walt Sobchak
Full Member
***
Offline Offline

Activity: 210
Merit: 100


God rest Donnie's soul.


View Profile
June 28, 2013, 02:25:49 PM
 #9

Ahhh thread jack. 

What a great movie.

Indeed, I love it.

On a serious note to the OP try -g 1 DO IT NAO

Smokey, this is not 'nam, this is bowling. There are rules. Do as the dude would wish, and mine some Lebowskis! https://bitcointalk.org/index.php?topic=260311.0
Walt Sobchak
Full Member
***
Offline Offline

Activity: 210
Merit: 100


God rest Donnie's soul.


View Profile
June 28, 2013, 02:31:12 PM
 #10

And maybe thread concurrency 22400

Smokey, this is not 'nam, this is bowling. There are rules. Do as the dude would wish, and mine some Lebowskis! https://bitcointalk.org/index.php?topic=260311.0
kjib (OP)
Newbie
*
Offline Offline

Activity: 39
Merit: 0



View Profile
June 28, 2013, 02:32:47 PM
 #11

Indeed, great movie!

The problem is not one of stability, it runs fine but just on one of the cards while the other sit there doing jack all.

I will try the -g 1 ASAP.

Thanks for the link to the litecoin stuff. I did do a search & did not find the problem I'm seeing (but that thread is massive so I guess if it's anywhere it'll be in there. Thanks.
iGotSpots
Legendary
*
Offline Offline

Activity: 2548
Merit: 1054


CPU Web Mining 🕸️ on webmining.io


View Profile WWW
June 28, 2013, 03:18:26 PM
 #12

Always start low and work your way up

cannonfodder
Full Member
***
Offline Offline

Activity: 178
Merit: 100



View Profile
June 28, 2013, 03:28:36 PM
 #13

I'm running CGMiner on Ubuntu 12.04 and with SHA-256 all 4 GPUs will be doing stuff. Clearly all 4 cards are seen by CGMiner. BUT, with scrypt mining CGMiner only appears to be doing stuff on 1 card. The other cards will all be showing 0Kh.

With the same set-up and a single card it runs fine and on that machine I have 4G ram, all as expected. On the other machine I have 4 cards so thought that 4x the RAM would do the trick, I have 16G ram so I assume that's not the issue.

The cards are all 7970s.

Here's what the script looks like for starting CGMiner:
Code:
export GPU_MAX_ALLOC_PERCENT=100

cgminer.exe -o stratum+tcp://POOL_URL:POOL_PORT  -u MY_MINER_NAME -p x --scrypt -I 13 --shaders 2048 --thread-concurrency 8192 --lookup-gap 2 -g 4 -w 256 --gpu-engine 1045 --gpu-memclock 1750 --auto-fan


What am I doing wrong Huh

Try doing your settings times 4, separated by a comma. For example, -I 13,13,13,13 --shaders 2048,2048,2048,2048 etc.....
kjib (OP)
Newbie
*
Offline Offline

Activity: 39
Merit: 0



View Profile
June 28, 2013, 05:12:45 PM
 #14

OK, I changed

Code:
cgminer.exe -o stratum+tcp://POOL_URL:POOL_PORT  -u MY_MINER_NAME -p x --scrypt -I 13 --shaders 2048 --thread-concurrency 8192 --lookup-gap 2 -g 4 -w 64 --gpu-engine 1045 --gpu-memclock 1750 --auto-fan

To:
Code:
cgminer.exe -o stratum+tcp://POOL_URL:POOL_PORT  -u MY_MINER_NAME -p x --scrypt -I 13 --shaders 2048 --thread-concurrency 8192 --lookup-gap 0  -w 64 -g 1 --gpu-engine 1045 --gpu-memclock 1750 --auto-fan
(changed lookup-gap to 0 and -g to 1).

This worked "OK" on 3 cards but nothing on card 2. I didn't bother to check the # rate at this point.

To:
Code:
cgminer.exe -o stratum+tcp://POOL_URL:POOL_PORT  -u MY_MINER_NAME -p x --scrypt -I 13 --shaders 2048 --thread-concurrency 8192 --lookup-gap 0 -g 1 --gpu-engine 1045 --gpu-memclock 1750 --auto-fan
(Took out -w, changed lookup-gap to 0 and -g to 1).

Now all 4 cards work, "YAY"  Smiley but the # rate is so bad (200 to 400K per card) where I'd expect 600-700+

I do wonder if I'm coming up against a bus/memory bandwidth issue or something like that.

Anyone else nailed this?

User_513
Member
**
Offline Offline

Activity: 87
Merit: 10


View Profile
June 28, 2013, 05:36:54 PM
 #15

Here's a couple of tips based on my observations and experience. Your mileage may vary. Limit one offer per customer. Batteries not included. Always ride safely and wear a helmet. Don't forget your towel.
 
- Dial in each card separately
- Use a *.conf file instead of the command line, it makes life a lot easier.
- Thread concurrency may differ for the same cards plugged directly into the MOBO vs plugged in with 1x-16x or 1x-1x risers, likewise for powered/unpowered risers.

Go forth, tweak, and you're welcome.
Walt Sobchak
Full Member
***
Offline Offline

Activity: 210
Merit: 100


God rest Donnie's soul.


View Profile
June 28, 2013, 06:20:54 PM
 #16

OK, I changed

Code:
cgminer.exe -o stratum+tcp://POOL_URL:POOL_PORT  -u MY_MINER_NAME -p x --scrypt -I 13 --shaders 2048 --thread-concurrency 8192 --lookup-gap 2 -g 4 -w 64 --gpu-engine 1045 --gpu-memclock 1750 --auto-fan

To:
Code:
cgminer.exe -o stratum+tcp://POOL_URL:POOL_PORT  -u MY_MINER_NAME -p x --scrypt -I 13 --shaders 2048 --thread-concurrency 8192 --lookup-gap 0  -w 64 -g 1 --gpu-engine 1045 --gpu-memclock 1750 --auto-fan
(changed lookup-gap to 0 and -g to 1).

This worked "OK" on 3 cards but nothing on card 2. I didn't bother to check the # rate at this point.

To:
Code:
cgminer.exe -o stratum+tcp://POOL_URL:POOL_PORT  -u MY_MINER_NAME -p x --scrypt -I 13 --shaders 2048 --thread-concurrency 8192 --lookup-gap 0 -g 1 --gpu-engine 1045 --gpu-memclock 1750 --auto-fan
(Took out -w, changed lookup-gap to 0 and -g to 1).

Now all 4 cards work, "YAY"  Smiley but the # rate is so bad (200 to 400K per card) where I'd expect 600-700+

I do wonder if I'm coming up against a bus/memory bandwidth issue or something like that.

Anyone else nailed this?



Keep -w (worksize) to 256 for your cards. That will work best for 7 series. Have you checked some of the example configs on github? try taking any extra parameters out except for thread concurrency, worksize, and intensity. Also remember scrypt is very memory intensivr. Bandwidth is not an issur since the hashing os all calculational on the cards. Its good to have some thing like a .70 ratio of engine to memory speed. For example on my 7950s im getting about 650 kh/s per card with three of them. Im using an engine speed of 1100 and memory speed of 1500.

You have to add --gpu-engine (speed you want) and --gpu-memclock (speed you want) as a parameter. Give it a try, i bet it will work Smiley

Smokey, this is not 'nam, this is bowling. There are rules. Do as the dude would wish, and mine some Lebowskis! https://bitcointalk.org/index.php?topic=260311.0
Walt Sobchak
Full Member
***
Offline Offline

Activity: 210
Merit: 100


God rest Donnie's soul.


View Profile
June 28, 2013, 06:21:41 PM
 #17

Sorry I butchered that last post. Phone keyboard...

Smokey, this is not 'nam, this is bowling. There are rules. Do as the dude would wish, and mine some Lebowskis! https://bitcointalk.org/index.php?topic=260311.0
User_513
Member
**
Offline Offline

Activity: 87
Merit: 10


View Profile
June 28, 2013, 06:26:05 PM
 #18

Why do people continue to use the 'shaders' flag/variable when the 'thread-concurrency' flag/variable supersedes it?
Walt Sobchak
Full Member
***
Offline Offline

Activity: 210
Merit: 100


God rest Donnie's soul.


View Profile
June 28, 2013, 06:26:37 PM
 #19

Example of something close to my config:

Cgminer.exe --scrypt -o stratum+tcp://POOL_ADDRESS:PORT -u username -p password --thread-concurrency 22400 --gpu-engine 1100 --gpu-memclock 1500 -I 19 -g 1 -w 256






Don't forget to add the --scrypt to the beginning like in my example! Let me know how my suggestions work out for you!

Smokey, this is not 'nam, this is bowling. There are rules. Do as the dude would wish, and mine some Lebowskis! https://bitcointalk.org/index.php?topic=260311.0
Walt Sobchak
Full Member
***
Offline Offline

Activity: 210
Merit: 100


God rest Donnie's soul.


View Profile
June 28, 2013, 06:27:13 PM
 #20

Why do people continue to use the 'shaders' flag/variable when the 'thread-concurrency' flag/variable supersedes it?

No idea, it shouldn't be used at all

Smokey, this is not 'nam, this is bowling. There are rules. Do as the dude would wish, and mine some Lebowskis! https://bitcointalk.org/index.php?topic=260311.0
Pages: [1] 2 »  All
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!