Message: Geant4 eating up memory! Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Geant4 eating up memory! 

Keywords: Geant4 run-time memory leaks
Forum: Run Management
Date: 06 Jul, 2005
From: Zach Hartwig <zsh42@g2pc1.bu.edu>

Hi everyone,

I'm currently having a nasty problem with Geant4 and memory.
During run-time, Geant4 rapidly consumes memory.  If a sufficient 
number of events are generated (~100), Geant4 eventually eats up 
all the available memory and freezes the computer.  

A simple description:  I have a circular "storage" tube composed 
of 12 identical "G4Tubs" sections of 30 degrees each composed
of vacuum.  There are 1cm thick aluminum walls that surround each 
of the 12 vacuum sections, each of the 4 walls (top,bottom,2 sides) 
are also "G4Tubs" of 30 degrees each.  A magnetic field, that I have 
derived from G4MagneticField, is placed within the regions surrounded 
by the aluminum walls. 

Things I have tried to eliminate memory issues:
-eliminated all optional user classes(ie, eventAction, steppingAction...)
-ran the geant4 geometry tests and got no overlapping, no spurious errors
-stripped down my complicated geometry to the one described above
-turned off trajectory storage
-ran Geant4 with memory checker "valgrind"
-ensured all created objects are deleted

Any suggestions on where to find these mysterious and devastating memory
leaks would be greatly appreciated!  Thanks very much.

~Zach

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 None: Re: Geant4 eating up memory!   (Vladimir IVANTCHENKO - 07 Jul, 2005)
 Add Message Add Message
to: "Geant4 eating up memory!"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]