[rrd-users] rrdtutorial not working

Tobias Oetiker tobi at oetiker.ch
Sat Sep 8 01:08:43 CEST 2007


Hi Tjerk,

I have done some more reading and found that there was a bug fixed
in kernel 2.6.12 which cause problems with mmap and nfs ...

what kernel are you using ?

cheers
tobi

>
>
>
>
>
> Hello Tobias,
>
> I read that there can be a problem when using mmap/munmap on NFS.
> On http://nfs.sourceforge.net/ there is a part over mmap and NFS. According
> to the msync man page  you should use msync before a munmap.
>
> I have add 2 msync function call in rrd_update.c and it looks to help.
>
> #ifdef HAVE_MMAP
>                 msync(rrd_mmaped_file, rrd_filesize,MS_SYNC);
>                 munmap(rrd_mmaped_file, rrd_filesize);
> #endif
>
> Is there a reason that you don't use a msync?
>
> best regards,
> Tjerk
>
>
>
> -----Tobias Oetiker <tobi at oetiker.ch> wrote: -----
>
> >To: Tjerk.Kusters at imtech.nl
> >From: Tobias Oetiker <tobi at oetiker.ch>
> >Date: 07-09-2007 11:42
> >cc: rrd-users at lists.oetiker.ch
> >Subject: Re: [rrd-users] rrdtutorial not working
> >
> >Hi Tjerk,
> >
> >my guess is that the 'time' on your vmware host is not correct ...
> >
> >cheers
> >tobi
> >
> >Today Tjerk.Kusters at imtech.nl wrote:
> >
> >>
> >>
> >>
> >>
> >>
> >> Hello,
> >>
> >> I am storing the rrd files on a nfs mounted filessytem, which is the cause
>
> >> of the problems.
> >> Is there a solution to this problem?
> >>
> >> Regards,
> >> Tjerk
> >>
> >> -----rrd-users-bounces at lists.oetiker.ch wrote: -----
> >>
> >> >To: rrd-users at lists.oetiker.ch
> >> >From: Tjerk.Kusters at imtech.nl
> >> >Sent by: rrd-users-bounces at lists.oetiker.ch
> >> >Date: 05-09-2007 16:24
> >> >Subject: [rrd-users]  rrdtutorial not working
> >> >
> >> >
> >> >
> >> >
> >> >
> >> >
> >> >Hello,
> >> >
> >>
> >>I have a problem to get the example in the tutorial to work, atÂ
>
> >least on a
> >>
> >>Fedora 6 Vmware machine it is not working. I am getting an emptyÂ
>
> >graph. The
> >>
> >> >graph is oke when a I run the same command's on Windows .
> >> >
> >> >Fedora: RRDtool 1.2.23 (rrdtool-1.2.23-6.fc6)
> >> >Windows: RRDtool 1.2.23 (binary from website)
> >> >
> >> >Looks like the samething happens with a script I created...
> >> >
> >> >[root at master dp02]# rrdtool lastupdate sensorinfo.rrd
> >> > cpufan cputemp mbtemp
> >> >
> >> >1189002120: 3351 41 33
> >> >
> >> >
> >> >When I use this command:
> >> >
> >> >[root at master dp02]# rrdtool xport --start end-1h
> >> >DEF:ds=sensorinfo.rrd:cputemp:AVERAGE XPORT:ds:mem
> >> >
> >> >I am getting:
> >> >
> >> ><?xml version="1.0" encoding="ISO-8859-1"?>
> >> >
> >> ><xport>
> >> >  <meta>
> >> >    <start>1188998580</start>
> >> >    <step>60</step>
> >> >    <end>1189002180</end>
> >> >    <rows>61</rows>
> >> >    <columns>1</columns>
> >> >    <legend>
> >> >      <entry>mem</entry>
> >> >    </legend>
> >> >  </meta>
> >> >  <data>
> >> >--cut--
> >> >    <row><t>1189001880</t><v>NaN</v></row>
> >> >    <row><t>1189001940</t><v>NaN</v></row>
> >> >    <row><t>1189002000</t><v>NaN</v></row>
> >> >    <row><t>1189002060</t><v>NaN</v></row>
> >> >    <row><t>1189002120</t><v>NaN</v></row>
> >> >    <row><t>1189002180</t><v>NaN</v></row>
> >> >  </data>
> >> ></xport>
> >> >
> >> >Any idea what the problem can be?
> >> >
> >> >Regards,
> >> >Tjerk
> >> >
> >> >_______________________________________________
> >> >rrd-users mailing list
> >> >rrd-users at lists.oetiker.ch
> >> >https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
> >> >
> >> >
> >>
> >> _______________________________________________
> >> rrd-users mailing list
> >> rrd-users at lists.oetiker.ch
> >> https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
> >>
> >>
> >
> >--
> >Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten
> >http://it.oetiker.ch tobi@oetiker.ch ++41 62 213 9902
> >
>
>

-- 
Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten
http://it.oetiker.ch tobi at oetiker.ch ++41 62 213 9902


More information about the rrd-users mailing list