Real-time
solution in
Linux
DMP Electronics Inc.
intern 陳伯綸
Real-time?
Real-time might, as the name implies, sometimes also be about timeliness (fast), but in
my humble opinion it's usually about determinism.
To be precise about event- and temporal determinism (event determinism
meaning that you know the state of the outputs with a given set of inputs; temporal
determinism meaning that you also know exactly the timing).
Coming back to real-time versus real fast - In case of an aircraft navigation
system deadlines are in the tens of milliseconds, while for an airline reservation system
the deadlines are at about 15 seconds.
The latter must be deterministic just like the former one, but does not need to
be so fast.
After thirty years of research there is still no universal methodology to create
real-time systems and that's why in real life real-time is defined as follows:”A real-time
system will pass a specified test suite.[2]” Let's stick to those wise words of Paul E.
McKenny for the time being.

From Getting real (time) about embedded GNU/Linux
Real-time Operating System
RTAI

Xenomai
Linux Kernel latency component
Solution
• Dual kernel (Linux Realtime extensions )
o RTLinux
o RTAI
o Xenomai

• PREEMPT_RT kernel
Dual kernel
task
RT task

task

RT task

Linux Kernel
idle task

RT kernel

task
RTLinux
• First real-time extension for Linux
• It was developed by Victor Yodaiken, Michael
Barabanov, Cort Dougan and others at the New
Mexico Institute of Mining and Technology
• patent covering:
o US-Patents 5,995,74 owned by FSMlabs
ADEOS
RTAI & Xenomai
•

The Xenomai project was launched in August 2001. In 2003 it merged with the
Real-Time Application Interface (RTAI) project to produce a production-grade
real-time free software platform for GNU/Linux called RTAI/fusion, on top of
Xenomai's abstract real-time operating system (RTOS) core. Eventually, the
RTAI/fusion effort became independent from RTAI in 2005 as the Xenomai
project

• RTAI
o Like Linux itself the RTAI software is a community effort.
o Only really actively maintained on x86
o May offer slightly better latencies than Xenomai

• Xenomai
o Initial goals: facilitate the porting of programs to GNU / Linux.
o Any number of RTOS personalities called “skins” can then be built over the
nucleus, providing their own specific interface to the applications, by
using the services of a single generic core to implement it
RTAI vs Xenomai
Linux

RTAI

Linux

Xenomai

ADEOS
ADEOS

Hardware

Hardware
Linux kernel
Linux kernel
Linux kernel
context switch

User
Kernel

No context switch
Set flag
PREEMPT_RT kernel

User
Kernel

context switch
context switch
Reference
• Getting real (time) about embedded GNU/Linux
http://www.embedded.com/design/embedded/4204740/Gettingreal--time--about-embedded-GNU-Linux
http://blog.linux.org.tw/~jserv/archives/2011/02/_realtime_gnuli.html
• Embedded Linux system development course
http://free-electrons.com/doc/training/embedded-linux/slides.pdf
• RT nanokernel for Embedded Linux
http://people.debian.org.tw/~jserv/RT-nanokernel.pdf
• 共同筆記 - 作業系統設計與實做
http://cs001.cs.ccu.edu.tw/wiki/%E9%A6%96%E9%A0%81
• RTAI - Real Time Application Interface Official Website
https://www.rtai.org/
• Xenomai: Real-Time Framework for Linux
http://www.xenomai.org/
Thanks for your listening

More Related Content

PPTX
Real time Linux
PDF
Mastering Real-time Linux
PDF
Testing real-time Linux. What to test and how
PDF
HKG15-305: Real Time processing comparing the RT patch vs Core isolation
PDF
Analysis of interrupt latencies in a real-time kernel
PPTX
Preempt_rt realtime patch
PPTX
The Linux Scheduler: a Decade of Wasted Cores
PDF
Overview of Linux real-time challenges
Real time Linux
Mastering Real-time Linux
Testing real-time Linux. What to test and how
HKG15-305: Real Time processing comparing the RT patch vs Core isolation
Analysis of interrupt latencies in a real-time kernel
Preempt_rt realtime patch
The Linux Scheduler: a Decade of Wasted Cores
Overview of Linux real-time challenges

What's hot (20)

