CPU情報を表示する。
lscpu
[root@localhost ~]# man lscpu
LSCPU(1) User Commands LSCPU(1)
NAME
lscpu - display information about the CPU architecture
SYNOPSIS
lscpu [-a|-b|-c] [-x] [-s directory] [-e [=list]|-p [=list]]
lscpu -h|-V
DESCRIPTION
lscpu gathers CPU architecture information from sysfs and /proc/cpuinfo. The command output can be optimized for parsing or for easy readability by humans.
The information includes, for example, the number of CPUs, threads, cores, sockets, and Non-Uniform Memory Access (NUMA) nodes. There is also information about the CPU caches and cache sharing, family, model, bogoMIPS, byte order, and stepping.
Options that result in an output table have a list argument. Use this argument to customize the command output. Specify a comma-separated list of column labels to limit the output table to only the specified columns, arranged in the specified
order. See COLUMNS for a list of valid column labels. The column labels are not case sensitive.
Not all columns are supported on all architectures. If an unsupported column is specified, lscpu prints the column but does not provide any data for it.
COLUMNS
CPU The logical CPU number of a CPU as used by the Linux kernel.
CORE The logical core number. A core can contain several CPUs.
SOCKET The logical socket number. A socket can contain several cores.
BOOK The logical book number. A book can contain several sockets.
NODE The logical NUMA node number. A node may contain several books.
CACHE Information about how caches are shared between CPUs.
ADDRESS
The physical address of a CPU.
ONLINE Indicator that shows whether the Linux instance currently makes use of the CPU.
CONFIGURED
Indicator that shows if the hypervisor has allocated the CPU to the virtual hardware on which the Linux instance runs. CPUs that are configured can be set online by the Linux instance. This column contains data only if your hardware sys-
tem and hypervisor support dynamic CPU resource allocation.
POLARIZATION
This column contains data for Linux instances that run on virtual hardware with a hypervisor that can switch the CPU dispatching mode (polarization). The polarization can be:
horizontal The workload is spread across all available CPUs.
vertical The workload is concentrated on few CPUs.
For vertical polarization, the column also shows the degree of concentration, high, medium, or low. This column contains data only if your hardware system and hypervisor support CPU polarization.
OPTIONS
-a, --all
Include lines for online and offline CPUs in the output (default for -e). This option may only specified together with option -e or -p.
-b, --online
Limit the output to online CPUs (default for -p). This option may only be specified together with option -e or -p.
-c, --offline
Limit the output to offline CPUs. This option may only be specified together with option -e or -p.
-e, --extended [=list]
Display the CPU information in human readable format.
If the list argument is omitted, all columns for which data is available are included in the command output.
When specifying the list argument, the string of option, equal sign (=), and list must not contain any blanks or other white space. Examples: ’-e=cpu,node’ or ’--extended=cpu,node’.
-h, --help
Display help information and exit.
-p, --parse [=list]
Optimize the command output for easy parsing.
If the list argument is omitted, the command output is compatible with earlier versions of lscpu. In this compatible format, two commas are used to separate CPU cache columns. If no CPU caches are identified the cache column is omitted.
If the list argument is used, cache columns are separated with a colon (:).
When specifying the list argument, the string of option, equal sign (=), and list must not contain any blanks or other white space. Examples: ’-p=cpu,node’ or ’--parse=cpu,node’.
-s, --sysroot directory
Gather CPU data for a Linux instance other than the instance from which the lscpu command is issued. The specified directory is the system root of the Linux instance to be inspected.
-x, --hex
Use hexadecimal masks for CPU sets (for example 0x3). The default is to print the sets in list format (for example 0,1).
-V, --version
Display version information and exit.
BUGS
The basic overview about CPU family, model, etc. is always based on the first CPU only.
Sometimes in Xen Dom0 the kernel reports wrong data.
On virtual hardware the number of cores per socket, etc. can be wrong.
AUTHOR
Cai Qian <qcai@redhat.com>
Karel Zak <kzak@redhat.com>
Heiko Carstens <heiko.carstens@de.ibm.com>
SEE ALSO
chcpu(8)
AVAILABILITY
The lscpu command is part of the util-linux package and is available from ftp://ftp.kernel.org/pub/linux/utils/util-linux/.
util-linux February 2011 LSCPU(1)
実行例
[root@localhost ~]# lscpu
Architecture: i686
CPU op-mode(s): 32-bit
Byte Order: Little Endian
CPU(s): 2
On-line CPU(s) list: 0,1
コアあたりのスレッド数:2
ソケットあたりのコア数:1
Socket(s): 1
ベンダーID: GenuineIntel
CPUファミリー: 6
モデル: 28
Model name: Intel(R) Core(TM) CPU Z520 @ 1.33GHz
ステッピング: 2
CPU MHz: 1330.035
BogoMIPS: 2660.07
仮想化: VT-x
L1d キャッシュ: 24K
L1i キャッシュ: 32K
L2 キャッシュ: 512K
[root@localhost ~]# lscpu -a
lscpu: options --all, --online and --offline may only be used with options --extended or --parse.
[root@localhost ~]# lscpu --all --extended
CPU SOCKET CORE L1d:L1i:L2 ONLINE
0 0 0 0:0:0 yes
1 0 0 0:0:0 yes
[root@localhost ~]# lscpu -ae
CPU SOCKET CORE L1d:L1i:L2 ONLINE
0 0 0 0:0:0 yes
1 0 0 0:0:0 yes
[root@localhost ~]# lscpu --all --parse
# The following is the parsable format, which can be fed to other
# programs. Each different item in every column has an unique ID
# starting from zero.
# CPU,Core,Socket,Node,,L1d,L1i,L2
0,0,0,,,0,0,0
1,0,0,,,0,0,0
[root@localhost ~]# lscpu -ap
# The following is the parsable format, which can be fed to other
# programs. Each different item in every column has an unique ID
# starting from zero.
# CPU,Core,Socket,Node,,L1d,L1i,L2
0,0,0,,,0,0,0
1,0,0,,,0,0,0
[root@localhost ~]# lscpu --online --extended
CPU SOCKET CORE L1d:L1i:L2 ONLINE
0 0 0 0:0:0 yes
1 0 0 0:0:0 yes
[root@localhost ~]# lscpu -be
CPU SOCKET CORE L1d:L1i:L2 ONLINE
0 0 0 0:0:0 yes
1 0 0 0:0:0 yes
[root@localhost ~]# lscpu --online --parse
# The following is the parsable format, which can be fed to other
# programs. Each different item in every column has an unique ID
# starting from zero.
# CPU,Core,Socket,Node,,L1d,L1i,L2
0,0,0,,,0,0,0
1,0,0,,,0,0,0
[root@localhost ~]# lscpu -bp
# The following is the parsable format, which can be fed to other
# programs. Each different item in every column has an unique ID
# starting from zero.
# CPU,Core,Socket,Node,,L1d,L1i,L2
0,0,0,,,0,0,0
1,0,0,,,0,0,0
[root@localhost ~]# lscpu --offline --extended
[root@localhost ~]# lscpu -ce
[root@localhost ~]# lscpu --offline --parse
# The following is the parsable format, which can be fed to other
# programs. Each different item in every column has an unique ID
# starting from zero.
# CPU,Core,Socket,Node,,L1d,L1i,L2
[root@localhost ~]# lscpu -cp
# The following is the parsable format, which can be fed to other
# programs. Each different item in every column has an unique ID
# starting from zero.
# CPU,Core,Socket,Node,,L1d,L1i,L2
[root@localhost ~]# lscpu --extended
CPU SOCKET CORE L1d:L1i:L2 ONLINE
0 0 0 0:0:0 yes
1 0 0 0:0:0 yes
[root@localhost ~]# lscpu -e
CPU SOCKET CORE L1d:L1i:L2 ONLINE
0 0 0 0:0:0 yes
1 0 0 0:0:0 yes
[root@localhost ~]# lscpu --extended=cpu
CPU
0
1
[root@localhost ~]# lscpu -e=CPU,cache
CPU L1d:L1i:L2
0 0:0:0
1 0:0:0
[root@localhost ~]# lscpu --help
Usage:
lscpu [options]
オブション:
-a, --all print both online and offline CPUs (default for -e)
-b, --online print online CPUs only (default for -p)
-c, --offline print offline CPUs only
-e, --extended[=<list>] print out an extended readable format
-p, --parse[=<list>] print out a parsable format
-s, --sysroot <dir> use specified directory as system root
-x, --hex print hexadecimal masks rather than lists of CPUs
-h, --help display this help and exit
-V, --version output version information and exit
Available columns:
CPU logical CPU number
CORE logical core number
SOCKET logical socket number
NODE logical NUMA node number
BOOK logical book number
CACHE shows how caches are shared between CPUs
POLARIZATION CPU dispatching mode on virtual hardware
ADDRESS physical address of a CPU
CONFIGURED shows if the hypervisor has allocated the CPU
ONLINE shows if Linux currently makes use of the CPU
For more details see lscpu(1).
[root@localhost ~]# lscpu -h
Usage:
lscpu [options]
オブション:
-a, --all print both online and offline CPUs (default for -e)
-b, --online print online CPUs only (default for -p)
-c, --offline print offline CPUs only
-e, --extended[=<list>] print out an extended readable format
-p, --parse[=<list>] print out a parsable format
-s, --sysroot <dir> use specified directory as system root
-x, --hex print hexadecimal masks rather than lists of CPUs
-h, --help display this help and exit
-V, --version output version information and exit
Available columns:
CPU logical CPU number
CORE logical core number
SOCKET logical socket number
NODE logical NUMA node number
BOOK logical book number
CACHE shows how caches are shared between CPUs
POLARIZATION CPU dispatching mode on virtual hardware
ADDRESS physical address of a CPU
CONFIGURED shows if the hypervisor has allocated the CPU
ONLINE shows if Linux currently makes use of the CPU
For more details see lscpu(1).
[root@localhost ~]# lscpu --parse
# The following is the parsable format, which can be fed to other
# programs. Each different item in every column has an unique ID
# starting from zero.
# CPU,Core,Socket,Node,,L1d,L1i,L2
0,0,0,,,0,0,0
1,0,0,,,0,0,0
[root@localhost ~]# lscpu -p
# The following is the parsable format, which can be fed to other
# programs. Each different item in every column has an unique ID
# starting from zero.
# CPU,Core,Socket,Node,,L1d,L1i,L2
0,0,0,,,0,0,0
1,0,0,,,0,0,0
[root@localhost ~]# lscpu -p=core,cpu
# The following is the parsable format, which can be fed to other
# programs. Each different item in every column has an unique ID
# starting from zero.
# Core,CPU
0,0
0,1
リスト指定順通りに表示する。
[root@localhost ~]# lscpu -p=cpu,core
# The following is the parsable format, which can be fed to other
# programs. Each different item in every column has an unique ID
# starting from zero.
# CPU,Core
0,0
1,0
[root@localhost ~]# lscpu --sysroot /
Architecture: i686
Byte Order: Little Endian
CPU(s): 2
On-line CPU(s) list: 0,1
コアあたりのスレッド数:2
ソケットあたりのコア数:1
Socket(s): 1
ベンダーID: GenuineIntel
CPUファミリー: 6
モデル: 28
Model name: Intel(R) Core(TM) CPU Z520 @ 1.33GHz
ステッピング: 2
CPU MHz: 1330.035
BogoMIPS: 2660.07
仮想化: VT-x
L1d キャッシュ: 24K
L1i キャッシュ: 32K
L2 キャッシュ: 512K
[root@localhost ~]# lscpu -s /
Architecture: i686
Byte Order: Little Endian
CPU(s): 2
On-line CPU(s) list: 0,1
コアあたりのスレッド数:2
ソケットあたりのコア数:1
Socket(s): 1
ベンダーID: GenuineIntel
CPUファミリー: 6
モデル: 28
Model name: Intel(R) Core(TM) CPU Z520 @ 1.33GHz
ステッピング: 2
CPU MHz: 1330.035
BogoMIPS: 2660.07
仮想化: VT-x
L1d キャッシュ: 24K
L1i キャッシュ: 32K
L2 キャッシュ: 512K
指定したディレクトリ配下の proc/cpuinfo を見ている。
[root@localhost ~]# lscpu -s /root
lscpu: /root/proc/cpuinfo を open できません: そのようなファイルやディレクトリはありません
[root@localhost ~]# lscpu --hex
Architecture: i686
CPU op-mode(s): 32-bit
Byte Order: Little Endian
CPU(s): 2
On-line CPU(s) mask: 0x3
コアあたりのスレッド数:2
ソケットあたりのコア数:1
Socket(s): 1
ベンダーID: GenuineIntel
CPUファミリー: 6
モデル: 28
Model name: Intel(R) Core(TM) CPU Z520 @ 1.33GHz
ステッピング: 2
CPU MHz: 1330.035
BogoMIPS: 2660.07
仮想化: VT-x
L1d キャッシュ: 24K
L1i キャッシュ: 32K
L2 キャッシュ: 512K
[root@localhost ~]# lscpu -x
Architecture: i686
CPU op-mode(s): 32-bit
Byte Order: Little Endian
CPU(s): 2
On-line CPU(s) mask: 0x3
コアあたりのスレッド数:2
ソケットあたりのコア数:1
Socket(s): 1
ベンダーID: GenuineIntel
CPUファミリー: 6
モデル: 28
Model name: Intel(R) Core(TM) CPU Z520 @ 1.33GHz
ステッピング: 2
CPU MHz: 1330.035
BogoMIPS: 2660.07
仮想化: VT-x
L1d キャッシュ: 24K
L1i キャッシュ: 32K
L2 キャッシュ: 512K
CPU mask とは、CPUのどれが有効かを2進数で現したものを、16進数表記したもの。
0,1 両方有効だったら、00000011 なので、0x3。
0,2 が有効(1は無効)なら、00000101 で、0x5。
[root@localhost ~]# lscpu --version
lscpu from util-linux-ng 2.17.2
[root@localhost ~]# lscpu -V
lscpu from util-linux-ng 2.17.2
ロングオプションであっても、先に指定したオプションが有効。(--help、--version が指定されていれば、他のオプションは無効)
[root@localhost ~]# lscpu --version --help lscpu from util-linux-ng 2.17.2 [root@localhost ~]# lscpu -V --help lscpu from util-linux-ng 2.17.2
ユーザー実行可能
[estis@localhost ~]$ lscpu Architecture: i686 CPU op-mode(s): 32-bit Byte Order: Little Endian CPU(s): 2 On-line CPU(s) list: 0,1 コアあたりのスレッド数:2 ソケットあたりのコア数:1 Socket(s): 1 ベンダーID: GenuineIntel CPUファミリー: 6 モデル: 28 Model name: Intel(R) Core(TM) CPU Z520 @ 1.33GHz ステッピング: 2 CPU MHz: 1330.035 BogoMIPS: 2660.07 仮想化: VT-x L1d キャッシュ: 24K L1i キャッシュ: 32K L2 キャッシュ: 512K
CentOS 7 での実行例
[root@localhost ~]# lscpu
アーキテクチャ: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 2
On-line CPU(s) list: 0,1
コアあたりのスレッド数:1
ソケットあたりのコア数:2
Socket(s): 1
NUMAノード: 1
ベンダーID: GenuineIntel
CPUファミリー: 6
モデル: 42
Model name: Intel(R) Core(TM) i7-2600 CPU @ 3.40GHz
ステッピング: 7
CPU MHz: 3392.270
BogoMIPS: 6784.54
ハイパーバイザーベンダー:KVM
仮想化タイプ: 完全仮想化
L1d キャッシュ: 32K
L1i キャッシュ: 32K
L2 キャッシュ: 256K
L3 キャッシュ: 8192K
NUMAノード 0 CPU: 0,1
[root@localhost ~]# lscpu -V
lscpu from util-linux 2.23.2
[root@localhost ~]# lscpu -h
Usage:
lscpu [options]
オプション:
-a, --all print both online and offline CPUs (default for -e)
-b, --online print online CPUs only (default for -p)
-c, --offline print offline CPUs only
-e, --extended[=<list>] print out an extended readable format
-p, --parse[=<list>] print out a parsable format
-s, --sysroot <dir> use specified directory as system root
-x, --hex print hexadecimal masks rather than lists of CPUs
-h, --help display this help and exit
-V, --version output version information and exit
Available columns:
CPU logical CPU number
CORE logical core number
SOCKET logical socket number
NODE logical NUMA node number
BOOK logical book number
CACHE shows how caches are shared between CPUs
POLARIZATION CPU dispatching mode on virtual hardware
ADDRESS physical address of a CPU
CONFIGURED shows if the hypervisor has allocated the CPU
ONLINE shows if Linux currently makes use of the CPU
For more details see lscpu(1).
Debian 8.5 での実行例
Available columns に、MAXMHZ, MINMHZ が増えている。
root@debian:~# lscpu
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 2
On-line CPU(s) list: 0,1
Thread(s) per core: 1
Core(s) per socket: 2
Socket(s): 1
NUMA node(s): 1
Vendor ID: GenuineIntel
CPU family: 6
Model: 42
Model name: Intel(R) Core(TM) i7-2600 CPU @ 3.40GHz
Stepping: 7
CPU MHz: 3392.270
BogoMIPS: 6784.54
Hypervisor vendor: KVM
Virtualization type: full
L1d cache: 32K
L1i cache: 32K
L2 cache: 256K
L3 cache: 8192K
NUMA node0 CPU(s): 0,1
root@debian:~# lscpu -V
lscpu from util-linux 2.25.2
root@debian:~# lscpu -h
Usage:
lscpu [options]
Options:
-a, --all print both online and offline CPUs (default for -e)
-b, --online print online CPUs only (default for -p)
-c, --offline print offline CPUs only
-e, --extended[=<list>] print out an extended readable format
-p, --parse[=<list>] print out a parsable format
-s, --sysroot <dir> use specified directory as system root
-x, --hex print hexadecimal masks rather than lists of CPUs
-h, --help display this help and exit
-V, --version output version information and exit
Available columns:
CPU logical CPU number
CORE logical core number
SOCKET logical socket number
NODE logical NUMA node number
BOOK logical book number
CACHE shows how caches are shared between CPUs
POLARIZATION CPU dispatching mode on virtual hardware
ADDRESS physical address of a CPU
CONFIGURED shows if the hypervisor has allocated the CPU
ONLINE shows if Linux currently makes use of the CPU
MAXMHZ shows the maximum MHz of the CPU
MINMHZ shows the minimum MHz of the CPU
For more details see lscpu(1).
root@debian:~# lscpu -e=CPU,MAXMHZ,MINMHZ
CPU MAXMHZ MINMHZ
0 - -
1 - -
Ubuntu 16.04 での実行例
Available columns に、MAXMHZ, MINMHZ が増えている。
estis@ubuntu:~$ lscpu
Architecture: x86_64
CPU 操作モード: 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 2
On-line CPU(s) list: 0,1
コアあたりのスレッド数:1
ソケットあたりのコア数:2
Socket(s): 1
NUMA ノード数: 1
ベンダー ID: GenuineIntel
CPU ファミリー: 6
モデル: 42
Model name: Intel(R) Core(TM) i7-2600 CPU @ 3.40GHz
ステッピング: 7
CPU MHz: 3392.270
BogoMIPS: 6784.54
ハイパーバイザのベンダー:KVM
仮想化タイプ: 完全仮想化
L1d キャッシュ: 32K
L1i キャッシュ: 32K
L2 キャッシュ: 256K
L3 キャッシュ: 8192K
NUMA node0 CPU(s): 0,1
Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx rdtscp lm constant_tsc nopl xtopology nonstop_tsc eagerfpu pni pclmulqdq ssse3 cx16 pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx hypervisor lahf_lm xsaveopt dtherm arat pln pts
estis@ubuntu:~$ lscpu -V
lscpu from util-linux 2.27.1
estis@ubuntu:~$ lscpu -h
Usage:
lscpu [options]
Display information about the CPU architecture.
オプション:
-a, --all print both online and offline CPUs (default for -e)
-b, --online print online CPUs only (default for -p)
-c, --offline print offline CPUs only
-e, --extended[=<list>] print out an extended readable format
-p, --parse[=<list>] print out a parsable format
-s, --sysroot <dir> use specified directory as system root
-x, --hex print hexadecimal masks rather than lists of CPUs
-h, --help display this help and exit
-V, --version output version information and exit
Available columns:
CPU logical CPU number
CORE logical core number
SOCKET logical socket number
NODE logical NUMA node number
BOOK logical book number
CACHE shows how caches are shared between CPUs
POLARIZATION CPU dispatching mode on virtual hardware
ADDRESS physical address of a CPU
CONFIGURED shows if the hypervisor has allocated the CPU
ONLINE shows if Linux currently makes use of the CPU
MAXMHZ shows the maximum MHz of the CPU
MINMHZ shows the minimum MHz of the CPU
For more details see lscpu(1).
estis@ubuntu:~$ lscpu -e=CPU,MAXMHZ,MINMHZ
CPU MAXMHZ MINMHZ
0 - -
1 - -
/proc/cpuinfo を確認すれば、より詳細な情報を取得できる。
[root@localhost ~]# cat /proc/cpuinfo processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 28 model name : Intel(R) Core(TM) CPU Z520 @ 1.33GHz stepping : 2 microcode : 515 cpu MHz : 1330.035 cache size : 512 KB physical id : 0 siblings : 2 core id : 0 cpu cores : 1 apicid : 0 initial apicid : 0 fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 10 wp : yes flags : fpu vme de tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx constant_tsc arch_perfmon pebs bts aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 xtpr pdcm movbe lahf_lm dtherm tpr_shadow vnmi flexpriority bogomips : 2660.07 clflush size : 64 cache_alignment : 64 address sizes : 32 bits physical, 32 bits virtual power management: processor : 1 vendor_id : GenuineIntel cpu family : 6 model : 28 model name : Intel(R) Core(TM) CPU Z520 @ 1.33GHz stepping : 2 microcode : 515 cpu MHz : 1330.035 cache size : 512 KB physical id : 0 siblings : 2 core id : 0 cpu cores : 1 apicid : 1 initial apicid : 1 fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 10 wp : yes flags : fpu vme de tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx constant_tsc arch_perfmon pebs bts aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 xtpr pdcm movbe lahf_lm dtherm tpr_shadow vnmi flexpriority bogomips : 2660.07 clflush size : 64 cache_alignment : 64 address sizes : 32 bits physical, 32 bits virtual power management:
CentOS 7 での実行例
[root@localhost ~]# cat /proc/cpuinfo processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 42 model name : Intel(R) Core(TM) i7-2600 CPU @ 3.40GHz stepping : 7 microcode : 0x28 cpu MHz : 3392.270 cache size : 8192 KB physical id : 0 siblings : 2 core id : 0 cpu cores : 2 apicid : 0 initial apicid : 0 fpu : yes fpu_exception : yes cpuid level : 13 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx rdtscp lm constant_tsc nopl xtopology nonstop_tsc eagerfpu pni pclmulqdq ssse3 cx16 pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx hypervisor lahf_lm arat pln pts dtherm xsaveopt bogomips : 6784.54 clflush size : 64 cache_alignment : 64 address sizes : 36 bits physical, 48 bits virtual power management: processor : 1 vendor_id : GenuineIntel cpu family : 6 model : 42 model name : Intel(R) Core(TM) i7-2600 CPU @ 3.40GHz stepping : 7 microcode : 0x28 cpu MHz : 3392.270 cache size : 8192 KB physical id : 0 siblings : 2 core id : 1 cpu cores : 2 apicid : 1 initial apicid : 1 fpu : yes fpu_exception : yes cpuid level : 13 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx rdtscp lm constant_tsc nopl xtopology nonstop_tsc eagerfpu pni pclmulqdq ssse3 cx16 pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx hypervisor lahf_lm arat pln pts dtherm xsaveopt bogomips : 6784.54 clflush size : 64 cache_alignment : 64 address sizes : 36 bits physical, 48 bits virtual power management:
Debian 8.5 での実行例
root@debian:~# cat /proc/cpuinfo processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 42 model name : Intel(R) Core(TM) i7-2600 CPU @ 3.40GHz stepping : 7 microcode : 0x28 cpu MHz : 3392.270 cache size : 8192 KB physical id : 0 siblings : 2 core id : 0 cpu cores : 2 apicid : 0 initial apicid : 0 fpu : yes fpu_exception : yes cpuid level : 13 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx rdtscp lm constant_tsc nopl xtopology nonstop_tsc eagerfpu pni pclmulqdq ssse3 cx16 pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx hypervisor lahf_lm arat xsaveopt pln pts dtherm bogomips : 6784.54 clflush size : 64 cache_alignment : 64 address sizes : 36 bits physical, 48 bits virtual power management: processor : 1 vendor_id : GenuineIntel cpu family : 6 model : 42 model name : Intel(R) Core(TM) i7-2600 CPU @ 3.40GHz stepping : 7 microcode : 0x28 cpu MHz : 3392.270 cache size : 8192 KB physical id : 0 siblings : 2 core id : 1 cpu cores : 2 apicid : 1 initial apicid : 1 fpu : yes fpu_exception : yes cpuid level : 13 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx rdtscp lm constant_tsc nopl xtopology nonstop_tsc eagerfpu pni pclmulqdq ssse3 cx16 pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx hypervisor lahf_lm arat xsaveopt pln pts dtherm bogomips : 6784.54 clflush size : 64 cache_alignment : 64 address sizes : 36 bits physical, 48 bits virtual power management:
Ubuntu 16.04 での実行例
estis@ubuntu:~$ cat /proc/cpuinfo processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 42 model name : Intel(R) Core(TM) i7-2600 CPU @ 3.40GHz stepping : 7 microcode : 0x28 cpu MHz : 3392.270 cache size : 8192 KB physical id : 0 siblings : 2 core id : 0 cpu cores : 2 apicid : 0 initial apicid : 0 fpu : yes fpu_exception : yes cpuid level : 13 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx rdtscp lm constant_tsc nopl xtopology nonstop_tsc eagerfpu pni pclmulqdq ssse3 cx16 pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx hypervisor lahf_lm xsaveopt dtherm arat pln pts bugs : bogomips : 6784.54 clflush size : 64 cache_alignment : 64 address sizes : 36 bits physical, 48 bits virtual power management: processor : 1 vendor_id : GenuineIntel cpu family : 6 model : 42 model name : Intel(R) Core(TM) i7-2600 CPU @ 3.40GHz stepping : 7 microcode : 0x28 cpu MHz : 3392.270 cache size : 8192 KB physical id : 0 siblings : 2 core id : 1 cpu cores : 2 apicid : 1 initial apicid : 1 fpu : yes fpu_exception : yes cpuid level : 13 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx rdtscp lm constant_tsc nopl xtopology nonstop_tsc eagerfpu pni pclmulqdq ssse3 cx16 pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx hypervisor lahf_lm xsaveopt dtherm arat pln pts bugs : bogomips : 6784.54 clflush size : 64 cache_alignment : 64 address sizes : 36 bits physical, 48 bits virtual power management:
しかし、通常は、lscpu コマンドの実行結果で十分。