Unfair by design: eBPF-based scheduling of mixed database workloads
Carl-Elliott Bilodeau-Savaria, Jan Kristof Nidzwetzki, Stefanie Scherzinger, Bettina Kemme

TL;DR
This paper introduces UFS, an eBPF-based Linux scheduler that isolates background database tasks to improve latency and throughput for time-sensitive workloads.
Contribution
UFS is a novel selectively unfair scheduler that restricts background tasks to idle CPU and uses application hints to prevent priority inversion.
Findings
UFS doubles throughput for time-sensitive tasks.
UFS halves tail latency in mixed database workloads.
UFS outperforms existing Linux schedulers in mixed workload scenarios.
Abstract
Modern database systems increasingly co-schedule time-sensitive and background tasks. In such mixed workloads, background tasks should ideally utilize only spare CPU capacity without interfering with latency-critical requests. While some database-level solutions address this challenge, many database systems still rely on operating system (OS) schedulers, which, despite supporting priorities, do not reliably isolate high-priority tasks. Furthermore, they remain vulnerable to priority inversion, where preempted background tasks can delay other work. We present UFS, a selectively unfair scheduler implemented as an eBPF-based sched_ext scheduler in the Linux kernel. UFS restricts background tasks to idle CPU capacity and preempts them immediately when time-sensitive tasks arrive. To address priority inversion, UFS incorporates application-level hints via eBPF maps, ensuring that background…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
