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

Keywords: Match:
Linux lookalike RTOS passes "Quake test"
Rick Lehrbaum (Feb. 15, 2001)

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:

(Click here for further information)


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.

4 Legal Reasons to Control Internet Access
The Internet is obviously a valuable resource for many organizations. However, many are exposed to legal liability concerns because they fail to control Internet access. Learn if you're safe in this white paper.

Rapidly Resolve J2EE Application Problems
Whether you are in the process of building J2EE applications or have J2EE applications already running in production, you must ensure that they deliver the expected ROI. Learn how in this white paper.

Load Testing 2.0 for Web 2.0
There are many unknowns in stress testing Web 2.0 applications. Find out how to test the performance of Web 2.0 in this white paper.

Build Better Games Online
For the game infrastructure providers, life is complex. Making money from games has become more complicated. Why? Find out in this white paper.

Building a Virtual Infrastructure from Servers to Storage
This white paper discusses the virtual storage solutions that reduce cost, increase storage utilization, and address the challenges of backing up and restoring Server environments.

Gaining Faster Wireless Connections with WiMAX
Welcome to what is quickly becoming the hyperconnected world where anything that would benefit from being connected to the network will be connected. Learn more in this white paper.

Is Your Desktop a Security Threat?
The new wave of sophisticated crimeware not only targets specific companies, but also targets desktops and laptops as backdoor entryways into those business’ operations and resources. Learn how to stay safe in this white paper.

Increasing SAN Reliability by 100 Percent
Storage area networks (SAN) are a strong part of storage plans. Learn how to increase your reliability and uptime by 100 percent in this case study.

 


Got a HOT tip?   please tell us!
Free weekly newsletter
Enter your email...
Click here for a profile of each sponsor:
PLATINUM SPONSORS
GOLD SPONSORS
(Become a sponsor)

ADVERTISEMENT
(Advertise here)

Check out the latest Linux powered...

mobile phones!

other cool
gadgets



BREAKING NEWS

• Linux-friendly SoCs target low-end multimedia
• CompactFlash as a COTS "standard"
• 65nm ARM9 SoCs target PNDs, smartphones
• Motorola Ming A1600 ships
• N810 gains Android installer
• PC/104-Plus board runs Linux on x86 SoC
• Webinars explore embedded Linux development
• Linux video camera geo-tags, writes to SATA drives
• Garmin Nav devices run Gnome Linux
• Ten LiMo phones this month?
• It's a Yankee Doodle Linux phone
• Wind River to host "Developer Day"
• Dev boards gain Linux support
• 802.11n zooms ahead
• Low-power mini-ITX board runs Linux


Most popular stories -- past 30 days:
• World's cheapest Linux-based laptop?
• Ubuntu ported to a PDA
• 64-way chip gains Linux IDE, dev cards, design wins
• Embedded PowerPC dev kits come with Linux
• Rapid time-to-evaluation -- a key goal for silicon providers
• Embedded Linux is doomed. DOOOMED!
• Rugged PDA available with Linux
• Netflix Player runs Linux
• Miniature Linux PC targets military apps
• $7 SoC runs Linux
• Android Developer Challenge announces first-round winners
• Dual-core ARM SoC clocks to 1.2GHz


Linux-Watch headlines:
• Microsoft tactics push India toward Linux
• Bell, SuperMicro sued over GPL
• "Business intelligence" software goes GPL
• Will Atom bomb?
• LF Summit videos posted
• Linux gains "embedded" maintainers
• Virtualization on tap in SLES and RHEL upgrades
• Linux gets security black eye
• Verizon chooses Linux "platform of choice"
• Hats off to Fedora 9


Also visit our sister site:


Sign up for LinuxDevices.com's...

news feed

Home  |  News  |  Articles  |  Polls  |  Forum  |  About  |  Contact
 

Ziff Davis Enterprise Home | Contact Us | Advertise | Link to Us | Reprints | Magazine Subscriptions | Newsletters
Tech RSS Feeds | White Papers | ROI Calculators | Tech Podcasts | Tech Video | VARs | Channel News

Baseline | Careers | Channel Insider | CIO Insight | DesktopLinux | DeviceForge | DevSource | eSeminars |
eWEEK | Enterprise Network Security | LinuxDevices | Linux Watch | Microsoft Watch | Mid-market | Networking | PDF Zone |
Publish | Security IT Hub | Strategic Partner | Web Buyer's Guide | Windows for Devices

Developer Shed | Dev Shed | ASP Free | Dev Articles | Dev Hardware | SEO Chat | Tutorialized | Scripts |
Code Walkers | Web Hosters | Dev Mechanic | Dev Archives | igrep

Use of this site is governed by our Terms of Service and Privacy Policy. Except where otherwise specified, the contents of this site are copyright © 1999-2008 Ziff Davis Enterprise Holdings Inc. All Rights Reserved. Reproduction in whole or in part in any form or medium without express written permission of Ziff Davis Enterprise is prohibited. Linux is a registered trademark of Linus Torvalds. All other marks are the property of their respective owners.