[rrd-developers] rrd/cricket 64-bit clean ?

Peter Marquardt wwwutz at molgen.mpg.de
Mon Feb 14 15:57:02 MET 2000


hi!

I'm quite new to rrd (startet with 1.1.10 + cricket) and experiencing
some weirdos wich I would like to take into discussion:

- On True64, DEC-Alpha sizeof(long) is 8, which affects mainly the
  size of the rrd_format.h - structures (They rest as *.rrd on disk,
  so the files might not be readable by other architectures).

  Is there any hope to make the datafiles kinda 'binary-portable' ?
  (this would really speed up debugging: "hey, byte 14 must be 0x43!")

- Perl's 'pack'-template mentions 'L':

  "  L   An unsigned long value.
          (This 'long' is _exactly_ 32 bits, which may differ from
           what a local C compiler calls 'long'.)  "

  "cricket", for example, uses this L-template to extract data from
  the *.rrd-files (in it's RRD/File.pm) which heavily fails on
  64-bit-architectures.

  Is there more sizeof(long) stuff hidden in the perl-part of rrdtool ?

- Nice examples, but I don't know if the output I get is, what it really
  should look like!

  Any chance to put in some kind of "this_is_how_it_should_look_like.gif"
  in the example-directory ?



I'm asking this, because I'm experiencing:

  - coredumps on crickets "rrd-dump" (8 vs. 4 long - problem)
  - Missing Y-scales in rrdtool graph output (rrdtool-examples)

For example the "shared-demo.pl":

wwwutz at marsupilami> xxd shared-demo.rrd | head -4
0000000: 5252 4400 3030 3031 0000 0000 0000 0000  RRD.0001........
0000010: 2f25 c0c7 432b 1f5b 0500 0000 0000 0000  /%..C+.[........
0000020: 0200 0000 0000 0000 6400 0000 0000 0000  ........d.......
0000030: 0000 0000 0000 0000 0000 0000 0000 0000  ................

we can see easily:

double       float_cookie :=  2f25 c0c7 432b 1f5b
unsigned long    ds_cnt   :=  0500 0000 0000 0000
unsigned long    rra_cnt  :=  0200 0000 0000 0000
unsigned long    pdp_step :=  6400 0000 0000 0000

64 bit, sure. but I have the slight feeling this 4 vs. 8 stuff breaks
the Y-scales somewhere in the sources.

feeding this shared-demo.rrd into a commmadline-rrdtool via:

$ rrdtool graph x.gif DEF:lala=shared-demo.rrd:a:AVERAGE LINE1:lala#ff0000

... results in a graph without y-scales, bouncing up and down over the 
grey box/x-axis. --alt-autoscale makes it fit into the box, but no
y-marks anywhere.


	Peter

--
##===========================##============================================##
Dipl.Ing. Peter Marquardt/// B.O.F.H. Max-Planck-Institute Molecular Genetics
|| +49-30-8413-1430     ///  ||   --==> Earth-Germany-Berlin-Dahlem <==--  ||
::        fax -1432 \\\///   ::          marquardt_p at molgen.mpg.de         ::
..================== *The Turtle Moves* ===================================..


--
Unsubscribe mailto:rrd-developers-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-developers-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/rrd-developers



More information about the rrd-developers mailing list