Installation guide
C H A P T E R 1 2 VMware ESX Server Resource Management
395
3. Click Edit. The CPU Resource Settings page appears.
4. Enter the desired settings, then click OK.
You must log in as root in order to change resource management settings using
either the management interface or procfs.
Managing CPU Resources from the Service Console
You can also manage CPU resources by editing the virtual machine configuration
(.vmx) file or using procfs.
Editing the Virtual Machine Configuration File
The following configuration options enable you to manage CPU resources.
sched.cpu.shares = <n>
This configuration file option specifies the initial share allocation for a virtual machine
to <n> shares. The valid range of numerical values for <n> is 1 to 100000. You may
also use the special values low, normal and high. These values are automatically
converted into numbers, through the configuration options
CpuSharesPerVcpuLow, CpuSharesPerVcpuNormal and
CpuSharesPerVcpuHigh, described in the next section, Using procfs on
page 397.
If the number of CPU shares is not specified, the default allocation is normal, that by
default, is set to 1000 shares per virtual CPU. The default allocation for a uniprocessor
virtual machine is 1000 shares, or 2000 shares for a dual-virtual CPU (SMP) virtual
machine.