Bitcoin Forum
May 06, 2024, 07:44:46 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1] 2 »  All
  Print  
Author Topic: Two HD 5870 in Linux (Debian) performing no better than one  (Read 6255 times)
Quantumboredom (OP)
Newbie
*
Offline Offline

Activity: 31
Merit: 0


View Profile
March 19, 2011, 11:09:57 AM
 #1

Hi. I have two HD 5870 cards, and both seem to be set up and working correctly.

I am using poclbm (latest version by doing "git clone git://github.com/m0mchil/poclbm poclbm" today).
I am using Catalyst 10.9 from debian repositories.
I am using SDK 2.2.

I have configured the cards by doing:
Code:
aticonfig --crossfire=off --adapter=all
aticonfig --initial -f --adapter=all

And I've added "export DISPLAY=:0" do my .bashrc.

running just ./poclbm lists the devices:
Code:
[0]     AMD Phenom(tm) II X6 1090T Processor
[1]     Cypress
[2]     Cypress

Each devices seems to be working fine. Running poclbm like this:
Code:
/poclbm.py --user=user1 --pass=mypass -v -d 1 -w 128 -f 120 -o mining.bitcoin.cz -p 8332
for both -d 1 and -d 2 gives about 300000 khash/s as expected. However if I start both at the same time I only get a total of about 300000 khash/s. I.e. if one of the cards is doing 250000 khash/s the other one will be doing 50000 khash/s.

I am absolutely sure that I am using a different device. I.e. in one terminal I've entered:
Code:
/poclbm.py --user=user1 --pass=mypass -v -d 1 -w 128 -f 120 -o mining.bitcoin.cz -p 8332

And in the other one:
Code:
/poclbm.py --user=user2 --pass=mypass -v -d 2 -w 128 -f 120 -o mining.bitcoin.cz -p 8332

So both the devices and user names on slush's server are different.

It's working fine on windows using the poclbm GUI, so this does seem to be a Linux configuration problem. Anyone have any ideas on how to fix it?

By the way, I've also tried the same in OpenSUSE with catalyst 11.2 and SDK 2.1, 2.2 and 2.3 with the same result. Presumably there is simply some configuration I've missed.
1715024686
Hero Member
*
Offline Offline

Posts: 1715024686

View Profile Personal Message (Offline)

Ignore
1715024686
Reply with quote  #2

1715024686
Report to moderator
You get merit points when someone likes your post enough to give you some. And for every 2 merit points you receive, you can send 1 merit point to someone else!
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715024686
Hero Member
*
Offline Offline

Posts: 1715024686

View Profile Personal Message (Offline)

Ignore
1715024686
Reply with quote  #2

1715024686
Report to moderator
1715024686
Hero Member
*
Offline Offline

Posts: 1715024686

View Profile Personal Message (Offline)

Ignore
1715024686
Reply with quote  #2

1715024686
Report to moderator
1715024686
Hero Member
*
Offline Offline

Posts: 1715024686

View Profile Personal Message (Offline)

Ignore
1715024686
Reply with quote  #2

1715024686
Report to moderator
MDKing
Member
**
Offline Offline

Activity: 80
Merit: 10


View Profile
March 19, 2011, 04:11:38 PM
 #2

Why -f 120? I'm using -f 2 on my dual 5870s and everything works fine.
Quantumboredom (OP)
Newbie
*
Offline Offline

Activity: 31
Merit: 0


View Profile
March 19, 2011, 04:41:14 PM
 #3

Lower than 120 (i.e. 60 and lower) makes it interfere with stuff, like HD video playback, games (on Windows with -f 120 I can mine even when gaming at about half speed) and more if it's really low. Considering the performance difference is less than 10% I keep -f high to not impact usability.
Mahkul
Sr. Member
****
Offline Offline

Activity: 434
Merit: 250


Every saint has a past. Every sinner has a future.


View Profile
March 19, 2011, 04:57:30 PM
 #4

Lower than 120 (i.e. 60 and lower) makes it interfere with stuff, like HD video playback, games (on Windows with -f 120 I can mine even when gaming at about half speed) and more if it's really low. Considering the performance difference is less than 10% I keep -f high to not impact usability.

