在阿里云ecs上测试
CPU(s) = CPU socket(s) * Core(s) per socket * Thread(s) per core
比如在阿里云买的4 vCPU的机器,其实就是CPU(s)=4
$ lscpu
Architecture: x86_64 #架构
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 4 #逻辑cpu颗数
On-line CPU(s) list: 0-3
Thread(s) per core: 2 #每个核心线程
Core(s) per socket: 2 #每个cpu插槽核数/每颗物理cpu核数
座:1 #CPU socket(s),cpu插槽数
NUMA 节点:1
厂商 ID:GenuineIntel #Vendor ID
CPU 系列:6 #CPU family
型号:85 #Model
型号名称: Intel(R) Xeon(R) Platinum 8269CY CPU @ 2.50GHz
步进: 7 #Stepping
CPU MHz: 2500.002 #cpu主频
BogoMIPS:5000.00
超管理器厂商: KVM
虚拟化类型:完全
L1d 缓存:32K #一级缓存(数据缓存)
L1i 缓存:32K #一级缓存(指令缓存)
L2 缓存:1024K
L3 缓存:36608K
NUMA 节点0 CPU: 0-3
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 pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc eagerfpu pni pclmulqdq monitor ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm mpx avx512f avx512dq rdseed adx smap avx512cd avx512bw avx512vl xsaveopt xsavec xgetbv1 arat