文档下载 文档下载导航
设为首页 | 加入收藏
搜索 请输入内容:  
 导航当前位置: 文档下载 > 所有分类 > 工程科技 > 信息与通信 > xenomai实时内核
侵权投诉

xenomai实时内核

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.

第1页

你可能喜欢

热门文档

相关文档

站点地图 | 文档上传 | 侵权投诉 | 手机版
本站所有资源均来自互联网,本站只负责收集和整理,均不承担任何法律责任,如有侵权等其它行为请联系我们.
文档下载 Copyright 2013 doc.guandang.net All Rights Reserved.  -  email