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

    CPU and memory overcommit (oversubscribe) support

    Scheduled Pinned Locked Moved Compute
    8 Posts 2 Posters 1.7k Views 1 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.
    • W Offline
      Wugutech
      last edited by

      Is XCP-NG support CPU and memory RAM over commit?

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

        Hi,

        Short answer: CPU yes. Memory not directly.

        W 1 Reply Last reply Reply Quote 0
        • W Offline
          Wugutech
          last edited by

          Hi @olivierlambert

          Could you point out the doc/reference/info about it?
          Especially CPU,

          Thanks!

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

            Xen is scheduling for you, so as long one VM doesn't have more vCPU than physical core available on one machine, you can do whatever you like.

            1 Reply Last reply Reply Quote 0
            • W Offline
              Wugutech
              last edited by Wugutech

              last time I did power up a lot of VMs, if I remember it, Xen didnt allow it because I ran out of vCPU,

              Am I wrong maybe?

              So no need to do anything right, just turn it on, it will work?

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

                Yes, there's no problem to have in total more vCPUs used than cores.

                It's just that you can't have one VM using more vCPUs than cores on the machine. There's nothing to do, Xen handles this for you.

                1 Reply Last reply Reply Quote 0
                • W Offline
                  Wugutech @olivierlambert
                  last edited by

                  @olivierlambert
                  What to do with RAM, how we can oversubscribe it?

                  Thanks!

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

                    Short answer: you can't.
                    Long answer: you can "cheat" with dynamic memory.

                    But in general, I would avoid it.

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post