Adaptive Thread Scheduling and Optimization Framework for the Multi-Core CPU with Large-Capacity Cache
Xinming Song, Meikang Qiu, Hongjun Dai
Key points
From the paper's conclusion- On average, the framework reduces the L3 miss rate from 62.71% to 51.89%, lowers CPI from 2.35 to 2.02, decreases cross-core thread migrations from 36902 to 33339, and reduces wall-clock time by 10.52%.
Abstract
The continuous growth in processor speed and the persistent memory latency bottleneck make large-capacity cache critical for mitigating the “memory wall”. However, topology-oblivious OS scheduling frequently induces severe cache contention and cross-die migrations, diminishing these hardware benefits. To address this, we propose a thread scheduling framework driven by runtime microarchitectural feedback. Instead of treating performance profiling and thread placement as isolated steps, our approach directly uses hardware performance counters to guide thread configurations to maximize cache utilization. First, the Thread and CPU Monitoring (TCM) framework tracks CPU and cache contention across both Simultaneous Multi-Threading (SMT) and non-SMT modes. Based on this feedback, the Thread Extension and Placement (TEP) algorithm dynamically adapts thread concurrency. To balance computational efficiency and runtime overhead, TEP determines the optimal thread count using cubic spline interpolation combined with a golden ratio search. Concurrently, a topology-aware affinity strategy binds threads to specific cores to maintain cache locality. Evaluations on AMD EPYC processors show that this approach improves overall execution efficiency. On average, the framework reduces the L3 miss rate from 62.71% to 51.89%, lowers CPI from 2.35 to 2.02, decreases cross-core thread migrations from 36902 to 33339, and reduces wall-clock time by 10.52%. The framework operates in user space without kernel modifications, ensuring ease of practical deployment for HPC and AI inference.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Nephele: Bridging DDR–CXL Latency Gaps with Benefit-Aware Caching for In-Memory Databases on Hybrid MemoryACM Transactions on Architecture and Code Optimization · 2026
- CacheFlex: Direct Software-Managed Access to Higher-Level Cache for Scalable Vector SupportarXiv · 2026
- CACHEFORGE: LLM-Guided End-to-End Generative Cache Replacement Policy for Performance and Hardware EfficiencyarXiv · 2026
- Memory Fit: Architectural Support for Page Placement by Learning Models of Good BehaviorarXiv · 2026
- Memory-Access Profiling for Early Multicore Interference Awareness in Embedded SystemsarXiv · 2026
- Top-Down Microarchitecture Analysis Without Causal Modelling Is Dangerous!arXiv · 2026