摘要
在高可靠性要求的工业自动化应用中,Loongnix系统作为一种分时操作系统,其实时性不能满足可靠性要求,需要使用实时操作系统。在分析研究Loongnix的Linux内核实时性缺陷和RT-Preempt实时性优化方法的基础上,提出一种基于RT-Preempt-Linux实时内核替换Loongnix系统原生Linux内核的方法,实现Loongnix实时性优化和实时化改造,用自设计测试软件和专用实时性工具Cyclictest对改造后的Loongnix系统进行验证测试。测试结果表明改造后的Loongnix系统的实时性能获得大幅提升,进程切换时间、线程切换时间以及任务延时都能达到微秒级,满足工业自动化应用的可靠性要求。
Because LoongnixOS is the time-sharing operating system,it cannot meet the requirement of high reliability in industrial automation application which requires to use real-time operating system(RTOS).On the basis of analysis of and study on defects of real-time performance in Linux kernel of LoongnixOS and the method to optimize real-time performance in RT-Preemption patch,the method of real-time transformation of LoongnixOS and optimizing real-time performance of LoongnixOS is put forward,in which a RT-Preempt-Linux kernel is a substitute for original Linux kernel of LoongnixOS.Self-developing real-time performance softwares and Cyclictest are utilized to verify the method.Results of test show that the method can be effective in improvement of real-time performance of LoongnixOS.Real-time performance,including process-switching time,thread-switching time and task-switching delay,of the LoongnixOS transferred to RTOS achieves the grade of microsecond.
作者
俞冠中
韦雄
田青旺
史旭明
Yu Guanzhong;Wei Xiong;Tian Qingwang;Shi Xuming(State Nuclear Power Automation System Engineering Corp,Shanghai 200241,China)
出处
《电子技术应用》
2022年第6期98-102,111,共6页
Application of Electronic Technique
基金
国家科技重大专项(2019ZX06002035)。