在GNU / Linux / Debian中遇到系统date/时间的问题:date,时间,cron时间太快了。 睡眠命令工作正常,文件修改时间是正确的。 这个问题通过命令解释:
$ date Mon Sep 12 05:27:46 CEST 2011 $ time sleep 1 real 71m13.403s user 0m0.008s sys 0m0.012s $ date Fri Sep 16 22:00:02 CEST 2011
看起来像是,当运行命令“睡眠1”,并input命令“date”,4天过去了。 那么实际上没有。 关于发生什么的想法是受欢迎的。
$ uname -a Linux the_hostname 2.6.18-238.19.1.el5xen #1 SMP Fri Jul 15 08:16:59 EDT 2011 x86_64 GNU/Linux
是的,它在虚拟机中。
$ hwclock --debug hwclock from util-linux-ng 2.13.1.1 hwclock: Open of /dev/rtc failed, errno=2: No such file or directory. No usable clock interface found. Cannot access the Hardware Clock via any known method.
在用ntp设置时间之后,这是否还会发生? 否则请尝试使用rtc。 我也在论坛上看过,如果是64位的电脑问题,有人build议使用noapictimer内核选项来修复它。 将有趣的是你使用什么系统和哪个内核版本更好地查明故障
编辑:我认为这与xen内核和时间问题有关。 检查这些页面:
(时间倒退问题)
http://lists.xensource.com/archives/html/xen-users/2010-01/msg00037.html
(快速时钟)
http://idolinux.blogspot.com/2009/02/xen-and-fast-clock.html
或谷歌的XEN内核和时间问题。 关于这个话题有很多讨论