Click here to learn
about this Sponsor:
Home  |  News  |  Articles  |  Forum

  Home arrow Linux For Devices Articles arrow A Response to "Real Time and Linux, Part 3"

A Response to "Real Time and Linux, Part 3"
By Kevin Morgan

Rate This Article: Add This Article To:

Mr. Dankwardt's article (Real Time and Linux, Part 3: Sub-Kernels and Benchmarks) is a real contribution for the general understanding of Linux and current real-time improvements available.



There are a few clarifications (or points of view) that I would like to express.

First, the RTLinux and RTAI environments, while they do have limited Posix services, are primarily servicable as direct I/O management environments. Synchronization and intra-environment thread operations are available, and data can be pushed and pulled from the Linux environment. But disk, file, networking, and standard I/O, and the broader set of Linux services are not accessible. These environments are not appropriate for the placement of comprehensive applications, such as a complete in-the-loop high end flight simulator applications, or a JVM running process control Java software with responsiveness requirements, etc.

This leads to the benchmark studies. References were made to the excellent performance of RTAI and RTLinux. However, the load that was placed on the Linux environment when measuring Linux responsiveness at the process level was NOT placed on the RTAI and RTLinux environments when measuring RTAI and RTLinux responsiveness. Why not? For the simple reason that that load software CANNOT RUN in such environments! To give equivalent responsiveness measurements, at least some attempt to put a direct load of "important but less critical" activity on the RTAI or RTLinux environment is necessary, to stress the environment and see how the most critical task response is affected...just as was done within the Linux environment to measure Linux process response. The functional equivalent of the RTAI and RTLinux measurements would be to measure Linux process responsiveness while running a load of a single user task doing pure computation without any system service activity. Suffice to say the Linux worst case response numbers would be much better, and quite irrelevant.

Because RTAI and RTLinux are multi-threaded I/O management oriented environments, the equivalent level of software in a Linux environment is the first level interrupt handler of an I/O driver. The key delay factor for both is the worst case interrupt off times of the respective operating system environments. In such head to head competition, Linux actually performs much better than expected. The kernel proper has excellent interrupt off characteristics. There are some I/O drivers available where interrupt off periods are abused...but then how many I/O drivers are even available for RTAI and RTLinux? And it is certainly easy to abuse interrupt off management in those environments as well. Problem I/O drivers for Linux can be avoided or fixed.

I would encourage Mr. Dankwardt to measure and report on interrupt off/first level driver response times in Linux versus RTAI and RTLinux, using (to the degree possible) equivalent loads on the operating environment under test. This will provide much more comparative numbers.

If the argument is made that the load on the Linux environment should not appropriately be put down on the RTAI/RTLinux environments because they are purposefully LINUX loads, that just leads us back to the point that RTAI and RTLinux aren't really meant to be general application environments. And to the point that the equivalent metric is interrupt responsiveness in Linux versus interrupt responsiveness in RTAI and RTLinux. The fact that those just happen to be serviced by "tasks" in RTAI and RTLinux versus "first level interrupt handler" in Linux isn't relevant. These are the functional equivalents that need to be directly compared.

RTAI and RTLinux do solve a problem. They reduce worst case interrupt response by a factor of 2-3x versus Linux proper. And they provide a richer I/O handling environment than that provided for first level interrupt handlers in Linux. They come with a cost of multi-OS complexity and multi-level application design complexity. The ability to solve a real-time requirement more simply in a native Linux environment using the appropriate blend of custom I/O drivers and user level processes should be thoroughly assessed before jumping to a conclusion that RTAI or RTLinux is required.

Again, thanks to Kevin Dankwardt for an excellent characterization overall of these different systems, their attributes and their timing behaviors.

Regards,

Kevin Morgan
VP of Engineering
MontaVista Software Inc.



Talk back! Do you have a comment or question about this story? talkback here



Related stories:



Discuss A Response to "Real Time and Linux, Part 3"
 
>>> Be the FIRST to comment on this article!
 
 
 
>>> More Linux For Devices Articles Articles          >>> More By Kevin Morgan
 



