Raspberry Pi b und Systemlast

all about Meteohub on the new Raspberry PI platform

Moderator: Mattk

User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7854
Joined: Mon Oct 01, 2007 10:51 pm

Re: Raspberry Pi b und Systemlast

Post 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
wilfried
Senior Boarder
Senior Boarder
Posts: 76
Joined: Wed Aug 20, 2014 5:21 pm
Location: Willich
Contact:

Re: Raspberry Pi b und Systemlast

Post by wilfried »

Ok Boris, dann werde ich es mal beobachten.

Muss ich den Meteohub/Raspberry neu starten?
Gruß Wilfried
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7854
Joined: Mon Oct 01, 2007 10:51 pm

Re: Raspberry Pi b und Systemlast

Post by admin »

nein.
wilfried
Senior Boarder
Senior Boarder
Posts: 76
Joined: Wed Aug 20, 2014 5:21 pm
Location: Willich
Contact:

Re: Raspberry Pi b und Systemlast

Post by wilfried »

Hallo Boris, ich werde es weiter beobachten.
systemlast1.png
systemlast1.png (7.71 KiB) Viewed 6164 times
Gruß Wilfried
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7854
Joined: Mon Oct 01, 2007 10:51 pm

Re: Raspberry Pi b und Systemlast

Post by admin »

Das sieht doch schonmal gut aus!
wilfried
Senior Boarder
Senior Boarder
Posts: 76
Joined: Wed Aug 20, 2014 5:21 pm
Location: Willich
Contact:

Re: Raspberry Pi b und Systemlast

Post by wilfried »

Im Moment läuft der Raspberry problemlos.
system7tage1.png
system7tage1.png (8.69 KiB) Viewed 6064 times
Gruß Wilfried
wilfried
Senior Boarder
Senior Boarder
Posts: 76
Joined: Wed Aug 20, 2014 5:21 pm
Location: Willich
Contact:

Re: Raspberry Pi b und Systemlast

Post 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 5900 times
systemmonat1.png
systemmonat1.png (7.88 KiB) Viewed 5900 times
Einen guten Rutsch und alles Gute für 2015.
Gruß Wilfried
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7854
Joined: Mon Oct 01, 2007 10:51 pm

Re: Raspberry Pi b und Systemlast

Post by admin »

Prima, dann stelle ich das mal als Update online... aber nicht mehr heute, dann im neuen Jahr ;-)
Post Reply