Towards Deterministic Sub-0.5 us Response on Linux through Interrupt Isolation

Zhouyi Zhou, Zhili Liu, Shancong Zhang, Jiemin Li, Dengke Du, Mengke Sun, Zhiqiang Wang, Hongyan Liu, Guokai XuarXiv 2025 · DOI

Abstract

Achieving nanosecond-level determinism in general-purpose operating systems like Linux is a significant challenge due to inherent "system noise" from timer interrupts and inter-processor communication. This paper introduces an interrupt isolation framework that achieves deterministic response times of less than 0.5 microseconds. By centralizing timer handling and replacing asynchronous Inter-Processor Interrupts (IPIs) with a shared-memory polling mechanism, the framework transitions the kernel from a "push" model to a cooperative model. Evaluation on an ARM-based multicore platform demonstrates a maximum latency of 470 ns with only 80 ns of jitter.

Introduction

In high-precision fields such as high-frequency trading, industrial robotics, and ultra-low-latency networking, even microsecond-level jitter can be catastrophic. While standard Linux real-time features like PREEMPT_RT or NOHZ_FULL improve performance, they do not eliminate execution disturbances entirely. These disturbances primarily stem from two sources: periodic timer interrupts (ticks) used for kernel housekeeping and Inter-Processor Interrupts (IPIs) used for cross-core synchronization (e.g., RCU grace periods or TLB shootdowns).

System Architecture and Methodology

The proposed solution implements a "Full Isolation" approach via a custom Isolator API (v0.1). The core philosophy is to shift responsibility for system maintenance from the kernel to the application. Instead of the kernel interrupting a task, the task performs OS work at predefined "safe points."

System Architecture and Core Function Enabling Flow showing the isolation lifecycle and suppression mechanisms.

Key Mechanisms

  1. Centralized Timer Handling: The periodic tick is halted on isolated cores. The application manually invokes a dedicated polling API, isolator_tick, to perform necessary maintenance without being preempted unexpectedly.
  2. Shared-Memory IPI Management: Hardware-based IPI signals are replaced with a shared-memory "mailbox." Isolated cores check this mailbox at their own discretion, preventing asynchronous hardware interruptions.
  3. Kernel Modifications: The RCU subsystem was modified to treat isolated cores as permanently quiescent, ensuring they do not block system-wide cleanups. Additionally, real-time bandwidth enforcement timers were disabled to prevent unwanted interrupts.
  4. GPIO Polling: To minimize context-switch overhead during evaluation, the system utilizes direct register polling for GPIO handling rather than standard interrupt-driven methods.

Evaluation and Results

The framework was evaluated on a Phytium Pi E2000Q V2 (multicore ARM) running a modified Linux v6.6-rt kernel. Performance was measured over a 24-hour continuous test using an external signal generator and a high-resolution Siglent oscilloscope to capture GPIO response latency.

Metric PREEMPT-RT Linux With Isolator (Proposed)
Min Latency 4,100 ns (4.1 µs) 390 ns
Max Latency 72,000 ns (72 µs) 470 ns
Jitter 67,900 ns 80 ns
Oscilloscope measurement demonstrating deterministic GPIO response latency with minimal jitter.

As shown in the results, the Isolator framework significantly narrows the gap between minimum and maximum response times. In inter-core communication benchmarks, the framework achieved a maximum latency of just 160 ns, compared to 2,200 ns on a standard real-time kernel.

Discussion and Future Work

The transition to a cooperative paradigm allows for sub-microsecond determinism but requires manual integration of the isolator_tick API by developers. Failure to call this API could potentially delay system-wide tasks like RCU grace periods. Future research will focus on hardware-assisted messaging to further reduce inter-core communication overhead and increasing API transparency to reduce the manual burden on programmers.

Summary updated

BibTeX
@misc{zhou2025towards,
  author = {Zhouyi Zhou and Zhili Liu and Shancong Zhang and Jiemin Li and Dengke Du and Mengke Sun and Zhiqiang Wang and Hongyan Liu and Guokai Xu},
  title = {{Towards Deterministic Sub-0.5 us Response on Linux through Interrupt Isolation}},
  year = {2025},
  eprint = {2509.03855},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.03855},
}
Figure