Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Half mining rates when adding a second GPU (1660 Ti) #158

Closed
stevepresley opened this issue Jan 18, 2021 · 43 comments
Closed

Half mining rates when adding a second GPU (1660 Ti) #158

stevepresley opened this issue Jan 18, 2021 · 43 comments

Comments

@stevepresley
Copy link

I posted about this in the #lolminer channel on RedPanda's Discord, and appears DanBoy had the same issue. I'm "TheEvilestSteve" on Discord.

Scenario:

Mining fine at 30MH/s with a single 1660 Ti. Overclock settings: 62% power, -500 Core / +800 memory, fan 85%

Added a second one, and rates on both cards are now half, and I'm averaging 30MH/s between the two.

Tried reapplying -500/+800 and also changing the overclock settings back to stock, nothing improves rates (latter actually takes it back down to 25MH/s combined, which is what I was seeing stock)

Tried adding the --singlethread flag as suggested, no effect other than took longer for both cards to get up to the 15 MH/s average.

Be glad to try anything else, going to have to switch to another miner until this is fixed. Can't run at 50% hashrate!

@jgonzis
Copy link
Collaborator

jgonzis commented Jan 18, 2021

We found a small solution meanwhile is patched is to run 2 instances... using the parameter:

--devices 0
--device 1

Is temporal meanwhile is solved

@stevepresley
Copy link
Author

Thanks again for the suggestion @jgonzis. Here are the command lines I'm using (note that it appears you need to tell ethermine that you have a worker0 and a worker1 for the hashrate calculations to appear properly, do that by simply putting a 0 or 1 after the !WALLET! line to append 0 or 1 to "lolMinerWorker" or whatever you changed it to):


@echo off

setlocal enableDelayedExpansion

Rem #################################
Rem ## Begin of user-editable part ##
Rem #################################

set "POOL=us1.ethermine.org:4444"
set "WALLET=0xmywalletaddress.lolMinerWorker"										

start D:\miners\lolMiner\1.18a\lolMiner.exe --algo ETHASH --pool !POOL! --user !WALLET!0 --log --devices 0 
start D:\miners\lolMiner\1.18a\lolMiner.exe --algo ETHASH --pool !POOL! --user !WALLET!1 --log --devices 1 

@jgonzis
Copy link
Collaborator

jgonzis commented Jan 19, 2021

I think without the 0 and 1 after ¡WALLET!

start D:\miners\lolMiner\1.18a\lolMiner.exe --algo ETHASH --pool !POOL! --user !WALLET! --log --devices 0
start D:\miners\lolMiner\1.18a\lolMiner.exe --algo ETHASH --pool !POOL! --user !WALLET! --log --devices 1

@stevepresley
Copy link
Author

I was getting weird average results from ethermine when I had them both reporting in as the same worker. I also noticed only one of the threads is writing a log file. I'll do some additional testing today with the logs.

On the plus side, both of them are humming along!

image
image

@jgonzis
Copy link
Collaborator

jgonzis commented Jan 19, 2021

I was getting weird average results from ethermine when I had them both reporting in as the same worker. I also noticed only one of the threads is writing a log file. I'll do some additional testing today with the logs.

On the plus side, both of them are humming along!

image
image

easy solution... have another directory and it will be able to write both log files... you are rigth I didn't think on that!! nice!!

@Keimling27
Copy link

I think it is a problem of your driver. If you put the second card in for example Win 10 takes sometimes a different driver.So the system dont work with full power.check in machinemanager if the gpus have both the same driver if not reinstall the working driver and restart your system.

@stevepresley
Copy link
Author

easy solution... have another directory and it will be able to write both log files... you are rigth I didn't think on that!! nice!!

How do you specify a different directory? the --logfile param takes a path to a filename, not a directory, so unless you specify your own file path such as "d:\miners\logs\card1.txt", it doesn't log anything. It also overwrites the same file when it restarts, so using the custom path for historical logging doesn't work unless you create a datetime stamp like the default log file does (which is what I was planning to do in my watcher app).

@stevepresley
Copy link
Author

I think it is a problem of your driver. If you put the second card in for example Win 10 takes sometimes a different driver.So the system dont work with full power.check in machinemanager if the gpus have both the same driver if not reinstall the working driver and restart your system.

