Re: disk resident Ntuples
Alexander Yuryevich Zvyagin (Alexander.Zviagine@cern.ch)
Tue, 7 Jul 1998 09:31:33 +0200 (METDST)
> I am having a bit of trouble creating a proper disk
> resident Ntuple. I used TFile to create a file before I
> created the Ntuple, which should have made the Ntuple
> disk resident, according to my understanding. I set the
> buffer size of the Ntuple at 16000 Kb, and still, I could
> watch my DAQ program eat all of the RAM and swap space on
> the Red Hat Linux 5.0 PC I'm working on (the machine has
> more than 16 Mb of RAM). If I let the program continue,
> filling 128 variables with each run, it gives an error
> before the completion of 100 runs:
>
> Fatal in <operator new>: storage exhausted
> aborting
>
> Suggestions?
I'm almost sure that your code contains cycle with memory
allocation/deallocation and you don't free all allocated memory.
Check that each 'new' operator has appropriate 'delete' operator.
P.S. I work with Linux+ROOT on the next hardware:
Intel 486 processor, 16M RAM.
P.P.S. From a C++ book:
"Lisp's programmers know that memory management is so important that it
can't be left for a programmer, and C++'s programmers know that memory
management is so important that it can't be left for the language."
With best wishes,
Alexander Yuryevich Zvyagin.