Skip to content
Book Open access

Pinning Isn't Enough: Gang-Scheduling Memory-Model Litmus Tests with sched_ext

Sep 2026 · eBPF@SIGCOMM · pp. 59-66 · 0 citations · 9 references
Computer Science

TL;DR

A spatial gang scheduler reserves dedicated, NUMA-local cores for each test, automatically matching hand-tuned pinning and turning a wildly bimodal rate into a high and predictable one and a temporal gang scheduler time-slices whole tests as units, sustaining high per-test rates even at 2× oversubscription.

Abstract

Litmus tests are the empirical workhorse for characterizing hardware memory models: small concurrent programs whose “weak” outcomes reveal how a processor reorders memory accesses. Their effectiveness hinges on a property the test cannot control on its own: its threads must execute simultaneously on different cores, within a window of a few cycles. On a multi-socket NUMA machine, the default Linux scheduler may scatter those threads across sockets, collapsing the observed weak-behavior rate by roughly 8× relative to careful same-socket placement. Manual pinning recovers sensitivity for a single hand-tuned test, but affinity alone does not coordinate complete tests once a campaign oversubscribes the available CPUs. We use sched_ext, the Linux extensible-scheduler interface, to make placement explicit. A spatial gang scheduler reserves dedicated, NUMA-local cores for each test, automatically matching hand-tuned pinning and turning a wildly bimodal rate into a high and predictable one. A temporal gang scheduler time-slices whole tests as units, sustaining high per-test rates even at 2× oversubscription, which neither SCHED_FIFO nor static affinity can express. The result is both a practical improvement to memory-model testing and a case study in encoding a workload's correctness invariant (“these threads must run together”) directly in an eBPF scheduling policy.

Read PDF

Similar papers

Open access Sep 2026

Compiler-Assisted Operating-System Scheduler for Simultaneous Multithreading

Simultaneous multithreading (SMT) improves physical-core throughput by allowing multiple hardware threads to share an out-of-order backend, but its benefit depends strongly on which tasks are paired on sibling hardware threads. Existing OS schedulers are topology-aware, yet they lack task-specific microarchitectural in...

Joohyoung Cha, Ji-Ho Lee, Sehyeon Oh et al. · 0 citations
Open access Oct 2026

Adaptive Thread Scheduling and Optimization Framework for the Multi-Core CPU with Large-Capacity Cache

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,...

Xin-Ming Song, Mei-Kang Qiu, Hong-Jun Dai · 0 citations
Preprint Sep 2026

UNISON: A Co-Designed Near-Memory Scheduler of Session KV Residency for LLM Agents

This work presents Unified Native Inter-turn Session Orchestration Nexus (UNISON), an event-driven near-memory scheduler in which Survival-Penalty Eviction for Agent Return-gap and Tiering in Idle-window DMA Events share one live ranking.

Fan He, Yan Li, Xiao-Yang Zeng · 0 citations
Preprint Sep 2026

AKTS: Sub-Microsecond Kernel Policy Switching for Language-Model Agents

AKTS, which verifies a policy library once, at load time, and reduces the agent's runtime action to writing an integer index into an in-kernel array of preverified policies, and an in-kernel tail call resolves that index.

Mohammadali Khodabandehlou, Mahdi Alizadeh · 0 citations
Book Open access Sep 2026

Schedules Are Solvable Symbols: Tuning-Free Compilation of Tile Programs on Dataflow Architectures

Loom, a tuning-free symbolic compiler framework for tile-based SPMD programs on spatial dataflow architectures, is presented, suggesting that hardware-derived symbolic compilation provides a retargetable alternative to profiling-based tuning for spatial dataflow architectures while remaining interpretable by keeping op...

He-Ru Wang, Wei Li, Zhen-Yu Bai et al. · 0 citations
Preprint Oct 2026

Weight Placement Is Not Enough: Synchronization in Multi-Node CPU Decoding of Ternary LLMs

Ternary LLMs read only a few gigabytes per decoded token, yet on dual-socket servers with four NUMA nodes the fastest ternary runtime we found uses less than half of the memory bandwidth. Placing each weight on the node of the thread that reads it is necessary but not enough: in a decode engine with node-local weights...

Run-Guo Li, De-Zhen Lu · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.