FarDet DATA reconstruction processing: memory leak
Here I provide an example of an aborted reconstruction job that exceeded 4GB memory usage during GRID processing.
One can see how the memory usage changes (limited view) over time in the log file here:
The job can be reproduced interactively in development (I've added a toggle to Calibrator.fcl to UseMCcalib - Use MC calibration constants, so it's simply a fcl change.
setup_nova -b maxopt
nova -c recoproductionjob.fcl -s /nova/data/novaroot/FarDet/S13-07-22/000109/10976/cosmic/fardet_r00010976_s00_t02_cosmic_S13-07-22_v1.data.daq.root
Before running the nova command, they will need to copy the .fcl to their test release and add the following line:
Someone will need to use google-perftools. There are some instructions here:
Another useful utility is the SimpleMemoryCheck service: https://cdcvs.fnal.gov/redmine/projects/art/wiki/SimpleMemoryCheck_service
#2 Updated by Gavin Davies over 6 years ago
The recoproductionjob can run through to completion if I remove the KalmanTrack and KalmanTrackMerge modules pre- Nick's commit 6700
4.2s CPU/event, with discretetrack taking longest at 2.87s/event
Total time is 38571s --> ~10hours!!!
for the log/err/out files.
Memory usage topped out at 1.71GB, well below the 4GB limit that we have been hitting.
Testing now with latest Kalman changes.