Skip to content

CA: improve caching of conditions cfg

Frank Winklmeier requested to merge fwinkl/athena:ca_opt2 into main

Started by profiling the number of addFolders calls in our trigger (Dev_pp_run3_v1) and reco jobs (q449) and then applied the following changes to the hot spots:

  • merge calls to addFolders where possible to avoid unnecessary CA merges
  • add @AccumulatorCache to some of the CondAlg Cfg methods

Measured speedup:

  • reco: 10 seconds (~10%)
  • trigger: 60 seconds (~15%)

Relates to ATR-26996.

Click to see newly added AccumulatorCache statistics

Trigger

...ditionsTools.SCT_ConditionsToolsConfig.SCT_ConditionsSummaryToolCfg |   1068 ( 1.9s) |     33 ( 0.6s) |
MagFieldServices.MagFieldServicesConfig.AtlasFieldCacheCondAlgCfg      |   4159 ( 2.2s) |     39 ( 0.1s) |
...ditionsTools.PixelConditionsSummaryConfig.PixelConditionsSummaryCfg |    754 ( 1.2s) |     33 ( 0.3s) |
...sTools.SCT_ConditionsToolsConfig.SCT_ConfigurationConditionsToolCfg |    363 ( 0.6s) |     33 ( 0.4s) |
SCT_Cabling.SCT_CablingConfig.SCT_CablingCondAlgCfg                    |   1409 ( 0.8s) |     34 ( 0.1s) |
MuonConfig.MuonCalibrationConfig.MdtCalibrationToolCfg                 |    513 ( 0.5s) |     13 ( 0.1s) |
MuonConfig.MuonCondAlgConfig.NswCalibDbAlgCfg                          |    441 ( 0.3s) |      7 ( 0.0s) |
MuonConfig.MuonGeometryConfig.MuonDetectorCondAlgCfg                   |     69 ( 0.1s) |     39 ( 0.2s) |
...rithms.SCT_ConditionsAlgorithmsConfig.SCT_DetectorElementCondAlgCfg |     33 ( 0.0s) |     39 ( 0.2s) |
PixelConditionsAlgorithms.PixelConditionsConfig.PixelAlignCondAlgCfg   |    123 ( 0.1s) |     39 ( 0.2s) |
TRT_ConditionsAlgs.TRT_ConditionsAlgsConfig.TRTActiveCondAlgCfg        |    240 ( 0.2s) |     10 ( 0.1s) |
...Services.TRT_ConditionsServicesConfig.TRT_StrawStatusSummaryToolCfg |    184 ( 0.1s) |     54 ( 0.1s) |
...itionsAlgorithms.SCT_ConditionsAlgorithmsConfig.SCT_AlignCondAlgCfg |    123 ( 0.1s) |     39 ( 0.1s) |
MuonConfig.MuonCondAlgConfig.MdtCondDbAlgCfg                           |     74 ( 0.0s) |      8 ( 0.0s) |

Reco

...ditionsTools.SCT_ConditionsToolsConfig.SCT_ConditionsSummaryToolCfg |    114 ( 0.2s) |     13 ( 0.4s) |
MagFieldServices.MagFieldServicesConfig.AtlasFieldCacheCondAlgCfg      |    788 ( 0.4s) |      7 ( 0.0s) |
MuonConfig.MuonCalibrationConfig.MdtCalibrationToolCfg                 |    262 ( 0.4s) |      3 ( 0.0s) |
...ditionsTools.PixelConditionsSummaryConfig.PixelConditionsSummaryCfg |     91 ( 0.2s) |     12 ( 0.1s) |
...sTools.SCT_ConditionsToolsConfig.SCT_ConfigurationConditionsToolCfg |     99 ( 0.2s) |      6 ( 0.1s) |
LumiBlockComps.LBDurationCondAlgConfig.LBDurationCondAlgCfg            |    396 ( 0.2s) |      1 ( 0.0s) |
MuonConfig.MuonCondAlgConfig.NswCalibDbAlgCfg                          |    231 ( 0.2s) |      1 ( 0.0s) |
...rithms.SCT_ConditionsAlgorithmsConfig.SCT_DetectorElementCondAlgCfg |     98 ( 0.1s) |      7 ( 0.0s) |
MuonConfig.MuonGeometryConfig.MuonDetectorCondAlgCfg                   |     53 ( 0.0s) |      7 ( 0.1s) |
PixelConditionsAlgorithms.PixelConditionsConfig.PixelAlignCondAlgCfg   |     28 ( 0.0s) |      7 ( 0.0s) |
...Services.TRT_ConditionsServicesConfig.TRT_StrawStatusSummaryToolCfg |     36 ( 0.0s) |     12 ( 0.0s) |
...itionsAlgorithms.SCT_ConditionsAlgorithmsConfig.SCT_AlignCondAlgCfg |     28 ( 0.0s) |      7 ( 0.0s) |
TRT_ConditionsAlgs.TRT_ConditionsAlgsConfig.TRTActiveCondAlgCfg        |      7 ( 0.0s) |      4 ( 0.0s) |
SCT_Cabling.SCT_CablingConfig.SCT_CablingCondAlgCfg                    |     34 ( 0.0s) |      6 ( 0.0s) |
MuonConfig.MuonCondAlgConfig.MdtCondDbAlgCfg                           |     37 ( 0.0s) |      1 ( 0.0s) |
TRT_ConditionsAlgs.TRT_ConditionsAlgsConfig.TRTStrawCondAlgCfg         |     16 ( 0.0s) |      2 ( 0.0s) |

Merge request reports