Page 4 of 4

Re: Raspberry Pi b und Systemlast

Posted: Wed Dec 24, 2014 1:23 pm
by admin
looking into this I realized that on your system the job that computes "every minute" data in "/home/meteohub/histeval0" takes about 30 seconds to run when you enter the end of the month. When other computations are also running, then it might take longer than a minute and by that histeval0 calls (which are done every minute) do stack up.

I made an experimental change in your histeval0 file by checking that new computation is only started when no old one still being done. This might result into updating the minute data sometimes a minute later, but as the data for the last hour is computed, a missing minute will be closed on the next run.

Lets see, if this fixes the issue. I will put the code then into production.

As you see, there has been another technique reducing computation calls when using the slow NSLU2, but to check if a job is still running seems to be the better way.

Code: Select all

#!/bin/sh
if [ "$METEOHUBHW" == "NSLU2" ]
then
  mod=$(((`date +"%s"` / 60) % 3))
  if [ $mod -gt 0 ]
  then
    exit 0
  fi
fi
if [ `ps ax | grep -e "-c min1 -t -3720" | grep -v grep | wc -l` -lt 1 ]
then
  /home/meteohub/wmr928eval -c min1 -t -3720 -w /data/weather/ -s /home/meteohub/wmr928eval.conf -S
fi

Re: Raspberry Pi b und Systemlast

Posted: Wed Dec 24, 2014 1:46 pm
by wilfried
Ok Boris, dann werde ich es mal beobachten.

Muss ich den Meteohub/Raspberry neu starten?

Re: Raspberry Pi b und Systemlast

Posted: Wed Dec 24, 2014 1:51 pm
by admin
nein.

Re: Raspberry Pi b und Systemlast

Posted: Thu Dec 25, 2014 8:09 am
by wilfried
Hallo Boris, ich werde es weiter beobachten.
systemlast1.png
systemlast1.png (7.71 KiB) Viewed 6163 times

Re: Raspberry Pi b und Systemlast

Posted: Thu Dec 25, 2014 12:22 pm
by admin
Das sieht doch schonmal gut aus!

Re: Raspberry Pi b und Systemlast

Posted: Sat Dec 27, 2014 9:05 pm
by wilfried
Im Moment läuft der Raspberry problemlos.
system7tage1.png
system7tage1.png (8.69 KiB) Viewed 6063 times

Re: Raspberry Pi b und Systemlast

Posted: Wed Dec 31, 2014 4:43 pm
by wilfried
Guten Tag Boris,

es sieht gut aus. Die letzten Stunden im Monat wird der Raspberry auch noch schaffen.
Bis dato keine FTP Fehlermeldungen gehabt, alles super durchgelaufen.
system7tage2.png
system7tage2.png (7.83 KiB) Viewed 5899 times
systemmonat1.png
systemmonat1.png (7.88 KiB) Viewed 5899 times
Einen guten Rutsch und alles Gute für 2015.

Re: Raspberry Pi b und Systemlast

Posted: Wed Dec 31, 2014 4:51 pm
by admin
Prima, dann stelle ich das mal als Update online... aber nicht mehr heute, dann im neuen Jahr ;-)