Scheduling Analysis of UAV Flight Control Workloads on PREEMPT_RT Linux Using a Raspberry Pi 5
Pith reviewed 2026-05-10 02:09 UTC · model grok-4.3
The pith
PREEMPT_RT Linux reduces worst-case latency for 250 Hz UAV control from over 9 ms to under 225 microseconds on Raspberry Pi 5.
A machine-rendered reading of the paper's core claim, the machinery that carries it, and where it could break.
Core claim
The analysis shows that the standard Linux kernel on Raspberry Pi 5 produces worst-case latencies exceeding 9 ms for a 250 Hz control loop under heavy stress, rendering it unsuitable for UAV flight control. In contrast, the PREEMPT_RT kernel reduces this latency by nearly 88 percent to under 225 microseconds by enforcing a direct wake-up path that bypasses SoftIRQ deferred execution and mitigates OS noise. The paper concludes that while PREEMPT_RT resolves scheduling variance, the residual jitter on modern multi-core SoCs is primarily driven by hardware memory contention.
What carries the argument
PREEMPT_RT's direct kernel-thread wake-up path that avoids SoftIRQ deferred execution, used to isolate hardware memory contention as the remaining source of jitter.
Load-bearing premise
The chosen heavy stress workloads and latency measurement approach on the Raspberry Pi 5 accurately represent real UAV flight control conditions and isolate the claimed causes without unaccounted hardware or software confounders.
What would settle it
Repeated measurements of the 250 Hz loop on the Raspberry Pi 5 with PREEMPT_RT that show worst-case latencies consistently above 225 microseconds under the heavy stress workloads would falsify the reported reduction and the attribution to hardware contention.
Figures
read the original abstract
Modern UAV architectures increasingly aim to unify high-level autonomy and low-level flight control on a single General-Purpose Operating System (GPOS). However, complex multi-core System-on-Chips (SoCs) introduce significant timing indeterminism due to shared resource contention. This paper performs an architectural analysis of the PREEMPT RT Linux kernel on a Raspberry Pi 5, specifically isolating the impact of kernel activation paths (deferred execution SoftIRQs versus real-time direct activation) on a 250 Hz control loop. Results show that under heavy stress, the standard kernel is unsuitable, exhibiting worst-case latencies exceeding 9 ms. In contrast, PREEMPT RT reduced the worst-case latency by nearly 88 percent to under 225 microseconds, enforcing a direct wake-up path that mitigates OS noise. These findings demonstrate that while PREEMPT RT resolves scheduling variance, the residual jitter on modern SoCs is primarily driven by hardware memory contention.
Editorial analysis
A structured set of objections, weighed in public.
Referee Report
Summary. The paper analyzes scheduling performance of the PREEMPT_RT Linux kernel versus the standard kernel on a Raspberry Pi 5 for 250 Hz UAV flight control workloads. Under heavy stress, it reports that the standard kernel exhibits worst-case latencies exceeding 9 ms while PREEMPT_RT reduces this by nearly 88% to under 225 μs via direct wake-up paths that mitigate OS noise; the residual jitter is attributed primarily to hardware memory contention on modern SoCs.
Significance. If the measurements hold, the results would offer practical value for real-time embedded control on multi-core SoCs, showing that PREEMPT_RT can make GPOS viable for UAV flight loops but that hardware contention remains the limiting factor. The direct empirical approach (latency traces under stress) is a strength as it supplies concrete, falsifiable numbers rather than fitted models.
major comments (2)
- [Abstract] Abstract: the central quantitative claims (88% reduction, 225 μs bound, 9 ms baseline) are stated without any accompanying description of measurement methodology, number of trials, data exclusion rules, timing source, or how the 250 Hz loop and stress workloads were implemented. This prevents verification of the performance numbers that support the entire contribution.
- [Abstract] Abstract and concluding discussion: the claim that 'residual jitter on modern SoCs is primarily driven by hardware memory contention' is presented as a finding, yet the manuscript supplies no differential experiments (cache partitioning, DRAM bandwidth saturation versus CPU-only stress, or hardware performance counter data) that isolate memory contention from other SoC factors such as interconnect contention, DMA, or thermal throttling.
minor comments (1)
- [Abstract] The abstract refers to 'heavy stress workloads' without specifying their composition or intensity; a brief table or paragraph in the experimental section would improve reproducibility.
Simulated Author's Rebuttal
We thank the referee for the constructive and detailed comments. We address each major comment point-by-point below, indicating planned revisions to the manuscript where appropriate.
read point-by-point responses
-
Referee: [Abstract] Abstract: the central quantitative claims (88% reduction, 225 μs bound, 9 ms baseline) are stated without any accompanying description of measurement methodology, number of trials, data exclusion rules, timing source, or how the 250 Hz loop and stress workloads were implemented. This prevents verification of the performance numbers that support the entire contribution.
Authors: The full experimental methodology—including latency measurement via cyclictest with CLOCK_MONOTONIC, the 250 Hz periodic task implementation, stress workloads (stress-ng for CPU/memory/I/O contention), sample count (>10^6 iterations), and worst-case analysis—is detailed in Sections 3 (Experimental Setup) and 4 (Results). To make the abstract more self-contained and address verification concerns, we will add a concise clause describing the measurement approach and stress conditions. revision: yes
-
Referee: [Abstract] Abstract and concluding discussion: the claim that 'residual jitter on modern SoCs is primarily driven by hardware memory contention' is presented as a finding, yet the manuscript supplies no differential experiments (cache partitioning, DRAM bandwidth saturation versus CPU-only stress, or hardware performance counter data) that isolate memory contention from other SoC factors such as interconnect contention, DMA, or thermal throttling.
Authors: We agree the manuscript lacks dedicated isolation experiments. The attribution is an inference drawn from the elimination of OS noise by PREEMPT_RT (leaving variability correlated with memory stress) plus known Raspberry Pi 5 SoC characteristics. We will revise the abstract and discussion to present this as a hypothesized primary source supported by the results and literature, rather than a definitively isolated conclusion, and note it as an avenue for future work involving performance counters. revision: partial
Circularity Check
No circularity: purely empirical latency measurements
full rationale
The paper reports direct experimental results from running 250 Hz control loops and heavy stress workloads on Raspberry Pi 5 hardware under standard and PREEMPT_RT kernels. No equations, derivations, fitted parameters, or predictions appear in the provided text or abstract; claims about latency reduction (88% to <225 µs) and residual jitter sources are inferences from measured traces rather than any self-referential reduction or self-citation chain. The analysis is self-contained against external benchmarks.
Axiom & Free-Parameter Ledger
axioms (1)
- domain assumption The applied stress workloads and latency measurement method on Raspberry Pi 5 accurately reflect UAV flight control timing requirements and isolate OS versus hardware effects.
discussion (0)
Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.