一种基于时钟粒度细化的Linux实时化方案
A Fine-grain Timer Scheme for Real-time in Linux
-
摘要: 时钟精度直接影响到任务能否被及时响应和调度 ,作为一个分时系统 ,Linux的 10ms周期性时钟粒度是必要而且合适的 但是实时系统一般都要求微秒级的响应精度 ,显然Linux的时钟粒度过于粗糙 然而简单地提高时钟频率意味着时钟中断的相应处理过程将占用过多的处理器时间 ,从而使得整个系统的有效利用率急剧下降 为了改进Linux的实时性能 ,讨论了基于Linux的实时操作系统RFRTOS中的时钟粒度细化方案 实验结果显示所做改进以不大的代价有效地提高了Linux的时钟精度Abstract: Precise timing is very important for the correct scheduling and timely response of task As a time sharing system, Linux’s 10?ms timing resolution is necessary and appropriate Many real time applications demand microsecond resolution timers, so Linux timer is too coarse for real time systems But simply increasing the timing resolution would lead to excessive and unsupportable overhead In order to improve Linux’s real time performance, a fine grain timer scheme implemented in RFRTOS based on Linux is discussed Experiments show that the improvement provides a fine grain timer with less cost
下载: