Re: [ROOT] Shared memory

From: Arkadiusz Bubak (a.bubak@fz-juelich.de)
Date: Thu Jun 21 2001 - 17:25:13 MEST


Hi Otto

Thanks for help. Unfortunately it is not a solution because consumer see
map address exactly like was set by producer.

Producer (compiled code):
--------
    Memory mapped file:   hsimple.map
    Title:                Demo memory mapped file with histograms
    Option:               CREATE
    Mapped Memory region: 0x40d19000 - 0x411de000 (4.77 MB)
    Current breakval:     0x40d21000
    Object               Class                Size
    hpx                  TH1F                 1024
    hpxpy               TH2F                 8893
    hprof                TProfile             8506

Consumer (compiled code):
---------
    Memory mapped file:   hsimple.map
    Title:                Demo memory mapped file with histograms
    Option:               READ
    Mapped Memory region: 0x40d19000 - 0x411de000 (4.77 MB)
    Current breakval:     0x40da7000
    Object               Class                Size
    hpx                  TH1F                 1024
    hpxpy               TH2F                 8893
    hprof                TProfile             8506
    Entries, hpx=0, Mean=1.96867e-169, RMS=-2.95634e-190
    Entries, hpx=0, Mean=2.88468e+146, RMS=7.11822e+101
    Entries, hpx=0, Mean=-3.0218e+57, RMS=1.8592e-303
    Entries, hpx=0, Mean=3.31754e-195, RMS=1.01073e+24
    ...

Last 4 line and next are not correct. "Script" produce:

    Entries, hpx=15221, Mean=0.00455363, RMS=0.9834
    Entries, hpx=16071, Mean=0.00498126, RMS=0.983687
    Entries, hpx=16451, Mean=0.0049757, RMS=0.983871
    Entries, hpx=16831, Mean=0.00656898, RMS=0.982866

Any further hints?


Otto.Schaile@Physik.Uni-Muenchen.DE wrote:

> Hi Arek,
> guess you have a problem with mapping, please check the following URL:
>
> http://root.cern.ch/root/htmldoc/TMapFile.html#TMapFile:SetMapAddress
>
> Cheers
> Otto



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:50 MET