• 请不要在回答技术问题时复制粘贴 AI 生成的内容
edis0n0
V2EX  ›  程序员

为什么 VMware 默认是 2vCPU, 1vCore per CPU 而不是 1vCPU, 2vCore?有什么讲究吗?

  •  
  •   edis0n0 · Oct 24, 2022 · 2126 views
    This topic created in 1296 days ago, the information mentioned may be changed or developed.

    本来以为只有 Linux 是这样,没想到全都是这样,想知道为什么

    2 replies    2022-10-25 08:47:03 +08:00
    geekvcn
        1
    geekvcn  
       Oct 24, 2022 via Android
    方便跨 NUMA 吧
    menory
        2
    menory  
       Oct 25, 2022
    Recommended Practices
    #1 When creating a virtual machine, by default, vSphere will create as many virtual sockets as you’ve requested vCPUs and the cores per socket is equal to one. I think of this configuration as “wide” and “flat.” This will enable vNUMA to select and present the best virtual NUMA topology to the guest operating system, which will be optimal on the underlying physical topology.

    #2 When you must change the cores per socket though, commonly due to licensing constraints, ensure you mirror physical server’s NUMA topology. This is because when a virtual machine is no longer configured by default as “wide” and “flat,” vNUMA will not automatically pick the best NUMA configuration based on the physical server, but will instead honor your configuration – right or wrong – potentially leading to a topology mismatch that does affect performance.
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3248 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 40ms · UTC 12:16 · PVG 20:16 · LAX 05:16 · JFK 08:16
    ♥ Do have faith in what you're doing.