arXiv:2611.01598cs.ARNov 2026

Manuscript Offprint

arXiv:2611.01598

QFabric: Guarded Cross-Domain Task Recovery and Its Limits on a Linux-RTOS Board

Ayushman Bhattacharya, Anwesha Chakraborty

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Ayushman Bhattacharya

Pollinations AI

ayushman.elixpo@gmail.com

Anwesha Chakraborty

Dept. CSE, JIS University

anwesha.elixpo@gmail.com

Abstract—Heterogeneous embedded boards pair a Linux application processor with a real-time microcontroller (MCU), which suggests moving a task between the two domains when its timing degrades. We present QFabric, a prototype that treats cross-domain placement as guarded recovery from a violated empirical soft real-time contract: a bounded task is compiled for both domains, monitored in windows with hysteresis, switched only after semantic and capacity admission at a quiescent epoch boundary, and committed or rolled back after probation. On an Arduino UNO Q (Cortex-A53 Linux and a Cortex-M33 running Zephyr), we characterize the stock Bridge RPC interconnect and measure five workloads in both domains under idle, CPU-load, and higher-priority SCHED_FIFO contention, with ordinary and real-time callers. Each MCU invocation costs about 19 ms of dispatch regardless of compute, the MCU runs the heaviest kernel 34× slower, and because every call traverses Linux userspace, Linux contention inflates the MCU path far more than the Linux path (p99 up to 400 ms versus 17.0 ms). Across 30 cells of a four-node chain, Linux meets every contract within 0.8% misses and QFabric correctly never migrates; a controller without hysteresis migrates in 7 cells, raising p95 by up to 177×, and probation rolls back 5 of those moves. On Linux-dispatched heterogeneous boards, migration therefore cannot isolate a task from Linux interference, and recovery guards matter chiefly by preventing harmful moves. This paper supersedes an earlier artifact release whose reported improvement arose from measurement defects that we identify. All source, raw traces, and generators are public.

Index Terms—heterogeneous embedded systems, asymmetric multiprocessing, Linux, RTOS, interconnect characterization, timing contracts, runtime adaptation

I. INTRODUCTION

Embedded platforms increasingly integrate two execution environments on one board: a Linux application processor for libraries, networking, and developer productivity, and a real-time microcontroller for isolation and predictable execution [1], [2]. A task that can run in either domain faces a placement choice whose consequences extend beyond compute time. Crossing the boundary adds serialization and transport, contention reshapes tail latency, and a move may be illegal for stateful or Linux-specific operations.

A natural idea is to treat the microcontroller as a refuge: when a task's timing degrades on Linux, move it to the real-time domain. Classical heterogeneous scheduling maps task graphs statically from cost estimates [3]; feedback scheduling adapts resources to measured error [4]; and runtime verification makes timing violations observable [5], [6]. What remains unclear on asymmetric Linux–RTOS boards is whether such a move can actually help, and how a runtime should decide when a faster prediction is not sufficient permission to migrate.

We study this question with QFabric, a deliberately narrow prototype on the Arduino UNO Q. A portable task declaration is compiled for both domains, profiled in each, and governed by an empirical contract. A recovery controller applies hysteresis to complete observation windows, admits a candidate only if semantic, capacity, and predicted-cost conditions hold, drains in-flight work at an epoch boundary, and commits the move only if post-switch probation confirms the contract; otherwise it rolls back.

The central finding is a boundary, not a speedup. On this board every MCU invocation pays a fixed dispatch cost of about 19 ms, and because that invocation is issued and relayed by Linux processes, Linux interference degrades the MCU path more than the Linux path. Migration therefore never improves a contract in our measurements; QFabric’s guards earn their place by refusing the moves that a naive controller would make. An earlier artifact release [7] reported a 36.6% improvement from recovery; Section VI-F identifies the measurement defects behind that result and shows that it does not hold.

Contributions. This paper makes four contributions. First, it presents a guarded recovery protocol that combines a bounded wire ABI, effect-based semantic admission, quiescent epoch switching, and probation-based commit or rollback (Section IV). Second, it characterizes the UNO Q Linux–MCU interconnect across payload size, concurrency, load, and frequency governor (Section VII-A). Third, it reports a matched-load measurement study of five workloads in both domains under three load conditions and two caller policies, decomposing each call into compute and residual dispatch cost (Section VII-B). Fourth, it evaluates the controller's decisions on a four-node chain and shows through an ablation that hysteresis and probation prevent harmful migrations (Sections VII-C–VII-D).

Positioning. Approaches to cross-domain placement differ in when the assignment of software to execution resources is fixed, what triggers a reassignment, and whether a reassignment must prove its benefit before it is kept. Static mapping binds at design time [3]; asymmetric-multiprocessing frameworks and partitioning hypervisors bind at configuration time [2], [8], [9]; and feedback scheduling, mode-change protocols, and migration runtimes rebind at runtime but keep a move once it is made [4], [10], [11], [12]. QFabric rebinds at runtime only after an observed contract violation, and keeps a move only

Figure

Fig. 1. QFabric on the UNO Q. The controller, dispatcher, and Bridge router run in Linux userspace; each task has a native implementation in both domains.

after observing that it helped. Table I in Section III compares these approaches in detail.

The rest of the paper is organized as follows. Section II describes the platform and system model, Section III reviews and compares related work, Section IV presents the design, Section V the implementation, Section VI the methodology, Section VII the results, and Section VIII discusses implications and threats to validity before Section IX concludes.

References (28)