[rrd-developers] a portable rrd format

Bernhard Fischer rep.dot.nop at gmail.com
Wed Jun 20 22:44:49 CEST 2007


On Wed, Jun 20, 2007 at 10:26:31PM +0200, Tobias Oetiker wrote:
>Greetings,
>
>On the list for new rrdtool features there is also a new
>architecture independant rrd format. I have done some research
>today, and found two things.
>
>* XDR is probably NOT the solution
>
>* Rolling our own should not be all that difficult.
>
>I have created a little writeup on
>
>http://oss.oetiker.ch/rrdtool-trac/wiki/PortableRrdFormat
>
>I did only research x86, SPARC and PPC, if someone can fill in the
>blanks on Itanium, PA-RISC and MIPS, this would be great and very

PA-RISC:

$ arch
parisc64
$ gcc -o rrd_stuff.$(arch) rrd_stuff.c && file rrd_stuff.$(arch)
rrd_stuff.parisc64: ELF 32-bit MSB executable, PA-RISC version 1
(GNU/Linux), for GNU/Linux 2.6.9, dynamically linked (uses shared libs),
not stripped
$ ./rrd_stuff.$(arch)  
    0.000000e+00 ->  00 00 00 00 00 00 00 00
    1.000000e+00 ->  3f f0 00 00 00 00 00 00
   -1.000000e+00 ->  bf f0 00 00 00 00 00 00
             nan ->  7f f4 00 00 00 00 00 00
             inf ->  7f f0 00 00 00 00 00 00
            -inf ->  ff f0 00 00 00 00 00 00
    2.000000e+00 ->  40 00 00 00 00 00 00 00
    4.000000e+00 ->  40 10 00 00 00 00 00 00
    8.000000e+00 ->  40 20 00 00 00 00 00 00
    1.600000e+01 ->  40 30 00 00 00 00 00 00
   8.642135e+130 ->  5b 1f 2b 43 c7 c0 25 2f


IA64:

$ arch
ia64
$ gcc -o rrd_stuff.$(arch) rrd_stuff.c && file rrd_stuff.$(arch)
rrd_stuff.ia64: ELF 64-bit LSB executable, IA-64, version 1 (SYSV), for
GNU/Linux 2.6.1, dynamically linked (uses shared libs), not stripped
$ ./rrd_stuff.$(arch)
    0.000000e+00 ->  00 00 00 00 00 00 00 00
    1.000000e+00 ->  00 00 00 00 00 00 f0 3f
   -1.000000e+00 ->  00 00 00 00 00 00 f0 bf
             nan ->  00 00 00 00 00 00 f8 ff
             inf ->  00 00 00 00 00 00 f0 7f
            -inf ->  00 00 00 00 00 00 f0 ff
    2.000000e+00 ->  00 00 00 00 00 00 00 40
    4.000000e+00 ->  00 00 00 00 00 00 10 40
    8.000000e+00 ->  00 00 00 00 00 00 20 40
    1.600000e+01 ->  00 00 00 00 00 00 30 40
   8.642135e+130 ->  2f 25 c0 c7 43 2b 1f 5b


If figures for alpha are of interrest then please let me know.
ARM figures should be collected, too, i guess.
HTH,



More information about the rrd-developers mailing list