Inconsistent timestamp from dmesg -T
Issue
-
When converting dmesg output to a timestamp, it may be significantly inconsistent with when the kernel message actually happened.
-
On RHEL6, one would first execute
# echo Y > /sys/module/printk/parameters/time
and then use some script to add the [sec.msec]
dmesg output to the current time (localtime), and finally convert it to an appropriate human readable format.
Environment
- Red Hat Enterprise Linux (RHEL) 6
- Red Hat Enterprise Linux (RHEL) 7
- dmesg
- util-linux
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.