5GC$^2$ache: Improving 5G UPF Performance via Cache Optimization
Haonan Jia, Meng Wang, Biyi Li, Yirui Liu, Junchen Guo, Pengyu Zhang
TL;DR
This work addresses LLC-induced performance limitations in cloudified 5G UPFs, where three cache-related problems—leaky DMA, hot/cold mbuf, and cache contention—can severely degrade throughput. It presents 5GC$^2$ache, a cache-optimization framework with three modules (Status Profiler, UPF Configurator, LLC Allocator) that offline-tunes RX descriptors and RX buffer while online isolating DDIO and core caches via a four-state controller and Intel CAT. The approach yields significant gains on a commercial 5G core, achieving up to 76.41 Gbps throughput (a 39.41% improvement over the default) and outperforming ResQ by 29.55%, all without modifying UPF source code. This cache-centric optimization demonstrates a practical path to boost 5G UPF performance in real deployments and will be released as open-source.
Abstract
Last Level Cache (LLC) is a precious and critical resource that impacts the performance of applications running on top of CPUs. In this paper, we reveal the significant impact of LLC on the performance of the 5G user plane function (UPF) when running a cloudified 5G core on general-purposed servers. With extensive measurements showing that the throughput can degrade by over 50\% when the precious LLC resource of UPF is not properly allocated, we identify three categories of performance degradation caused by incorrect LLC usage: DMA leakage problem, hot/cold mbuf problem and cache contention. To address these problems, we introduce the design and implementation of 5GC$^2$ache that monitors the LLC status as well as the throughput performance and dynamically adjusts key parameters of the LLC resource allocation. Our experiments show that 5GC$^2$ache enables a commercial 5G core to increase its throughput to 76.41Gbps, 39.41\% higher than the original performance and 29.55\% higher than the state-of-the-art.
