how to get system information

Greg 'groggy' Lehey grog at FreeBSD.org
Sun Sep 28 15:43:22 PDT 2003


On Sunday, 28 September 2003 at  9:02:05 -0700, Mikko Tyljrvi wrote:
> On Sun, 28 Sep 2003, Per olof Ljungmark wrote:
>
>>>>
>>>> I am wondering how to find out system hardware information from a
>>>> running system, I know for instance pciconf(8) but what are the
>>>> corresponding ones for memory, cpu etc?
>>>>
>>>
>>>
>>> more /var/run/dmesg.boot  to get the info at boot time.
>>> vmstat 5 5 will give you 5 items 5 sconds apart to show you procs, memory,
>>> page, disks, faults and cpu info.
>>>
>>
>> Thanks, that was a good start. Now, if I wanted to see more detailed
>> info on the processor than the dmesg.boot output:
>>
>> Origin = "GenuineIntel"  Id = 0x673  Stepping = 3
>>
>> Like cache size etc.?
>
> You should be able to get some cpu info with ports/sysutils/x86info.

This gives some information; ports/misc/cpuid gives you more.  Here's
an example:

x86info:

   x86info v1.11.  Dave Jones 2001, 2002
   Feedback to <davej at suse.de>.
   
   Found 1 CPU
   Family: 6 Model: 10 Stepping: 0
   CPU Model : Unknown CPU
   Processor name string: AMD Athlon(tm) XP 3200+
   
   PowerNOW! Technology information
   Available features:
           Temperature sensing diode present.
   
cpuid:
   
    eax in    eax      ebx      ecx      edx
   00000000 00000001 68747541 444d4163 69746e65
   00000001 000006a0 00000000 00000000 0383fbff
   80000000 80000008 68747541 444d4163 69746e65
   80000001 000007a0 00000000 00000000 c1c3fbff
   80000002 20444d41 6c687441 74286e6f 5820296d
   80000003 32332050 002b3030 00000000 00000000
   80000004 00000000 00000000 00000000 00000000
   80000005 0408ff08 ff20ff10 40020140 40020140
   80000006 00000000 41004100 02008140 00000000
   80000007 00000000 00000000 00000000 00000001
   80000008 00002022 00000000 00000000 00000000
   
   Vendor ID: "AuthenticAMD"; CPUID level 1
   
   AMD-specific functions
   Version 000006a0:
   Family: 6 Model: 10 [Duron/Athlon model 10]
   
   Standard feature flags 0383fbff:
   Floating Point Unit
   Virtual Mode Extensions
   Debugging Extensions
   Page Size Extensions
   Time Stamp Counter (with RDTSC and CR4 disable bit)
   Model Specific Registers with RDMSR & WRMSR
   PAE - Page Address Extensions
   Machine Check Exception
   COMPXCHG8B Instruction
   APIC
   SYSCALL/SYSRET or SYSENTER/SYSEXIT instructions
   MTRR - Memory Type Range Registers
   Global paging extension
   Machine Check Architecture
   Conditional Move Instruction
   PAT - Page Attribute Table
   PSE-36 - Page Size Extensions
   MMX instructions
   FXSAVE/FXRSTOR
   25 - reserved
   Generation: 7 Model: 10
   Extended feature flags c1c3fbff:
   Floating Point Unit
   Virtual Mode Extensions
   Debugging Extensions
   Page Size Extensions
   Time Stamp Counter (with RDTSC and CR4 disable bit)
   Model Specific Registers with RDMSR & WRMSR
   PAE - Page Address Extensions
   Machine Check Exception
   COMPXCHG8B Instruction
   APIC
   SYSCALL/SYSRET or SYSENTER/SYSEXIT instructions
   MTRR - Memory Type Range Registers
   Global paging extension
   Machine Check Architecture
   Conditional Move Instruction
   PAT - Page Attribute Table
   PSE-36 - Page Size Extensions
   AMD MMX Instruction Extensions
   MMX instructions
   FXSAVE/FXRSTOR
   3DNow! Instruction Extensions
   3DNow instructions
   
   Processor name string: AMD Athlon(tm) XP 3200+
   L1 Cache Information:
   2/4-MB Pages:
      Data TLB: associativity 4-way #entries 8
      Instruction TLB: associativity 255-way #entries 8
   4-KB Pages:
      Data TLB: associativity 255-way #entries 32
      Instruction TLB: associativity 255-way #entries 16
   L1 Data cache:
      size 64 KB associativity 2-way lines per tag 1 line size 64
   L1 Instruction cache:
      size 64 KB associativity 2-way lines per tag 1 line size 64
   
   L2 Cache Information:
   2/4-MB Pages:
      Data TLB: associativity L2 off #entries 0
      Instruction TLB: associativity L2 off #entries 0
   4-KB Pages:
      Data TLB: associativity Direct mapped #entries 0
      Instruction TLB: associativity Direct mapped #entries 0
      size 2 KB associativity L2 off lines per tag 129 line size 64
   
   Advanced Power Management Feature Flags
   Has temperature sensing diode
   Maximum linear address: 32; maximum phys address 34

Greg
--
When replying to this message, please copy the original recipients.
If you don't, I may ignore the reply or reply to the original recipients.
For more information, see http://www.lemis.com/questions.html
See complete headers for address and phone numbers.
NOTE: Due to the currently active Microsoft-based worms, I am limiting
all incoming mail to 131,072 bytes.  This is enough for normal mail,
but not for large attachments.  Please send these as URLs.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20030929/45f5ca4e/attachment.bin


More information about the freebsd-questions mailing list