PPT
RT linux
PDF
Priority Inversion on Mars
PDF
Linux Preempt-RT Internals
PDF
Making Linux do Hard Real-time
PDF
Solving Real-Time Scheduling Problems With RT_PREEMPT and Deadline-Based Sche...
PPTX
Real Time Kernels
PPT
Rt linux-lab1
PDF
Vx works RTOS
PPTX
RTOS MICRO CONTROLLER OPERATING SYSTEM-2
PPTX
Memory management in vx works
PDF
Linux Internals - Interview essentials 4.0
PDF
3 process management
PDF
RTOS on ARM cortex-M platform -draft
PPT
PPTX
Linux Interrupts
ODP
Linux26 New Features
PDF
High Performance Storage Devices in the Linux Kernel
PDF
Lab6 rtos
PDF
Linux Instrumentation
PDF
DTraceCloud2012
RT linux
Priority Inversion on Mars
Linux Preempt-RT Internals
Making Linux do Hard Real-time
Solving Real-Time Scheduling Problems With RT_PREEMPT and Deadline-Based Sche...
Real Time Kernels
Rt linux-lab1
Vx works RTOS
RTOS MICRO CONTROLLER OPERATING SYSTEM-2
Memory management in vx works
Linux Internals - Interview essentials 4.0
3 process management
RTOS on ARM cortex-M platform -draft
Linux Interrupts
Linux26 New Features
High Performance Storage Devices in the Linux Kernel
Lab6 rtos
Linux Instrumentation
DTraceCloud2012
Ad

Similar to Real-time soultion (20)

PDF
Beyond the RTOS: A Better Way to Design Real-Time Embedded Software
PDF
Real Time Application Interface for Linux
PPTX
Developing Real-Time Systems on Application Processors
PDF
TFM_Marti_POMES also b forgot quick soap.pdf
PPT
PDF
Real-world Concurrency : Notes
ODP
Realtime
PDF
Beyond the RTOS: A Better Way to Design Real-Time Embedded Software
PDF
Lean Model-Driven Development through Model-Interpretation: the CPAL design ...
PPTX
RTOS [Autosaved].pptx
PPT
Tutorial on Parallel Computing and Message Passing Model - C1
ODP
ERTS 2008 - Using Linux for industrial projects
PDF
Using Embedded Linux for Infrastructure Systems
PDF
Triton: A peer-assisted cloud storage systems
PDF
Welcome Our Robot Overlords
PPTX
PART-1 : Mastering RTOS FreeRTOS and STM32Fx with Debugging
PDF
PDF
We have the Bricks to Build Cloud-native Cathedrals - But do we have the mortar?
PDF
rtosbyshibu-131026100746-phpapp01.pdf
Beyond the RTOS: A Better Way to Design Real-Time Embedded Software
Real Time Application Interface for Linux
Developing Real-Time Systems on Application Processors
TFM_Marti_POMES also b forgot quick soap.pdf
Real-world Concurrency : Notes
Realtime
Beyond the RTOS: A Better Way to Design Real-Time Embedded Software
Lean Model-Driven Development through Model-Interpretation: the CPAL design ...
RTOS [Autosaved].pptx
Tutorial on Parallel Computing and Message Passing Model - C1
ERTS 2008 - Using Linux for industrial projects
Using Embedded Linux for Infrastructure Systems
Triton: A peer-assisted cloud storage systems
Welcome Our Robot Overlords
PART-1 : Mastering RTOS FreeRTOS and STM32Fx with Debugging
We have the Bricks to Build Cloud-native Cathedrals - But do we have the mortar?
rtosbyshibu-131026100746-phpapp01.pdf
Ad

Recently uploaded (20)

