Hi Pascal, the problem is with the way memory is managed in HP-UX. Once the data segment is increased it keeps the reservation. If after the delete you create again the clones array it stays at 82MB (which shows that internally the memory is being reused as opposed to being leaked). Nothing we can do here. Cheers, Fons. Pascal Vincent wrote: > > Hello! > > 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. -- Org: CERN, European Laboratory for Particle Physics. Mail: 1211 Geneve 23, Switzerland Phone: +41 22 7679248 E-Mail: Fons.Rademakers@cern.ch Fax: +41 22 7677910
This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:34:33 MET