FUEL Database on MontaVista Linux
Whether building a mobile handset, a car navigation system, a package tracking device, or a home entertainment console, developers need capable software systems, including an operating system, development tools, and supporting libraries, to gain maximum benefit from their hardware platform and to meet aggressive time-to-market goals.

Breaking New Ground: The Evolution of Linux Clustering
With a platform comprising a complete Linux distribution, enhanced for clustering, and tailored for HPC, Penguin Computing¿s Scyld Software provides the building blocks for organizations from enterprises to workgroups to deploy, manage, and maintain Linux clusters, regardless of their size.

Data Monitoring with NightStar LX
Unlike ordinary debuggers, NightStar LX doesn¿t leave you stranded in the dark. It¿s more than just a debugger, it¿s a whole suite of integrated diagnostic tools designed for time-critical Linux applications to reduce test time, increase productivity and lower costs. You can debug, monitor, analyze and tune with minimal intrusion, so you see real execution behavior. And that¿s positively illuminating.

Virtualizing Service Provider Networks with Vyatta
This paper highlights Vyatta's unique ability to virtualize networking functions using Vyatta's secure routing software in service provider environments.

High Availability Messaging Solution Using AXIGEN, Heartbeat and DRBD
This white paper discusses a high-availability messaging solution relying on the AXIGEN Mail Server, Heartbeat and DRBD. Solution architecture and implementation, as well as benefits of using AXIGEN for this setup are all presented in detail.

Understanding the Financial Benefits of Open Source
Will open source pay off? Open source is becoming standard within enterprises, often because of cost savings. Find out how much of a financial impact it can have on your organization. Get this methodology and calculator now, compliments of JBoss.

Embedded Hardware and OS Technology Empower PC-Based Platforms
The modern embedded computer is the jack of all trades appearing in many forms.

Data Management for Real-Time Distributed Systems
This paper provides an overview of the network-centric computing model, data distribution services, and distributed data management. It then describes how the SkyBoard integration and synchronization service, coupled with an implementation of the OMG¿s Data Distribution Service (DDS) standard, can be used to create an efficient data distribution, storage, and retrieval system.

7 Advantages of D2D Backup
For decades, tape has been the backup medium of choice. But, now, disk-to-disk (D2D) backup is gaining in favor. Learn why you should make the move in this whitepaper.

Got a HOT tip?   please tell us!
Free weekly newsletter
Enter your email...
PLATINUM SPONSORS

 


ADVERTISEMENT


Check out the latest Linux powered...

Mobile phones!

MIDs, UMPCs
& tablets

Mobile devices

Other cool
gadgets

Resource Library

• Unix, Linux Uptime and Reliability Increase: Patch Management Woes Plague Windows Yankee Group survey finds IBM AIX Unix is highest in ...
• Scalable, Fault-Tolerant NAS for Oracle - The Next Generation For several years NAS has been evolving as a storage ...
• Managing Software Intellectual Property in an Open Source World This whitepaper draws on the experiences of the Black Duck ...
• Open Source Security Myths Dispelled Is it risky to trust mission-critical infrastructure to open source ...
• Bringing IT Operations Management to Open Source & Beyond Download this IDC analyst report to learn how open source ...




Most popular stories -- past 90 days:
· Linux boots in 2.97 seconds
· Tiniest Linux system, yet?
· Linux powers "cloud" gaming console
· Report: T-Mobile sells out first 1.5 million G1s
· Open set-top box ships
· E17 adapted to Linux devices, demo'd on Treo650
· Android debuts
· First ALP Linux smartphone?
· Cortex-A8 gaming handheld runs Linux
· Ubuntu announces ARM port


DesktopLinux headlines:
· Simulator runs Android apps on Ubuntu
· Hypervisor rev'd for higher reliability
· Pluggable NAS now supports Linux desktops
· Moblin v2 beta targets netbooks
· Linux-ready netbook touted as "Student rugged"
· USB display technology heading for Linux
· Ubuntu One takes baby step to the cloud
· Game over for Linux netbooks?
· Linux Foundation relaunches Linux web site
· Dell spins lower-cost netbook


Also visit our sister site:


Sign up for LinuxForDevices.com's...

news feed


Or, follow us on Twitter...