Rethinking Thread Scheduling under Oversubscription: A User-Space Framework for Coordinating Multi-runtime and Multi-process Workloads
arXiv:2601.20435 · doi:10.1145/3774934.3786451
Abstract
The convergence of high-performance computing (HPC) and artificial intelligence (AI) is driving the emergence of increasingly complex parallel applications and workloads. These workloads often combine multiple parallel runtimes within the same application or across co-located jobs, creating scheduling demands that place significant stress on traditional OS schedulers. When oversubscribed (there are more ready threads than cores), OS schedulers rely on periodic preemptions to multiplex cores, often introducing interference that may degrade performance. In this paper, we present: (1) The User-space Scheduling Framework (USF), a novel seamless process scheduling framework completely implemented in user-space. USF enables users to implement their own process scheduling algorithms without requiring special permissions. We evaluate USF with its default cooperative policy, (2) SCHED_COOP, designed to reduce interference by switching threads only upon blocking. This approach mitigates well-known issues such as Lock-Holder Preemption (LHP), Lock-Waiter Preemption (LWP), and scalability collapse. We implement USF and SCHED_COOP by extending the GNU C library with the nOS-V runtime, enabling seamless coordination across multiple runtimes (e.g., OpenMP) without requiring invasive application changes. Evaluations show gains up to 2.4x in oversubscribed multi-process scenarios, including nested BLAS workloads, multi-process PyTorch inference with LLaMA-3, and Molecular Dynamics (MD) simulations.
References in corpus (8)
- DeePMD-kit: A deep learning package for many-body potential energy representation and molecular dynamics
- DeePMD-kit v2: A software package for Deep Potential models
- DeePMD-kit v3: A Multiple-Backend Framework for Machine Learning Potentials
- Convergence of Artificial Intelligence and High Performance Computing on NSF-supported Cyberinfrastructure
- Intelligent colocation of HPC workloads
- Introducing the Task-Aware Storage I/O (TASIO) Library
- The eBPF Runtime in the Linux Kernel
- Scalable Runtime Architecture for Data-driven, Hybrid HPC and ML Workflow Applications