Thanks for the suggestion, but I have verified they are both using the same driver - 27.21.14.3109 12/21/2020. Also, machine has been rebooted multiple times (due to lockups), so that's not the issue either. Be glad to entertain other ideas though!

Cheers,
Steve

@Keimling27
Copy link

ok please make a check load an old driver https://www.nvidia.de/download/driverResults.aspx/119977/de and install . You will be suprised. Have the same shit with the cards the new driver are only good for gaming not for mining

@jgonzis
Copy link
Collaborator

jgonzis commented Jan 19, 2021

easy solution... have another directory and it will be able to write both log files... you are rigth I didn't think on that!! nice!!

How do you specify a different directory? the --logfile param takes a path to a filename, not a directory, so unless you specify your own file path such as "d:\miners\logs\card1.txt", it doesn't log anything. It also overwrites the same file when it restarts, so using the custom path for historical logging doesn't work unless you create a datetime stamp like the default log file does (which is what I was planning to do in my watcher app).

Just have two folders of lolminer cloned😅 1.18a and 1.18aa

@stevepresley
Copy link
Author

stevepresley commented Jan 19, 2021

Just have two folders of lolminer cloned😅 1.18a and 1.18aa

ha! yeah, my engineering brain doesn't think that way.. here's what I did instead:

@ECHO OFF
:: Check WMIC is available
WMIC.EXE Alias /? >NUL 2>&1 || GOTO s_error

setlocal enableDelayedExpansion

Rem #################################
Rem ## Begin of user-editable part ##
Rem #################################

set "POOL=us1.ethermine.org:4444"
set "WALLET=myWalletAddress.lolMinerWorker"	
set "NUMBER_OF_CARDS=2"
rem ## NO TRAILING SLASHES ON PATHS!! ##
set "MINER_PATH=D:\miners\lolMiner\1.18a"
set "LOGFILEDIR=D:\miners\lolMiner\logs"


Rem #################################
Rem ##  End of user-editable part  ##
Rem #################################

REM ## DO NOT CHANGE ##
set "MINERNUM=0"
REM ## DO NOT CHANGE ##


cls
echo Starting ETH miners, press CTRL-C twice to cancel!
timeout 10

:: Use WMIC to retrieve date and time
FOR /F "skip=1 tokens=1-6" %%G IN ('WMIC Path Win32_LocalTime Get Day^,Hour^,Minute^,Month^,Second^,Year /Format:table') DO (
   IF "%%~L"=="" goto s_done
      Set _yyyy=%%L
      Set _mm=00%%J
      Set _dd=00%%G
      Set _hour=00%%H
      SET _minute=00%%I
      SET _second=00%%K
)
:s_done

:: Pad digits with leading zeros
      Set _mm=%_mm:~-2%
      Set _dd=%_dd:~-2%
      Set _hour=%_hour:~-2%
      Set _minute=%_minute:~-2%
      Set _second=%_second:~-2%

Set logtimestamp=%_yyyy%-%_mm%-%_dd%_%_hour%_%_minute%_%_second%
goto make_logfile

:s_error
echo WMIC is not available, using default log filename
Set logtimestamp=_

:make_logfile

set FILENAME=%LOGFILEDIR%\lolminer_%logtimestamp%_dev%MINERNUM%.txt
echo Logging device %MINERNUM% to Filename: *%FILENAME%*
echo.
start !MINER_PATH!\lolMiner.exe --algo ETHASH --pool !POOL! --user !WALLET!%MINERNUM% --log --logfile %FILENAME% --devices %MINERNUM% 
echo.

set /a MINERNUM += 1
if %MINERNUM%==%NUMBER_OF_CARDS% goto all_done

goto make_logfile

:all_done
echo all done!

@stevepresley
Copy link
Author

ok please make a check load an old driver https://www.nvidia.de/download/driverResults.aspx/119977/de and install . You will be suprised. Have the same shit with the cards the new driver are only good for gaming not for mining

will give that a try. thanks!

@Keimling27
Copy link

you try the old driver?

@stevepresley
Copy link
Author

you try the old driver?

I located the en-us equivalent but have not had a chance to downgrade yet. Will try to do so this week

@Keimling27
Copy link

Ok thanks for feedback. One other question you told you have install the second card why lolminer dont show the second?
Did you modify lolminer script ?

