Repository navigation
Conversation
…actTHnSparse Use HistType::kCompactTHnSparseF for the ten THnSparseF of the task. The histograms are filled the same way and are written out as THnSparseF, so the output is unchanged; only the in-memory storage differs (about 10 B per filled bin instead of about 70 B, and no 2-3x peak while the bin map grows). Measured on the first 21 time frames of train 813131 (LHC23zzh_pass5_small), two wagons of the task: peak RSS of the two devices 867 / 767 MB instead of 3025 / 2265 MB, same run time, AnalysisResults.root identical bin by bin (71 objects). Needs kCompactTHnSparseF in O2 (DPL Analysis: add CompactTHnSparse).
|
O2 linter results: ❌ 0 errors, |
|
Error while checking build/O2Physics/staging for 406f718 at 2026-11-26 12:06: Full log here. |
|
Error while checking build/O2Physics/code-check for 406f718 at 2026-11-26 12:07: Full log here. |
|
This uses a new kind of compact histogram, introduced in AliceO2Group/AliceO2#16198, which is bin-to-bin and I/O compatible with THnSparse while occupying significantly less memory and space on disk. Would you mind having a look and let me know what you think of it? |
|
Hi @ktf ! The PR looks good. |
|
@romainschotter see the commit message above. It's quite drastic, if confirmed. ~800 MB in place of 2/3 GB. |
|
Hi @ktf ! |
|
How do you want to validate it? We just merge, run once, and revert if there is any issue? |
|
Of course the PR will become green only tomorrow once O2 daily has the feature in. |
|
Error while checking build/O2Physics/o2 for 406f718 at 2026-11-26 12:25: Full log here. |
|
Yes, I think we could ask the main analyser to run the task on the same dataset, both with and without this PR, and compare: i) the outputs, to ensure that they remain unchanged, and i) the performance, to verify that there is indeed an improvement. |
Use HistType::kCompactTHnSparseF for the ten THnSparseF of the task. The
histograms are filled the same way and are written out as THnSparseF, so
the output is unchanged; only the in-memory storage differs (about 10 B per
filled bin instead of about 70 B, and no 2-3x peak while the bin map grows).
Measured on the first 21 time frames of train 813131 (LHC23zzh_pass5_small),
two wagons of the task: peak RSS of the two devices 867 / 767 MB instead of
3025 / 2265 MB, same run time, AnalysisResults.root identical bin by bin
(71 objects).
Needs kCompactTHnSparseF in O2 (DPL Analysis: add CompactTHnSparse).