GSI Forum - RDF feed
type: channel
description: GSI Helmholtzzentrum für Schwerionenforschung
items: TMemStat

TMemStat
type: item
description: Dear all, I am trying to investigate the memory usage of our code by using the new TMemStat tool from ROOT. I have added to my sim macro the following line just at the beginning: TMemStat mm("gnubuiltin"); and I have processed 10k DPM events. First of all, I have seen our famous common error: **** GTRIGI: IEVENT= 2214 IDEVT= 2214 Random Seeds = 4357 0 -I FairPrimaryGenerator: 3 primary tracks from vertex (0, 0, 0)Event Time = 0(ns) -I- PndStack: Filling MCTrack array... -I- PndStack: Number of primaries = 3 Total number of particles = 397 Number of tracks in output = 138 Error: Symbol #include is not defined in current scope run_sim_tpccombi_dpm.C:131: Error: Symbol exception is not defined in current scope run_sim_tpccombi_dpm.C:131: Syntax Error: #include <exception> run_sim_tpccombi_dpm.C:131: Error: Symbol G__exception is not defined in current scope run_sim_tpccombi_dpm.C:131: Error: type G__exception not defined FILE:/home/spataro/trunk/pandaroot/macro/pid/mtest/./run_sim_tpccombi_dpm.C LINE:131 *** Break *** segmentation violation -I- PndStack: Updating track indizes...Root > Function run_sim_tpccombi_dpm() busy flag cleared *** Break *** segmentation violation and the macro has crashed. After, if I have understood correctly, I open a new ROOT session and type: spataro@briareos:~/trunk/pandaroot/macro/pid/mtest$ rt root [0] TMemStat::Show() Analyzing file: memstat_7796.root Warning in <TFile::Init>: file memstat_7796.root probably not closed, trying to recover Info in <TFile::Recover>: memstat_7796.root, recovered key TTree:T at address 332050543 Warning in <TFile::Init>: successfully recovered 1 keys TMemStat::Show info: you are running on a machine with 4625 free MBytes of memory TMemStatShow::Show will analyze only 947982432 bytes in its first pass sel: ivmin=22982432, ivmax=947982432, nentries=28906250 ==>The data Tree contains 10831340 entries with addresses in range[22982000,888605000] root [1] .ls TFile** memstat_7796.root TFile* memstat_7796.root OBJ:…
creator: StefanoSpataro
date: 2011-02-09T10:42:04-00:00