AFAIK dmesg
shows information about kernel and kernel modules, and /var/log/messages
also shows information produced by kernel and modules.
So what's the difference? Does /var/log/messages
⊂ output of dmesg
?
More Info that may be helpful:
- There is a kernel ring buffer, which I think is the very and only place to store kernel log data.
- Article "Kernel logging: APIs and implementation" on IBM DeveloperWorks described APIs and the bird-view picture.