What are the CPU Units used for in ProxMox?

Solution 1:

From the Proxmox forums:

CPU weight for a container. Argument is positive non-zero number, passed to and used in the kernel fair scheduler. The larger the number is, the more CPU time this container gets. Maximum value is 500000, minimal is 8. Number is relative to weights of all the other running containers. If cpuunits are not specified, default value of 1000 is used.

Solution 2:

May be this is right explanation. http://forum.proxmox.com/threads/889-CPU-questions?p=14601#post14601

You first need to find out how many CPU units you have in your system by running:

Code:

vzcpucheck

In my case I get:

Code:

vzcpucheck Current CPU utilization: 14000 Power of the node: 906755

Now if I give 1000 units to a VM on this node, it means that this OpenVZ VM is getting 1000 divided by 906755 and multiplied by 100 = 0.1% of the CPU time.

So if I want to give 5 percent of guaranteed time to my VPS, I would enter CPU Units = 45337