分析了 Linux 系统所存在的非实时因素,提出一种基于多核 PC 的 Linux 实时性改造方案。方案从以下几个方面改进 Linux 的实时性:实现满足实时调度要求的高精度定时机制;重新分配系统处理器资源;指定分发系统外部中断以减少中断延迟对实时任务的影响。以内核可加载模块的方式实现此方案,保证了实时模块和原有系统之间的相互独立,同时也便于移植和维护。经过测试表明所提出的方案能够很好地提高 Linux 系统的实时性。
Abstract
This article analyzes the non-real-time presence of Linux system
and proposes a Linux real-time rehabilitation program based on the multi-core PC.The program improves the real-time nature of the Linux through the following aspects.Firstly
the program achieves high-precision timing mechanism to meet the requirements of real-time scheduling;Secondly
it reallocates system processor resources;And finally it distributes system external interrupts to reduce the interrupt latency of real-time tasks. The program ensures the flexibility and ease of maintenance of the real-time module through kernel loadable module.The test shows that the proposed program can improve the real-time performance of the Linux system.