Hi Jonathan,

try this patch ...

Index: rrd_open.c
===================================================================
--- rrd_open.c  (revision 1202)
+++ rrd_open.c  (working copy)
@@ -140,11 +140,7 @@
        When we stop reading, it is highly unlikely that we start up again.
        In this manner we actually save time and diskaccess (and buffer cache).
        Thanks to Dave Plonka for the Idea of using POSIX_FADV_RANDOM here. */
-    if (0 != posix_fadvise(rrd_file->fd, 0, 0, POSIX_FADV_RANDOM)) {
-        rrd_set_error("setting POSIX_FADV_RANDOM on '%s': %s", file_name,
-                      rrd_strerror(errno));
-        goto out_close;
-    }
+    posix_fadvise(rrd_file->fd, 0, 0, POSIX_FADV_RANDOM);
 #endif

 /*

cheers
tobi

Friday Jonathan Bradbury wrote:

> Hi Tobi,
>
> We are running on a Red Hat ES3 machine:
>
> # uname -a
> Linux att01dev04 2.4.21-32.ELsmp #1 SMP Fri Apr 15 21:17:59 EDT 2005
> i686 i686 i386 GNU/Linux
>
> File systems are ext3
>
> Thanks,
> JonB
>
> > -----Original Message-----
> > From: Tobias Oetiker [mailto:[EMAIL PROTECTED]
> > Sent: 14 September 2007 16:14
> > To: Jonathan Bradbury
> > Cc: [email protected]
> > Subject: Re: [smokeping-users] Smokeping performance tracking
> >
> > Hi Jonathan,
> >
> > This is odd, it seems that for some reason we are not successful in
> > telling the kernel that we want it to only read that part of the
> > file which we specify ...
> >
> > what kernel and filesystem are you using ?
> >
> > cheers
> > tobi
> > --
> > Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten
> > http://it.oetiker.ch [EMAIL PROTECTED] ++41 62 213 9902
>
>
> The information contained in this e-mail and its attachments is confidential.
> It is intended only for the named address(es) and may not be disclosed to 
> anyone else without Attenda's consent.
>
>
>

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

_______________________________________________
smokeping-users mailing list
[email protected]
https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users

Reply via email to