emdje (OP)
|
|
June 03, 2015, 10:16:52 PM |
|
I can't find a watchdog, no sign of cgminer getting restarted.
I've got my own watchdog running now. Other than stopping, possibly when trying to start when servers aren't responding quickly enough, your image has worked ok.
I had a quick go at putting your cgminer in minera. It didn't seem to like the mix of command line and json.conf. I can't be bothered to delve into minera...
The watchdog is programmed into cgminer, it is not external: /* Makes sure the hashmeter keeps going even if mining threads stall, updates * the screen at regular intervals, and restarts threads if they appear to have * died. */ #define WATCHDOG_INTERVAL 2 #define WATCHDOG_SICK_TIME 120 #define WATCHDOG_DEAD_TIME 600 #define WATCHDOG_SICK_COUNT (WATCHDOG_SICK_TIME/WATCHDOG_INTERVAL) #define WATCHDOG_DEAD_COUNT (WATCHDOG_DEAD_TIME/WATCHDOG_INTERVAL)
static void *watchdog_thread(void __maybe_unused *userdata) { const unsigned int interval = WATCHDOG_INTERVAL; struct timeval zero_tv;
pthread_setcanceltype(PTHREAD_CANCEL_ASYNCHRONOUS, NULL);
RenameThread("watchdog");
set_lowprio(); memset(&zero_tv, 0, sizeof(struct timeval)); cgtime(&rotate_tv);
while (1) { int i; struct timeval now;
sleep(interval);
discard_stale();
hashmeter(-1, &zero_tv, 0);
|
|
|
|
emdje (OP)
|
|
June 03, 2015, 10:18:03 PM |
|
how to start cgminer from ssh on image for a2 mini? i need to reboot my miner everytime i want to change pool nvm found it:) for some reason wasnt starting. just need to install screen and Im good to go. thanks for great image. scripta was crap. most of times cgminer woudnt start:/ Great to hear it works. And great that you could fix the transport damage.
|
|
|
|
pictsidhe
Member
Offline
Activity: 199
Merit: 10
|
|
June 04, 2015, 12:55:48 AM |
|
I can't find a watchdog, no sign of cgminer getting restarted.
I've got my own watchdog running now. Other than stopping, possibly when trying to start when servers aren't responding quickly enough, your image has worked ok.
I had a quick go at putting your cgminer in minera. It didn't seem to like the mix of command line and json.conf. I can't be bothered to delve into minera...
The watchdog is programmed into cgminer, it is not external: /* Makes sure the hashmeter keeps going even if mining threads stall, updates * the screen at regular intervals, and restarts threads if they appear to have * died. */ #define WATCHDOG_INTERVAL 2 #define WATCHDOG_SICK_TIME 120 #define WATCHDOG_DEAD_TIME 600 #define WATCHDOG_SICK_COUNT (WATCHDOG_SICK_TIME/WATCHDOG_INTERVAL) #define WATCHDOG_DEAD_COUNT (WATCHDOG_DEAD_TIME/WATCHDOG_INTERVAL)
static void *watchdog_thread(void __maybe_unused *userdata) { const unsigned int interval = WATCHDOG_INTERVAL; struct timeval zero_tv;
pthread_setcanceltype(PTHREAD_CANCEL_ASYNCHRONOUS, NULL);
RenameThread("watchdog");
set_lowprio(); memset(&zero_tv, 0, sizeof(struct timeval)); cgtime(&rotate_tv);
while (1) { int i; struct timeval now;
sleep(interval);
discard_stale();
hashmeter(-1, &zero_tv, 0); The big problem was that cgminer exits if it can't connect to pools. It does seem to keep running if it starts properly. I've got a bash script that checks for the right number of ./cgminer processes every 3 minutes now. Too many, it kills them all, not enough, it invokes run.sh. I had some gridseed rigs where they sometimes started duplicate copies of cpuminer, which doesn't work very well. Your firmware hasn't had that problem, but I've left it in. edit index.php to change run.sh to check.sh check.sh, stick it in /var/www #!/bin/bash while true do MC=$(ps -ef | grep -v grep | grep -c "./cgminer -o stratum+tcp" ) # echo $MC if [ $MC -lt 2 ]; then sudo ./run.sh else if [ $MC -gt 2 ]; then # echo too many sudo /usr/bin/killall -s9 cgminer fi fi sleep 180 done
|
|
|
|
emdje (OP)
|
|
June 04, 2015, 08:59:29 AM |
|
I can't find a watchdog, no sign of cgminer getting restarted.
I've got my own watchdog running now. Other than stopping, possibly when trying to start when servers aren't responding quickly enough, your image has worked ok.
I had a quick go at putting your cgminer in minera. It didn't seem to like the mix of command line and json.conf. I can't be bothered to delve into minera...
The watchdog is programmed into cgminer, it is not external: /* Makes sure the hashmeter keeps going even if mining threads stall, updates * the screen at regular intervals, and restarts threads if they appear to have * died. */ #define WATCHDOG_INTERVAL 2 #define WATCHDOG_SICK_TIME 120 #define WATCHDOG_DEAD_TIME 600 #define WATCHDOG_SICK_COUNT (WATCHDOG_SICK_TIME/WATCHDOG_INTERVAL) #define WATCHDOG_DEAD_COUNT (WATCHDOG_DEAD_TIME/WATCHDOG_INTERVAL)
static void *watchdog_thread(void __maybe_unused *userdata) { const unsigned int interval = WATCHDOG_INTERVAL; struct timeval zero_tv;
pthread_setcanceltype(PTHREAD_CANCEL_ASYNCHRONOUS, NULL);
RenameThread("watchdog");
set_lowprio(); memset(&zero_tv, 0, sizeof(struct timeval)); cgtime(&rotate_tv);
while (1) { int i; struct timeval now;
sleep(interval);
discard_stale();
hashmeter(-1, &zero_tv, 0); The big problem was that cgminer exits if it can't connect to pools. It does seem to keep running if it starts properly. I've got a bash script that checks for the right number of ./cgminer processes every 3 minutes now. Too many, it kills them all, not enough, it invokes run.sh. I had some gridseed rigs where they sometimes started duplicate copies of cpuminer, which doesn't work very well. Your firmware hasn't had that problem, but I've left it in. edit index.php to change run.sh to check.sh check.sh, stick it in /var/www #!/bin/bash while true do MC=$(ps -ef | grep -v grep | grep -c "./cgminer -o stratum+tcp" ) # echo $MC if [ $MC -lt 2 ]; then sudo ./run.sh else if [ $MC -gt 2 ]; then # echo too many sudo /usr/bin/killall -s9 cgminer fi fi sleep 180 done Thnx I'll check it out
|
|
|
|
emdje (OP)
|
|
June 10, 2015, 01:24:57 PM |
|
|
|
|
|
Prelude
Legendary
Offline
Activity: 1596
Merit: 1000
|
|
June 17, 2015, 10:52:12 PM |
|
Hi Emdje, Would it be possible for you to upload the latest image with 1200-1220-1240-1260-1280-1300-1320-1340-1360-1380-1400 available?
|
|
|
|
pictsidhe
Member
Offline
Activity: 199
Merit: 10
|
|
June 19, 2015, 11:05:32 PM |
|
I'm having pool issues again. I usually connect through miningrigrentals. My gridseed rigs connect fine (via stratehm proxy), the last few days, my a2 has had trouble using mrr. It currently can't connect, although it can ping mrr ping. I've tried adding --failover-only but it's not helping. As my last pool (I hacked it to have 6 instead of two groups of 3) I have clevermining, which it usually, but not always, will connect to. I don't have a brilliant connection, but it's generally ok for mining.
|
|
|
|
emdje (OP)
|
|
June 20, 2015, 10:56:53 AM |
|
Hi Emdje, Would it be possible for you to upload the latest image with 1200-1220-1240-1260-1280-1300-1320-1340-1360-1380-1400 available? I am working on it right now. I can't finalize it because I am not at home, but it will come soon.
|
|
|
|
emdje (OP)
|
|
June 20, 2015, 10:59:59 AM |
|
I'm having pool issues again. I usually connect through miningrigrentals. My gridseed rigs connect fine (via stratehm proxy), the last few days, my a2 has had trouble using mrr. It currently can't connect, although it can ping mrr ping. I've tried adding --failover-only but it's not helping. As my last pool (I hacked it to have 6 instead of two groups of 3) I have clevermining, which it usually, but not always, will connect to. I don't have a brilliant connection, but it's generally ok for mining.
Weird I never had any issues with any of the versions (only with the latest one I use personally over wifi and have not released due to those issues). Now that I come to think about that, do you use ethernet of wifi? I will finalize as you can read an new version soon. I will revert back to the old stratum code, because I think that is a little bit flaky.
|
|
|
|
Prelude
Legendary
Offline
Activity: 1596
Merit: 1000
|
|
June 21, 2015, 05:04:21 PM |
|
Hi Emdje, Would it be possible for you to upload the latest image with 1200-1220-1240-1260-1280-1300-1320-1340-1360-1380-1400 available? I am working on it right now. I can't finalize it because I am not at home, but it will come soon. No rush, thank you sir.
|
|
|
|
wolverine5pl
|
|
July 09, 2015, 10:50:17 PM |
|
need advice. just got my a2 miner 95mh/s from ebay. using image what was installed. getting bit of HV errors Accepted 769 Hardware Errors 157 so thats 20.4% isnt? thats with 1280 mhz settings need to go to 1100mhz to get very low hv errors but then hashrate drops to 70+- (now getting around 90-95) but device hardware% is 0.01% is this figure correct?
|
|
|
|
|
emdje (OP)
|
|
July 10, 2015, 08:12:36 AM |
|
1280MHz in normal configuration should be around 6% errors or something. 1200 should be low low enough. Indeed how hot is your room, they work alot better when the chips are colder, < 50 Degrees Celcius.
|
|
|
|
wolverine5pl
|
|
July 10, 2015, 09:14:38 AM |
|
temp in room about 25-28 celcius. a2 mini was getting around 2% errors
|
|
|
|
emdje (OP)
|
|
July 10, 2015, 12:30:56 PM |
|
temp in room about 25-28 celcius. a2 mini was getting around 2% errors
Which software is on there? Because the way the deviders are set-up in the firmware matters quite a lot to the amound of hardware errors. I would recommend my latest version.
|
|
|
|
wolverine5pl
|
|
July 10, 2015, 02:29:11 PM |
|
it had your latest version 4.0 using miner eu now with gui and still getting high hardware errors:( when using your versions I tried to start cgminer manually but I didnt had that top part of cgminer with stats, any idea why
|
|
|
|
wolverine5pl
|
|
July 10, 2015, 02:51:44 PM |
|
would psu cause this? had to lower three blades to 1100 and three left at 1280 giving me 88mh/s with 3.8% hw errors so not bad
|
|
|
|
emdje (OP)
|
|
July 10, 2015, 04:25:37 PM |
|
would psu cause this? had to lower three blades to 1100 and three left at 1280 giving me 88mh/s with 3.8% hw errors so not bad
Well yes, if the power supply can't provide enough/stable power it could.
|
|
|
|
wolverine5pl
|
|
July 10, 2015, 04:41:18 PM |
|
emdje thanks for help after tweaking and using your image i managed to get 90mh/s with 3.5+- % hw errors. happy with that. had a look at psu and replacing it will be painfull as doesnt look like just plug and play thing. but definetly gonna repace fans for something more quiet. they are way to loud to keep in living room
|
|
|
|
emdje (OP)
|
|
July 10, 2015, 04:45:07 PM |
|
You are welcome. And great to hear my image works well.
If you do change out the psu be aware of the polarity of the connectors to the board. I had to switch the pluses and minis-us of my computer psu for the correct polarity. Measure and check the polarity!!
|
|
|
|
|