What If you start the miner without any switches and also, without any programs running? I know on my Ubuntu, even smallest applications were affecting the performance.
Quantumboredom (OP)
Newbie
*
Offline Offline

Activity: 31
Merit: 0


View Profile
March 19, 2011, 05:36:40 PM
 #5

Tried to close all other applications and remove the extra parameters, so I'm running:
Code:
/poclbm.py --user=user --pass=mypass -d 2 -f 120 -o mining.bitcoin.cz -p 8332
But it's still the same. Both cards perform as expected on their own but when run at the same time performance does not exceed that of a single card.
Mahkul
Sr. Member
****
Offline Offline

Activity: 434
Merit: 250


Every saint has a past. Every sinner has a future.


View Profile
March 19, 2011, 05:40:35 PM
 #6

Tried to close all other applications and remove the extra parameters, so I'm running:
Code:
/poclbm.py --user=user --pass=mypass -d 2 -f 120 -o mining.bitcoin.cz -p 8332
But it's still the same. Both cards perform as expected on their own but when run at the same time performance does not exceed that of a single card.

What if you get rid of -f altogether?
Psychoactive
Newbie
*
Offline Offline

Activity: 55
Merit: 0


View Profile
March 19, 2011, 05:47:03 PM
 #7



I am absolutely sure that I am using a different device. I.e. in one terminal I've entered:
Code:
/poclbm.py --user=user1 --pass=mypass -v -d 1 -w 128 -f 120 -o mining.bitcoin.cz -p 8332

And in the other one:
Code:
/poclbm.py --user=user2 --pass=mypass -v -d 2 -w 128 -f 120 -o mining.bitcoin.cz -p 8332

So both the devices and user names on slush's server are different.


Did you check the load on both cards to really confirm both are working ?
Quantumboredom (OP)
Newbie
*
Offline Offline

Activity: 31
Merit: 0


View Profile
March 19, 2011, 05:54:16 PM
 #8

Is there a way to do that in linux? My searches are coming up empty.
Cryptoman
Hero Member
*****
Offline Offline

Activity: 726
Merit: 500



View Profile
March 19, 2011, 05:58:42 PM
 #9

Is there a way to do that in linux? My searches are coming up empty.

Code:
aticonfig --odgc

Make sure you really have the DISPLAY=:0 environment variable set.  Enter it on the command line before starting poclbm.py.

"A small body of determined spirits fired by an unquenchable faith in their mission can alter the course of history." --Gandhi
Quantumboredom (OP)
Newbie
*
Offline Offline

Activity: 31
Merit: 0


View Profile
March 19, 2011, 06:08:50 PM
 #10

Thanks, using aticonfig --odgc --adapter=all gives me the loads.

I've checked the DISPLAY variable using echo $DISPLAY. I've also tried setting the COMPUTE variable (which is preferred over DISPLAY by the SDK) to :0 but it's still the same.

Basically if I start two instances of poclbm the one I start first (say on the first card) will do about 250000 khash/s and the second one will do 50000 khash/s (it varies but those seem to be roughly the averages). The load using aticonfig reflects this (i.e. one GPU is like 80% and the other jumps around a bit but is much lower). If I then stop the first instance the load shifts to the second GPU, also reflected in aticonfig.

