关于Linux的 High-Resolution Timer

117 篇文章 0 订阅
93 篇文章 1 订阅

参考自:
Oracle Linux: How to Disable High-Resolution Timer (文档 ID 2207818.1)

High-Resolution Timer的作用是在纳秒级别处理内部时间分片。
若是禁用High-Resolution Timer,那么内核是在毫秒级别处理内部时间分片。

禁用掉High-Resolution Timer不会有问题,除非你的应用程序需要在纳秒级别处理时间分片。


如下摘自:Oracle Linux: How to Disable High-Resolution Timer (文档 ID 2207818.1)

High-resolution timer is implemented on UEK[1234] and RHCK for OL[67]. 
Note that RHCK for OL5 does not have this feature. 
By default, highres=on as it is configured in kernel booting procedures.
Linux kernel can handle internal time-slice within nanosecond with enabling high-resolution timer. 
By disabling this feature, kernel will handle the slice within millisecond,
it would not be any issues unless your applications need internal time-slice should be nanosecond order.
 
After rebooting the system, it can be confirmed whether highres is disabled by checking whether "highres=off" is included in /proc/cmdline. 
Note that kernel does not prepare methods/interfaces checking high-resolution timer is enabled/disabled, 
thus it is necessary to confirm it by checking the file.

相关参考文章http://blog.chinaunix.net/uid-23504396-id-3787297.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值