PPT
Geologic Time for studying geology for geologist
PPTX
Microsoft Excel 365/2024 Beginner's training
PDF
A contest of sentiment analysis: k-nearest neighbor versus neural network
PDF
Five Habits of High-Impact Board Members
PPTX
MicrosoftCybserSecurityReferenceArchitecture-April-2025.pptx
PDF
UiPath Agentic Automation session 1: RPA to Agents
PDF
1 - Historical Antecedents, Social Consideration.pdf
PPT
What is a Computer? Input Devices /output devices
PDF
OpenACC and Open Hackathons Monthly Highlights July 2025
PDF
Abstractive summarization using multilingual text-to-text transfer transforme...
PPTX
Configure Apache Mutual Authentication
PDF
Developing a website for English-speaking practice to English as a foreign la...
PPTX
Final SEM Unit 1 for mit wpu at pune .pptx
PDF
NewMind AI Weekly Chronicles – August ’25 Week III
PDF
Zenith AI: Advanced Artificial Intelligence
PDF
A proposed approach for plagiarism detection in Myanmar Unicode text
PDF
Enhancing emotion recognition model for a student engagement use case through...
PPT
Module 1.ppt Iot fundamentals and Architecture
PDF
The influence of sentiment analysis in enhancing early warning system model f...
PDF
Consumable AI The What, Why & How for Small Teams.pdf
Geologic Time for studying geology for geologist
Microsoft Excel 365/2024 Beginner's training
A contest of sentiment analysis: k-nearest neighbor versus neural network
Five Habits of High-Impact Board Members
MicrosoftCybserSecurityReferenceArchitecture-April-2025.pptx
UiPath Agentic Automation session 1: RPA to Agents
1 - Historical Antecedents, Social Consideration.pdf
What is a Computer? Input Devices /output devices
OpenACC and Open Hackathons Monthly Highlights July 2025
Abstractive summarization using multilingual text-to-text transfer transforme...
Configure Apache Mutual Authentication
Developing a website for English-speaking practice to English as a foreign la...
Final SEM Unit 1 for mit wpu at pune .pptx
NewMind AI Weekly Chronicles – August ’25 Week III
Zenith AI: Advanced Artificial Intelligence
A proposed approach for plagiarism detection in Myanmar Unicode text
Enhancing emotion recognition model for a student engagement use case through...
Module 1.ppt Iot fundamentals and Architecture
The influence of sentiment analysis in enhancing early warning system model f...
Consumable AI The What, Why & How for Small Teams.pdf

Real-time soultion

  • 2. Real-time? Real-time might, as the name implies, sometimes also be about timeliness (fast), but in my humble opinion it's usually about determinism. To be precise about event- and temporal determinism (event determinism meaning that you know the state of the outputs with a given set of inputs; temporal determinism meaning that you also know exactly the timing). Coming back to real-time versus real fast - In case of an aircraft navigation system deadlines are in the tens of milliseconds, while for an airline reservation system the deadlines are at about 15 seconds. The latter must be deterministic just like the former one, but does not need to be so fast. After thirty years of research there is still no universal methodology to create real-time systems and that's why in real life real-time is defined as follows:”A real-time system will pass a specified test suite.[2]” Let's stick to those wise words of Paul E. McKenny for the time being. From Getting real (time) about embedded GNU/Linux
  • 5. Solution • Dual kernel (Linux Realtime extensions ) o RTLinux o RTAI o Xenomai • PREEMPT_RT kernel
  • 6. Dual kernel task RT task task RT task Linux Kernel idle task RT kernel task
  • 7. RTLinux • First real-time extension for Linux • It was developed by Victor Yodaiken, Michael Barabanov, Cort Dougan and others at the New Mexico Institute of Mining and Technology • patent covering: o US-Patents 5,995,74 owned by FSMlabs
  • 9. RTAI & Xenomai • The Xenomai project was launched in August 2001. In 2003 it merged with the Real-Time Application Interface (RTAI) project to produce a production-grade real-time free software platform for GNU/Linux called RTAI/fusion, on top of Xenomai's abstract real-time operating system (RTOS) core. Eventually, the RTAI/fusion effort became independent from RTAI in 2005 as the Xenomai project • RTAI o Like Linux itself the RTAI software is a community effort. o Only really actively maintained on x86 o May offer slightly better latencies than Xenomai • Xenomai o Initial goals: facilitate the porting of programs to GNU / Linux. o Any number of RTOS personalities called “skins” can then be built over the nucleus, providing their own specific interface to the applications, by using the services of a single generic core to implement it
  • 15. Reference • Getting real (time) about embedded GNU/Linux http://www.embedded.com/design/embedded/4204740/Gettingreal--time--about-embedded-GNU-Linux http://blog.linux.org.tw/~jserv/archives/2011/02/_realtime_gnuli.html • Embedded Linux system development course http://free-electrons.com/doc/training/embedded-linux/slides.pdf • RT nanokernel for Embedded Linux http://people.debian.org.tw/~jserv/RT-nanokernel.pdf • 共同筆記 - 作業系統設計與實做 http://cs001.cs.ccu.edu.tw/wiki/%E9%A6%96%E9%A0%81 • RTAI - Real Time Application Interface Official Website https://www.rtai.org/ • Xenomai: Real-Time Framework for Linux http://www.xenomai.org/
  • 16. Thanks for your listening