HostOnNet Blog

Show Human Readable Time in dmesg

Looking for Linux Server Admin or WordPress Expert? We can help.

Show Human Readable Time in dmesg

By default dmesg shows time stamp.

boby@fwhlin:~ $ dmesg | tail
[  599.761303] perf samples too long (2508 > 2500), lowering kernel.perf_event_max_sample_rate to 50000
[ 1920.244522] perf samples too long (22502 > 5000), lowering kernel.perf_event_max_sample_rate to 25000
[ 1920.244531] INFO: NMI handler (perf_event_nmi_handler) took too long to run: 2.445 msecs
[ 1924.613554] perf samples too long (22353 > 10000), lowering kernel.perf_event_max_sample_rate to 12500
[ 1931.561849] perf samples too long (22212 > 20000), lowering kernel.perf_event_max_sample_rate to 6250
[ 2067.404625] init: /etc/init/plymouth-upstart-bridge.conf:19: Unknown stanza
[ 2067.685316] init: /etc/init/plymouth-upstart-bridge.conf:19: Unknown stanza
[ 2067.703749] type=1400 audit(1437272856.073:68): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/usr/lib/cups/backend/cups-pdf" pid=4943 comm="apparmor_parser"
[ 2067.703757] type=1400 audit(1437272856.073:69): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/usr/sbin/cupsd" pid=4943 comm="apparmor_parser"
[ 2067.704117] type=1400 audit(1437272856.073:70): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/usr/sbin/cupsd" pid=4943 comm="apparmor_parser"
boby@fwhlin:~ $ 

To show human readable time in dmesg, use dmesg -T

boby@fwhlin:~ $ dmesg -T | tail
[Sun Jul 19 07:33:06 2015] perf samples too long (2508 > 2500), lowering kernel.perf_event_max_sample_rate to 50000
[Sun Jul 19 07:55:07 2015] perf samples too long (22502 > 5000), lowering kernel.perf_event_max_sample_rate to 25000
[Sun Jul 19 07:55:07 2015] INFO: NMI handler (perf_event_nmi_handler) took too long to run: 2.445 msecs
[Sun Jul 19 07:55:11 2015] perf samples too long (22353 > 10000), lowering kernel.perf_event_max_sample_rate to 12500
[Sun Jul 19 07:55:18 2015] perf samples too long (22212 > 20000), lowering kernel.perf_event_max_sample_rate to 6250
[Sun Jul 19 07:57:34 2015] init: /etc/init/plymouth-upstart-bridge.conf:19: Unknown stanza
[Sun Jul 19 07:57:34 2015] init: /etc/init/plymouth-upstart-bridge.conf:19: Unknown stanza
[Sun Jul 19 07:57:34 2015] type=1400 audit(1437272856.073:68): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/usr/lib/cups/backend/cups-pdf" pid=4943 comm="apparmor_parser"
[Sun Jul 19 07:57:34 2015] type=1400 audit(1437272856.073:69): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/usr/sbin/cupsd" pid=4943 comm="apparmor_parser"
[Sun Jul 19 07:57:34 2015] type=1400 audit(1437272856.073:70): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/usr/sbin/cupsd" pid=4943 comm="apparmor_parser"
boby@fwhlin:~ $ 


Posted in Linux

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.