By default, Virtual Server will treat all virtual machines (VMs) with equal priority. In production environments, however, some VMs are more important than others. You will want to let Virtual Server know which VMs should get preference.
Virtual Server offers two main methods for managing CPU utilization per VM. To access the settings, click on "Resource Allocation" in the Virtual Server section of the Administration Web site. Figure 1 provides a view of the default resource allocations for VMs.
[IMAGE]
The initial display might seem simple enough, but there's a lot of potential power here. Let's look at the two main ways in which you can configure CPU settings.
Weight-based resource allocation
The simplest way to assign priorities to your VMs is to assign "weights" to them. When doling out CPU resources, Virtual Server will give preference to each VM based on its relative weight setting. The values can range from 1 (the lowest priority) to 10,000 (highest priority).
By default, all VMs will have a relative weight setting of 100. Since the values are relative, you can set up your own conventions, such as using only values in the range of 1 to 10 or 1 to 100. For example, if you want an important VM to have twice the priority of the others, you can set it to a weight of 200 (assuming that the other VMs are using the default weight of 100).
The preferences will kick in whenever CPU resources are limited. Weight-based resource allocation is the quickest and easiest way to prioritize your workloads while ensuring that all CPU resources are still available for use.
Constraint-based resource allocation
In some cases, you'll want more granular control over how CPU resources are managed. That's where cons
To continue reading for free, register below or login
Requires Membership to View
To read more you must become a member of SearchServerVirtualization.com
');
// -->
traint-based resource allocation comes in. This method is a bit more complicated (and you can make CPU resources unavailable if you don't understand the settings). But it can be very useful in production environments. You can specify two constraint types as percentages:
By default, the reserved capacity is set to 0%, and the maximum capacity at 100% for all VMs. This effectively disables constraint-based resource allocation. Both settings can be defined as either a percentage of one CPU, or a percentage of all CPU resources on the system
The Administration Web site automatically calculates the amount of resources left to allocate and shows the current CPU utilization per VM. Figure 2 shows an example of configured values.
One other helpful feature: Resource allocation settings can be changed dynamically while VMs are running. That can help troubleshoot problems with, for example, a VM that is hanging and trying to use all of the available CPU time.
Controlling virtualization mindshare
As you can see, you can tune Virtual Server's CPU resource referee in several ways. By letting Virtual Server know the relative importance of your VMs, you can help the virtualization layer make better decisions about how to ration resources.
Next on our hit-list for performance optimization will be managing virtual hard disks.
Rate this Tip
To rate tips, you must be a member of SearchServerVirtualization.com. Register now
to start rating these tips. Log in if you are already a member.
DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.