I have a problem of memory allocation on HP-UX. I have to create large
arrays for event storage and I do not need to keep this amont of memory
in all the execution of my program. I tried to delete these arrays
(TClonesArray) but I did not succeed. I mean that this memory is always
loaded by my process. I made the following test in a root interactive
session :
$>root need ->3884 Kb of memory
root [0] TClonesArray *pouet = new TClonesArray("TTime",10000000)
memory grows to ->82072 Kb
root [1] delete pouet
stay at 82072 Kb...
I made this test on 2 different root version (1.03/06 27 October 1997 and
1.03/09 16 December 1997) on HP-UX 10.2. I tried a "pouet->Delete()"
before, but with the same result. In an other hand, it seems to work on
PC-Linux (I use root version : 1.03/08 (24 November 1997)).
$>root need -> 7424 Kb of memory
root [0] TClonesArray *pouet = new TClonesArray("TTime",10000000)
memory grows to -> 85768 Kb
root [1] delete pouet
go down to 7668 Kb... Not perfect but enought for me.
Any idea?
cheers,
Pascal.