| Summary: | Memory leak with QGSP used in example/novice/N02 | ||
|---|---|---|---|
| Product: | Geant4 | Reporter: | nanjo |
| Component: | processes/hadronic | Assignee: | Gabriele Cosmo <Gabriele.Cosmo> |
| Status: | RESOLVED WORKSFORME | ||
| Severity: | normal | ||
| Priority: | P2 | ||
| Version: | 8.1 | ||
| Hardware: | PC | ||
| OS: | Linux | ||
|
Description
nanjo
2006-09-29 08:12:06 CEST
The problem is occured in LHEP also. I'm sorry for wrong information. The meomry usage as a function of number of event processed is shown in http://www-he.scphys.kyoto-u.ac.jp/member/nanjo/mem.gif Is it an expected behavior? There is no memory leak in exampleN02, as far as we can verify with any memory leak tool or with Valgrind on Linux. The increase of memory you notice is due first to the initialisation and then to the progressive growth of the allocator's buffer for track/trajectories or information associated to the events. The memory usage at some point reaches a plateau, as also confirmed in your plot; occasionally it may grow due to an event bigger in size; the memory consumed is NOT returned to the free store until a run is concluded and no leaks are observed at the end of the job related to the event loop. |