cpuid

Langue: en

Version: 17 Sep 2006 (mandriva - 01/05/08)

Autres sections - même nom

Section: 1 (Commandes utilisateur)

NAME

cpuid - Dump CPUID information for each CPU

SYNOPSIS

cpuid [options...]

DESCRIPTION

cpuid dumps detailed information about the CPU(s) gathered from the CPUID instruction, and also determines the exact model of CPU(s) from that information.

It dumps all information available from the CPUID instruction. The exact collection of information available varies between manufacturers and even between different CPUs from a single manufacturer. The following information is available consistently on all modern CPUs:

         vendor_id
         version information (1/eax)
         miscellaneous (1/ebx)
         feature information (1/ecx)
 

It also uses the available information to determine the exact model of each CPU (but see LIMITATIONS below). The result of that determination is provided as (synth) at the end of the dump for each CPU. Similarly, it determines the multiprocessing characteristics including the number of cores per chip (c) and the number of hyperthreads per core (t). The determination of the model is based on the following information:

         version information (1/eax), processor type
         version information (1/eax), family
         version information (1/eax), model
         version information (1/eax), stepping id
         version information (1/eax), extended family
         version information (1/eax), extended model
         feature information (1/ecx), virtual machine extensions
         brand id (1/ebx)
         brand (0x80000004)
         cache and TLB information (2)
         deterministic cache parameters (4/eax), extra processor cores
         AMD extended brand id (0x80000001/ebx)
         Transmeta processor revision ID (0x80860001/ebx & ecx)
 

The determination of the multiprocessing characteristics is based on the following information:

         feature information (1/edx), hyper-threading / multi-core supported
         miscellaneous (1/ebx), cpu count
         deterministic cache parameters (4/eax), extra processor cores on this die
         AMD Logical CPU cores (0x80000008/ecx), number of logical CPU cores - 1
 

In addition, a simpler and coarser determination of the CPU is performed using only the information listed above under version information (1/eax). It is provided as (simple synth) under version information (1/eax). However, it tends to be unable to distinguish between various newer CPUs.

OPTIONS

cpuid accepts the following command line arguments:

-1, --one-cpu
Display information only for the first CPU. This cuts down on the output on a multiprocessor system, and is useful when certain that all CPUs are identical.
-f FILE, --file=FILE
Read raw hex information from FILE instead of from executions of the cpuid instruction.
-h, -H, --help
Display help information.
-i, --inst
Use the CPUID instruction. The information it provides is reliable, but it works on only the current CPU. This should be OK on single-chip systems or homogeneous multi-chip systems. It is not necessary to be root to use this option. (This option is the default.)
-k, --kernel
Use the CPUID kernel module. This displays information for all CPUs, but the information it provides is not reliable for all combinations of CPU type and kernel version. Typically, it is necessary to be root to use this option.
-r, --raw
Display only raw hex information with no decoding.
-v, --version
Display cpuid version.

LIMITATIONS

There is no known way to distinguish between some versions of the following CPUs:
         Intel Pentium II (Deschutes), .25um
         Intel Pentium II Xeon (Deschutes), .25um
         Intel Celeron (Deschutes), .25um
         Intel Mobile Pentium II (Deschutes), .25um
 

There is no known way to distinguish between some versions of the following CPUs:

         Intel Pentium III (Katmai), .25um
         Intel Pentium III Xeon (Katmai), .25um
 

Whenever cpuid is unable to distinguish between multiple CPUs, it will list all possibilities.

Transmeta provides no information on how to recognize Transmeta Crusoe TM5700/5900 as distinct from other TM5x00 CPUs, or on how to recognize Efficeon CPUs.

INFORMATION SOURCES

Information on the CPUID instruction and on specific CPUs is available from the following documents from Intel Corporation <http://www.intel.com/support/processors/index.htm>, with the specified Document Numbers:

