作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程

• 开发研究与工程应用 • 上一篇    下一篇

Linux 实时抢占补丁研究及实时性能测试

张晓龙1,2,郭锐锋1,陶耀东1,刘 生1,2   

  1. (1. 中国科学院沈阳计算技术研究所,沈阳110004;2. 中国科学院大学,北京100039)
  • 收稿日期:2013-07-12 出版日期:2014-10-15 发布日期:2014-10-13
  • 作者简介:张晓龙(1989 - ),男,硕士研究生,主研方向:实时系统;郭锐锋,研究员、博士生导师;陶耀东,副研究员;刘 生,博士。
  • 基金资助:
    “核高基”重大专项“国产软硬件在数控/ 工业装置中的应用与推广”(2012ZX01029-001-002)。

Research of Linux Real-time Preemption Patch and Real-time Performance Measure

ZHANG Xiao-long 1,2,GUO Rui-feng 1,TAO Yao-dong 1,LIU Sheng 1,2   

  1. (1. Shenyang Institute of Computing Technology,Chinese Academy of Sciences,Shenyang 110004,China; 2. University of Chinese Academy of Sciences,Beijing 100039,China)
  • Received:2013-07-12 Online:2014-10-15 Published:2014-10-13

摘要: 准确的量化数据可作为评测及选择实时Linux 系统的参考依据。研究实时Linux 系统中实时抢占补丁的关键特性,提出一种代码插桩的实时性能评测方法。在增加实时抢占补丁的Linux 操作系统上加载运行测试程序,利用 测试程序关键位置的代码探测段来获取运行系统中的重要信息,以完成实时性能的评测。对基于数控平台上该实时 系统的中断响应时间和上下文切换时间等评测指标进行测试,结果表明,与标准Linux 系统的评测指标相比,该系统 的中断响应时间和上下文切换时间分别约减少10% 和99% ,达到了硬实时系统的要求,满足数控应用的实时需求。

关键词: 实时Linux 系统, 实时抢占, 实时性能, 硬实时系统, 代码插桩, 数控平台

Abstract: To obtain accurate quantitative data as a reference for evaluating and selecting real-time Linux system,this paper researches several more critical characteristics of the real-time preemption patch of real-time Linux operating system in-depth,and proposes a method of program instrumentation for real-time performance evaluation. In the evaluating process,it loads and runs the test program on the Linux operating system with Preempt-RT patch,gets the important system information data by testing the key position of program with code probe to evaluate its real-time performance,and does the comparison test of the interrupt response time and context switch time as the most important criteria between Linux system with Preempt-RT patch and standard Linux system based on the numerical control system platform. Experimental result shows the interrupt response time on the patch system decreases by about 10% compared with standard Linux system,while context switch time decreases by about 99%,which satisfies the hard real-time system and meets the real-time demand of numerical control applications.

Key words: real-time Linux system, real-time preemption, real-time performance, hard real-time system, code instrumentation, numerical control platform

中图分类号: