Lune

USENIX ATC2021Top-tier venue

SKQ: Event Scheduling for Optimizing Tail Latency in a Traditional OS Kernel

Siyao Zhao, Haoyu Gu, Ali José Mashtizadeh

Abstract

This paper presents Schedulable Kqueue (SKQ), a new design to FreeBSD Kqueue that improves application tail latency and low-latency throughput. SKQ introduces a new scalable architecture and event scheduling. We provide multiple scheduling policies that improve cache locality and reduce workload imbalance. SKQ also enables applications to prioritize processing latency-sensitive requests over regular requests.

In the RocksDB benchmark, SKQ reduces tail latency by up to 1022× and extends the low-latency throughput by 27.4×. SKQ also closes the gap between traditional OS kernel networking and a state-of-the-art kernel-bypass networking system by 83.7% for an imbalanced workload.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

6 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • LibPreemptible: Enabling Fast, Adaptive, and Hardware-Assisted User-Space Scheduling cites Efficient Scheduling Policies for Microsecond-Scale Tasks
  • Rakaia: Scalable In-Kernel Scheduling for TCP-Based RPCs cites LibPreemptible: Enabling Fast, Adaptive, and Hardware-Assisted User-Space Scheduling
  • Rakaia: Scalable In-Kernel Scheduling for TCP-Based RPCs cites Efficient Scheduling Policies for Microsecond-Scale Tasks
  • SBB: Eliminating Centralized Bottlenecks in Userspace Network Runtime cites LibPreemptible: Enabling Fast, Adaptive, and Hardware-Assisted User-Space Scheduling
  • SBB: Eliminating Centralized Bottlenecks in Userspace Network Runtime cites Efficient Scheduling Policies for Microsecond-Scale Tasks
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers6

  1. Efficient Scheduling Policies for Microsecond-Scale TasksSarah McClure, Amy Ousterhout, Scott Shenker, Sylvia RatnasamyNSDI 2022 · 43 citations
  2. LibPreemptible: Enabling Fast, Adaptive, and Hardware-Assisted User-Space SchedulingYueying Li, Nikita Lazarev, David Koufaty, Tenny Yin et al.HPCA 2024 · 14 citations
  3. HA/TCP: A Reliable and Scalable Framework for TCP Network FunctionsHaoyu Gu, Ali José Mashtizadeh, Bernard WongNSDI 2025 · 1 citation
  4. Rakaia: Scalable In-Kernel Scheduling for TCP-Based RPCsRui Yang, Konstantinos Prasopoulos, Edouard BugnionOSDI 2026
  5. SBB: Eliminating Centralized Bottlenecks in Userspace Network RuntimeKang Hu, Shuqi Dong, Chuandong Li, Ran Yi et al.OSDI 2026

Builds on1

  1. Characterizing, Modeling, and Benchmarking RocksDB Key-Value Workloads at FacebookZhichao Cao, Siying Dong, Sagar Vemuri, David H. C. DuFAST 2020

Related papers

  1. Rearchitecting Linux Storage Stack for µs Latency and High ThroughputJaehyun Hwang, Midhul Vuppalapati, Simon Peter, Rachit AgarwalOSDI 2021 · 63 citations
  2. Towards Optimal Rack-scale μs-level CPU Scheduling through In-Network Workload ShapingXudong Liao, Han Tian, Xinchen Wan, Chaoliang Zeng et al.USENIX ATC 2025 · 1 citation
  3. Understanding Host Network Stack LatencyTianyu Zuo, Jaehyun Hwang, Ao Tang, Rachit Agarwal et al.SIGCOMM 2026
  4. When Idling is Ideal: Optimizing Tail-Latency for Heavy-Tailed Datacenter Workloads with PerséphoneHenri Maxime Demoulin, Joshua Fried, Isaac Pedisich, Marios Kogias et al.SOSP 2021 · 39 citations
  5. Q-Zilla: A Scheduling Framework and Core Microarchitecture for Tail-Tolerant MicroservicesAmirhossein Mirhosseini, Brendan L. West, Geoffrey W. Blake, Thomas F. WenischHPCA 2020 · 30 citations
Dusk over the sea between two cliffs drawn in fine vertical lines