Hi Willard,

I have seen this before actually... and I think I know the reason as well...
The problem seem to occur during these circumstances:

You have a new installed box and reboot it.
Owfs-processes is started
Temploggerd is started. It scans the 1-wire bus and creates the html-files
and rrd-files.
Temploggerd is now working good without any long delays.
Time is set to correct date by ntpclient. (From year 2000 to 2008)
Temploggerd is now hanging since all rrdtools are taking extremely long
time.
It seems like rrdtool has problem to rotate away old data from year 2000 and
insert new values created year 2008.

I have managed to "solve" the hanging by:
kill-temploggerd
rm /path/temperature.rrd
run-temploggerd

Try to make sure the date is correct before starting temploggerd in the
rc-scripts. Eg. The clock should not only be set in a cronjob.
Ntpclient has to be called before temploggerd's rc-startup script.

Can you verify if you have stumbled into the same problem as I have
experienced before.

/Christian


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Willard
Korfhage
Sent: den 17 januari 2008 05:37
To: OWFS Developers List
Subject: [Owfs-developers] rrdtool takes extremely long time to generate
images for temploggerd on NSLU2 running Debian

I put owfs and temploggerd on an NSLU2 running Debian 4.0r2. Owfs is 
working, but I couldn't get any of the temploggerd web pages. I traced 
the problem down to the rrdtool graph function, and for certain 
parameters it takes a terribly long time to generate pages. Temploggerd 
generates a cgi file that has an RRD::GRAPH tag to generate the graph 
image, and that includes instructions to print out the average, min, max 
and last. I ran the equivalent by running "rddtool graph" by hand, 
printing out only the max. It turns out that a graph that includes

PRINT:2629A880000000tempe:MAX:"%5.1lf C"

makes it take 37 minutes to generate the image. If I remove that 
instruction, it takes 5.7 seconds to generate the image. I tried the 
version of rrdtools installed by aptitude (1.2.15), and even compiled 
the latest (1.2.26), and both act the same.

Interestingly enough, the print directives work fine on my NSLU2 unit 
running Unslung 6.8. Some difference between big- and little-ending 
versions?

Willard

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to