Devolar.net
Practice · Real-Time Engineering

Hard and firm real-time systems with provable latency bounds

Whether your deadline is 5 microseconds on a microcontroller timer or 100 microseconds on a multi-core Linux controller, we engineer deterministic scheduling from hardware interrupt to actuator output.

Determinism is an architecture property, not a kernel flag

Enabling CONFIG_PREEMPT_RT or linking an RTOS scheduler does not make a system real-time on its own. System Management Interrupts (SMIs), frequency scaling governors, shared LLC cache contention, dynamic heap allocations, page faults and unpinned NIC interrupts routinely inject millisecond stalls into otherwise fast code.

We engineer the entire path: hardware timer & DMA selection, cache-line-aligned lock-free data structures, memory locking (mlockall), asymmetric core isolation, priority-inheritance mutexes and continuous latency tracing (rtla, ftrace, Segger SystemView / Percepio Tracealyzer).

Core partitioning between Linux housekeeping cores and isolated PREEMPT_RT cores with bounded sub-25 microsecond cyclictest histogram
Housekeeping I/O isolated onto Cores 0–1 while real-time control runs undisturbed on shielded Cores 2–3.

How we achieve deterministic timing

01 Zephyr, FreeRTOS, ThreadX & NuttX Zero-jitter interrupt service routines, deterministic priority scheduling, MPU memory protection regions, DMA ping-pong buffers and static allocation on Cortex-M/R and RISC-V.
02 Mainline Linux PREEMPT_RT tuning CPU shielding (`isolcpus`, `nohz_full`, `rcu_nocbs`), threaded IRQ pinning, CPU C-state / P-state locking, `SCHED_FIFO` / `SCHED_DEADLINE` budgets and firmware SMI auditing.
03 Heterogeneous AMP (Cortex-A + Cortex-M/R) Best of both worlds on NXP i.MX8/9, TI AM62/AM64 and STM32MP: hard real-time firmware on the M/R core communicating with rich Linux on Cortex-A via OpenAMP / RPMsg.
04 Zero-allocation hot paths & IPC Pre-faulted stacks, hugepages, wait-free SPSC/MPMC ring buffers in shared SRAM, and static verification that real-time threads never call `malloc`, `free` or blocking syscalls.

Matching latency budgets to the right real-time architecture

Choosing the simplest architecture that meets your worst-case deadline keeps hardware cost and maintenance complexity under control.

Worst-Case Jitter TargetRecommended SubstrateTypical Use CasesKey Engineering Controls
< 1 µs – 10 µsBare-metal ISR / FPGA / Dedicated RTOS MCUFOC motor control, digital power, laser/ultrasonic timing, high-rate ADCHardware timers + DMA triggers, zero-latency IRQs, TCM SRAM execution
10 µs – 50 µsRTOS (Zephyr / FreeRTOS) or Heterogeneous SoC (AMP)Robotics joints, PLC I/O scan, medical sensing, deterministic CAN-FDPriority inheritance, MPU isolation, lock-free RPMsg to Linux host
25 µs – 250 µsTuned Linux PREEMPT_RT on isolated coresEtherCAT / PROFINET masters, TSN gateways, SDR & industrial visionisolcpus, pinned IRQs, C-state lock, mlockall, SMI-free BIOS/firmware
250 µs – 2 msLow-latency mainline Linux + io_uring / XDPHigh-rate telemetry ingestion, edge inference pipelines, packet brokersNUMA pinning, busy-poll sockets, ring-buffer batching

Real-time engineering questions

Why did our Linux prototype pass bench tests but drop deadlines once TLS and logging were enabled?

Bench tests rarely stress virtual memory compaction, filesystem journal flushes or thermal throttling simultaneously. Without CPU isolation, `mlockall(MCL_CURRENT | MCL_FUTURE)` and separated interrupt affinity, kernel background work preempts your control thread unpredictably.

Now that PREEMPT_RT is merged into mainline Linux, do we still need out-of-tree dual kernels?

For the vast majority of industrial control, robotics and audio/telecom workloads down to ~25–50 µs worst-case jitter on clean ARM64 or x86 hardware, mainline `PREEMPT_RT` eliminates the maintenance burden of dual-kernel forks. When sub-10 µs hard deadlines are required, we pair Linux with a dedicated Cortex-M/R core (AMP) or FPGA.

How do you prove real-time compliance before sign-off?

We run 48-to-72-hour `cyclictest` and `rtla osnoise/timerlat` runs while saturating disk, network, GPU/NPU and thermal chambers via `stress-ng`, delivering reproducible histogram artifacts and kernel trace captures.

Eliminate tail-latency spikes in your control or edge platform