- genevb's home page
- Posts
- 2024
- 2023
- 2022
- September (1)
- 2021
- 2020
- 2019
- December (1)
- October (4)
- September (2)
- August (6)
- July (1)
- June (2)
- May (4)
- April (2)
- March (3)
- February (3)
- 2018
- 2017
- December (1)
- October (3)
- September (1)
- August (1)
- July (2)
- June (2)
- April (2)
- March (2)
- February (1)
- 2016
- November (2)
- September (1)
- August (2)
- July (1)
- June (2)
- May (2)
- April (1)
- March (5)
- February (2)
- January (1)
- 2015
- December (1)
- October (1)
- September (2)
- June (1)
- May (2)
- April (2)
- March (3)
- February (1)
- January (3)
- 2014
- December (2)
- October (2)
- September (2)
- August (3)
- July (2)
- June (2)
- May (2)
- April (9)
- March (2)
- February (2)
- January (1)
- 2013
- December (5)
- October (3)
- September (3)
- August (1)
- July (1)
- May (4)
- April (4)
- March (7)
- February (1)
- January (2)
- 2012
- December (2)
- November (6)
- October (2)
- September (3)
- August (7)
- July (2)
- June (1)
- May (3)
- April (1)
- March (2)
- February (1)
- 2011
- November (1)
- October (1)
- September (4)
- August (2)
- July (4)
- June (3)
- May (4)
- April (9)
- March (5)
- February (6)
- January (3)
- 2010
- December (3)
- November (6)
- October (3)
- September (1)
- August (5)
- July (1)
- June (4)
- May (1)
- April (2)
- March (2)
- February (4)
- January (2)
- 2009
- November (1)
- October (2)
- September (6)
- August (4)
- July (4)
- June (3)
- May (5)
- April (5)
- March (3)
- February (1)
- 2008
- 2005
- October (1)
- My blog
- Post new blog entry
- All blogs
StMagUtilities profiling
Motivation:
Looking at some recent Run 13 pp510 production jobs, I saw numbers like: time spent in tpcChain ~30% of the BFC chain, and tpcHitMover ~80% of tpcChain, so tpcHitMover is ~1/4th of the BFC chain time. While tpcHitMover also does alignment, some of the time is spent on distortion corrections, so I think it's worthwhile profiling how time is spent within the distortion correction code to understand whether there is fruit to be picked here...
Introduction:
I used TTimeStamp (nanosecond resolution?) to profile how much time is spent in StMagUtilities correction subroutines. Those routines I indexed as:
Results:
The code used for ShortedRing is nearly identical to that used in IFCShift, GGVoltError (not typically used), and the original (now unused) SpaceCharge corrections. It would be rather simple to merge these subroutines into one to reduce time spent in each of these alone. But it's clear that doing so would at best save much less than 10% of StMagUtilities' time, as SpaceCharge & GridLeak combine to be an order of magnitude longer. Addressing the speed of those two subroutines for each hit would be the optimal targets, as they may account for up to ~20% of the total reconstruction time.
-Gene
Looking at some recent Run 13 pp510 production jobs, I saw numbers like: time spent in tpcChain ~30% of the BFC chain, and tpcHitMover ~80% of tpcChain, so tpcHitMover is ~1/4th of the BFC chain time. While tpcHitMover also does alignment, some of the time is spent on distortion corrections, so I think it's worthwhile profiling how time is spent within the distortion correction code to understand whether there is fruit to be picked here...
Introduction:
I used TTimeStamp (nanosecond resolution?) to profile how much time is spent in StMagUtilities correction subroutines. Those routines I indexed as:
- B
- 2D B
- (unused)
- Padrow13
- Twist
- Clock
- Membrane
- Endcap
- IFC Shift
- SpaceCharge (R2)
- Shorted Ring
- GridLeak (3D)
- GGVoltError
- SectorAlign
Results:
- First hit, initializing the local arrays for each subroutine
- GridLeak takes the longest to initialize (~1.6 sec), followed by ShortedRing (~0.6 sec).
- As this is time spent only once, these are small fractions of the total time for the reconstruction jobs, which now take on the order of ~1 minute per event to process (multiplied by thousands of events per job).
- All hits, focusing only on the time range down near the 1-10 μsec range
- SpaceCharge & GridLeak each take nearly an order of magnitude longer than the other subroutines, though perhaps only a factor of ~4-5x longer than Shorted ring.
- It is not at all clear that TTimeStamp actually has nanosecond resolution, as there seem to be time steps at the ~1 μsec level, but good enough for our purposes.
The code used for ShortedRing is nearly identical to that used in IFCShift, GGVoltError (not typically used), and the original (now unused) SpaceCharge corrections. It would be rather simple to merge these subroutines into one to reduce time spent in each of these alone. But it's clear that doing so would at best save much less than 10% of StMagUtilities' time, as SpaceCharge & GridLeak combine to be an order of magnitude longer. Addressing the speed of those two subroutines for each hit would be the optimal targets, as they may account for up to ~20% of the total reconstruction time.
-Gene
Groups:
- genevb's blog
- Login or register to post comments