J4

• 计算机科学 • 上一篇    下一篇

Linux 2.6内核的中断机制

臧雪柏, 赵亚莉, 王秋实, 郑 凯, 陈 鹏, 赵宏伟   

  1. 吉林大学 计算机科学与技术学院, 长春 130012
  • 收稿日期:2007-07-04 修回日期:1900-01-01 出版日期:2008-05-26 发布日期:2008-05-26
  • 通讯作者: 赵宏伟

Study on Interrupt Mechanism in the Linux 2.6 Kernel

ZANG Xuebai, ZHAO Yali, WANG Qiushi, ZHENG Kai, CHEN Peng, ZHAO Hong wei   

  1. College of Computer Science and Technology, Jilin University, Changchun 130012, China
  • Received:2007-07-04 Revised:1900-01-01 Online:2008-05-26 Published:2008-05-26
  • Contact: ZHAO Hong wei

摘要: 基于控制中断执行时间的方法, 提出一种Linux 2.6内 核实时化改进方案, 解决了Linux实时任务在执行过程中可能被频繁中断干扰而产生响应时间过长的问题. 通过分析Linux 2.6内核的中断机制及打上Ingo Molar实时化补丁后的内核中断机制, 并根据与当前任务实时优先级的比较, 为中断安排恰当的执行时间规则, 实现任务的实时性响应. 实验结果表明, 改进方案的中断响应时间低于打上Ingo Molar实时化补丁后的内核中断响应时间.

关键词: Linux, 实时性, 中断线程化, 实时优先级

Abstract: A realtime improvement scheme of Linux 2.6 kernel is proposed on the basis of the method of controlling execution time of interrupt, this scheme can resolve the problem of long response time caused by frequent interrupts in the execution process of Linux realtime tasks. By analyzing Linux 2.6 kernel interrupt mechanism as well as the interruption mechanism of the kernel branded Ingo Molar realtime kernel patch, and arranging an appropriate execution time for interrupt by comparing with the current tasks realtime priority, the task’s realtime res ponse was realized. Experimental results show that the interrupt response time of improvementscheme is shorter than that of the kernel with branded Ingo Molar realtime kernel patch.

Key words: Linux, realtime performance, tasked interrupts, realtime priority

中图分类号: 

  • TP316