So it seems I am definitely starting the program correctly (i.e. each instance is using it's own GPU), but it's like the work gets serialized somewhere and is limited to the performance of one card.
Cryptoman
Hero Member
*****
Offline Offline

Activity: 726
Merit: 500



View Profile
March 19, 2011, 06:21:21 PM
 #11

The only other thing I can think of trying is deleting the /etc/X11/xorg.conf file and running "aticonfig --initial --adapter=all" again.  I've found that, for some reason, aticonfig doesn't always create a proper xorg.conf file if one exists already.

"A small body of determined spirits fired by an unquenchable faith in their mission can alter the course of history." --Gandhi
Quantumboredom (OP)
Newbie
*
Offline Offline

Activity: 31
Merit: 0


View Profile
March 19, 2011, 06:31:27 PM
 #12

Tried it. Moved the old xorg.conf and did aticonfig --initial --adapter=all again and the new file was identical to the old one.

Thanks for trying to help though Smiley. Hopefully someone else who has experienced similar problems at some point will see the thread. I find it very odd considering I've had the exact same problem with openSUSE and Debian, but others seem to get multiple GPUs to work with no hassle.
Mahkul
Sr. Member
****
Offline Offline

Activity: 434
Merit: 250


Every saint has a past. Every sinner has a future.


View Profile
March 19, 2011, 06:48:29 PM
 #13

Obviously there is enough power delivered? Did you say you tried the same setup with the same power supply with windows and it worked?
Quantumboredom (OP)
Newbie
*
Offline Offline

Activity: 31
Merit: 0


View Profile
March 19, 2011, 07:06:27 PM
 #14

Oh yes, I have dual boot with Windows 7 x64 and Debian Testing x64. And the PSU is definitely beefy enough (1000 W).
Cryptoman
Hero Member
*****
Offline Offline

Activity: 726
Merit: 500



View Profile
March 19, 2011, 11:35:57 PM
 #15

Hopefully someone else who has experienced similar problems at some point will see the thread. I find it very odd considering I've had the exact same problem with openSUSE and Debian, but others seem to get multiple GPUs to work with no hassle.

I actually did have the same exact problem, and it was solved by setting the DISPLAY environment variable properly.  I don't know what to say.  Does it do the same thing when mining against bitcoind?

"A small body of determined spirits fired by an unquenchable faith in their mission can alter the course of history." --Gandhi
Quantumboredom (OP)
Newbie
*
Offline Offline

Activity: 31
Merit: 0


View Profile
March 20, 2011, 07:06:09 PM
 #16

It's the same if I mine solo.

What if you get rid of -f altogether?
Still the same Sad

Man, every time I've tried switching to Linux there's something only Windows does. This time it's just multi-gpu, but that's a deal breaker considering I have two GPUs  Sad

Thanks to everyone for trying to help. If I do figure out what's wrong I'll be sure post an update.
LeonGeeste
Newbie
*
Offline Offline

Activity: 48
Merit: 0


View Profile
March 21, 2011, 02:09:20 AM
 #17

Interesting coincidence: this evening I just ran into the exact same problem!  This weekend I set up my first rig: one HD 5870 in Ubuntu 10.10.  Once I had that working,  I added a second one, and now that it's back up, it's doing the very same thing yours is -- the two cards seem to balance against each other, with the sum being no different from what I got from a single card (300-340 Mhash/sec depending on the overclocking).

I first worried that it was reaching a bottleneck, since it's using up all the CPU.

Don't have any new ideas, but I just wanted to confirm someone else is having the same problem.

Anyone know if this happens on other cards?  What would make it throttle back like that?
ArtForz
Sr. Member
****
Offline Offline

Activity: 406
Merit: 257


View Profile
March 21, 2011, 02:15:33 AM
 #18

Saw the same shit with 5970s and SDK 2.2 and 2.3.
SDK 2.1 + fglrx 10.9 - 10.11 works fine.

bitcoin: 1Fb77Xq5ePFER8GtKRn2KDbDTVpJKfKmpz
i0coin: jNdvyvd6v6gV3kVJLD7HsB5ZwHyHwAkfdw
Cryptoman
Hero Member
*****
Offline Offline

Activity: 726
Merit: 500



View Profile
March 21, 2011, 03:12:55 AM
 #19

Saw the same shit with 5970s and SDK 2.2 and 2.3.
SDK 2.1 + fglrx 10.9 - 10.11 works fine.

I was going to suggest dropping the SDK back to 2.1, but he said in the OP that he already tried that.  All of my miners run fglrx 10.9 and SDK 2.1 and I have no problems.

"A small body of determined spirits fired by an unquenchable faith in their mission can alter the course of history." --Gandhi
Quantumboredom (OP)
Newbie
*
Offline Offline

Activity: 31
Merit: 0


View Profile
March 21, 2011, 07:51:05 AM
 #20

Wouldn't you know it, it works fine with SDK 2.1 Smiley

On OpenSUSE I tried all the SDK's (2.1, 2.2 and 2.3), but that was with catalyst 11.2. On Debian with catalyst 10.9 it works with SDK 2.1.

Still a bit of a pain to have to use an old SKD/driver set (I do some OpenCL developement myself so it matters a bit to me), but at least it's working Smiley
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!