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

  Home arrow Linux For Devices Articles arrow Improving Linux Response Time with a Resource Kernel

Improving Linux Response Time with a Resource Kernel
By Rick Lehrbaum

Rate This Article: Add This Article To:

Response time is rapidly becoming more and more critical in ever-increasing numbers of applications, whether their developers think of them as real-time or not. Developers can now ensure that response times can be predictably met, without depending only on error-prone testing and tuning at the end of the system integration cycle.

This is being increasingly recognized as the only prudent way to build a responsive system.

The fastest-growing operating system platform for servers and embedded systems is clearly Linux. Supported by a vast army of programmers and many well-known companies, and with its open source and low cost, it is literally conquering the hearts and minds of system integrators everywhere. However, Linux was designed to optimize system throughput, not to provide bounded response time.

At the same time, bounded response time is being widely recognized as a critical component of more and more servers and embedded systems. Telecommunications switching and server systems must support multiple simultaneous QoS requirements. Multimedia transmission and presentation requires bounded audio and video packet handling. Internet service providers frequently wish to differentiate customers with varying QoS requirements. B2B e-commerce sites must provide response-time limited interfaces. Industrial controllers must handle assembly, process control, and inventory within tight response times. The list goes on and on.

As vendors begin releasing Linux distributions targeted toward embedded systems, and claim they are usable for real-time systems, the key question must be whether they include the required technology to support bounded response times, yet are still able to leverage the full power of Linux. System failures illustrate that not only hard real-time systems, but also soft real-time systems need critical predictability support from their infrastructure. A system operating in a response-time limited environment must therefore include support for both hard and soft time constraints.

Linux already provides all of the capabilities expected of a multi-tasking general-purpose operating system. These include (but are not limited to) extensive support for multi-threading, multi-processing, simultaneous users, memory management and protection, architecture-independent features, POSIX support, multiple file systems, network support, and much more.

However, like other time-sharing operating systems, Linux contains many structural elements that severely limit its ability to meet response time constraints, including a non-preemptible kernel, FIFO I/O and message queues, lack of bounded priority inversion support, and primitive, fairness-optimized scheduling mechanisms.

TimeSys Corporation has now incorporated a critical set of components into its TimeSys Linux/RT offering that, together, offer a scalable, highly innovative approach to meeting time constraints. These components can be combined in critical ways to handle a wide variety of application requirements. The most critical of these components is the Resource Kernel (RK) that was originally developed at Carnegie Mellon University.

RK is a Linux Loadable Kernel Module (LKM) that coordinates with the standard Linux kernel to replace some of the most critical functions needed to meet bounded time constraints. LKMs are object modules that can be loaded (inserted) into or removed from the kernel at run-time. For example, RK supports Fixed-Priority Scheduling (with 256 priorities) and priority inheritance that can be used for constructing systems providing guaranteed bounded response time by using analytic techniques such as Rate Monotonic Analysis. In addition, it supports a set of high-resolution timer functions.

However, a unique capability of the RK is its support for a Temporal Firewall. This capability allows an application to reserve CPU capacity (future releases of the TimeSys Resource Kernel will include support for disk and network capacity reservations as well) that can be guaranteed to remain available to the application, even if another high-priority application attempts to monopolize the CPU.

All of the components making up TimeSys Linux/RT are packaged as Linux loadable kernel modules in order to allow the application to be positioned among a wide range of memory footprints. From the application's point of view, the system calls made available by these modules are indistinguishable from the system calls in the kernel itself.

With the power of the Resource Kernel, and the other additions made by TimeSys, Linux has become an important operating system not only for embedded applications, but also for both soft and hard real-time systems.



Author's Bio: Dr. C. Douglass Locke is VP of Technology at TimeSys Corporation. He received a Ph.D in Computer Science from Carnegie-Mellon University, writing his dissertation on real-time scheduling. He has more than 30 years experience in specifying, architecting, designing, and implementating a wide span of real-world applications including space flight, aircraft, shipboard, submarine, command & control, and information systems. Dr. Locke has served on various real-time standardization committees including POSIX, Real-Time CORBA, Real-Time UML, and Real-Time Java.



Related stories:
Linux/RK -- a Linux Resource Kernel
TimeSys announces availability of Linux/RT 1.0
New real-time Linux distribution breaks the mold



Discuss Improving Linux Response Time with a Resource Kernel
 
>>> 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

 


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