Re: [rrd-users] rrdtutorial not working

This is a discussion on Re: [rrd-users] rrdtutorial not working within the RRD Users forums, part of the Networking and Network Related category; Hi Dan, yes except that I don't think MS_SYNC is ideal it should rather be MS_ASYNC and have the ...


Go Back   Usenet Forums > Networking and Network Related > RRD Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-07-2007
Tobias Oetiker
 
Posts: n/a
Default Re: [rrd-users] rrdtutorial not working

Hi Dan,

yes except that I don't think MS_SYNC is ideal it should rather be
MS_ASYNC and have the OS decide when to sync ... or would this not
suffice ?

otoh, things will only work well once the architecture independent
rrd file format is implemented ...

cheers
tobi


> Tjerk.Kusters@imtech.nl wrote:
> > 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?

>
> This is a very good point, and what seems like a simple solution.
>
> Support for working with rrds on an nfs mount would be a great thing in
> several situations, especially if you have multiple collectors and/or
> multiple front-end hosts all needing to access the same set of rrds.
>
> What are your thoughts Tobi?
>
> Dan
>
> _______________________________________________
> rrd-users mailing list
> rrd-users@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

_______________________________________________
rrd-users mailing list
rrd-users@lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 11:47 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0