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

Using script -f 2 but after 1 hour pc hangs #78

Open
ofpcarnage opened this issue Nov 2, 2016 · 11 comments
Open

Using script -f 2 but after 1 hour pc hangs #78

ofpcarnage opened this issue Nov 2, 2016 · 11 comments

Comments

@ofpcarnage
Copy link

ofpcarnage commented Nov 2, 2016

As the above mentions I'm using the -f 2 function to keep the miner running but after 1 hr the pc hangs or goes very slowly with my cards reading 0.0
I had to manually close and restart the miner.

I have attempted to write a script to close the miner and re-open after 60 mins but all it does it open a new miner whilst leaving the original open.
My Start Script with timer
:restart
start "" cmd /C start.bat
TIMEOUT /T 3600
taskkill /f /im genoil.exe
TIMEOUT /T 5
goto restart

My Miner script
:loop
genoil.exe -f 2 -z 1 -c eu1-zcash.flypool.org:333 -u walletid.worker -p z
timeout /t 1 /nobreak
goto :loop

@ofpcarnage ofpcarnage changed the title Using script -f 1 but after 1 hour pc hangs Using script -f 2 but after 1 hour pc hangs Nov 2, 2016
@junhuy
Copy link

junhuy commented Nov 3, 2016

your miner script is looping, that's why it leaves the original open.. you can just use your miner script without the start script actually.

@ofpcarnage
Copy link
Author

Ow my God did you even read what my issue is? I am just running it on a loop. The problem is after a period of time it will just hang and won't restart. I have just had to reboot the pc again so that it will run.

@junhuy
Copy link

junhuy commented Nov 3, 2016

"I have attempted to write a script to close the miner and re-open after 60 mins but all it does it open a new miner whilst leaving the original open." that was one of your problem too.. your start script and miner script are both in loop if you didn't realize.. the 2 overlapped loops make your program crashes.. you killed the genoil.exe in the start script but the miner script actually relaunch another miner when it dies. This will launches a lot of miner over time and hence crash. That was just my suggestion.. you can ignore it if you find it unreasonable.

@jjziets
Copy link

jjziets commented Nov 3, 2016

I have the same problem. Took about 4 hours then the whole system went down and did not reboot. It was totally unresponsive and needed a hard reset by holding the power button for 10s. I have never seen this before.

System windows 10 64. AMD driver 16.10.3 with 3xHD7990 and 2x 390x 1 X380. using 0.6 with loop -f 2

@ofpcarnage
Copy link
Author

Ok just to clear things up.
I'm running it on the loop with only 1 bat file "My Miner Script"
The reason I'm attempting to create a file that will force a restart is because the original loop after a period of time instead of restarting it will just hang. It will start but not load any binary kernals. I have to reboot my system in order for it to work again.

@jjziets
Copy link

jjziets commented Nov 3, 2016

you can still do it using just one bat file.

@echo off
:check
tasklist /FI "imagename eq genoil.exe" | find /I /N "genoil.exe" >NUL
if "%ERRORLEVEL%"=="1" start genoil.exe -c eu1-zcash.flypool.org:3333 -u address.worker -p x -i 20 -w 64 -P 0 -k zec -f 2 -z 1
timeout /t 2 /nobreak
goto :check
pause

This checks if the genoil.exe app is running if not restarts it. But the genoil.exe is started using a new instance which when closed releases the resources. well that is the theory.

@ofpcarnage
Copy link
Author

Here's what I get after a while
capture

@ofpcarnage
Copy link
Author

using your suggested script heres what I get
capture

@ofpcarnage
Copy link
Author

My bad I somehow copied over the -u thats what messed it up

@ofpcarnage
Copy link
Author

Again same issue after a short period the rig just hangs
gets as far as this on reload then just sits there have to reboot just to get going again
capture

@rodgermoore
Copy link

Check my comment at issue #83.

I would setup your bat scripts as suggested there.

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

4 participants