CPUの情報を見るコマンド。
/proc/cpuinfo
を見てもCPUの情報はわかるが、lscpu
のほうが、少しわかりやすく表示してくれる。
実行例
$ lscpuArchitecture: x86_64CPU op-mode(s): 32-bit, 64-bitByte Order: Little EndianCPU(s): 2On-line CPU(s) list: 0,1Thread(s) per core: 1Core(s) per socket: 2Socket(s): 1NUMA node(s): 1Vendor ID: GenuineIntelCPU family: 6Model: 69Stepping: 1CPU MHz: 2434.648BogoMIPS: 4869.29L1d cache: 32KL1d cache: 32KL2d cache: 6144KNUMA node0 CPU(s): 0,1
同じマシンで/proc/cpuinfo
を見るとこんな感じ
$ cat /proc/cpuinfoprocessor : 0vendor_id : GenuineIntelcpu family : 6model : 69model name : Intel(R) Core(TM) i5-4258U CPU @ 2.40GHzstepping : 1microcode : 0x19cpu MHz : 2434.648cache size : 6144 KBphysical id : 0siblings : 2core id : 0cpu cores : 2apicid : 0initial apicid : 0fpu : yesfpu_exception : yescpuid level : 5wp : yesflags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx rdtscp lm constant_tsc rep_good nopl pni ssse3 lahf_lmbogomips : 4869.29clflush size : 64cache_alignment : 64address sizes : 39 bits physical, 48 bits virtualpower management:processor : 1vendor_id : GenuineIntelcpu family : 6model : 69model name : Intel(R) Core(TM) i5-4258U CPU @ 2.40GHzstepping : 1microcode : 0x19cpu MHz : 2434.648cache size : 6144 KBphysical id : 0siblings : 2core id : 1cpu cores : 2apicid : 1initial apicid : 1fpu : yesfpu_exception : yescpuid level : 5wp : yesflags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx rdtscp lm constant_tsc rep_good nopl pni ssse3 lahf_lmbogomips : 4869.29clflush size : 64cache_alignment : 64address sizes : 39 bits physical, 48 bits virtualpower management: