Linux出现Leap Second问题程序响应慢的应对措施解决方法

日期: 栏目:系统教程 浏览:11 评论:0

 


 

  一、leap second问题测试

  1、若如下命令返回中有leap=01,那么就意味着将会有leap second发生

  ntpq -c “lassoc” -c “mrv &1 &999 leap,srcadr,stratum”

  2、若如下命令返回中有“no leap seconds”, 则表示不会有leap second发生。

  file /etc/localtime

  3、若如下命令有返回,则表示会有leap second发生。

  ntptime |egrep ‘INS|DEL’

  二、解决leap second问题

  1、停止ntpd服务

  2、重设内核状态和频率,

  ntptime -s 0 -f 0

  3、在/etc/sysconfig/ntpd文件中追加-x,启用slew mode

  4、启动ntpd服务

  leap second 之发生在特定ntpd和kernel中,本文贴上一个leap second 压力测试的C程序。

  以上就是Linux出现leap second的应对措施的全部内容了,不过leap second这个问题还是不能避免的,只能出现一次解决一次,想了解更多内容可以对电脑系统城进行关注!

 



标签:

评论留言

我要留言

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。