I'm working on a port of Globus to FreeBSD and some of the monitoring tools want to publish info about each CPU in the system. On the i386 the most info I need is generally found at the top of dmesg:
CPU: Pentium III/Pentium III Xeon/Celeron (996.85-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x686 Stepping = 6 Features=0x383fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE> I'm trying to figure out how to get it from userland (in a shell script). I've looked at the cpuid port which seems to do most of it, but it doesn't display clock speed, only works on IA32 cpus, and won't be accurate if we have mismatched CPUs.[0] Linux displays this information in /proc/cpuinfo though there's no consistancy between platforms (at least alpha and i386 seem to have nothing in common.) Is there something similar I'm missing or is this a missing feature? -- Brooks [0] I seem to recall seeing someone post a dmesg with an SMP system with differently clocked CPUs in it so this is a potential concern. -- Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4
msg31077/pgp00000.pgp
Description: PGP signature