Citronick , I have a question again : as your are a usual user of ethman , could tell me how is working the batch file that ethman launch if miner as a problem ?
The bat is called "sample" and include :
"@ECHO OFF
ECHO This is sample batch file that can do something useful if rig has problems
ECHO Rig name: %1
TIMEOUT /T 5"
I guess we have to modify it in order to get result but I don't know what I can put inside this bat ?
Any advice ?
If any of my rigs has issues, frankly I am not interested in the why and the details - I even turn the log file off - the last thing on my mind is investigating why it rebooted... because my farm is offsite, I just want the rig to be rebooted quickly. In Windows vs LINUX, it's not secret that Windows bloatware and memory leaks are usually the main culprit in stability and performance of a Windows environment. So reboot is the only way to clear memory stacks and get Windows to start fresh.
In Ethman, it can track how many times your rig rebooted since last Ethman launch. I only keep an eye on this counter. If I see too many reboots then I will babysit the particular rig and see what goes on with the log file turned on - anything out of the ordinary, I will just post and ask Claymore about it -- most likely a Claymore thing eventually rather than a Windows thing. Otherwise, I dont expect it to reboot at all. All my rigs can stay hashing online for very long time, ie. 2-3 weeks 24x7.
Some bad rigs constantly rebooting - usually are PSU, power, temperature, faulty riser issues... sometimes bad Crimson drivers .... or HW errors if you really unlucky... so almost nothing to do with OS.
This reboot feature with watchdog is very key feature in Ethman - worth every cent in dev fee this Ethman.
- r 1 and reboot.bat with a single command line "shutdown /r /t 5 /f"
Please note you are using shutdown command where /r is reboot with 5 seconds countdown and /f force reboot
Extracted from Claymore's README file.
========================================================
-r Restart miner mode. "-r 0" (default) - restart miner if something wrong with GPU. "-r -1" - disable automatic restarting. -r >20 - restart miner if something wrong with GPU or by timer. For example, "-r 60" - restart miner every hour or when some GPU failed.
"-r 1" closes miner and execute "reboot.bat" file ("reboot.bash" or "reboot.sh" for Linux version) in the miner directory (if exists) if some GPU failed.
So you can create "reboot.bat" file and perform some actions, for example, reboot system if you put this line there: "
shutdown /r /t 5 /f".
========================================================
Thank you very much for the informations.
I'm not sure to understand correctly (maybe due to translations)
When I use -r 0 that restart miner if something wrong with GPU , it makes restart miner as soon as a gpu hang. (the gpu show 0 mh/s)
My problem is that I always get blue screen when miner restart after a gpu hang.
If I want to get all gpu work again, I have to reboot windows.
Of course, a blue screen leads to a reboot.
So what I need is a way to start claymore again after an unexpected windows reboot.
If I understand correctly what you said , the reboot.bat with shutdown /r /t 5 /f , associated with -r 1 would do the trick ? or did I miss something ?
If a gpu hang, so windows will reboot?
Where do we put this reboot.bat ? with ethman or with claymore ?
How do we have claymore launched automatically after windows reboot ?
Sorry if it sounds stupid .. and thank you again ! your advices are precious.