摘要
目前Linux在IBM兼容的PC上,其硬件定时器的时钟中断速率设定为100Hz,任务可以达到10ms的精度,这样低的时间精度远远不能满足实时任务的需要,如何兼顾时钟中断处理函数开销与计时精度是时钟优化必须考虑的问题。采用双频时钟机制,高低双频时钟中断,并提高内核对实时进程的响应速度,对新的时钟性能进行了分析。通过实验,测试标准Linux的时钟在不同频率下的性能及新的时钟性能。
In the IBM-compatible PC the hard clock interrupting-frequency of Linux is set to 100Hz with 10ms accuracy. This low clock accuracy is far from the requirement of the real-time tasks. How to balance the clock interrupting functions' spending time and accuracy must be considered. Here the double-frequency clock mechanism and the adoption of high and low double-frequency clock is used to increase the response speed of the real-time process of the kernel. A new performance of the clocks is analyzed. The experiment shows that the performance of the new Linux clock in different frequencies can be tested.
出处
《成都信息工程学院学报》
2007年第5期573-576,共4页
Journal of Chengdu University of Information Technology
关键词
LINUX
调度
时钟
中断
双频
Linux
schedule
clock
interruption
double-frequency