3.1.3. Configuring CPU Limits for Virtual Machines and Containers

A CPU limit indicates the maximum CPU power a virtual machine or container may get for its running processes. The container is not allowed to exceed the specified limit even if the server has enough free CPU power. By default, the CPU limit parameter is disabled for all newly created virtual machines and containers. This means that any application in any virtual machine or container can use all the free CPU power of the server.

Note

Note: You can change which virtual machine threads—both service and activity or only activity—are limited by the parameters described below. To do this, enter the prlsrvctl set --vm-cpulimit-type <full|guest> command and restart running virtual machines for the changes to take effect.

To set a CPU limit for a virtual machine or container, you can use one of these options: --cpulimit, --cpus. Both options are described below in detail.