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

  Home arrow Linux For Devices Articles arrow Linux lookalike RTOS passes "Quake test"

Linux lookalike RTOS passes "Quake test"
By Rick Lehrbaum

Rate This Article: Add This Article To:

In the early days of the IBM PC era, when you wanted to know if a system was "IBM PC compatible", you'd try running Lotus Flight Simulator on it. That program exercised the system's hardware and software so thoroughly, and took enough liberties with undocumented and inadvisable functions (like writing directly to video RAM), that if Flight Simulator ran on the system you could pretty much count on it...

running any IBM PC compatible program.

Those days are long gone, and the new rage -- at least in the embedded OS market -- seems to have become Linux.

Recently at LinuxWorld in New York, LynuxWorks offered a sneak preview of a capability the company promised a little over a year ago -- application binary interface compatibility of the company's proprietary real-time operating system (RTOS), LynxOS, with Linux. Well, whether or not LynxOS is truly ABI compatible with Linux remains to be seen -- but at least it appeared to pass the "Quake Test."

The "Quake demo" consisted of running identical binary images of Quake on two side-by-side systems -- one running on top of Linux, and the other on the LynxOS RTOS. The intent of the demo, of course, is to raise the possibility that other Linux software might also run unmodified on LynxOS.

For LynuxWorks, which is currently in its pre-IPO "quiet period," the possibility of offering such a product to the numerous (and well funded) telecom, industrial, medical, and military projects that require traditional RTOS reliability and performance -- but who want to leverage the growing popularity and support for Linux -- may well be akin to the quest for the RTOS holy grail.

The Quake demo

Here's what LynuxWorks showed in their demo . . .
  • Quake was downloaded from the Internet and compiled on the Linux box.

  • The binary image was copied onto the LynxOS box.

  • Quake was launched on both boxes simultaneously.

  • After starting Quake, a second program called "Intense" -- also identical on both systems -- was started at the same priority level as Quake. Intense is a tiny and very simple program that contains an endless "while" loop, with the sole purpose of hogging CPU resources.

  • When Intense starts running, a noticeable jerkiness becomes apparent in Quake's animation, resulting from the fact that system resources are now being shared between Quake and Intense.

  • At this point, a LynuxWorks booth staffer enters commands on the LynxOS system to first raise, then lower, the execution priority of Quake. When Quake's priority is raised, the jerkiness completely disappears. When lowered, it gets much worse -- to the point where Quake's display completely freezes when its priority is sufficiently mimized.

  • In contrast, because Linux enforces a "fairness algorithm" which ensures that all tasks get a chance to complete regardless of priority, the Linux system does not provide the degree of control over resource use that is possible with LynuxOS.
So what?

First, according to LynuxWorks' chairman Inder Singh, the ABI-compatibility demo marks a significant industry milestone. "To my knowledge," says Singh, "this is the first time anyone has demonstrated 'application binary compatibility' with Linux."

Traditional RTOSes were designed for mission critical applications, such as process control, where the success of the system depends on never missing a defined deadline. Typical examples might include petroleum refineries or nuclear reactors, where not shutting off a valve could lead to a deadly explosion, or machine control, where not responding to timing constraints could have costly or even dangerous consequences.

In an RTOS, characteristics like worst case response time are very important. RTOSes also tend to be judged on how quickly they respond to internal and external stimuli. However, the single issue of never missing a deadline is considered most important.

Although Linux is generally fast enough in performance and provides acceptable worst-case response times for most desktop and server applications, it is not an RTOS and runs into trouble when "hard real-time performance" is required. In those cases, something else must be done. Several common approaches to enhancing the real-time performance of Linux are . . .
  • Adding a real-time front end -- either RTLinux or RTAI can be employed to manage high priority tasks outside the context of Linux. In fact, the added module (RTLinux or RTAI) actually "owns" the system's resources and runs Linux as a lower priority task than itself.

  • Scheduler enhancements -- modifications to Linux are available that improve the performance of the native Linux scheduler. (story)

  • Premptibility enhancements -- patches and enhancements can be applied to the Linux kernel to reduce the time periods (latencies) during which Linux will not respond to internal or external stimuli (interrupts). (story)

  • Natural evolution -- the performance of Linux itself is continually improving, as a natural result of the growing demand for glitchless multimedia and efficient handling of performance critical data.
LynuxWorks, on the other hand, takes the approach of substituting its proprietary hard real-time OS, LynxOS, which offers a degree of Linux compatibility.

To date, the best that LynxOS and other commercial RTOSes (like QNX) could do was to offer application program interface (API) compatibility. This requires that Linux applications be recompiled to run on LynxOS (or QNX).

LynxOS' ABI compatibility takes this interoperability an important step further, to where an unmodified Linux program's binary image can run directly on LynxOS. For LynuxWorks, which sells both standard Linux and the LynxOS RTOS, the result makes a compelling sales pitch: "if you want real Linux, we'll give you Linux. If you want a hard real-time OS that runs Linux software, we'll give you LynxOS."

One small step for an RTOS . . .

What LynuxWorks has just demonstrated in terms of Linux ABI compatibility ("the Quake test"), though significant, is but a small step along the path. Providing substantial compatibility with an OS as complex and quickly-evolving as Linux will surely prove a daunting, ongoing challenge. For example, the ability to take advantage of standard Linux device drivers (which often must be linked directly into the Linux kernel) is one of the primary concerns expressed by developers of real-time and embedded systems and devices. Will LynxOS be able to take advantage of unmodified Linux device drivers, GPL or otherwise?

Still, this first LynuxWorks demo of Linux ABI compatibility may well signify the beginning of a process that eventually redefines the entire embedded OS landscape. The move toward Linux as the standard for embedded and real-time OS compatibility is important, in a market where a lack of standards has led to a host of incompatible offerings from a multitude of vendors. Choice and competition are always important in advancing the state of technologies, and in providing satisfactory solutions to customers. The embedded OS market has never lacked either of these attributes (choice and competition) -- but what has, until now, been sorely lacking has been the standards through which multiple sources of compatible software could be available.

Then there's the Linux perspective. If LynxOS can give Linux a run for the money in specific embedded applications of sufficient volume, it will encourage an evolution of the capabilities of Linux in the direction of improved embedded and real-time capabilities. That, of course, would be a big win for Linux.

When will the "Linux ABI-compatible" version of LynxOS be available as a finished product? "Soon," says Singh. How soon? "In the next release of LynxOS."



Related stories:



Discuss Linux lookalike RTOS passes "Quake test"
 
>>> Be the FIRST to comment on this article!
 
 
 
>>> More Linux For Devices Articles Articles          >>> More By Rick Lehrbaum
 



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

 
 

 
 

 
 

GOLD SPONSORS


(Become a sponsor)

(Become a sponsor)

ADVERTISEMENT
(Advertise here)

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 ...


BREAKING NEWS

• NAS system houses 2.5-inch drives for up to 6TB
• Atom SBC boasts special low-power mode
• Android leaps to rugged handheld, and more phones
• Simulator runs Android apps on Ubuntu
• Fanless industrial PC taps Atom
• Router platform runs OpenWRT Linux
• Feature-packed UMPC survives four-foot drops
• UMPC pioneer gives up the ghost
• Biodegradable, solar-powered netbook runs Linux
• Hypervisor rev'd for higher reliability
• Eurotech spins Atom development kits
• Home media server to demo on Intel Atom platform
• Atom boards feature fanless DC operation
• Low-cost pluggable NAS adds Linux support
• Taiwan open source conference sets agenda


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...