lscpu详解- Linux必学核心命令

1,142 阅读1分钟

lscpu解析:

lscpu(list cpu)查看CPU的相关信息

该命令从 sysfs 和 /proc/cpuinfo 收集 cpu 体系结构信息,再以易读的格式输出;

[root@b3965f018f51 /]# yum -y install util-linux-2.32.1-27.el8.x86_64
[root@b3965f018f51 /]# lscpu
Architecture(架构):                        x86_64           
CPU op-mode(s)(CPU操作模式):               32-bit, 64-bit
Byte Order(字节序):                        Little Endian
CPU(s)(逻辑CPU颗数):                        6
On-line CPU(s) list(在线CPU列表):           0-5
Thread(s) per core(每个核的线程数):          1
Core(s) per socket(每个CPU插槽核数/每颗物理CPU核数):  1
Socket(s)(CPU插槽数):                       6
Vendor ID(CPU厂商ID):                       GenuineIntel
CPU family(CPU系列):                        6
Model(型号):                                158
Model name(型号名称):                        Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
Stepping(步进):                             10
CPU MHz(主频):                              2600.000
BogoMIPS():                                5200.00
L1d cache():                                32K
L1i cache(1级缓存):                         32K
L2 cache (2级别缓存):                       256K
L3 cache (3级别缓存):                       12288K
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 pbe syscall nx pdpe1gb lm constant_tsc rep_good nopl xtopology nonstop_tsc cpuid pni pclmulqdq dtes64 ds_cpl ssse3 sdbg fma cx16 xtpr pcid sse4_1 sse4_2 movbe popcnt aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch fsgsbase bmi1 avx2 bmi2 erms xsaveopt arat
​

\