Skip to main content
QUICK REVIEW

[Paper Review] Rethinking Thread Scheduling under Oversubscription: A User-Space Framework for Coordinating Multi-runtime and Multi-process Workloads

Aleix Roca, Vicenç Beltran|arXiv (Cornell University)|Jan 28, 2026
Parallel Computing and Optimization TechniquesComputer Science0 citations
TL;DR

The paper presents USF, a user-space scheduling framework, and SCHED_COOP, a cooperative policy to reduce oversubscription interference by delaying preemption, evaluated across multi-runtime and multi-process HPC/AI workloads.

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.

Motivation & Objective

  • Motivate the need for improved scheduling in oversubscribed HPC/AI workloads with multiple runtimes and co-located processes.
  • Propose a seamless user-space scheduling framework (USF) that requires no application changes or special permissions.
  • Introduce SCHED_COOP as a cooperative policy to minimize preemption and interference.

Proposed method

  • Implement USF and SCHED_COOP by extending the GNU C Library (glibc) with the nOS-V runtime to coordinate multiple runtimes and processes.
  • Convert pthreads into nOS-V workers and map them to tasks with per-core affinity, enabling multi-process centralized scheduling.
  • Define a per-process FIFO scheduling policy within nOS-V for SCHED_COOP to select next tasks based on affinity and NUMA considerations.
  • Interpose standard glibc APIs (pthread creation, blocking, affinity) to route through USF without requiring kernel modifications.
  • Provide blocking-aware extensions (mutex, barrier, semaphore, poll/epoll) to trigger worker swaps and task resubmission.
  • Describe limitations related to blocking detection, busy-wait barriers, and shared memory security among processes.
Figure 1 . Glibcv architecture diagram. Application’s standard API calls are forwarded to the USF backend if enabled, which bridges with the nOS-V API. nOS-V schedules threads according to the selected policy.
Figure 1 . Glibcv architecture diagram. Application’s standard API calls are forwarded to the USF backend if enabled, which bridges with the nOS-V API. nOS-V schedules threads according to the selected policy.

Experimental results

Research questions

  • RQ1Can a user-space scheduler coordinate multi-runtime and multi-process workloads to improve performance under oversubscription?
  • RQ2What performance gains are achievable with a seamless USF/SCHED_COOP approach compared to baseline Linux scheduling?
  • RQ3How does SCHED_COOP mitigate interference such as lock-holder and lock-waiter preemption and scalability collapse?
  • RQ4What are the practical limitations and tuning guidelines for deploying USF in diverse HPC/AI stacks?
  • RQ5How does runtime nesting impact performance and how can it be achieved with minimal application changes?

Key findings

  • Gains up to 2.4x in oversubscribed multi-process scenarios when using USF/SCHED_COOP.
  • Seamless user-space scheduling can improve throughput without invasive application changes or kernel edits.
  • Comparisons show improvements over baseline Linux scheduling in nested runtimes and multi-process workloads.
  • nOS-V enables seamless multi-process coordination with a centralized scheduler managing tasks across processes.
  • Blocking-driven task swaps and per-core affinity help reduce interference and maintain parallelism.
  • Manual adaptations can yield up to 4x speedups in some configurations, while seamless USF approaches provide substantial gains across scenarios.
Figure 2 . Evaluated matmul software stacks. a) Baseline with yield. b) Manual nOS-V integration. c) Seamless nOS-V integration. d) Unmodified (no yield).
Figure 2 . Evaluated matmul software stacks. a) Baseline with yield. b) Manual nOS-V integration. c) Seamless nOS-V integration. d) Unmodified (no yield).

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.