ethereum-mining / ethminer

Ethereum miner with OpenCL, CUDA and stratum support
GNU General Public License v3.0
5.96k stars 2.28k forks source link

Ether mining system slowdown on Linux when GPU on x1 riser #1078

Closed azx07 closed 6 years ago

azx07 commented 6 years ago

I have a weird problem when trying to mine ethereum. I'm running manjaro linux and have the latest nvidia drivers installed. There are 3 GTX 1070 GPUs in my computer - two of them are connected natively to the motherboard and the 3rd card is connected via x1 to X16 pci riser. If I mine using only the 2 natively connected cards everything works fine and there is no system slowdown.

But when I try to mine on all of the 3 cards or even only on the card connected to the x1 riser there is a significant system slowdown - for instance scrolling in Firefox is very laggy (unusable) and, in general, the whole system becomes laggy.

I have no clue what could be the cause of this - since the 3rd card should not be used for any graphics (my monitor is connected to the 1st card).

The problem is present when using ethminer or Claymore’s dual miner.

On the other hand, on the same computer but in Win10 I do not have these problems and everything works fine.

My system config: AMD Ryzen 1600 X370 Prime pro 16 GB RAM 500 GB Samsung Evo SSD Corsair HX1000 PSU

MariusVanDerWijden commented 6 years ago

Maybe a bad riser? Have you tried switching out the riser?

azx07 commented 6 years ago

I have not tried to switch the riser since it works fine under Win10 on the same machine. This seems to be a Linux specific problem. I will try to swap the riser when I find the time to do it.

SnowLeopard71 commented 6 years ago

Try the riser on it's own (only 1 card) to be absolutely certain it is not the problem. What is your xorg.conf? You might want to try using the onboard video as the primary display adapter to see if that makes a difference.

azx07 commented 6 years ago

I tried only to mine only on the riser and the problem is also present (with the other two cards being idle). Could be a faulty riser but it does not explain why its working on Win10. I'll try to swap as soon as I find time.

Anyway, here's my xorg.conf:

20-nvidia.conf.txt

SnowLeopard71 commented 6 years ago

Nothing wrong with xorg.conf. Does X log have any warings (WW) or errors (EE) that might indicate problem? Maybe something with OpenGL? Also, could it be Firefox related? It has a history of poor performance in certain setups (search for "firefox laggy" finds many examples).

azx07 commented 6 years ago

The relevant warnings/errors that I see could be: (WW) NVIDIA(0): Option "PrimaryGPU" is not used - maybe I need to specify that GPU0 is primary? Anyway, here is my Xorg.log

Xorg.0.log.txt

The lag is not firefox related - it seems that it is GUI related - anything graphical is laggy. There seems to be no nongraphical slowdown. It seems that the system is trying to use the x1 GPU for some graphical stuff whereas it should leave it just for computing.

P.S. The X370 does not have an onboard GPU so I cannot test what you suggested above.

SnowLeopard71 commented 6 years ago

Saw image of the X370 with HDMI output, but realize now it depends on CPU used. Quick test on my rig didn't have problems with Firefox, but primary gfx is built-in Intel. Also, it's Ubuntu 16.04. Maybe worth trying a pre-built USB mining distro to determine if it's something with your particular install?

azx07 commented 6 years ago

could be worth a try - do you have a suggestion for a pre-built USB mining distro? (meaning one that also has a GUI so that I can test lagginess)

rawdez commented 6 years ago

try set pci-e ports to gen1 in bios

satori-q3a commented 6 years ago

using gen 1 for pci-e lanes might be too slow, gen 2 would be better but you'll need high quality usb 3.0/3.1 cables for risers.

Some motherboards don't allow individual settings of pci-e slots.

rawdez commented 6 years ago

using gen 1 for pci-e lanes might be too slow

nope, there is no data to send through, all calculations perform on card. while you not using card for gaming or rendering pci-e gen 1 more than enough

azx07 commented 6 years ago

Hmm, I don't seem to see the option to change pci-e ports gen. in my bios. Is that possible for the asus X370 pro prime?

rawdez commented 6 years ago

from manual it seems like its not, you can try set pciex16_3 slot to x2 though. and try updating bios there is new version at asus website Version 4011 2018/05/02