@stevepresley
Copy link
Author

Ok thanks for feedback. One other question you told you have install the second card why lolminer dont show the second?
Did you modify lolminer script ?

Yes, see above. lolMiner does see two cards, but if I run them both on same thread, I get half the MH/s, script above runs each card on its own thread --device 0 and --device 1

Modified script is here: #158 (comment)

@Keimling27
Copy link

you tried the driver

@stevepresley
Copy link
Author

you tried the driver

Same issue unfortunately

@JimmyB18
Copy link

i've got a similar issue with Hash rates and two gpus with some differences:
I'm running 2 different PCs, one with a MSI RX 570 8gb OC and the other is an EVGA RTX 3070 XC3 Ultra
i'm very new to all of this, would the script above still work, would it need adjustments?

@stevepresley
Copy link
Author

i've got a similar issue with Hash rates and two gpus with some differences:
I'm running 2 different PCs, one with a MSI RX 570 8gb OC and the other is an EVGA RTX 3070 XC3 Ultra
i'm very new to all of this, would the script above still work, would it need adjustments?

My script should work for you since it goes off of the device number, not a device name. Give it a try and let us know how it works.

@JimmyB18
Copy link

wow, that was fast thanks!

@JimmyB18
Copy link

@stevepresley thank you! the script is working, Reported hash rate is now what it should be.

@JimmyB18
Copy link

@stevepresley thank you! the script is working, Reported hash rate is now what it should be.

both miners/cards are running but ethermine.org is reporting that one of them is down

@stevepresley
Copy link
Author

stevepresley commented Jan 28, 2021 via email

@jnug99
Copy link

jnug99 commented Jan 30, 2021

I'm having the same issue with 2x 1660 supers. One will work fine ~30mh/s with mild OC but when I add two, the combined hashrate is sub 30mh/s.

I tried changing the bat file using the script you wrote (thanks heaps for that btw) but I keep getting the error message: "system cannot find the drive specified". I'm thinking that's because I've got a single SSD running Windows and also storing 1.18a. Do I need to change the [set "MINER_PATH=D:\miners\lolMiner\1.18a"] and [set "LOGFILEDIR=D:\miners\lolMiner\logs"] to reflect that its on my 'C' drive?

@JimmyB18
Copy link

@jnug99 you definitely need to change the directory to whatever yours is

@JimmyB18
Copy link

i need to do some tweaking as well:
Dashboard - Ethermine - Google Chrome 1_29_2021 5_21_54 PM

@stevepresley
Copy link
Author

Do I need to change the [set "MINER_PATH=D:\miners\lolMiner\1.18a"] and [set "LOGFILEDIR=D:\miners\lolMiner\logs"] to reflect that its on my 'C' drive?

Yep, the reason the full path is there is if you run it from a Startup entry in the registry, it will default to the SYSTEM32 path instead of the actual directory. I tried using the .\lolminer.exe to get around it and it didn't work consistently, so you'll want to replace "D:\miners\lolMiner\1.18a" with whatever path you extracted your exe to (the same directory that your mine_eth.bat is in).. ex. "c:\users\yourusername\downloads\lolminer"

@Blazarss
Copy link

Blazarss commented Feb 1, 2021

@stevepresley Worked like a charm for me! Thanks so much for helping out, I switched over to Phoenix for a week which resolved this problem right away but I like the aesthetic of lolminer so much more that im glad I found this lol

@jgonzis
Copy link
Collaborator

jgonzis commented Mar 6, 2021

@stevepresley Worked like a charm for me! Thanks so much for helping out, I switched over to Phoenix for a week which resolved this problem right away but I like the aesthetic of lolminer so much more that im glad I found this lol

Have you modify :

set "NUMBER_OF_CARDS=2" to set "NUMBER_OF_CARDS=3" ??

@McStuttter
Copy link

Hey guys, im new to all this and I am currently running a dual Radeon 5700 XT setup. When i run LoLMiner it shows me that Device0,Device1,Device2,Device 3 are all connected. I dont see how this is possible when i only have 2 gpus connected. Then when LoLMiner fully runs it shows that all the cards are showing 0.00mh/s. I tried the script above but nothing worked. Would love to hear back.

Thanks

@stevepresley
Copy link
Author

