XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    How many VM can be created per host CPU core?

    Scheduled Pinned Locked Moved Compute
    7 Posts 2 Posters 907 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D Offline
      dangVpham
      last edited by

      Hi,

      I have a host with 128 cores. How many VM with 4 vCpu can be created with 128 host core?

      How can we calculate the maximum VM can be created per CPU cores on a xcp-ng host?

      Thanks,
      Dang

      1 Reply Last reply Reply Quote 0
      • olivierlambertO Online
        olivierlambert Vates 🪐 Co-Founder CEO
        last edited by

        There's no limit. It's all about your usage. For Xen, a vCPU is like a process for your regular operating system. You can have more process than physical core, they will be scheduled.

        It's exactly the same way in Xen. You could have 500 vCPUs used in total on your 128 cores. This will work well if you don't need 100% of all the vCPUs in all your VMs at the same time. Otherwise, each vCPU will have to wait a bit before getting access to the "real" CPU. That's it!

        D 1 Reply Last reply Reply Quote 0
        • D Offline
          dangVpham @olivierlambert
          last edited by

          Thanks @olivierlambert,

          How about memory? I have 2TB of RAM on a xcp-ng host, then I will have maximum of 32 VMs or more?

          Thanks,
          Dang

          1 Reply Last reply Reply Quote 0
          • olivierlambertO Online
            olivierlambert Vates 🪐 Co-Founder CEO
            last edited by

            Memory is different. You can't assign more memory than the total memory available on a host (so the sum of all VM memory <= total host memory).

            If you have 2TiB RAM per host, you could cram around <256 VMs if ALL of your VMs are using 8GiB each.

            In real life, you tend to have VMs with 2 or 4GiB RAM, some with 16GiB etc. So the total number is an average depending on your usage.

            D 1 Reply Last reply Reply Quote 0
            • D Offline
              dangVpham @olivierlambert
              last edited by

              Thanks @olivierlambert,

              Does it apply the same with the pool?

              Thanks,
              Dang

              1 Reply Last reply Reply Quote 0
              • olivierlambertO Online
                olivierlambert Vates 🪐 Co-Founder CEO
                last edited by

                A pool is mainly multiple hosts working "together" with a common configuration for network and storage. That doesn't change anything on vCPU and memory for VMs.

                D 1 Reply Last reply Reply Quote 0
                • D Offline
                  dangVpham @olivierlambert
                  last edited by

                  Thank you so much @olivierlambert,

                  That helps me alot with clarification.

                  1 Reply Last reply Reply Quote 0
                  • olivierlambertO olivierlambert moved this topic from Community on
                  • First post
                    Last post