- bouchet's home page
- Posts
- 2016
- 2015
- December (1)
- November (3)
- October (2)
- September (2)
- August (2)
- June (2)
- April (5)
- March (2)
- February (3)
- January (2)
- 2014
- December (2)
- November (2)
- October (3)
- September (2)
- August (3)
- July (1)
- June (3)
- May (6)
- April (6)
- March (1)
- February (2)
- January (1)
- 2013
- December (2)
- November (3)
- October (3)
- September (4)
- August (1)
- July (1)
- May (4)
- April (6)
- March (4)
- February (3)
- 2012
- 2011
- December (2)
- November (2)
- October (4)
- September (1)
- August (2)
- July (6)
- June (2)
- May (3)
- April (3)
- March (2)
- 2010
- 2009
- December (2)
- November (1)
- October (3)
- September (1)
- August (1)
- July (1)
- June (2)
- April (1)
- March (2)
- February (2)
- January (1)
- 2008
- My blog
- Post new blog entry
- All blogs
computing stuffs
- Link to cons in STAR : http://drupal.star.bnl.gov/STAR/comp/sofi/tutorials/cvs
- to compile in 32-bits :
cvs co mgr/cons cvs co mgr/ConsDefs.pm cvs co mgr/Conscript-standard
- TMemStat :
after triplet b: memory used: 1810.7 29 events processed so far # of curr candidates = 5000 # of tot candidates = 146144 31 events processed so far # of curr candidates = 5000 # of tot candidates = 158702 33 events processed so far after reading b: memory used: 2014.63 after triplet b: memory used: 2014.63 # of curr candidates = 5000 # of tot candidates = 163718 # of curr candidates = 5000 # of tot candidates = 170428 35 events processed so far after reading b: memory used: -2048.18 after triplet b: memory used: -2048.18 Error: Symbol G__exception is not defined in current scope (tmpfile):1: Error: type G__exception not defined FILE:(tmpfile) LINE:1 (void)0 *** Interpreter error recovered *** root4star [4] .q This is the end of ROOT -- Goodbye
--> negative memory allocated
--> decreasing the size of the tuple (# branches and the size of arrays)
after reading b: memory used: -1459.88 after triplet b: memory used: -1459.88 after triplet b: memory used: -1459.88 after triplet b: memory used: -1459.88 after triplet b: memory used: -1459.88 after triplet b: memory used: -1459.88 after triplet b: memory used: -1459.87 49 events processed so far # of curr candidates = 5000 # of tot candidates = 225948 root4star [4]
--> still negative memory allocated but no more crash (and the memory goes back to 0)
--> to use memory stat :
- in the includes : #include "TMemStat.h"
- at the beginning of your code ( generally before a loop ) : StMemStat mem;
- to display : std::cout << " current memory : "<< mem.Used() << std::endl;
- GDB
- at the prompt : root4star gdb
- run myMacro.C
.x StRoot/macros/bfc.C(1,10,"y2013,AgML,ITTF,Sti,tpcI,TpcFastSim,pxlFastSim,-ssdfast,VFMCE,McEvent,geant,IdTruth ,fzin,StiRnd,PixelIT,-IstIT,NoSvtIt,NoSsdIt,StiPulls,analysis,tags,clearmem,evout,McEvOut, MiniMcMk,McAna,MakeEvent","debug.fz")
## how to commit ##
1. cvs add offline/hft/StRoot/yourMaker 2. cvs add offline/hft/StRoot/yourMaker/*.* (each file) 3. cvs commit offline/hft/StRoot/yourMaker
## if maker does not exist in the branch ##
1) mkdir offline/hft/StRoot/StSsdDbMaker 2) cvs add offline/hft/StRoot/StSsdDbMaker // this adds the maker in the StRoot branch 3) copy code 4) cvs add offline/hft/StRoot/StSsdDbMaker/*.* (each file) 5) cvs commit offline/hft/StRoot/StSsdDbMaker
Groups:
- bouchet's blog
- Login or register to post comments