According to the libvirt documentation:
A VM configured with value 2048 will get twice as much CPU time as a VM configured with value 1024.
I have also heard it said that a VM with 2 vCPUs would have twice as much CPU time as a VM with one vCPU. Is this correct? And then, does the "shares" element take that into account as well?
For example, which of these two scenarios would be correct?
- 1 vCPU x 10 Shares = 10 Units of CPU time
- 2 vCPU x 10 Shares = 20 Units of CPU time
- 1 vCPU x 20 Shares = 20 Units of CPU time
- 2 vCPU x 20 Shares = 40 Units of CPU time
Or:
- 1 vCPU x 10 Shares = 10 Units of CPU time
- 2 vCPU x 10 Shares = 10 Units of CPU time
- 1 vCPU x 20 Shares = 20 Units of CPU time
- 2 vCPU x 20 Shares = 20 Units of CPU time
Thank you for reading!