[{"data":1,"prerenderedAt":1159},["ShallowReactive",2],{"search-index":3,"doc-real-time-linux-preempt-rt-latency-2026":105},[4,9,13,17,21,26,31,36,41,46,51,56,61,66,71,76,81,86,91,96,101],{"_path":5,"title":6,"description":7,"date":8},"/dev/eu-cyber-resilience-act-firmware-evidence-pack","CRA Firmware Evidence: Scope, Dates and Preparation","Practical breakdown of the EU Cyber Resilience Act requirements for embedded firmware teams, covering technical obligations, SBOM requirements, vulnerability handling, and the evidence pack needed for compliance.","2026-04-19T08:00:00.000Z",{"_path":10,"title":11,"description":12,"date":8},"/dev/pkg/firmware-sboms-spdx-cyclonedx-2026","Firmware SBOMs: SPDX, CycloneDX and Publication Workflows","Practical comparison of SPDX and CycloneDX for firmware SBOMs, covering what to include, automation approaches, tooling, and publication strategies for embedded Linux products.",{"_path":14,"title":15,"description":16,"date":8},"/dev/pkg/spdx-3-0-embedded-builds-practical","SPDX 3.0 for Embedded Builds: Packages, Files, and Relationships Engineers Actually Use","Practical guide to SPDX 3.0 for embedded Linux, covering the data model, package and file elements, relationship types, and how to produce useful SPDX documents from Yocto and Buildroot builds.",{"_path":18,"title":19,"description":20,"date":8},"/dev/slsa-build-provenance-firmware-sign-verify","SLSA Build Provenance for Firmware: What to Collect, How to Sign, How to Verify","Practical implementation guide for SLSA build provenance in firmware pipelines, covering provenance generation, signing with Sigstore, verification workflows, and integration with SBOMs.",{"_path":22,"title":23,"description":24,"date":25},"/dev/vex-csaf-embedded-not-affected-scale","VEX and CSAF for Embedded Vulnerability Status","How to produce and distribute VEX documents and CSAF advisories for embedded firmware, enabling downstream consumers to filter false positives from vulnerability scans.","2026-04-15T20:03:00.000Z",{"_path":27,"title":28,"description":29,"date":30},"/dev/yocto-5-2-walnascar-highlights-embedded-2026","Yocto 5.2 Walnascar: Release Changes and Migration Context","Key changes in Yocto 5.2 Walnascar relevant to embedded product teams, covering toolchain updates, security improvements, SPDX 3.0 support, and migration notes.","2026-04-12T08:14:00.000Z",{"_path":32,"title":33,"description":34,"date":35},"/dev/yocto-esdk-faster-iteration-2026","Yocto eSDK in 2026: Faster Application Iteration Without Full Rebuild Cycles","How to use Yocto's extensible SDK to speed up application development by building and testing packages without running full BitBake builds.","2026-04-11T07:09:00.000Z",{"_path":37,"title":38,"description":39,"date":40},"/dev/yocto-layers-maintainable-strategy-2026","Maintaining Yocto Layers: Appends, Forks and Upgrades","Practical guidance on structuring Yocto layers for long-term maintainability, covering layer boundaries, naming conventions, version pinning, and upgrade workflows.","2026-04-07T13:41:00.000Z",{"_path":42,"title":43,"description":44,"date":45},"/doc/bootlin-toolchains-arm-riscv-2026","Bootlin Toolchains in Practice: Picking the Right Prebuilt Toolchain for ARM and RISC-V","How to select and validate Bootlin prebuilt cross-compilation toolchains for ARM Cortex-A, Cortex-M, and RISC-V targets in embedded Linux projects.","2026-03-10T16:05:00.000Z",{"_path":47,"title":48,"description":49,"date":50},"/doc/buildroot-vs-yocto-2026","Buildroot vs Yocto: BSPs, Build Workflow and Maintenance","A detailed comparison of Buildroot and Yocto for embedded Linux, covering build performance, long-term maintenance, layer ecosystems, and practical decision criteria for product teams in 2026.","2026-03-05T08:12:00.000Z",{"_path":52,"title":53,"description":54,"date":55},"/doc/cross-compilation-toolchain-triplet-clib-2026","Cross-Compilation: Target Triplets and glibc vs musl","Practical guidance on selecting cross-compilation toolchains for embedded Linux, understanding target triplets, and choosing between glibc and musl for your production firmware.","2026-03-07T07:43:00.000Z",{"_path":57,"title":58,"description":59,"date":60},"/doc/erofs-vs-squashfs-2026","EROFS vs SquashFS: Compression, Performance and OTA Trade-offs","Detailed comparison of EROFS and SquashFS for embedded Linux in 2026, covering read performance, compression ratios, deduplication, and integration with OTA update schemes.","2026-03-22T14:22:00.000Z",{"_path":62,"title":63,"description":64,"date":65},"/doc/ota-updates-rauc-swupdate-mender-2026","RAUC vs SWUpdate vs Mender: Embedded Linux OTA Compared","Comparison of RAUC, SWUpdate, and Mender for embedded Linux OTA updates, covering update models, rollback strategies, fleet management, and integration with Yocto and Buildroot.","2026-03-28T19:07:00.000Z",{"_path":67,"title":68,"description":69,"date":70},"/doc/plat/device-tree-debugging-overlays-validation-2026","Device Tree Debugging for Embedded Linux: Overlays, Common Errors, and Validation","Practical guide to debugging device tree issues in embedded Linux, covering overlay mechanics, common DTS errors, validation tools, and runtime debugging techniques.","2026-04-05T06:58:00.000Z",{"_path":72,"title":73,"description":74,"date":75},"/doc/plat/porting-checklist-bootloader-kernel-rootfs-2026","Porting Checklist 2026: Bootloader → Kernel → RootFS for New Boards","Complete checklist for porting embedded Linux to a new board, from bootloader bring-up through kernel configuration to root filesystem validation, with practical tips for each stage.","2026-04-02T15:16:00.000Z",{"_path":77,"title":78,"description":79,"date":80},"/doc/real-time-linux-preempt-rt-latency-2026","PREEMPT_RT Linux: Configuration and Cyclictest Latency Tests","Practical guide to PREEMPT_RT on embedded Linux covering kernel configuration, IRQ threading, latency measurement with cyclictest, and tuning techniques with explicit test conditions and interpretation limits.","2026-03-23T05:48:00.000Z",{"_path":82,"title":83,"description":84,"date":85},"/doc/rootfs-integrity-dm-verity-immutable-images","dm-verity for Rootfs Integrity: Design, Trust and Recovery","How to design and implement dm-verity-protected root filesystems for embedded Linux, covering hash tree generation, kernel integration, error handling, and update strategies.","2026-03-19T08:56:00.000Z",{"_path":87,"title":88,"description":89,"date":90},"/doc/rtos-vs-embedded-linux-zephyr-2026","RTOS vs Embedded Linux: Zephyr, FreeRTOS and Linux Compared","Practical comparison of RTOS (Zephyr, FreeRTOS) and embedded Linux for product design, covering latency, memory footprint, ecosystem maturity, and hybrid architectures.","2026-03-30T09:35:00.000Z",{"_path":92,"title":93,"description":94,"date":95},"/doc/secure-boot-uboot-fit-signatures-chain-of-trust","U-Boot Secure Boot: FIT Signatures and Chain of Trust","Understand U-Boot FIT signatures, trusted control device trees and boot-chain limits with a versioned example and explicit rejection and recovery tests.","2026-03-14T06:29:00.000Z",{"_path":97,"title":98,"description":99,"date":100},"/doc/verified-boot-patterns-uboot-keys-failure-modes","Verified Boot Patterns in U-Boot: What to Verify, Where Keys Live, and Failure Modes","Deep dive into U-Boot verified boot patterns covering signature scopes, key storage options, common failure modes, and practical debugging techniques for embedded Linux platforms.","2026-03-16T18:11:00.000Z",{"_path":102,"title":103,"description":104},"/image-manifest","ProteanOS Image Manifest","This document lists all hero and supporting images needed for the website.",{"_path":77,"_dir":106,"_draft":107,"_partial":107,"_locale":108,"title":78,"description":79,"date":80,"lastmod":109,"draft":107,"hero":110,"tags":111,"category":106,"body":115,"_type":1153,"_id":1154,"_source":1155,"_file":1156,"_stem":1157,"_extension":1158},"doc",false,"","2026-11-16T00:00:00.000Z","/images/hero/real-time-linux-preempt-rt-latency-2026-1600x900.jpg",[112,113,114],"Embedded Linux","ProteanOS","Real-Time",{"type":116,"children":117,"toc":1134},"root",[118,126,133,138,143,189,194,200,205,215,220,226,239,292,297,302,315,345,350,356,361,374,466,488,493,498,505,510,752,757,763,769,774,780,785,791,796,802,807,903,909,914,922,943,949,954,1006,1011,1048,1054,1059,1085,1090,1096,1117,1123,1128],{"type":119,"tag":120,"props":121,"children":122},"element","p",{},[123],{"type":124,"value":125},"text","PREEMPT_RT transforms the Linux kernel into a viable platform for soft and firm real-time applications. Use an architecture and kernel branch that support CONFIG_PREEMPT_RT, then verify the vendor configuration. This guide covers what PREEMPT_RT actually does, how to configure and tune it, and - critically - how to document observed scheduling latency and the conditions a test covers.",{"type":119,"tag":127,"props":128,"children":130},"h2",{"id":129},"what-preempt_rt-changes",[131],{"type":124,"value":132},"What PREEMPT_RT changes",{"type":119,"tag":120,"props":134,"children":135},{},[136],{"type":124,"value":137},"Standard Linux is optimized for throughput. The kernel disables preemption during critical sections, holds spinlocks with interrupts disabled, and batches work for efficiency. These paths affect scheduling response and need measurement on the selected configuration.",{"type":119,"tag":120,"props":139,"children":140},{},[141],{"type":124,"value":142},"PREEMPT_RT makes the following changes:",{"type":119,"tag":144,"props":145,"children":146},"ul",{},[147,159,169,179],{"type":119,"tag":148,"props":149,"children":150},"li",{},[151,157],{"type":119,"tag":152,"props":153,"children":154},"strong",{},[155],{"type":124,"value":156},"Spinlocks become sleeping locks:",{"type":124,"value":158}," Most kernel spinlocks are replaced with rt-mutexes that can sleep, allowing higher-priority threads to preempt lower-priority ones even inside kernel code paths.",{"type":119,"tag":148,"props":160,"children":161},{},[162,167],{"type":119,"tag":152,"props":163,"children":164},{},[165],{"type":124,"value":166},"Interrupt handlers run as threads:",{"type":124,"value":168}," Hardware interrupt handlers are converted to kernel threads with configurable priorities. This means a high-priority real-time task can preempt interrupt handling.",{"type":119,"tag":148,"props":170,"children":171},{},[172,177],{"type":119,"tag":152,"props":173,"children":174},{},[175],{"type":124,"value":176},"Priority inheritance:",{"type":124,"value":178}," rt-mutexes implement priority inheritance to prevent priority inversion - a low-priority task holding a lock needed by a high-priority task temporarily inherits the high priority.",{"type":119,"tag":148,"props":180,"children":181},{},[182,187],{"type":119,"tag":152,"props":183,"children":184},{},[185],{"type":124,"value":186},"High-resolution timers:",{"type":124,"value":188}," Timer resolution is improved to the hardware timer's native resolution (typically 1 µs or better).",{"type":119,"tag":120,"props":190,"children":191},{},[192],{"type":124,"value":193},"Measure the scheduling response on your selected hardware and kernel. PREEMPT_RT alone establishes no numerical latency bound.",{"type":119,"tag":127,"props":195,"children":197},{"id":196},"kernel-configuration",[198],{"type":124,"value":199},"Kernel configuration",{"type":119,"tag":120,"props":201,"children":202},{},[203],{"type":124,"value":204},"The following configuration names are a starting checklist for Linux 6.12. Verify architecture support, dependencies and the vendor kernel configuration before enabling them:",{"type":119,"tag":206,"props":207,"children":209},"pre",{"code":208},"CONFIG_PREEMPT_RT=y\nCONFIG_HIGH_RES_TIMERS=y\nCONFIG_NO_HZ_FULL=y\nCONFIG_CPU_FREQ=n        # or use performance governor\nCONFIG_CPU_IDLE=n         # or configure shallow idle states\n",[210],{"type":119,"tag":211,"props":212,"children":213},"code",{"__ignoreMap":108},[214],{"type":124,"value":208},{"type":119,"tag":120,"props":216,"children":217},{},[218],{"type":124,"value":219},"Frequency and idle policies can affect latency, temperature and power. Compare supported policies on the target under sustained load. CPU idle-state names and available controls vary by architecture. Keep the original configuration and record each tested change.",{"type":119,"tag":127,"props":221,"children":223},{"id":222},"irq-thread-priorities",[224],{"type":124,"value":225},"IRQ thread priorities",{"type":119,"tag":120,"props":227,"children":228},{},[229,231,237],{"type":124,"value":230},"PREEMPT_RT threads most interrupt handlers, with exceptions for low-level and explicitly non-threaded paths. You can see them with ",{"type":119,"tag":211,"props":232,"children":234},{"className":233},[],[235],{"type":124,"value":236},"ps",{"type":124,"value":238},":",{"type":119,"tag":206,"props":240,"children":244},{"code":241,"language":242,"meta":108,"className":243,"style":108},"ps -eo pid,cls,rtprio,comm | grep -i irq\n","bash","language-bash shiki shiki-themes github-dark",[245],{"type":119,"tag":211,"props":246,"children":247},{"__ignoreMap":108},[248],{"type":119,"tag":249,"props":250,"children":253},"span",{"class":251,"line":252},"line",1,[254,259,265,271,277,282,287],{"type":119,"tag":249,"props":255,"children":257},{"style":256},"--shiki-default:#B392F0",[258],{"type":124,"value":236},{"type":119,"tag":249,"props":260,"children":262},{"style":261},"--shiki-default:#79B8FF",[263],{"type":124,"value":264}," -eo",{"type":119,"tag":249,"props":266,"children":268},{"style":267},"--shiki-default:#9ECBFF",[269],{"type":124,"value":270}," pid,cls,rtprio,comm",{"type":119,"tag":249,"props":272,"children":274},{"style":273},"--shiki-default:#F97583",[275],{"type":124,"value":276}," |",{"type":119,"tag":249,"props":278,"children":279},{"style":256},[280],{"type":124,"value":281}," grep",{"type":119,"tag":249,"props":283,"children":284},{"style":261},[285],{"type":124,"value":286}," -i",{"type":119,"tag":249,"props":288,"children":289},{"style":267},[290],{"type":124,"value":291}," irq\n",{"type":119,"tag":120,"props":293,"children":294},{},[295],{"type":124,"value":296},"Set priorities based on your application's requirements. This illustrative priority ordering needs validation against the actual dependency graph:",{"type":119,"tag":120,"props":298,"children":299},{},[300],{"type":124,"value":301},"A real-time thread must not starve an IRQ thread or worker on which it depends. Record the complete wakeup path before assigning priorities. Include watchdogs, communication, storage and recovery work in that review. A universal numeric priority table cannot establish a safe ordering for an unknown device.",{"type":119,"tag":120,"props":303,"children":304},{},[305,307,313],{"type":124,"value":306},"Use ",{"type":119,"tag":211,"props":308,"children":310},{"className":309},[],[311],{"type":124,"value":312},"chrt",{"type":124,"value":314}," to set thread priorities:",{"type":119,"tag":206,"props":316,"children":318},{"code":317,"language":242,"meta":108,"className":243,"style":108},"chrt -p THREAD_PID  # inspect a known thread before planning changes\n",[319],{"type":119,"tag":211,"props":320,"children":321},{"__ignoreMap":108},[322],{"type":119,"tag":249,"props":323,"children":324},{"class":251,"line":252},[325,329,334,339],{"type":119,"tag":249,"props":326,"children":327},{"style":256},[328],{"type":124,"value":312},{"type":119,"tag":249,"props":330,"children":331},{"style":261},[332],{"type":124,"value":333}," -p",{"type":119,"tag":249,"props":335,"children":336},{"style":267},[337],{"type":124,"value":338}," THREAD_PID",{"type":119,"tag":249,"props":340,"children":342},{"style":341},"--shiki-default:#6A737D",[343],{"type":124,"value":344},"  # inspect a known thread before planning changes\n",{"type":119,"tag":120,"props":346,"children":347},{},[348],{"type":124,"value":349},"Or configure them in udev rules or systemd unit files for persistence.",{"type":119,"tag":127,"props":351,"children":353},{"id":352},"measuring-latency-with-cyclictest",[354],{"type":124,"value":355},"Measuring latency with cyclictest",{"type":119,"tag":120,"props":357,"children":358},{},[359],{"type":124,"value":360},"cyclictest is the standard tool for measuring scheduling latency on PREEMPT_RT systems. It creates high-priority threads that sleep for a defined interval and measures how long they actually slept (the difference is the scheduling latency).",{"type":119,"tag":120,"props":362,"children":363},{},[364,366,372],{"type":124,"value":365},"The command below uses options documented for rt-tests 2.6. Run it on disposable test equipment with appropriate scheduling permissions. Record the actual output of ",{"type":119,"tag":211,"props":367,"children":369},{"className":368},[],[370],{"type":124,"value":371},"cyclictest --version",{"type":124,"value":373}," and keep the kernel configuration with the results.",{"type":119,"tag":206,"props":375,"children":377},{"code":376,"language":242,"meta":108,"className":243,"style":108},"cyclictest --version\nuname -a\ncyclictest --mlockall --threads=1 --priority=80 --interval=1000 --duration=10m --histogram=100 --quiet --json=run.json > run.txt\n",[378],{"type":119,"tag":211,"props":379,"children":380},{"__ignoreMap":108},[381,394,408],{"type":119,"tag":249,"props":382,"children":383},{"class":251,"line":252},[384,389],{"type":119,"tag":249,"props":385,"children":386},{"style":256},[387],{"type":124,"value":388},"cyclictest",{"type":119,"tag":249,"props":390,"children":391},{"style":261},[392],{"type":124,"value":393}," --version\n",{"type":119,"tag":249,"props":395,"children":397},{"class":251,"line":396},2,[398,403],{"type":119,"tag":249,"props":399,"children":400},{"style":256},[401],{"type":124,"value":402},"uname",{"type":119,"tag":249,"props":404,"children":405},{"style":261},[406],{"type":124,"value":407}," -a\n",{"type":119,"tag":249,"props":409,"children":411},{"class":251,"line":410},3,[412,416,421,426,431,436,441,446,451,456,461],{"type":119,"tag":249,"props":413,"children":414},{"style":256},[415],{"type":124,"value":388},{"type":119,"tag":249,"props":417,"children":418},{"style":261},[419],{"type":124,"value":420}," --mlockall",{"type":119,"tag":249,"props":422,"children":423},{"style":261},[424],{"type":124,"value":425}," --threads=1",{"type":119,"tag":249,"props":427,"children":428},{"style":261},[429],{"type":124,"value":430}," --priority=80",{"type":119,"tag":249,"props":432,"children":433},{"style":261},[434],{"type":124,"value":435}," --interval=1000",{"type":119,"tag":249,"props":437,"children":438},{"style":261},[439],{"type":124,"value":440}," --duration=10m",{"type":119,"tag":249,"props":442,"children":443},{"style":261},[444],{"type":124,"value":445}," --histogram=100",{"type":119,"tag":249,"props":447,"children":448},{"style":261},[449],{"type":124,"value":450}," --quiet",{"type":119,"tag":249,"props":452,"children":453},{"style":261},[454],{"type":124,"value":455}," --json=run.json",{"type":119,"tag":249,"props":457,"children":458},{"style":273},[459],{"type":124,"value":460}," >",{"type":119,"tag":249,"props":462,"children":463},{"style":267},[464],{"type":124,"value":465}," run.txt\n",{"type":119,"tag":120,"props":467,"children":468},{},[469,471,478,480,486],{"type":124,"value":470},"This page supplies a ",{"type":119,"tag":472,"props":473,"children":475},"a",{"href":474},"/resources/cyclictest-fixture-v1.txt",[476],{"type":124,"value":477},"synthetic histogram and annotated summary",{"type":124,"value":479}," and a ",{"type":119,"tag":472,"props":481,"children":483},{"href":482},"/resources/latency-fixture-v1.json",[484],{"type":124,"value":485},"normalised JSON fixture",{"type":124,"value":487},". The JSON uses ProteanOS fixture schema 1, with explicit units and provenance. It is an instructional representation. Native cyclictest JSON must be interpreted against its generating rt-tests version.",{"type":119,"tag":120,"props":489,"children":490},{},[491],{"type":124,"value":492},"The synthetic histogram contains 50 samples at 1 microsecond, 40 at 2 and 10 at 10. It has 100 samples, mean 2.3 microseconds and maximum 10. Under the nearest-rank convention, p95 and p99 are both 10. Summary-only output cannot supply these percentiles. If samples overflow the recorded histogram, percentiles in that unobserved tail remain unavailable or bounded below by the overflow threshold.",{"type":119,"tag":120,"props":494,"children":495},{},[496],{"type":124,"value":497},"Thread identifiers identify measurement threads. CPU affinity requires separate recorded evidence. Never add a total histogram column to its constituent thread columns. When combining means, weight each thread by its sample count. Record missing hardware, kernel, workload and duration as unknown. All values in these downloads are synthetic and represent no device test.",{"type":119,"tag":499,"props":500,"children":502},"h3",{"id":501},"stress-during-measurement",[503],{"type":124,"value":504},"Stress during measurement",{"type":119,"tag":120,"props":506,"children":507},{},[508],{"type":124,"value":509},"Keep an idle baseline and compare it with representative application load. Run stress workloads simultaneously:",{"type":119,"tag":206,"props":511,"children":513},{"code":512,"language":242,"meta":108,"className":243,"style":108},"# CPU stress\nstress-ng --cpu $(nproc) --timeout 86400 &\n\n# I/O stress\nstress-ng --hdd 4 --timeout 86400 &\n\n# Network stress (if applicable)\niperf3 -s &  # on target\niperf3 -c target-ip -t 86400 &  # from host\n\n# Memory pressure\nstress-ng --vm 2 --vm-bytes 80% --timeout 86400 &\n",[514],{"type":119,"tag":211,"props":515,"children":516},{"__ignoreMap":108},[517,525,569,578,587,618,626,635,659,695,703,712],{"type":119,"tag":249,"props":518,"children":519},{"class":251,"line":252},[520],{"type":119,"tag":249,"props":521,"children":522},{"style":341},[523],{"type":124,"value":524},"# CPU stress\n",{"type":119,"tag":249,"props":526,"children":527},{"class":251,"line":396},[528,533,538,544,549,554,559,564],{"type":119,"tag":249,"props":529,"children":530},{"style":256},[531],{"type":124,"value":532},"stress-ng",{"type":119,"tag":249,"props":534,"children":535},{"style":261},[536],{"type":124,"value":537}," --cpu",{"type":119,"tag":249,"props":539,"children":541},{"style":540},"--shiki-default:#E1E4E8",[542],{"type":124,"value":543}," $(",{"type":119,"tag":249,"props":545,"children":546},{"style":256},[547],{"type":124,"value":548},"nproc",{"type":119,"tag":249,"props":550,"children":551},{"style":540},[552],{"type":124,"value":553},") ",{"type":119,"tag":249,"props":555,"children":556},{"style":261},[557],{"type":124,"value":558},"--timeout",{"type":119,"tag":249,"props":560,"children":561},{"style":261},[562],{"type":124,"value":563}," 86400",{"type":119,"tag":249,"props":565,"children":566},{"style":540},[567],{"type":124,"value":568}," &\n",{"type":119,"tag":249,"props":570,"children":571},{"class":251,"line":410},[572],{"type":119,"tag":249,"props":573,"children":575},{"emptyLinePlaceholder":574},true,[576],{"type":124,"value":577},"\n",{"type":119,"tag":249,"props":579,"children":581},{"class":251,"line":580},4,[582],{"type":119,"tag":249,"props":583,"children":584},{"style":341},[585],{"type":124,"value":586},"# I/O stress\n",{"type":119,"tag":249,"props":588,"children":590},{"class":251,"line":589},5,[591,595,600,605,610,614],{"type":119,"tag":249,"props":592,"children":593},{"style":256},[594],{"type":124,"value":532},{"type":119,"tag":249,"props":596,"children":597},{"style":261},[598],{"type":124,"value":599}," --hdd",{"type":119,"tag":249,"props":601,"children":602},{"style":261},[603],{"type":124,"value":604}," 4",{"type":119,"tag":249,"props":606,"children":607},{"style":261},[608],{"type":124,"value":609}," --timeout",{"type":119,"tag":249,"props":611,"children":612},{"style":261},[613],{"type":124,"value":563},{"type":119,"tag":249,"props":615,"children":616},{"style":540},[617],{"type":124,"value":568},{"type":119,"tag":249,"props":619,"children":621},{"class":251,"line":620},6,[622],{"type":119,"tag":249,"props":623,"children":624},{"emptyLinePlaceholder":574},[625],{"type":124,"value":577},{"type":119,"tag":249,"props":627,"children":629},{"class":251,"line":628},7,[630],{"type":119,"tag":249,"props":631,"children":632},{"style":341},[633],{"type":124,"value":634},"# Network stress (if applicable)\n",{"type":119,"tag":249,"props":636,"children":638},{"class":251,"line":637},8,[639,644,649,654],{"type":119,"tag":249,"props":640,"children":641},{"style":256},[642],{"type":124,"value":643},"iperf3",{"type":119,"tag":249,"props":645,"children":646},{"style":261},[647],{"type":124,"value":648}," -s",{"type":119,"tag":249,"props":650,"children":651},{"style":540},[652],{"type":124,"value":653}," &  ",{"type":119,"tag":249,"props":655,"children":656},{"style":341},[657],{"type":124,"value":658},"# on target\n",{"type":119,"tag":249,"props":660,"children":662},{"class":251,"line":661},9,[663,667,672,677,682,686,690],{"type":119,"tag":249,"props":664,"children":665},{"style":256},[666],{"type":124,"value":643},{"type":119,"tag":249,"props":668,"children":669},{"style":261},[670],{"type":124,"value":671}," -c",{"type":119,"tag":249,"props":673,"children":674},{"style":267},[675],{"type":124,"value":676}," target-ip",{"type":119,"tag":249,"props":678,"children":679},{"style":261},[680],{"type":124,"value":681}," -t",{"type":119,"tag":249,"props":683,"children":684},{"style":261},[685],{"type":124,"value":563},{"type":119,"tag":249,"props":687,"children":688},{"style":540},[689],{"type":124,"value":653},{"type":119,"tag":249,"props":691,"children":692},{"style":341},[693],{"type":124,"value":694},"# from host\n",{"type":119,"tag":249,"props":696,"children":698},{"class":251,"line":697},10,[699],{"type":119,"tag":249,"props":700,"children":701},{"emptyLinePlaceholder":574},[702],{"type":124,"value":577},{"type":119,"tag":249,"props":704,"children":706},{"class":251,"line":705},11,[707],{"type":119,"tag":249,"props":708,"children":709},{"style":341},[710],{"type":124,"value":711},"# Memory pressure\n",{"type":119,"tag":249,"props":713,"children":715},{"class":251,"line":714},12,[716,720,725,730,735,740,744,748],{"type":119,"tag":249,"props":717,"children":718},{"style":256},[719],{"type":124,"value":532},{"type":119,"tag":249,"props":721,"children":722},{"style":261},[723],{"type":124,"value":724}," --vm",{"type":119,"tag":249,"props":726,"children":727},{"style":261},[728],{"type":124,"value":729}," 2",{"type":119,"tag":249,"props":731,"children":732},{"style":261},[733],{"type":124,"value":734}," --vm-bytes",{"type":119,"tag":249,"props":736,"children":737},{"style":267},[738],{"type":124,"value":739}," 80%",{"type":119,"tag":249,"props":741,"children":742},{"style":261},[743],{"type":124,"value":609},{"type":119,"tag":249,"props":745,"children":746},{"style":261},[747],{"type":124,"value":563},{"type":119,"tag":249,"props":749,"children":750},{"style":540},[751],{"type":124,"value":568},{"type":119,"tag":120,"props":753,"children":754},{},[755],{"type":124,"value":756},"Run cyclictest with all stressors active. The maximum is the largest observed scheduling delay in that run. Unobserved loads, firmware paths and hardware states can produce larger delays.",{"type":119,"tag":127,"props":758,"children":760},{"id":759},"common-latency-sources-and-fixes",[761],{"type":124,"value":762},"Common latency sources and fixes",{"type":119,"tag":499,"props":764,"children":766},{"id":765},"cpu-frequency-and-idle-policy",[767],{"type":124,"value":768},"CPU frequency and idle policy",{"type":119,"tag":120,"props":770,"children":771},{},[772],{"type":124,"value":773},"Correlate spikes with frequency transitions and idle residency before changing policy. Compare available governors on a disposable target and record the thermal and power effects. A performance governor is one candidate configuration, not a universal correction.",{"type":119,"tag":499,"props":775,"children":777},{"id":776},"firmware-and-secure-world-activity",[778],{"type":124,"value":779},"Firmware and secure-world activity",{"type":119,"tag":120,"props":781,"children":782},{},[783],{"type":124,"value":784},"On x86, firmware handling of System Management Interrupts can delay kernel scheduling. Other architectures have different firmware paths, including secure-world calls. Use platform tracing and vendor documentation to investigate. Do not disable firmware functions without understanding their thermal, reliability and security roles.",{"type":119,"tag":499,"props":786,"children":788},{"id":787},"usb-and-gpu-drivers",[789],{"type":124,"value":790},"USB and GPU drivers",{"type":119,"tag":120,"props":792,"children":793},{},[794],{"type":124,"value":795},"Correlate traces with USB traffic and display activity. Before moving IRQ priorities or affinity, map which threads the application depends on. Lowering a necessary interrupt thread can delay the work you intended to protect. Repeat the application and recovery tests after a change.",{"type":119,"tag":499,"props":797,"children":799},{"id":798},"memory-allocation",[800],{"type":124,"value":801},"Memory allocation",{"type":119,"tag":120,"props":803,"children":804},{},[805],{"type":124,"value":806},"Pre-allocate and touch the required memory before entering the measured loop. Check that memory locking succeeds under the configured limits, then verify the application avoids allocations and unwanted faults during the deadline-sensitive path. The following fragment shows the failure check; it is not a complete real-time application.",{"type":119,"tag":206,"props":808,"children":812},{"code":809,"language":810,"meta":108,"className":811,"style":108},"#include \u003Csys/mman.h>\n#include \u003Cstdio.h>\n\nint main() {\n    if (mlockall(MCL_CURRENT | MCL_FUTURE) != 0) {\n        perror(\"mlockall\");\n        return 1;\n    }\n    // Pre-allocate buffers\n    // Enter real-time loop\n}\n","c","language-c shiki shiki-themes github-dark",[813],{"type":119,"tag":211,"props":814,"children":815},{"__ignoreMap":108},[816,824,832,839,847,855,863,871,879,887,895],{"type":119,"tag":249,"props":817,"children":818},{"class":251,"line":252},[819],{"type":119,"tag":249,"props":820,"children":821},{},[822],{"type":124,"value":823},"#include \u003Csys/mman.h>\n",{"type":119,"tag":249,"props":825,"children":826},{"class":251,"line":396},[827],{"type":119,"tag":249,"props":828,"children":829},{},[830],{"type":124,"value":831},"#include \u003Cstdio.h>\n",{"type":119,"tag":249,"props":833,"children":834},{"class":251,"line":410},[835],{"type":119,"tag":249,"props":836,"children":837},{"emptyLinePlaceholder":574},[838],{"type":124,"value":577},{"type":119,"tag":249,"props":840,"children":841},{"class":251,"line":580},[842],{"type":119,"tag":249,"props":843,"children":844},{},[845],{"type":124,"value":846},"int main() {\n",{"type":119,"tag":249,"props":848,"children":849},{"class":251,"line":589},[850],{"type":119,"tag":249,"props":851,"children":852},{},[853],{"type":124,"value":854},"    if (mlockall(MCL_CURRENT | MCL_FUTURE) != 0) {\n",{"type":119,"tag":249,"props":856,"children":857},{"class":251,"line":620},[858],{"type":119,"tag":249,"props":859,"children":860},{},[861],{"type":124,"value":862},"        perror(\"mlockall\");\n",{"type":119,"tag":249,"props":864,"children":865},{"class":251,"line":628},[866],{"type":119,"tag":249,"props":867,"children":868},{},[869],{"type":124,"value":870},"        return 1;\n",{"type":119,"tag":249,"props":872,"children":873},{"class":251,"line":637},[874],{"type":119,"tag":249,"props":875,"children":876},{},[877],{"type":124,"value":878},"    }\n",{"type":119,"tag":249,"props":880,"children":881},{"class":251,"line":661},[882],{"type":119,"tag":249,"props":883,"children":884},{},[885],{"type":124,"value":886},"    // Pre-allocate buffers\n",{"type":119,"tag":249,"props":888,"children":889},{"class":251,"line":697},[890],{"type":119,"tag":249,"props":891,"children":892},{},[893],{"type":124,"value":894},"    // Enter real-time loop\n",{"type":119,"tag":249,"props":896,"children":897},{"class":251,"line":705},[898],{"type":119,"tag":249,"props":899,"children":900},{},[901],{"type":124,"value":902},"}\n",{"type":119,"tag":127,"props":904,"children":906},{"id":905},"cpu-isolation",[907],{"type":124,"value":908},"CPU isolation",{"type":119,"tag":120,"props":910,"children":911},{},[912],{"type":124,"value":913},"CPU isolation can reduce interference from unrelated work. It does not remove every interrupt or firmware path. The following boot arguments are illustrative; verify supported CPU indices, kernel configuration and housekeeping capacity on the target:",{"type":119,"tag":206,"props":915,"children":917},{"code":916},"# Kernel command line\nisolcpus=2,3 nohz_full=2,3 rcu_nocbs=2,3\n",[918],{"type":119,"tag":211,"props":919,"children":920},{"__ignoreMap":108},[921],{"type":124,"value":916},{"type":119,"tag":120,"props":923,"children":924},{},[925,927,933,935,941],{"type":124,"value":926},"This removes CPUs 2 and 3 from the general scheduler. Pin your real-time application to these cores using ",{"type":119,"tag":211,"props":928,"children":930},{"className":929},[],[931],{"type":124,"value":932},"taskset",{"type":124,"value":934}," or ",{"type":119,"tag":211,"props":936,"children":938},{"className":937},[],[939],{"type":124,"value":940},"pthread_setaffinity_np",{"type":124,"value":942},". The isolated cores handle only your real-time threads and their explicitly assigned IRQs.",{"type":119,"tag":127,"props":944,"children":946},{"id":945},"documenting-latency-coverage",[947],{"type":124,"value":948},"Documenting latency coverage",{"type":119,"tag":120,"props":950,"children":951},{},[952],{"type":124,"value":953},"Measuring worst-case latency is necessary but not sufficient for safety-critical systems. Record the test coverage as follows:",{"type":119,"tag":955,"props":956,"children":957},"ol",{},[958,968,978,988,998],{"type":119,"tag":148,"props":959,"children":960},{},[961,966],{"type":119,"tag":152,"props":962,"children":963},{},[964],{"type":124,"value":965},"Define the requirement:",{"type":124,"value":967}," \"The control loop must complete within 100 µs of the trigger event, 100% of the time\"",{"type":119,"tag":148,"props":969,"children":970},{},[971,976],{"type":119,"tag":152,"props":972,"children":973},{},[974],{"type":124,"value":975},"Measure under worst-case conditions:",{"type":124,"value":977}," Choose duration and stress workloads from the product risk and usage profile, then retain the logs",{"type":119,"tag":148,"props":979,"children":980},{},[981,986],{"type":119,"tag":152,"props":982,"children":983},{},[984],{"type":124,"value":985},"Add margin:",{"type":124,"value":987}," A chosen engineering margin is an assumption to validate. Adding a margin to an observed maximum does not establish an upper bound.",{"type":119,"tag":148,"props":989,"children":990},{},[991,996],{"type":119,"tag":152,"props":992,"children":993},{},[994],{"type":124,"value":995},"Document the test conditions:",{"type":124,"value":997}," Hardware, kernel version, RT config, stress workloads, test duration, ambient temperature",{"type":119,"tag":148,"props":999,"children":1000},{},[1001],{"type":119,"tag":152,"props":1002,"children":1003},{},[1004],{"type":124,"value":1005},"Repeat after any kernel or hardware change",{"type":119,"tag":120,"props":1007,"children":1008},{},[1009],{"type":124,"value":1010},"Certification and assurance depend on the complete product, applicable standard and assessment evidence. A cyclictest run measures scheduling behaviour. Application execution and end-to-end I/O deadlines require separate measurements.",{"type":119,"tag":1012,"props":1013,"children":1017},"div",{"className":1014},[1015,1016],"callout","callout-success",[1018],{"type":119,"tag":1012,"props":1019,"children":1022},{"className":1020},[1021],"callout-content",[1023,1030],{"type":119,"tag":120,"props":1024,"children":1027},{"className":1025},[1026],"callout-title",[1028],{"type":124,"value":1029},"Strengthen your OS fundamentals",{"type":119,"tag":120,"props":1031,"children":1032},{},[1033,1035,1046],{"type":124,"value":1034},"Real-time tuning relies heavily on understanding how the kernel schedules tasks, handles interrupts, and manages memory. If any of these concepts feel unfamiliar, the ",{"type":119,"tag":472,"props":1036,"children":1043},{"href":1037,"target":1038,"rel":1039},"/posgo/linux-os-course","_blank",[1040,1041,1042],"nofollow","noopener","noreferrer",[1044],{"type":124,"value":1045},"Fundamentals of Operating Systems",{"type":124,"value":1047}," course builds that foundation from the ground up.",{"type":119,"tag":127,"props":1049,"children":1051},{"id":1050},"when-preempt_rt-is-not-enough",[1052],{"type":124,"value":1053},"When PREEMPT_RT is not enough",{"type":119,"tag":120,"props":1055,"children":1056},{},[1057],{"type":124,"value":1058},"If timing and isolation requirements exceed the evidence for the tested Linux configuration, evaluate:",{"type":119,"tag":144,"props":1060,"children":1061},{},[1062,1075,1080],{"type":119,"tag":148,"props":1063,"children":1064},{},[1065,1067,1073],{"type":124,"value":1066},"A dedicated RTOS co-processor (see ",{"type":119,"tag":472,"props":1068,"children":1070},{"href":1069},"/doc/rtos-vs-embedded-linux-zephyr-2026/",[1071],{"type":124,"value":1072},"RTOS vs embedded Linux",{"type":124,"value":1074},")",{"type":119,"tag":148,"props":1076,"children":1077},{},[1078],{"type":124,"value":1079},"Xenomai or RTAI for hard real-time with Linux as a secondary OS",{"type":119,"tag":148,"props":1081,"children":1082},{},[1083],{"type":124,"value":1084},"FPGA-based control paths with timing verified against the implementation",{"type":119,"tag":120,"props":1086,"children":1087},{},[1088],{"type":124,"value":1089},"Record the application deadline, allowed failure behaviour and hardware validation still needed before selecting an architecture.",{"type":119,"tag":127,"props":1091,"children":1093},{"id":1092},"integration-with-proteanos",[1094],{"type":124,"value":1095},"Integration with ProteanOS",{"type":119,"tag":120,"props":1097,"children":1098},{},[1099,1101,1107,1109,1115],{"type":124,"value":1100},"Check the kernel configuration supplied for your target. Use the ",{"type":119,"tag":472,"props":1102,"children":1104},{"href":1103},"/doc/install/",[1105],{"type":124,"value":1106},"installation guide",{"type":124,"value":1108}," for project context and retain your own kernel and application test records. Teams accelerating kernel and embedded C development with AI assistance can find a practical survey of the ",{"type":119,"tag":472,"props":1110,"children":1112},{"href":1111},"https://diyai.io/ai-tools/code-generation/best-ai-coding-tools/",[1113],{"type":124,"value":1114},"best coding tools",{"type":124,"value":1116}," for this kind of systems-level work.",{"type":119,"tag":127,"props":1118,"children":1120},{"id":1119},"summary",[1121],{"type":124,"value":1122},"Summary",{"type":119,"tag":120,"props":1124,"children":1125},{},[1126],{"type":124,"value":1127},"PREEMPT_RT in 2026 is a mature, mainline technology. Configure it, isolate cores, lock memory, measure under stress, and document your results. Select the architecture using end-to-end application deadlines, fault handling and maintained board support.",{"type":119,"tag":1129,"props":1130,"children":1131},"style",{},[1132],{"type":124,"value":1133},"html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}",{"title":108,"searchDepth":396,"depth":396,"links":1135},[1136,1137,1138,1139,1142,1148,1149,1150,1151,1152],{"id":129,"depth":396,"text":132},{"id":196,"depth":396,"text":199},{"id":222,"depth":396,"text":225},{"id":352,"depth":396,"text":355,"children":1140},[1141],{"id":501,"depth":410,"text":504},{"id":759,"depth":396,"text":762,"children":1143},[1144,1145,1146,1147],{"id":765,"depth":410,"text":768},{"id":776,"depth":410,"text":779},{"id":787,"depth":410,"text":790},{"id":798,"depth":410,"text":801},{"id":905,"depth":396,"text":908},{"id":945,"depth":396,"text":948},{"id":1050,"depth":396,"text":1053},{"id":1092,"depth":396,"text":1095},{"id":1119,"depth":396,"text":1122},"markdown","content:doc:real-time-linux-preempt-rt-latency-2026.md","content","doc/real-time-linux-preempt-rt-latency-2026.md","doc/real-time-linux-preempt-rt-latency-2026","md",1795425048029]