Search code examples
linuxlinux-kernelsyslog

What is meaning of the rightmost numbers in the `/var/log/kern.log`?


When using dmesg or cat /var/log/kern.log commands to dump the kernel log, we can see something like this:

[   22.949049] random: nonblocking pool is initialized

So, what dose the 22.949049 mean?


Solution

  • The /var/log/kern.log is for logging kernel messages. Sometimes embedded devices only have timer circuits and no clock. So instead of displaying a clock time, the kernel logs it's system uptime (I assume in seconds.)