SlideShare une entreprise Scribd logo
1  sur  16
Télécharger pour lire hors ligne
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

Contenu connexe

Tendances

Real Time Kernels
Real Time KernelsReal Time Kernels
Real Time Kernels
Arnav Soni
 
Memory management in vx works
Memory management in vx worksMemory management in vx works
Memory management in vx works
Dhan V Sagar
 
Linux26 New Features
Linux26 New FeaturesLinux26 New Features
Linux26 New Features
guest491c69
 

Tendances (20)

RT linux
RT linuxRT linux
RT linux
 
Priority Inversion on Mars
Priority Inversion on MarsPriority Inversion on Mars
Priority Inversion on Mars
 
Linux Preempt-RT Internals
Linux Preempt-RT InternalsLinux Preempt-RT Internals
Linux Preempt-RT Internals
 
Making Linux do Hard Real-time
Making Linux do Hard Real-timeMaking Linux do Hard Real-time
Making Linux do Hard Real-time
 
Solving Real-Time Scheduling Problems With RT_PREEMPT and Deadline-Based Sche...
Solving Real-Time Scheduling Problems With RT_PREEMPT and Deadline-Based Sche...Solving Real-Time Scheduling Problems With RT_PREEMPT and Deadline-Based Sche...
Solving Real-Time Scheduling Problems With RT_PREEMPT and Deadline-Based Sche...
 
Real Time Kernels
Real Time KernelsReal Time Kernels
Real Time Kernels
 
Rt linux-lab1
Rt linux-lab1Rt linux-lab1
Rt linux-lab1
 
Vx works RTOS
Vx works RTOSVx works RTOS
Vx works RTOS
 
RTOS MICRO CONTROLLER OPERATING SYSTEM-2
RTOS MICRO CONTROLLER OPERATING SYSTEM-2RTOS MICRO CONTROLLER OPERATING SYSTEM-2
RTOS MICRO CONTROLLER OPERATING SYSTEM-2
 
Memory management in vx works
Memory management in vx worksMemory management in vx works
Memory management in vx works
 
Linux Internals - Interview essentials 4.0
Linux Internals - Interview essentials 4.0Linux Internals - Interview essentials 4.0
Linux Internals - Interview essentials 4.0
 
3 process management
3 process management3 process management
3 process management
 
RTOS on ARM cortex-M platform -draft
RTOS on ARM cortex-M platform -draftRTOS on ARM cortex-M platform -draft
RTOS on ARM cortex-M platform -draft
 
.ppt
.ppt.ppt
.ppt
 
Linux Interrupts
Linux InterruptsLinux Interrupts
Linux Interrupts
 
Linux26 New Features
Linux26 New FeaturesLinux26 New Features
Linux26 New Features
 
High Performance Storage Devices in the Linux Kernel
High Performance Storage Devices in the Linux KernelHigh Performance Storage Devices in the Linux Kernel
High Performance Storage Devices in the Linux Kernel
 
Lab6 rtos
Lab6 rtosLab6 rtos
Lab6 rtos
 
Linux Instrumentation
Linux InstrumentationLinux Instrumentation
Linux Instrumentation
 
DTraceCloud2012
DTraceCloud2012DTraceCloud2012
DTraceCloud2012
 

Similaire à Real-time soultion

Tutorial on Parallel Computing and Message Passing Model - C1
Tutorial on Parallel Computing and Message Passing Model - C1Tutorial on Parallel Computing and Message Passing Model - C1
Tutorial on Parallel Computing and Message Passing Model - C1
Marcirio Chaves
 
We have the Bricks to Build Cloud-native Cathedrals - But do we have the mortar?
We have the Bricks to Build Cloud-native Cathedrals - But do we have the mortar?We have the Bricks to Build Cloud-native Cathedrals - But do we have the mortar?
We have the Bricks to Build Cloud-native Cathedrals - But do we have the mortar?
Nane Kratzke
 

Similaire à Real-time soultion (20)

