← 返回命令列表

Linux command

x86info 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Display all CPU information

x86info -a

Show CPU feature flags

x86info -f

Show cache and TLB information

x86info -c

Estimate current clock speed

x86info -mhz

Show raw CPUID register values

x86info -r

Dump model-specific registers

sudo x86info -m

Show verbose descriptions

x86info -v

Dump MP table

sudo x86info -mp

说明

x86info displays detailed diagnostic information about x86 CPUs, including processor identification, feature flags, cache topology, and model-specific registers. It queries the processor using the CPUID instruction and MSR (Model Specific Register) reads. The tool provides information similar to /proc/cpuinfo but with more detail, including cache associativity, TLB configuration, and raw CPUID data. It can identify the CPU vendor, family, model, and stepping, along with supported instruction set extensions. For full functionality, the kernel must have CPUID and MSR device drivers enabled, creating device files at /dev/cpu/\<n\>/cpuid and /dev/cpu/\<n\>/msr. Some options (MSR reading, MP table) require root privileges.

参数

-a, --all
Show all available information. Equivalent to -c -f -m -r -mhz.
-c, --cache
Display TLB and cache sizes, including cache associativity.
-f, --flags
Show CPU feature flags (SSE, AVX, etc.).
-m, --msr
Dump model-specific registers. Requires root and supported processor.
-mhz, --mhz
Estimate current CPU clock rate.
-mp, --mptable
Dump MP table showing CPUs known to BIOS.
-r, --registers
Show raw register values from all possible CPUID calls.
-s, --show-machine-check
Display machine check exception information.
-v, --verbose
Show verbose descriptions of CPU features.
-?, --help
Display help message.

FAQ

What is the x86info command used for?

x86info displays detailed diagnostic information about x86 CPUs, including processor identification, feature flags, cache topology, and model-specific registers. It queries the processor using the CPUID instruction and MSR (Model Specific Register) reads. The tool provides information similar to /proc/cpuinfo but with more detail, including cache associativity, TLB configuration, and raw CPUID data. It can identify the CPU vendor, family, model, and stepping, along with supported instruction set extensions. For full functionality, the kernel must have CPUID and MSR device drivers enabled, creating device files at /dev/cpu/\<n\>/cpuid and /dev/cpu/\<n\>/msr. Some options (MSR reading, MP table) require root privileges.

How do I run a basic x86info example?

Run `x86info -a` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -a, --all do in x86info?

Show all available information. Equivalent to -c -f -m -r -mhz.