Re: [ROOT] Multiple booking

From: Rene Brun (Rene.Brun@cern.ch)
Date: Thu Nov 29 2001 - 11:53:01 MET


Hi Xavier,

My laptop is a small PIII-600 Mhz and I really execute in 4s real time.
However, I understand the discrepancy between your numbers and my number.
In my case, I ran the test with a TFile already connected. As a consequence,
the histograms are added to the gDirectory->GetList() in memory.
For a TFile, this list is a THashList.
In your case, very likely, you had no file connected. In this case,
the histograms are added to gDirectory->GetList(), but now gDirectory
is the TROOT object itself. In TROOT, the list is a simple TList and not a
THashList. This explains the big difference in time.

I have now changed the TList for a THashList in TROOT. The mod is in CVS.

Rene Brun


Xavier Bertou wrote:
> 
> > You likely use a machine with a small amount of memory (32 MB ?)
> > The 50000 histograms take about 40 MBytes of RAM. If your machine has less
> > memory, you will do paging all the time.
> >
> > On my small laptop, your script via the interpreter takes 4 seconds to execute.
> 
> Hi Rene, could you give us the reference of your laptop? We'd buy a few
> of them...
> 
> It took 12 minutes on this server:
> lpnp68 ~  free
>              total       used       free     shared    buffers     cached
> Mem:        523860     416324     107536          0     114244      81504
> -/+ buffers/cache:     220576     303284
> Swap:      1076344          0    1076344
> (bi PII-450, Mandrake 7.0, root 3.00/06)
> 
> And 9 minutes on this one:
> lpnp256 ~  free
>              total       used       free     shared    buffers     cached
> Mem:       1028620     970464      58156        148     114048     487908
> -/+ buffers/cache:     368508     660112
> Swap:      2047976      35532    2012444
> (bi PIII-1GHz, Mandrake 8.1, root 3.02/03)
> 
> Cheers,
> --
> Xavier



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