cpu硬件信息:
processor:CPU的编号,编号从0开始。
cpu cores:CPU核心的数量。
physical id:物理CPU的编号,编号从0开始
查看cpu核数
[root@iZ8vb9nmgwljcf9m2wxaekZ ~]# cat /proc/cpuinfo | grep -c 'physical id'
查看linux cpu信息
cat /proc/cpuinfo
[root@c7]# cat /proc/cpuinfo processor: 0 系统中逻辑处理核的编号。对于单核处理器,则课认为是其CPU编号,对于多核处理器则可以是物理核、或者使用超线程技术虚拟的逻辑核 vendor_id: GenuineIntel CPU制造商 cpu family: 6 CPU产品系列代号 model: 85 CPU属于其系列中的哪一代的代号 model name: Intel(R) Xeon(R) Platinum 8269CY CPU @ 2.50GHz CPU属于的名字及其编号、标称主频 stepping: 7 CPU属于制作更新版本 microcode: 0x1 cpu MHz: 2499.998 CPU的实际使用主频 cache size: 36608 KB CPU二级 缓存大小 physical id: 0 单个CPU的标号 siblings: 1 单个CPU逻辑物理核数 core id: 0 当前物理核在其所处CPU中的编号,这个编号不一定连续 cpu cores: 1 该逻辑核所处CPU的物理核数 apicid: 0 用来区分不同逻辑核的编号,系统中每个逻辑核的此编号必然不同,此编号不一定连续 initial apicid: 0 fpu: yes 是否具有浮点运算单元(Floating Point Unit) fpu_exception: yes 是否支持浮点计算异常 cpuid level: 22 执行cpuid指令前,eax寄存器中的值,根据不同的值cpuid指令会返回不同的内容 wp: yes 表明当前CPU是否在内核态支持对用户空间的写保护(Write Protection) 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 eagerfpu pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer 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 avx512_vnni 当前CPU支持的功能 bogomips: 4999.99 在系统内核启动时粗略测算的CPU速度(Million Instructions Per Second) clflush size: 64 每次刷新缓存的大小单位 cache_alignment: 64 缓存地址对齐单位 address sizes: 46 bits physical, 48 bits virtual 可访问地址空间位数 power management: 对能源管理的支持,有以下几个可选支持功能: ts: temperature sensor fid: frequency id control vid: voltage id control ttp: thermal trip tm: stc: 100mhzsteps: hwpstate: