3.1.1. Configuring CPU Units

CPU units define how much CPU time one virtual machine or container can receive in comparison with the other virtual machines and containers on the hardware node if all the CPUs of the hardware node are fully used. For example, if the container MyCT and the virtual machine MyVM are set to receive 1000 CPU units each and the container MyCT2 is configured to get 2000 CPU units, the container MyCT2 will get twice as much CPU time as the container MyCT or the virtual machine MyVM if all the CPUs of the Node are completely loaded.

By default, each virtual machine and container on the Node gets 1000 CPU units. You can configure the default setting using the prlctl set command. For example, you can run the following commands to allocate 2000 CPU units to the container MyCT and the virtual machine MyVM:

# prlctl set MyCT --cpuunits 2000
# prlctl set MyVM --cpuunits 2000