linux – kern.log中“00:00:00”时间戳的含义是什么?
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了linux – kern.log中“00:00:00”时间戳的含义是什么?,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含2471字,纯文字阅读大概需要4分钟。
内容图文
![linux – kern.log中“00:00:00”时间戳的含义是什么?](/upload/InfoBanner/zyjiaocheng/958/9ec5868fd6d449458867dde0c136aa6e.jpg)
我正在寻找kern.log中特定问题的原因.有许多条目的00:00:00时间戳:
Jun 11 00:00:00 mymachine kernel: [ 0.000000] Initializing cgroup subsys cpusetJun 11 00:00:00 mymachine kernel: [ 0.000000] Initializing cgroup subsys cpu
Jun 11 00:00:00 mymachine kernel: [ 0.000000] Linux version 3.2.0-33-virtual (buildd@batsu) (gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) ) #52-Ubuntu SMP Thu Oct 18 16:48:3
7 UTC 2012 (Ubuntu 3.2.0-33.52-virtual 3.2.31)
Jun 11 00:00:00 mymachine kernel: [ 0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-3.2.0-33-virtual root=LABEL=cloudimg-rootfs ro console=ttyS0
假设我实际上没有在午夜启动机器 – 00:00:00时间戳是否意味着启动过程的特定阶段?他们这样做有什么特别的原因?
(这是一个托管在OpenStack上的Ubuntu Precise VM,如果这很重要的话.我认为这个启动是在从另一个图像克隆后立即启动的.)
编辑更多信息:
据我所知(pgrep ntp,ls / etc / ntp *)ntp没有运行.
时间似乎(正确)设置为UTC,(错误地)没有设置本地时区.
EDIT2 00:00:00的最后一个日志条目如下所示:
Jun 11 00:00:00 mymachine kernel: [ 6.324599] type=1400 audit(1370908796.761:11): apparmor="STATUS" operation="profile_load" name="/usr/sbin/tcpdump" pid=875 comm="apparmor_parser"
Jun 11 00:00:02 mymachine kernel: [ 12.259133] postgres (1033): /proc/1033/oom_adj is deprecated, please use /proc/1033/oom_score_adj instead.
Jun 11 00:00:05 mymachine kernel: [ 13.592385] eth0: no IPv6 routers present
Jun 11 06:22:15 mymachine kernel: [22942.768233] init: tilemill main process (3167) killed by TERM signal
Jun 11 06:40:14 mymachine kernel: [24022.599001] init: tilemill main process (5640) killed by TERM signal
解决方法:
看看这个其他的Unix& Linux问题标题为:Correlating /var/log/* timestamps.
时序详细信息/分辨率由在引导期间传递给内核的设置控制:
$grep PRINTK /boot/config-`uname -r`
CONFIG_PRINTK=y
CONFIG_SND_VERBOSE_PRINTK=y
CONFIG_PRINTK_TIME=y
CONFIG_BOOT_PRINTK_DELAY=y
CONFIG_EARLY_PRINTK=y
CONFIG_EARLY_PRINTK_DBGP=y
您可以在kernel.org git repo中阅读有关这些选项的更多信息.
摘自上面的页面
config PRINTK_TIME
06001
Selecting this option causes time stamps of the printk() messages to
be added to the output of the syslog() system call and at the console.The timestamp is always recorded internally, and exported to /dev/kmsg.
This flag just specifies if the timestamp should be included, not that
the timestamp is recorded.The behavior is also controlled by the kernel command line parameter
printk.time=1. See Documentation/kernel-parameters.txt
时间戳[0.000000]以系统引导后的秒数表示.
内容总结
以上是互联网集市为您收集整理的linux – kern.log中“00:00:00”时间戳的含义是什么?全部内容,希望文章能够帮你解决linux – kern.log中“00:00:00”时间戳的含义是什么?所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。