查看 CPU 信息
在主机服务器上,使用 lscpu
命令显示 CPU 信息。输出显示的信息包括 CPU 总数、每个插槽的核心数量以及 CPU 插槽数量。例如:
root@vmx-host:~# lscpu
Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Byte Order: Little Endian CPU(s): 40 On-line CPU(s) list: 0-39 Thread(s) per core: 1 Core(s) per socket: 10 Socket(s): 4 NUMA node(s): 4 Vendor ID: GenuineIntel CPU family: 6 Model: 62 Stepping: 7 CPU MHz: 3191.766 BogoMIPS: 6385.87 Virtualization: VT-x L1d cache: 32K L1i cache: 32K L2 cache: 256K L3 cache: 38400K NUMA node0 CPU(s): 0,4,8,12,16,20,24,28,32,36 NUMA node1 CPU(s): 1,5,9,13,17,21,25,29,33,37 NUMA node2 CPU(s): 2,6,10,14,18,22,26,30,34,38 NUMA node3 CPU(s): 3,7,11,15,19,23,27,31,35,39