Skip to content

[PWGEM] Use kCompactTHnSparseF for the dilepton polarization histograms - #19034

Merged
dsekihat merged 1 commit into
AliceO2Group:masterfrom
ktf:pr19034
Dec 1, 2026
Merged

dsekihat merged 1 commit into
AliceO2Group:masterfrom
ktf:pr19034

Conversation

@ktf

@ktf ktf commented Dec 1, 2026

Copy link
Copy Markdown
Member

In polarization mode each Dilepton task books six 7-dimensional
THnSparseD with Sumw2 (same/mix x uls/lspp/lsmm). With the binning of
train 818088 (12 dielectron wagons, EM_LHC26_PbPb_pass1_Dielectron) the
10-20% wagon fills 20.5 M bins on two test inputs, and on the grid its
end-of-stream output (444 MB) no longer fits in the 2.68 GB shared
memory segment of 1-core jobs: "shmem: could not create a message of
size 444563472".

kCompactTHnSparseF keeps the bins in compact blocks while filling and is
written out as a THnSparseF, so downstream code reads the same class
family. The histograms are only filled here.

Measured with the 818088 configuration on two of its test inputs:

  • outputs identical: 72 histograms, 89 M filled bins, 0 differences in
    bin contents, errors, entries and sums of weights;
  • histograms of the 10-20% wagon in memory: 2352 MB -> 395 MB;
  • end-of-stream output of that wagon: 431 MB -> 349 MB, all 12 wagons
    1873 MB -> 1516 MB; AnalysisResults.root 528 MB -> 362 MB;
  • wall time unchanged (2:21).

In polarization mode each Dilepton task books six 7-dimensional
THnSparseD with Sumw2 (same/mix x uls/lspp/lsmm). With the binning of
train 818088 (12 dielectron wagons, EM_LHC26_PbPb_pass1_Dielectron) the
10-20% wagon fills 20.5 M bins on two test inputs, and on the grid its
end-of-stream output (444 MB) no longer fits in the 2.68 GB shared
memory segment of 1-core jobs: "shmem: could not create a message of
size 444563472".

kCompactTHnSparseF keeps the bins in compact blocks while filling and is
written out as a THnSparseF, so downstream code reads the same class
family. The histograms are only filled here.

Measured with the 818088 configuration on two of its test inputs:
- outputs identical: 72 histograms, 89 M filled bins, 0 differences in
  bin contents, errors, entries and sums of weights;
- histograms of the 10-20% wagon in memory: 2352 MB -> 395 MB;
- end-of-stream output of that wagon: 431 MB -> 349 MB, all 12 wagons
  1873 MB -> 1516 MB; AnalysisResults.root 528 MB -> 362 MB;
- wall time unchanged (2:21).
@github-actions

github-actions Bot commented Dec 1, 2026

Copy link
Copy Markdown

O2 linter results: ❌ 0 errors, ⚠️ 360 warnings, 🔕 0 disabled

@dsekihat
dsekihat enabled auto-merge (squash) December 1, 2026 16:52
@dsekihat
dsekihat merged commit 0f1136f into AliceO2Group:master Dec 1, 2026
14 of 15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

2 participants