search for: rrd_file

Displaying 2 results from an estimated 2 matches for "rrd_file".

Did you mean: drm_file
2010 Sep 19
0
A logging/graphing UPS client using rrdtool and UPS::Nut
...; use Getopt::Long; use POSIX; use RRDs; use UPS::Nut; use Pod::Usage; use strict; my $version = '0.99'; my $desc = "\nUPSwatch version $version : A NUT UPS monitoring tool using RRDtool\n"; my (%opts, $runuser, $pid, $username, $password, $upshost, $basedir, $htmldir, $rrd_file, $logfile, $daychargegraph, $weekchargegraph, $daypowergraph, $weekpowergraph, $dayloadgraph, $weekloadgraph); if (GetOptions(\%opts, 'foreground', 'username=s', 'password=s', 'runas=s',...
2008 Jun 27
1
Performance of madvise / msync
...:12:55 2008 --- src/rrd_open.c Wed Jun 25 21:43:54 2008 *************** *** 175,191 **** #endif if (rdwr & RRD_CREAT) goto out_done; - #ifdef USE_MADVISE - if (rdwr & RRD_COPY) { - /* We will read everything in a moment (copying) */ - madvise(data, rrd_file->file_len, MADV_WILLNEED | MADV_SEQUENTIAL); - } else { - /* We do not need to read anything in for the moment */ - madvise(data, rrd_file->file_len, MADV_RANDOM); - /* the stat_head will be needed soonish, so hint accordingly */ - madvise(data, sizeof(stat...