Repository navigation
Description
[Feature] Use HS23 (HEPScore23) as the CPU power reference instead of measuring DB12 at pilot bootstrap
Context
The pilot computes the node's CPU power by running ConfigureCPURequirements, which invokes dirac-wms-cpu-normalization and therefore the DB12 benchmark. The score lands in pilot.cfg as /LocalSite/CPUNormalizationFactor and is then read as part of the DIRAC configuration by everything that sizes CPU work:
JobAgent(slot budget, matching,StopMargin),Watchdog(payload termination),TimeLeft(batch-system conversions),- accounting (
NormCPUTime = CPUTime × CPUNormalizationFactor), - job parameters / dashboards,
- and on the LHCb side, event budgets (
CPUe), thecpuNormalization < 10event-timeout check, and BK reports.
WLCG adopted HEPScore23 (HS23) as its benchmark in April 2023, normalized 1:1 with HS06 on the reference machine. DB12 remains a rough proxy with known inaccuracies on modern hardware (and a poor one on aarch64), while a full HEPScore23 run is a container-based suite far too heavy for pilot bootstrap.
Proposal
Derive the node's CPU power from the HEPiX HS23 scores table (https://github.com/HEPiX-Forum/hepix-forum.github.io/blob/master/_data/HS23scores.csv) by lookup, not by measurement:
- The pilot detects the CPU model, SMT state and logical CPU count on the worker node.
- It looks up
Score/Ncoresamong the rows matching the normalized model string and SMT flag, combining ambiguous rows with a# Meas-weighted mean. - DB12 survives only as fallback (table fetch failure, no matching row), with the provenance of each node's value recorded per node.
- Adoption is governed by administrator policy, with consumers honoring the chosen unit only in a second phase, once the DB12-calibrated thresholds (
StopSig*,MinimumTimeLeft, LHCbCPUe) have been recalibrated.
Design decisions and rejected alternatives (per-pilot HEPScore23 runs, fixed DB12→HS23 conversion, site-row preference) are recorded in docs/adr/0001-hs23-cpu-power-from-hepix-table.md, and the vocabulary in GLOSSARY.md.
Status
Phase 1 — record and report only — is implemented in:
- CPU power from the HEPiX HS23 table (phase 1: record and report) #8870: a pre-aggregated snapshot of the HEPiX table bundled with the release (
data/HS23scores.json, refreshed by a nightly CI job that runs the generator from HS23 table generator for the DIRAC bundled snapshot management#74 and opens a PR on any change), table lookup inHS23Table.py, new/LocalSite/CPUNormalizationFactorHS23and/LocalSite/CPUNormalizationSourceoptions, theOperations/JobScheduling/CPUNormalizationUnitpolicy — an ordered list (default["DB12"]) whose membership decides what is recorded and whose first entry is the active unit, globally for the setup — and both factors published as job parameters. - [devel] Tolerate a missing CPU normalization factor in ConfigureCPURequirements Pilot#289:
ConfigureCPURequirementstolerates a missing DB12 value.
Remaining work
- Phase 2: consumers honor
Operations/JobScheduling/CPUNormalizationUnit(Matcher, JobAgent, Watchdog, TimeLeft, accounting) and recalibrate the DB12-denominated thresholds. - Accept and document the accounting discontinuity:
NormCPUTimebecomes HS23-denominated at flag flip while historical rows are DB12/HS06-denominated (consistent with the HEPiX WG's 1:1 decision). - LHCbDIRAC: adopt the same flag; recalibrate
CPUeper application; revisit the DB16/HS06/SI00 unit mix inCPUWork.py. - Maintain the model-string alias table as mismatches between
/proc/cpuinfoand the HEPiX table are discovered. - Review and merge the nightly table-refresh PRs (new CPU models, score changes); they are never merged automatically.
- Keep
normalize_cpu_modelin the DIRACGrid/management generator in sync withHS23Table.normalizeCpuModelin DIRAC.
Activity
IgorPelevanyuk commentedon Nov 5, 2026
Looks good! I especially Phase 1 #8870 and ability to keep DB12 benchmark run.
Is it feasible to allow configuration of git, cvmfs or https link as a source of benchmark repository?
fstagni commentedon Nov 5, 2026
Yes, definitely.
marianne013 commentedon Nov 27, 2026
Will the JobParameters still contain the CPU Model Name and (if possible) additionally the SMT (that would be really helpful) and the raw CPU ? Because some small VOs^{TM} use that for benchmarking and it works quite well.
fstagni commentedon Nov 30, 2026
Yes, can be done that way./