Performance Comparison of VxWorks, Linux, RTAI and Xenomai in a Hard Real-time Application
A.Barbalace1, A. Luchetta, G. Manduchi, M. Moro1, A. Soppelsa and C. Taliercio
1
Department of Information Engineering, University of Padova - Italy Consorzio RFX-Euratom-ENEA Association, 35127 Padova, Italy
Abstract—We report on a set of performance measurements executed on VMEbus MVME5500 boards equipped with MPC7455 PowerPC processor, running four different operating systems: Wind River VxWorks, Linux, RTAI, and Xenomai. Some components of RTAI and Xenomai have been ported to the target architecture. Interrupt latency, rescheduling and inter-process communication times are compared in the framework of a sample real-time application.
Performance measurements on Gigabit Ethernet network communication have also been carried out on the target boards. To this purpose, we have considered the Linux IP stack and RTnet, an open-source hard real-time network protocol stack for Xenomai and RTAI, which was ported to the considered architecture.
Performance measurements show that the tested open-source software is suitable for hard real-time applications.
I. INTRODUCTION
Real-time feedback control has been extensively used in the RFX-mod experiment since 1998 [1]. RFX-mod is a magnetic-confinement, toroidal device, located in Padova, Italy, for studies on thermonuclear fusion. Seven control units are currently in operation and each unit consists of a VME crate hosting a Motorola MVME5500 single-board computer along with other boards for ADC/DAC conversion and digital I/O. The control units form a control network, where data are exchanged in real time among units. A software framework [2] has been developed to provide common functionalities for data handling and communication using the VxWorks platform [3]. VxWorks is widely used in physics research for several reasons, among which:
It provides an integrated development platform, thus simplifying the development process. Programs can be developed and simulated in the host system before downloading them to the target system.
It provides a powerful multitasking environment. Tasks have a fixed priority and can communicate via a rich set of inter-process communication (IPC) mechanisms.
The software model of VxWorks is quite similar to that of UNIX, in particular for I/O and networking, thus simplifying software writing for developers who have experience with UNIX.
In recent years, however, the growing penetration of Linux has generated much interest in the possibility of adapting Linux for real-time control. Whereas for data acquisition and, more in general, for all those tasks that do not require strict timing determinism, Linux is already the standard in scientific experiments, there are some aspects of Linux that prevent a straightforward usage in real-time applications, among which: Dynamic priorities. Using a priority for processes that varies over time is for sure a good solution in time sharing, but may prevent an urgent process to get CPU ownership as soon as it requires it.
Paging. It may introduce unexpected delays unless the page is locked in memory.
MMU remapping. Remapping the Page Tables entries in the Memory Management Unit (MMU) when a user process gets the CPU may prevent fast context switching.
Coarse-grained synchronization. Due to the non-pre-emptive kernel, the system may not react to events for some time in the case of lengthy kernel operations.
The most recent release of Linux provides solutions to some of the above problems. It is in fact possible to associate a fixed priority with a subset of processes, and the kernel has been made pre-emptive by accurately defining un-interruptible segments in the kernel code and protecting them with spin locks, rather than disabling interrupts. Moreover, a new O(1) implementation of the scheduler has been provided in Linux kernel 2.6. Considering also that swapping can be disabled and that, for given level ranges, priorities can be made fixed, we can state that Linux can currently be considered a soft real-time operating system and can therefore be used for many applications which tolerate occasional delays in system response. However the current version of Linux is not yet suitable for hard real-time applications, as required in feedback control for fusion devices.
采用ARMXScale 系列中的PXA270作为硬件平台,利用Xenomai实时化方案改造标准Linux内核,构建基于Xenomai的实时嵌入式操作系统, 并设计实验测试系统用户态程序与内核态程序...
在双内核Linux实时改造方法 中,Xenomai技术解决方案以其鲜明的特点,均衡的性能优势,广泛支持多种平 台上的Linux实时化改造。改造完成后的Xenomai/Linux双内核实时系统...
目前,具有代表性的 Linux 内核实时性研究项目有 RT—Linux、 RTAI、Xenomai 等。 2. 1 Linux 2.6 内核的实时性分析 相对于老版本内核,Linux 2.6 版本的内核...
xenomai移植 2.给内核源码打补丁,打上ADOES (Adaptive Domain Environment for Operating System)补丁,使linux内核源码 包具有ADOES管理功能和实时为内核功能。 具体...
基于Xenomai的Linux实时性研究与实现_互联网_IT/计算机_专业资料 暂无评价
因为实时 任务要在内核模式执行以实现最 佳性能, 程序员不能使用通常在用 户空间可用的系统服务, 调试变得 非常困难。然而,对于 Xenomai 和 RTAI,让用户进程成为...
而Adeos是一个基于多域的硬件抽象层,它控 制着系统中所有硬件中断,并且使Linux内核和Xenomai实时微内核分别作为它的 一个域实现。 基于上述认识,本论文深入研究了...
? 基于LGPL用户开发方式,良好文档手册、文章文档,支持用户空间硬实时 http://www.rtai.org/ 15 www.embedu.org Xenomai p p p Adeos微内核原是RTAI替代Linux...
双内核方式– 实现硬实时 – 实时内核+标准内核 – RTLinux、RTAI和Xenomai等 ? 在主流内核上通过patch增加其实时性– ––– 提高软实时内核性能 TimeSys Linux/...
使用这种方法的例子有 RTLinux (现在由 Wind River Systems 专有),实时应 用程序接口(RTAI)和 Xenomai. 回页首 超微内核方法 这里瘦内核方法依赖于包含任务管理的...
热门文档