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

    VM limits - CPU Limits

    Scheduled Pinned Locked Moved Compute
    5 Posts 3 Posters 1.4k Views 3 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
      dpearceFL
      last edited by

      CPU Limits has a #/# input. The second number appears to be the maximum number of vCPUs allocated. The first number appears to be the number of vCPUs the VM starts with.

      Even if I hammer the CPU in the VM with "stress -c 6", lscpu only shows 1 CPU.

      I can't find any documentation explaining this setting. What does this setting mean?

      1 Reply Last reply Reply Quote 0
      • D Offline
        dpearceFL
        last edited by

        BTW: Guest tools are installed in the VM.

        1 Reply Last reply Reply Quote 0
        • M Offline
          mjtbrady
          last edited by

          I couldn't find any documentation on this either. This is my understanding based on some experimenting. Someone correct me if I am wrong on any thing.

          The first number is the number of vCPUs that the VM currenty has or will be started with. This can be changed while the VM is running. vCPUs will be hot plugged/unplugged. You can run top (not htop) while doing this to see the number of vCPUs changing and/or look at dmesg output. This can be changed manually in XO or by an XO job on a schedule.

          The second number is the maximum number of vCPUs that the VM is allowed. This can only be changed when the VM is not running.

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

            That's correct: vCPU on boot and while the VM is running vs Max vCPU (hard limit, only editable while the VM is off).

            1 Reply Last reply Reply Quote 0
            • D Offline
              dpearceFL
              last edited by

              Thank you all for this wonderful information.

              1 Reply Last reply Reply Quote 0
              • A Andrew referenced this topic on
              • First post
                Last post