Hey guys, im new to all this and I am currently running a dual Radeon 5700 XT setup. When i run LoLMiner it shows me that Device0,Device1,Device2,Device 3 are all connected. I dont see how this is possible when i only have 2 gpus connected. Then when LoLMiner fully runs it shows that all the cards are showing 0.00mh/s. I tried the script above but nothing worked. Would love to hear back.

Thanks

You should have NUMBER_OF_CARDS=2 if you only have 2 cards... do you have that set to something other than 2?

@McStuttter
Copy link

McStuttter commented Mar 9, 2021

Update: I got it to work after reinstalling amd drivers its now running perfectly. One question though on Ethermine.org its only showing 1 worker active but 2 are running is there a certain script I need for it to show 2 miners?

*What is the command to name certain miners i guess. If you could give me a example and i can figure it out from there. Thanks!

@stevepresley
Copy link
Author

Hi, i used your code and it managed to fix alot of issues for me many thanks however ive added a third gpu and its now opens 3 lol miner consoles which puts my cpu at 99%, do you know if there is any way to merge all them into one console where it displays all gpus?

Your CPU shouldn't go to 99% just by having 3 console windows open. As for the three windows, you either can run each card at 100% in its own window, or half rate in one window. Or switch to HiveOS for your mining rig, and no problem running more than one at full hashrate ;-)

@jgonzis
Copy link
Collaborator

jgonzis commented Apr 7, 2021

The finally solution...

You can try new 1.25 Lolminer with special CUDA version great for Windows, and less problems with multiple GPU.

https://github.com/Lolliedieb/lolMiner-releases/releases/tag/1.25

@amarafsar1995
Copy link

amarafsar1995 commented Apr 7, 2021 via email

@jgonzis
Copy link
Collaborator

jgonzis commented Apr 7, 2021

Will have to try it out, do you ever see your unpaid balance dropping and not seeming to go up, i use ethermine and i notice this, my estimate earnings drop too?

________________________________ From: jgonzis @.> Sent: Wednesday, April 7, 2021 9:04:46 AM To: Lolliedieb/lolMiner-releases @.> Cc: amarafsar1995 @.>; Comment @.> Subject: Re: [Lolliedieb/lolMiner-releases] Half mining rates when adding a second GPU (1660 Ti) (#158) The finally solution... You can try new 1.25 Lolminer with special CUDA version great for Windows, and less problems with multiple GPU. https://github.com/Lolliedieb/lolMiner-releases/releases/tag/1.25 — You are receiving this because you commented. Reply to this email directly, view it on GitHub<#158 (comment)>, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ALPUXHBTQS7BXLF6VXWE5BDTHQGZ5ANCNFSM4WHVXCNA.

Now with the last increase of the Network Hash in ETH is normal... it takes more time to get paid... the network has increase from 1 January to now nearly 70%.

@amarafsar1995
Copy link

amarafsar1995 commented Apr 7, 2021 via email

@Tokyosol
Copy link

Hi there. I want to use one of mine GPU`s for 24/7 mining and the other one for other day to day activities(and mining when i'm not using it). Is there a way to do so?

@stevepresley
Copy link
Author

Hi there. I want to use one of mine GPU`s for 24/7 mining and the other one for other day to day activities(and mining when i'm not using it). Is there a way to do so?

Sure, to use primary gpu for mining, add switch "--devices 0" to the command line, to use only secondary, add "--devices 1" to command line.

@terrytell
Copy link

Cheers for posting the code mate. I think it's kinda working for me?? Running a 1070 on GPU 0 and a 1080 on GPU 1. The weird thing is i'm getting a slower rate on the 1080... Any ideas on why??

Maybe i will try the latest version of lolminer, as mine is at version 1.19.

@jgonzis
Copy link
Collaborator

jgonzis commented May 8, 2021

Cheers for posting the code mate. I think it's kinda working for me?? Running a 1070 on GPU 0 and a 1080 on GPU 1. The weird thing is i'm getting a slower rate on the 1080... Any ideas on why??

Maybe i will try the latest version of lolminer, as mine is at version 1.19.

That should be solve after 1.25 ... try 1.28a

@jgonzis
Copy link
Collaborator

jgonzis commented Jul 11, 2021

Cuda Solver avoid that problem

@jgonzis jgonzis closed this as completed Jul 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants