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

Keywords: Match:
MontaVista unveils "open" hard-real-time Linux project
Oct. 11, 2004

[Updated Oct. 13, 2004] -- MontaVista Software has launched an open source project to bring "hard real-time" performance to standard, native Linux, and has seeded a fledgling "Open Source Real-Time Linux Project" with a reference implementation claimed to improve real-time responsiveness of the 2.6.9rc3 Linux kernel by "orders of magnitude."

Ready for hard real-time

MontaVista CEO Jim Ready is something of an expert in real-time systems, having pioneered the development of VRTX -- considered by many to have been the first commercially viable real-time operating system -- after co-founding Hunter and Ready Systems in 1980 (which was later renamed to Ready Systems). In 1999, though, Ready turned his back on the traditional real-time embedded software industry he helped create, to found embedded Linux startup MontaVista Software. Now, Ready appears, well, ready to complete the circle -- bringing Linux back to his own real-time roots.

"Extremely fast real-time capability is the final barrier to comprehensive implementation of Linux in a wide range of devices," Ready now says. "Our strategy has always been to drive native real-time improvements in Linux itself, and to open the process to as large a developer audience as possible. We want Linux to achieve and even exceed all the responsiveness attributes of proprietary kernel products, while continuing to provide all the benefits of Open Source. With hard real-time capabilities, Linux is set to assume the role of a universal platform."

Ready's enthusiasm for adding hard real-time capabilities to Linux is partly fueled by market data such as a recent report from Venture Development Corp. (VDC) that found limited real-time performance to be the leading concern of developers evaluating Linux for future embedded projects. The same report indicates that in embedded projects where real-time is an issue, 66 percent required interrupt response times that range from 100 to less than 5 microseconds, according to MontaVista.

(For further perspective, read Ready's comments regarding MontaVista's real-time strategy in interviews with LinuxDevices.com four years ago and earlier this year.)

Linux as universal platform

MontaVista product marketing manager Jacob Lehrbaum explains that many of MontaVista's larger customers develop and maintain multiple operating systems to support various past, current, and future products. The ability to standardize on a single OS platform would enable them to save tool, support, and training costs. "Our customers need to consolidate their platforms to save the overhead of maintaining them," he notes.

Embedded Linux is attractive as a universal platform, Lehrbaum adds, because it enjoys a developer ecosystem of unmatched richness, and offers full access to source code as well as a choice of support vendors. Yet, native Linux has simply not been able to deliver predictable enough response times for certain applications. Real-time Linux projects such as RTAI and commercial products such as RTLinux have achieved success, but according to Lehrbaum, "They don't deliver the common, vendor-neutral, standard approach that's necessary if [our customers] are going to rely on Linux as their universal platform."

In particular, MontaVista hopes to bring real-time Linux to two critical target markets: mobile handsets and telecommunications equipment.

"Both ends of the wire"

Telecommunications requires real-time capability at "both ends of the wire" so that calls are not dropped and conversations can take place without interruption, notes Lehrbaum. So far, mobile phones that run Linux have done so on a discrete, secondary application processor, with its own memory subsystem, leaving the primary, typically ARM7 based CPU to drive the communications modem with a real-time operating system such as VRTX. This cumbersome arrangement results in a larger, more expensive phone, with higher power requirements than the one-chip, one-OS Linux phones of the future that MontaVista envisions. Lehrbaum confirmed that MontaVista is already working with several customers on real-time Linux implementations for mobile phone products, including a single-CPU device.

At the other end of the wire, Carrier Grade Linux has achieved growing penetration on systems that manage and control telephone networks, for example setting up and tearing down network connections when calls are placed and ended, and recording events for billing purposes. Where Linux has not yet gone is onto the "data-plane" systems, which process voice signals in real time, digitizing and compressing them for transport over the telephone network. So far, real-time, data-plane processing has remained the exclusive domain of proprietary real-time operating systems such as Wind River System's VxWorks and Enea's OSE, and partnerships such as that of Enea and Metrowerks have sought to offer dual-OS hybrid solutions that satisfy the real-time and Linux-compatibility demands of telecom system vendors.

MontaVista believes that true, native real-time capabilities will grow the total addressable market for Linux, and will benefit operators, equipment vendors, and users alike.

Progress so far, and project specifics

"We have a pretty solid infrastructure in place," said Lehrbaum, "and we expect to ship real-time technology in product form in early 2005. What's left to do is to integrate it as effectively as possible into the open source kernel."

Lehrbaum says that in contributing its real-time technology to open source, MontaVista is "more interested in developer than commercial allies." Although some open source companies delay the release of source code for their developments until after they ship products commercially, he says MontaVista's philosophy has always been to open-source technologies before productizing them.

For now, the reference implementation contributed by MontaVista to the project consists of patches to the standard kernel.org 2.6.9rc3 kernel intended to support real-time performance on x86 and ARM targets. (x86 is available now; ARM is coming "soon".) MontaVista expects to contribute support for other architectures over time. The kernel is "fully operable," Lehrbaum says, adding, "there's still work to be done around reliability and performance tuning."

The technology

MontaVista defines "real time" in a traditional manner, as "an application, event, or system that must respond to an event within a predictable period of time."

MontaVista's real-time Linux implementation does not represent radical innovation, so much as a straightforward implementation of time-honored real-time techniques, according to Lehrbaum. "[We used] traditional and fairly well-recognized ways of doing things. It was more about taking the time and putting the effort into doing the implementation."

The latest real-time enhancements, which currently comprise the core of the newly launched Open Source Real-Time Linux Project, are said to revolve around two key technologies -- kernel mutexes, which support priority inheritance; and thread-based interrupt management, which enables system-wide prioritization -- Lehrbaum explains.

MontaVista lists the following three key technical goals for the project:
  • To allow application or system designers to impose reliable priority response on Interrupt handling
  • To utilize priority inheritance mutexes to manage access to data protected by critical sections in the kernel
  • To provision priority management throughout all kernel subsystems
Put another way, the project aims to deliver performance and deterministic real-time responsiveness comparable to commercial and proprietary RTOSes. MontaVista says it expects to lower worst-case Linux task preemption latency from the current level of 1-10 milliseconds down to tens of microseconds, an improvement of two orders of magnitude.

Other single-kernel Linux RTOSes

MontaVista is not the first commercial embedded Linux vendor to attempt to create a single-kernel real-time Linux OS. Back in December, 2001, TimeSys introduced TimeSys Linux GPL, later renamed Linux RTOS, which it calls a "single-kernel Linux real-time operating system" with a full-featured preemptible Linux kernel, along with additional components required to support predictable, extremely low-latency response. When first introduced, TimeSys said its Linux RTOS provided fully preemptible capabilities that included a kernel with bounded, mutex-based kernel locking, a fixed priority scheduler, schedulable interrupt handlers, and schedulable extended interrupt handlers (including the IP stack).

Lineo Solutions, the Japanese spinoff of Lineo, is another commercial source of a single-kernel real-time Linux implementation which it has shipped since mid-2003. Earlier this year, the company reported that it demonstrated hard real-time Linux capabilities that it planned to contribute to the source tree of the Consumer Electronic Linux Forum (CELF), and claimed real-time metrics such as 5 uS interrupt response time, 4 uS task latency time, and 20 uS periodic task latency time.

MontaVista's invitation

MontaVista is inviting "all interested organizations and individuals" to help improve and refine its working model through "feedback, testing, debugging, and other suggestions." It says the Universitat der Bundeswehr Muenchen (Federal Armed Forces University, Munich) has already been an early contributor, and that interest has been high from other sources as well.

To support the project, MontaVista has established a project area on its Website. "Initially, it will be a MontaVista-driven project," Lehrbaum says. "But if the [Linux kernel development] community decides to integrate the changes into a current or future version of the Linux kernel, then the momentum will migrate to the standard kernel [development] process." He adds, "It's a MontaVista sponsored project -- but frankly, it'll be led by developers."

Will it go mainstream?

MontaVista has a successful track record of getting its technical contributions accepted into the mainstream kernel development tree. For example, the company's preemptible kernel patch project, launched in September 2000, was accepted into the 2.5 kernel in February 2002.

So far, however, Linux maintainer Linus Torvalds has not expressed eagerness to fold in MontaVista's real-time patches, according to an article by CNet's Stephen Shankland. "I personally think it's too intrusive, at least at this point. Almost nobody wants hard real-time, even in embedded devices," Shankland quotes Torvalds as having said.

The secret to getting real-time enhancements accepted into the Linux kernel may well be to demonstrate improvements in real-time multimedia capabilities, such as improved graphics rendering for games, skip-free DVD playback, or life-like VoIP phone conversations. Assuming so, MontaVista is wise to encourage the Linux hacker community to participate in its single-kernel hard real-time Linux project, since the community is likely to be quick to check out the benefits of the enhanced real-time features to their favorite Linux pastimes and pleasures.

Visit the project's website, here . . .

The Open Source Real-Time Linux Project



Talk back!



Do you have comments or questions on this story? talkback here


A (Partial) Real-time Linux Reading List


This list may look long, but it is only a small fraction of the hundreds of news items, articles, white-papers, and guest-editorials on the topic of "real-time Linux" available on LinuxDevices.com. To delve even deeper, we suggest that you take advantage of the site's search engine, using "real-time" as the keyword and "exact phrase" as the match option. Enjoy . . . !

(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
HOWTOs: from DevShed & IBM DeveloperWorks:



BREAKING NEWS

• Linux device monitors networks
• Linux gets security black eye
• Debian adding low-power NAS devices
• Microsoft frees poor children from Linux struggles
• Open source awards open for nominations
• Atom-based ECX board runs Linux
• Tiny boards gain Linux cross-tools support
• Cross-platform tools vendor announces awards, earnings
• Little thin client runs Linux
• $7 Soc runs Linux
• Linux wins big in financial trading
• Linux-based remote access equipment adds monitoring
• Dual-core ARM SoC clocks to 1.2GHz
• Verizon Wireless, seven others join Linux phone org
• Android Developer Challenge announces first-round winners


Most popular stories -- past 30 days:
• Ubuntu ported to ARM
• Linux still top embedded OS
• Linux gains new architecture support
• Linux 2.6.25 release bolsters ARM
• Linux-based diskless notebook costs under $300
• Low-cost MP3 player gains fancy Linux port
• Dutch UMPC runs Ubuntu Linux
• Mini-notebook boasts Linux, near-fullsize keyboard
• PC/104 module runs x86 Linux on 1.85 Watts
• Low-cost Linux-based NAS device supports RAID 1
• Free router distro gains wild WiFi features


Linux-Watch headlines:
• Verizon chooses Linux "platform of choice"
• Hats off to Fedora 9
• Running a small business on desktop Linux
• Sun launches OpenSolaris
• Via tiptoes toward openness
• Linux certification comes to Italy
• Installing Ubuntu Hardy Heron as a web hosting server
• Black Duck Buys Koders
• Open source conference co-locates with Ubuntu show
• Ubuntu 8.04 ready to challenge Windows


Also visit our sister site:


Sign up for LinuxDevices.com's...

news feed

Home  |  News  |  Articles  |  Polls  |  Forum  |  About  |  Contact
 
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.