Abstract
The upgraded LHCb detector, due to start datataking in 2022, will have to process an average data rate of 4 TB/s in real time. Because LHCb’s physics objectives require that the full detector information for every LHC bunch crossing is read out and made available for real-time processing, this bandwidth challenge is equivalent to that of the ATLAS and CMS HL-LHC software read-out, but deliverable five years earlier. Over the past six years, the LHCb collaboration has undertaken a bottom-up rewrite of its software infrastructure, pattern recognition, and selection algorithms to make them better able to efficiently exploit modern highly parallel computing architectures. We review the impact of this reoptimization on the energy efficiency of the realtime processing software and hardware which will be used for the upgrade of the LHCb detector. We also review the impact of the decision to adopt a hybrid computing architecture consisting of GPUs and CPUs for the real-time part of LHCb’s future data processing. We discuss the implications of these results on how LHCb’s real-time power requirements may evolve in the future, particularly in the context of a planned second upgrade of the detector.
Introduction: The 4 TB/s Challenge
The LHCb experiment at CERN is undergoing a massive upgrade for "Run 3." Unlike previous iterations, the new detector uses a triggerless readout, sending raw data from all 30 million proton-proton bunch crossings per second directly to a software-based processing farm. This creates a staggering data rate: an average of 4 TB/s (peaking at 5 TB/s). Processing this in real-time to find interesting physics events—while staying within strict power and budget constraints—is one of the most significant computing challenges in modern High Energy Physics (HEP).
A Hybrid Real-Time Architecture
To address this data deluge, the LHCb collaboration developed a hybrid computing model. The first stage of the High Level Trigger (HLT1) is tasked with ingesting the full 30 MHz rate. This is achieved using GPUs, which are hosted in the same nodes used for "Event Building." This opportunistic hosting replaces expensive high-speed network cards that would otherwise be needed to ship data to a separate CPU farm. The second stage, HLT2, performs full event reconstruction on traditional CPUs.
Software and Physics Reoptimization
The transition to this new architecture required a bottom-up rewrite of the software stack. Three primary directions were pursued:
- Physics Reoptimization: Search windows were tightened and computationally expensive Kalman fits were replaced with simplified "straight-line" track fits.
- Data Structure Overhaul: Moving away from pointer-heavy Object-Oriented patterns toward a Structure-of-Arrays (SoA) format. This ensures data fits better into CPU caches and supports SIMD (Single Instruction, Multiple Data) operations.
- Massive Parallelization: Tracking algorithms were rewritten to exploit vectorization, culminating in the "Allen" project, which implements the entire HLT1 sequence on GPUs.
Energy Efficiency and the Cost of Cooling
Efficiency is quantified in terms of Energy per Trigger Decision (mJ). Software reoptimization alone provided a ~5x efficiency gain on the same hardware. When combined with modern hardware, the cumulative gains are even more dramatic:
- Baseline (Intel Xeon E5-2630-v4): 39.9 mJ per decision.
- Software Optimized (Xeon): 8.4 mJ (4.8x gain).
- Modern CPU (AMD EPYC 7502 + SIMD): 3.2 mJ (12.5x gain).
- GPU Baseline (RTX 2080 Ti): 2.1 mJ (19.0x gain).
Crucially, the researchers emphasize that "energy per compute" must include the overhead of the entire server chassis. Power monitoring revealed that in high-density GPU configurations, cooling can account for a significant portion of the energy budget. By switching to the GPU-based HLT1, the collaboration reduced the projected power consumption of the HLT1 farm from over 1.2 MW to a level that fits within the facility's 2.0 MW total limit for all real-time processing.
Conclusion and Future Outlook
While the gains achieved for Run 3 are substantial, the authors note that the "easy" software engineering gains may have been exhausted. The optimized HLT1 codebase now nearly saturates the FLOP capacity of current CPU architectures. Looking toward "Upgrade II" in the 2030s—which anticipates another 10x increase in data rates—achieving further orders of magnitude in efficiency will require meticulous optimization of every component in the processing chain, from hardware selection to the deepest levels of the software stack.
Summary updated