Beyond the RTOS: A Better Way to Design Real-Time Embedded Software
Beyond the RTOS: A Better Way to Design Real-Time Embedded SoftwareBeyond the RTOS: A Better Way to Design Real-Time Embedded Software
Beyond the RTOS: A Better Way to Design Real-Time Embedded Software
 
Real Time Application Interface for Linux
Real Time Application Interface for LinuxReal Time Application Interface for Linux
Real Time Application Interface for Linux
 
Developing Real-Time Systems on Application Processors
Developing Real-Time Systems on Application ProcessorsDeveloping Real-Time Systems on Application Processors
Developing Real-Time Systems on Application Processors
 
RTOS
RTOSRTOS
RTOS
 
Real-world Concurrency : Notes
Real-world Concurrency : NotesReal-world Concurrency : Notes
Real-world Concurrency : Notes
 
Realtime
RealtimeRealtime
Realtime
 
Beyond the RTOS: A Better Way to Design Real-Time Embedded Software
Beyond the RTOS: A Better Way to Design Real-Time Embedded SoftwareBeyond the RTOS: A Better Way to Design Real-Time Embedded Software
Beyond the RTOS: A Better Way to Design Real-Time Embedded Software
 
Lean Model-Driven Development through Model-Interpretation: the CPAL design ...
Lean Model-Driven Development through  Model-Interpretation: the CPAL design ...Lean Model-Driven Development through  Model-Interpretation: the CPAL design ...
Lean Model-Driven Development through Model-Interpretation: the CPAL design ...
 
RTOS [Autosaved].pptx
RTOS [Autosaved].pptxRTOS [Autosaved].pptx
RTOS [Autosaved].pptx
 
Tutorial on Parallel Computing and Message Passing Model - C1
Tutorial on Parallel Computing and Message Passing Model - C1Tutorial on Parallel Computing and Message Passing Model - C1
Tutorial on Parallel Computing and Message Passing Model - C1
 
ERTS 2008 - Using Linux for industrial projects
ERTS 2008 - Using Linux for industrial projectsERTS 2008 - Using Linux for industrial projects
ERTS 2008 - Using Linux for industrial projects
 
Using Embedded Linux for Infrastructure Systems
Using Embedded Linux for Infrastructure SystemsUsing Embedded Linux for Infrastructure Systems
Using Embedded Linux for Infrastructure Systems
 
Triton: A peer-assisted cloud storage systems
Triton: A peer-assisted cloud storage systems Triton: A peer-assisted cloud storage systems
Triton: A peer-assisted cloud storage systems
 
Welcome Our Robot Overlords
Welcome Our Robot OverlordsWelcome Our Robot Overlords
Welcome Our Robot Overlords
 
PART-1 : Mastering RTOS FreeRTOS and STM32Fx with Debugging
PART-1 : Mastering RTOS FreeRTOS and STM32Fx with DebuggingPART-1 : Mastering RTOS FreeRTOS and STM32Fx with Debugging
PART-1 : Mastering RTOS FreeRTOS and STM32Fx with Debugging
 
PPT.pdf
PPT.pdfPPT.pdf
PPT.pdf
 
Real timedata
Real timedataReal timedata
Real timedata
 
We have the Bricks to Build Cloud-native Cathedrals - But do we have the mortar?
We have the Bricks to Build Cloud-native Cathedrals - But do we have the mortar?We have the Bricks to Build Cloud-native Cathedrals - But do we have the mortar?
We have the Bricks to Build Cloud-native Cathedrals - But do we have the mortar?
 
rtosbyshibu-131026100746-phpapp01.pdf
rtosbyshibu-131026100746-phpapp01.pdfrtosbyshibu-131026100746-phpapp01.pdf
rtosbyshibu-131026100746-phpapp01.pdf
 
Delivering Infrastructure-as-a-Service with Open Source Software
Delivering Infrastructure-as-a-Service with Open Source SoftwareDelivering Infrastructure-as-a-Service with Open Source Software
Delivering Infrastructure-as-a-Service with Open Source Software
 

Dernier

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Dernier (20)

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 

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