XCP-ng

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    CPU and memory overcommit (oversubscribe) support

    Compute
    2
    8
    286
    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
      Wugutech last edited by

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

      1 Reply Last reply Reply Quote 0
      • olivierlambert
        olivierlambert Vates 🪐 Admin 🧑‍💻 last edited by

        Hi,

        Short answer: CPU yes. Memory not directly.

        W 1 Reply Last reply Reply Quote 0
        • W
          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
          • olivierlambert
            olivierlambert Vates 🪐 Admin 🧑‍💻 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
              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
              • olivierlambert
                olivierlambert Vates 🪐 Admin 🧑‍💻 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
                  Wugutech @olivierlambert last edited by

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

                  Thanks!

                  1 Reply Last reply Reply Quote 0
                  • olivierlambert
                    olivierlambert Vates 🪐 Admin 🧑‍💻 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