ZECMiner icon indicating copy to clipboard operation
ZECMiner copied to clipboard

Using script -f 2 but after 1 hour pc hangs

Open ofpcarnage opened this issue 9 years ago • 11 comments

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 avatar Nov 02 '16 22:11 ofpcarnage

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.

junhuy avatar Nov 03 '16 02:11 junhuy

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.

ofpcarnage avatar Nov 03 '16 05:11 ofpcarnage

"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.

junhuy avatar Nov 03 '16 05:11 junhuy

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

jjziets avatar Nov 03 '16 07:11 jjziets

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.

ofpcarnage avatar Nov 03 '16 07:11 ofpcarnage

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.

jjziets avatar Nov 03 '16 07:11 jjziets

Here's what I get after a while capture

ofpcarnage avatar Nov 03 '16 08:11 ofpcarnage

using your suggested script heres what I get capture

ofpcarnage avatar Nov 03 '16 08:11 ofpcarnage

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

ofpcarnage avatar Nov 03 '16 08:11 ofpcarnage

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

ofpcarnage avatar Nov 03 '16 09:11 ofpcarnage

Check my comment at issue #83.

I would setup your bat scripts as suggested there.

rodgermoore avatar Nov 05 '16 09:11 rodgermoore