为什么在像vmware和XenServer这样的Linux虚拟机中,/proc/cpuinfo中的物理id>内核数

为什么在像vmware和XenServer这样的Linux虚拟机中,/proc/cpuinfo中的物理id>内核数,linux,virtual-machine,Linux,Virtual Machine,这仅在Linux虚拟机中观察到。在/proc/cpuinfo中,物理id可能非常大,超过了CPU的数量 例如,下面是4个核心系统,但物理id是13。还有另一个虚拟机,只有2个内核,但一个物理id是2 有人知道虚拟机如何定义linux物理ID吗 processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 45 model name : Intel(R) Xeon(R) C

这仅在Linux虚拟机中观察到。在/proc/cpuinfo中,物理id可能非常大,超过了CPU的数量

例如,下面是4个核心系统,但物理id是13。还有另一个虚拟机,只有2个内核,但一个物理id是2

有人知道虚拟机如何定义linux物理ID吗

processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 45 model name : Intel(R) Xeon(R) CPU E5-2690 0 @ 2.90GHz stepping : 7 microcode : 1808 cpu MHz : 2900.040 cache size : 20480 KB physical id : 13 siblings : 1 core id : 0 cpu cores : 1 apicid : 13 initial apicid : 13 fpu : yes fpu_exception : yes cpuid level : 13 wp : yes flags : fpu de tsc msr pae cx8 sep cmov pat clflush mmx fxsr sse sse2 ss ht syscall nx lm constant_tsc rep_good unfair_spinlock pni pclmulqdq ssse3 cx16 sse4_1 sse4_2 popcnt tsc_deadline_timer aes hypervisor lahf_lm arat epb pln pts dts bogomips : 5800.08 clflush size : 64 cache_alignment : 64 address sizes : 46 bits physical, 48 bits virtual power management: processor : 1 vendor_id : GenuineIntel cpu family : 6 model : 45 model name : Intel(R) Xeon(R) CPU E5-2690 0 @ 2.90GHz stepping : 7 microcode : 1808 cpu MHz : 2900.040 cache size : 20480 KB physical id : 13 siblings : 1 core id : 0 cpu cores : 1 apicid : 13 initial apicid : 13 fpu : yes fpu_exception : yes cpuid level : 13 wp : yes flags : fpu de tsc msr pae cx8 sep cmov pat clflush mmx fxsr sse sse2 ss ht syscall nx lm constant_tsc rep_good unfair_spinlock pni pclmulqdq ssse3 cx16 sse4_1 sse4_2 popcnt tsc_deadline_timer aes hypervisor lahf_lm arat epb pln pts dts bogomips : 5800.08 clflush size : 64 cache_alignment : 64 address sizes : 46 bits physical, 48 bits virtual power management: processor : 2 vendor_id : GenuineIntel cpu family : 6 model : 45 model name : Intel(R) Xeon(R) CPU E5-2690 0 @ 2.90GHz stepping : 7 microcode : 1808 cpu MHz : 2900.040 cache size : 20480 KB physical id : 13 siblings : 1 core id : 0 cpu cores : 1 apicid : 13 initial apicid : 13 fpu : yes fpu_exception : yes cpuid level : 13 wp : yes flags : fpu de tsc msr pae cx8 sep cmov pat clflush mmx fxsr sse sse2 ss ht syscall nx lm constant_tsc rep_good unfair_spinlock pni pclmulqdq ssse3 cx16 sse4_1 sse4_2 popcnt tsc_deadline_timer aes hypervisor lahf_lm arat epb pln pts dts bogomips : 5800.08 clflush size : 64 cache_alignment : 64 address sizes : 46 bits physical, 48 bits virtual power management: processor : 3 vendor_id : GenuineIntel cpu family : 6 model : 45 model name : Intel(R) Xeon(R) CPU E5-2690 0 @ 2.90GHz stepping : 7 microcode : 1808 cpu MHz : 2900.040 cache size : 20480 KB physical id : 13 siblings : 1 core id : 0 cpu cores : 1 apicid : 13 initial apicid : 13 fpu : yes fpu_exception : yes cpuid level : 13 wp : yes flags : fpu de tsc msr pae cx8 sep cmov pat clflush mmx fxsr sse sse2 ss ht syscall nx lm constant_tsc rep_good unfair_spinlock pni pclmulqdq ssse3 cx16 sse4_1 sse4_2 popcnt tsc_deadline_timer aes hypervisor lahf_lm arat epb pln pts dts bogomips : 5800.08 clflush size : 64 cache_alignment : 64 address sizes : 46 bits physical, 48 bits virtual power management:
您正在使用哪种虚拟化软件?请参阅vmware中的问题,以及XenServer中的问题。可能您应该将此信息添加到您的问题中,但并非所有人都会阅读这些评论。关于这个话题,Sry,我恐怕在这里帮不上忙,但我觉得这个问题很有趣+非常感谢!另外一件事,也许问题是——虽然很有趣——关于stackoverflow的话题有点离题。我会试试superuser.com。你可能会在那里得到更好/更快的答案。