Detecting CPU type without dmesg

Andrey V. Semyonov wilfre at mail.ru
Wed Mar 22 10:53:32 UTC 2006


Nathan Butcher wrote:
> Here's a curly question:- How can you detect the CPU type (make, model,
> and rated speed) on a running FreeBSD server without using dmesg?
> 
> I can't shut this machine off to check BIOS messages, and neither can I
> check dmesg (it seems that a pile of network dmesg logging has rotated
> the kernel initialization log part off into the sunset).
> 
> Is there a way to check CPU processor make and model type at all now?
> I'm starting to wish that FreeBSD would save the kernel initialization
> log in a place where it couldn't get lost (sort of like /proc in Linux
> but without the fanciness that entails)... or perhaps there is such a
> Valhalla in FreeBSD and I can't see it for the forest?

You may try:
# less /var/run/dmesg.boot
The boot-stage dmesg is always saved there.


Also, try to use linprocfs(5) and mount_linprocfs(8). The linux-style 
hardware description is there.


More information about the freebsd-questions mailing list