241618: Intel Processor Identification and the CPUID Instruction, Application Note 485
242480: Pentium Processor Specification Update
242689: Pentium Pro Processor Specification Update
243326: 60- and 66-MHz Pentium Processor Specification Update
243337: Intel Pentium II Processor Specification Update
243748: Intel Celeron Processor Specification Update
243776: Intel Pentium II Xeon Processor Specification Update
243887: Mobile Intel Pentium II Processor Specification Update
244444: Mobile Intel Celeron Processor at 466 MHz, 433 MHz, 400 MHz, 366 MHz, 333 MHz, 300 MHz, and 266 MHz Specification Update
244453: Intel Pentium III Processor Specification Update
244460: Intel Pentium III Xeon Processor Specification Update
245306: Mobile Intel Pentium III Processor and Mobile Intel Pentium III Processor-M Specification Update
245421: Mobile Intel Celeron Processor (0.18u and 0.13u) Specification Update
249199: Intel Pentium 4 Processor Specification Update
249678: Intel Xeon Processor Specification Update
250721: Mobile Intel Pentium 4 Processor-M Specification Update
251309: Mobile Intel Celeron Processor on .13 Micron Process in Micro-FCPGA Package Specification Update
252665: Intel Pentium M Processor Specification Update
253176: Mobile Intel Pentium 4 Processor with 533 MHz System Bus Specification Update
290741: Intel Xeon Processor MP Specification Update
290749: Intel Celeron Processor in the 478-Pin Package Specification Update
300303: Intel Celeron M Processor Specification Update
302209: Intel Pentium M Processor on 90nm Process with 2-MB L2 Cache Specification Update
302352: Intel Pentium 4 Processor on 90 nm Process Specification Update
302354: Intel Celeron D Processor 3xx Sequence Specification Update
302402: Intel Xeon Processor with 800 MHz System Bus
302441: Mobile Intel Pentium 4 Processor supporting Hyper-Threading Technology on 90-nm process technology Specification Update
306752: 64-bit Intel Xeon Processor MP with 1 MB L2 Cache Specification Update
306757: 64-bit Intel Xeon Processor MP with up to 8 MB L3 Cache Specification Update
306832: Intel Pentium Processor Extreme Edition and Intel Pentium D Processor Specification Update
309159: Dual-Core Intel Xeon Processor 2.80 GHz Specification Update
309222: Intel Core Duo Processor and Intel Core Solo Processor on 65 nm Process Specification Update
309627: Dual-Core Intel Xeon Processor 7000 Sequence Specification Update
311827: Intel Celeron D Processor 300 Sequence Specification Update
313065: Dual-Core Intel Xeon Processor 5000 Series Specification Update
313279: Intel Core 2 Extreme Processor X6800 and Intel Core 2 Duo Desktop Processor E6000 Sequence Specification Update
313356: Dual-Core Intel Xeon Processor 5100 Series Specification Update
314554: Dual-Core Intel Xeon Processor 7100 Series Specification Update

Information on the CPUID instruction and on specific CPUs is available from the following documents from Advanced Micro Devices, Inc. <http://www.amd.com/us-en/Processors/TechnicalResources>, with the specified Publication Numbers:


20734: AMD Processor Recognition Application Note
21266: AMD-K6 Processor Revision Guide Model 6
21641: AMD-K6-2 Processor Revision Guide Model 8
21846: AMD-K6 Processor Revision Guide Model 7
22473: AMD-K6-III Processor Revision Guide Model 9
23614: AMD Athlon Processor Model 4 Revision Guide
23865: AMD Duron Processor Model 3 Revision Guide
24332: AMD Athlon Processor Model 6 Revision Guide
24806: AMD Duron Processor Model 7 Revision Guide
25481: CPUID Specification
25703: AMD Athlon Processor Model 8 Revision Guide
25759: Revision Guide for AMD Athlon 64 and AMD Opteron Processors
26094: BIOS and Kernel Developer's Guide for AMD Athlon 64 and AMD Opteron Processors
27532: AMD Athlon Processor Model 10 Revision Guide

Information on the CPUID instruction and on specific CPUs is available from the following documents from Transmeta Corporation <http://www.transmeta.com/crusoe_docs/Crusoe_CPUID_5-7-02.pdf>:


Processor Recognition, 2002/05/07

Also, information is available from the following web sites:

<http://www.sandpile.org/ia32/cpuid.htm>
<http://en.wikipedia.org/wiki/List_of_Intel_microprocessors>
<http://en.wikipedia.org/wiki/List_of_AMD_microprocessors>
<http://en.wikipedia.org/wiki/Category:X86_microprocessors>
Copyright 2003,2004,2005,2006 by Todd Allen. All Rights Reserved. Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both the copyright notice and this permission notice appear in supporting documentation.

No representations are made about the suitability of this software for any purpose. It is provided ``as is'' without express or implied warranty, including but not limited to the warranties of merchantability, fitness for a particular purpose, and noninfringement. In no event shall Todd Allen be liable for any claim, damages, or other liability, whether in action of contract, tort, or otherwise, arising from, out of, or in connection with this software.

AUTHOR

Todd Allen <cpuid@etallen.com>