Host Power Management in VMware vsphere 5



Similar documents
Host Power Management in VMware vsphere 5.5

vsphere Resource Management

Kronos Workforce Central on VMware Virtual Infrastructure

vsphere Resource Management Guide

vsphere Resource Management

How To Save Power On A Server With A Power Management System On A Vsphere Vsphee V (Vsphere) Vspheer (Vpower) (Vesphere) (Vmware

Power efficiency and power management in HP ProLiant servers

VMware vsphere Storage Appliance 5.1.x Brownfield Deployments. TECHNICAL MARKETING DOCUMENTATION v 1.0

VMware Virtual SAN Backup Using VMware vsphere Data Protection Advanced SEPTEMBER 2014

Oracle Database Scalability in VMware ESX VMware ESX 3.5

Management of VMware ESXi. on HP ProLiant Servers

Microsoft Office SharePoint Server 2007 Performance on VMware vsphere 4.1

Server and Storage Sizing Guide for Windows 7 TECHNICAL NOTES

How System Settings Impact PCIe SSD Performance

Microsoft Exchange Server 2007

Performance of Virtualized SQL Server Based VMware vcenter Database

Performance Characteristics of VMFS and RDM VMware ESX Server 3.0.1

vsphere Resource Management

ClearPath MCP Software Series Compatibility Guide

Performance Evaluation of VMXNET3 Virtual Network Device VMware vsphere 4 build

Managing Multi-Hypervisor Environments with vcenter Server

Getting Started with ESXi Embedded

Ready Time Observations

Installing and Configuring vcenter Multi-Hypervisor Manager

Evaluating Intel Virtualization Technology FlexMigration with Multi-generation Intel Multi-core and Intel Dual-core Xeon Processors.

Scalability Tuning vcenter Operations Manager for View 1.0

Managing Capacity Using VMware vcenter CapacityIQ TECHNICAL WHITE PAPER

VMware vcenter Update Manager Performance and Best Practices VMware vcenter Update Manager 4.0

What s New in VMware vsphere 4.1 VMware vcenter. VMware vsphere 4.1

VMware vcenter Update Manager Administration Guide

The VMware Reference Architecture for Stateless Virtual Desktops with VMware View 4.5

Performance brief for IBM WebSphere Application Server 7.0 with VMware ESX 4.0 on HP ProLiant DL380 G6 server

Configuration Maximums VMware vsphere 4.0

VMware vshield App Design Guide TECHNICAL WHITE PAPER

Power Efficiency Comparison: Cisco UCS 5108 Blade Server Chassis and Dell PowerEdge M1000e Blade Enclosure

VMware vsphere 4. Pricing, Packaging and Licensing Overview W H I T E P A P E R

Top 10 Reasons to Virtualize VMware Zimbra Collaboration Server with VMware vsphere. white PAPER

Voice over IP (VoIP) Performance Evaluation on VMware vsphere 5

Using esxtop to Troubleshoot Performance Problems

VMware vsphere 5.0 Evaluation Guide

Leveraging NIC Technology to Improve Network Performance in VMware vsphere

WHITE PAPER. VMware vsphere 4 Pricing, Packaging and Licensing Overview

Running VirtualCenter in a Virtual Machine

Agenda. Context. System Power Management Issues. Power Capping Overview. Power capping participants. Recommendations

VirtualCenter Database Performance for Microsoft SQL Server 2005 VirtualCenter 2.5

VMware vcenter Server 6.0 Cluster Performance

Understanding Data Locality in VMware Virtual SAN

VMware vsphere 4.1. Pricing, Packaging and Licensing Overview. E f f e c t i v e A u g u s t 1, W H I T E P A P E R

VMware vcenter Server Performance and Best Practices

Analysis of VDI Storage Performance During Bootstorm

vcloud Suite Licensing

Performance of VMware vcenter (VC) Operations in a ROBO Environment TECHNICAL WHITE PAPER

Multi-core and Linux* Kernel

Improving Scalability for Citrix Presentation Server

DELL. Virtual Desktop Infrastructure Study END-TO-END COMPUTING. Dell Enterprise Solutions Engineering

Intel 64 and IA-32 Architectures Software Developer s Manual

Installing and Administering VMware vsphere Update Manager

White Paper on Consolidation Ratios for VDI implementations

Scaling in a Hypervisor Environment

Legacy Host Licensing with vcenter Server 4.x ESX 3.x/ESXi 3.5 and vcenter Server 4.x

vsphere Client Hardware Health Monitoring VMware vsphere 4.1

MS Exchange Server Acceleration

Deploying Microsoft Exchange Server 2007 mailbox roles on VMware Infrastructure 3 using HP ProLiant servers and HP StorageWorks

Oracle Database Solutions on VMware High Availability. Business Continuance of SAP Solutions on Vmware vsphere

VMware Auto Deploy GUI. VMware Auto Deploy Gui 5.0 Practical guide

Multipathing Configuration for Software iscsi Using Port Binding

What s New in VMware vsphere 4.1 Storage. VMware vsphere 4.1

Monitoring Databases on VMware

Enabling VMware Enhanced VMotion Compatibility on HP ProLiant servers

VMware vsphere 5.5: Install, Configure, Manage Lab Addendum. Lab 4: Working with Virtual Machines

Oracle Databases on VMware High Availability

vrealize Operations Manager User Guide

WHITE PAPER. VMware Infrastructure 3 Pricing, Packaging and Licensing Overview

How to Create a Simple Content Management Solution with Joomla! in a vcloud Environment. A VMware Cloud Evaluation Reference Document

HP PCIe IO Accelerator For Proliant Rackmount Servers And BladeSystems

How to Create an Enterprise Content Management Solution Based on Alfresco in a vcloud Environment. A VMware Cloud Evaluation Reference Document

How to Create a Flexible CRM Solution Based on SugarCRM in a vcloud Environment. A VMware Cloud Evaluation Reference Document

Global Financial Management Firm Implements Desktop Virtualization to Meet Needs for Centralized Management and Performance

Configuring Single Sign-on from the VMware Identity Manager Service to Amazon Web Services

Technical Paper. Moving SAS Applications from a Physical to a Virtual VMware Environment

QNAP in vsphere Environment

How to Use a LAMP Stack on vcloud for Optimal PHP Application Performance. A VMware Cloud Evaluation Reference Document

White Paper. Recording Server Virtualization

What s New in VMware vsphere Flash Read Cache TECHNICAL MARKETING DOCUMENTATION

Configuration Maximums VMware Infrastructure 3

vsphere Monitoring and Performance

Configuration Maximums VMware vsphere 4.1

VMware vcenter 4.0 Database Performance for Microsoft SQL Server 2008

How to Create a Multi-user Content Management Platform with Drupal in a vcloud Environment. A VMware Cloud Evaluation Reference Document

Storage I/O Control Technical Overview and Considerations for Deployment. VMware vsphere 4.1

How To Use A Vmware View For A Patient Care System

Balancing CPU, Storage

Introduction to VMware EVO: RAIL. White Paper

Dialogic PowerMedia XMS

VMware vsphere 5.0 Evaluation Guide

Best Practices. Server: Power Benchmark

Virtualization Technologies and Blackboard: The Future of Blackboard Software on Multi-Core Technologies

Microsoft Exchange Server 2007 and Hyper-V high availability configuration on HP ProLiant BL680c G5 server blades

IOS110. Virtualization 5/27/2014 1

Setup for Failover Clustering and Microsoft Cluster Service

Transcription:

in VMware vsphere 5 Performance Study TECHNICAL WHITE PAPER

Table of Contents Introduction.... 3 Power Management BIOS Settings.... 3 Host Power Management in ESXi 5.... 4 HPM Power Policy Options in ESXi 5.... 4 Defining Your Own Power Policy in ESXi 5.... 5 Esxtop and HPM.... 6 Power Savings Evaluation... 8 Experimental Environment and Results.... 8 Best Practices... 9 References.... 9 About the Author... 9 Acknowledgements... 9 TECHNICAL WHITE PAPER / 2

Introduction Recent increases in density and computing needs in datacenters are straining power and cooling capacities, dictating the need for host power management. Managing the energy consumed can lower operating costs and reduce cooling requirements. vsphere Host Power Management (HPM) is a technique that saves energy by placing certain parts of a computer system or device into a reduced power state when the system or device is inactive or does not need to run at maximum speed. The term host power management is not the same as vsphere Distributed Power Management (DPM) 1, which redistributes virtual machines among physical hosts in a cluster to enable some hosts to be powered off completely. Host power management saves energy on hosts that are powered on. It can be used either alone or in combination with DPM. vsphere handles power management by utilizing Advanced Configuration and Power Interface (ACPI) performance and power states. In the VMware vsphere 5 release, the default power management policy is based on dynamic voltage and frequency scaling (DVFS). This technology utilizes the processor s performance states and allows some power to be saved by running the processor at a lower frequency and voltage while still leaving enough idle CPU time to maintain acceptable performance levels in most environments. Power Management BIOS Settings VMware ESXi includes a full range of host power management capabilities in the software. These can save power when an ESXi host is not fully utilized. You should configure your BIOS settings to allow ESXi the most flexibility in using the power management features offered by your hardware and then make your power management choices within ESXi. The following are a few important points to keep in mind: Some systems have Processor Clocking Control (PCC) technology, which enables ESXi 5.0 to manage power on the host system indirectly, in cooperation with the BIOS. This setting is usually located under the Advanced Power Management options in the BIOS of supported HP systems and is usually called Collaborative Power Control. It is enabled by default. With this technology, ESXi does not manage P-states directly. It instead cooperates with the BIOS to determine the processor clock rate. Alternatively, by setting power management in the BIOS to OS control mode or the equivalent, you can enable ESXi to control CPU power-saving features directly. For example, on an HP ProLiant DL785 G6 AMD system, go to System Options Power Regulator for ProLiant and then select OS Control Mode. On a Dell PowerEdge R710 Intel system, go to the Power Management option and set the Power Management suboption to OS Control. Even if you don t intend to use these power-saving features, ESXi provides a convenient way to manage them. C1E is a hardware-managed state: ESXi puts the CPU into the C1 state. The CPU hardware can determine, based on its own criteria, to deepen the state to C1E. Availability of the C1E halt state typically provides a reduction in power consumption, with little or no impact on performance. When Turbo Boost is enabled, the availability of C1E can sometimes even increase the performance of certain single-threaded workloads. Therefore, you should enable C1E in the BIOS. However, for a very few multithreaded workloads that are highly sensitive to I/O latency, C1E can reduce performance. In these cases, you might obtain better performance by disabling C1E in the BIOS, if that option is available. C-states deeper than C1/C1E (that is, C3 and C6) are managed by software and enable further power savings, but with an increased chance of performance impact. However, you should enable all C-states in the BIOS and then use vsphere host power management to control their use. TECHNICAL WHITE PAPER / 3

Host Power Management in ESXi 5 vsphere HPM in ESXi 5 is designed to reduce the power consumption of ESXi hosts. vsphere DPM approaches the energy efficiency problem from a different angle. It tries to completely power off hosts by consolidating running virtual machines on the smallest possible set of hosts. Then HPM attempts to reduce power consumption per host. HPM and DPM are complementary; each one can save power. And they work well together, saving more power than when either is used alone. For more information about DPM, see VMware Distributed Power Management Concepts and Use. 2 HPM Power Policy Options in ESXi 5 ESXi 5 offers four different power policies that are based on using the processor s ACPI performance states, also known as P-states, and the processor s ACPI power states, also known as C-states. P-states can be used to save power when the workloads running on the system do not require full CPU capacity. C-states can help save energy only when CPUs have significant idle time; for example, when the CPU is waiting for an I/O to complete. ESXi 5 offers the following power policy options: High Performance: This power policy maximizes performance, using no power management features. It keeps CPUs in the highest P-state at all times. It uses only the top two C-states (running and halted), not any of the deep states (for example, C3 and C6 on the latest Intel processors). High performance is the default power policy for ESX/ESXi 4.0 and 4.1. Balanced: This power policy is designed to reduce host power consumption while having little or no impact on performance. The balanced policy uses an algorithm that exploits the processor s P-states. Balanced is the default power policy for ESXi 5. Low Power: This power policy is designed to more aggressively reduce host power consumption, through the use of deep C-states, at the risk of reduced performance. Custom: This power policy starts out the same as balanced, but it allows individual parameters to be modified. If the host hardware does not allow the operating system to manage power, only the Not Supported policy is available. (On some systems, only the High Performance policy is available.) To change power policies using the vsphere Client: 1. Select the host from the inventory and click the Configuration tab as shown in Figure 1. 2. Under Hardware, select Power Management. 3. Click Properties on the right side of the screen. 4. The Edit Power Policy Settings dialog box appears, as shown in Figure 2. Figure 1. Configuration Tab TECHNICAL WHITE PAPER / 4

Figure 2. Power Policy Settings Defining Your Own Power Policy in ESXi 5 You can define your own policy by selecting Custom. When you use the custom policy for host power management, ESXi bases its power management policy on the values of several advanced configuration parameters. 1. In the vsphere Client inventory, select the host and click the Configuration tab. 2. Under Software, select Advanced Settings. 3. Click Power in the left pane. 4. In the right pane, you can edit the power management parameters that affect the Custom policy. Power management parameters that affect the custom policy have descriptions that begin with the phrase, In custom policy. All other power parameters affect all other power management policies. PARAMETER DESCRIPTION Power.UsePStates Power.MaxCpuLoad Power.MinFreqPct Power.UseStallCtr Power.TimerHz Power.UseCStates Power.CStateMaxLatency Use ACPI P-states to save power when the processor is busy. Use P-states to save power on a CPU only when the CPU is busy for less than the given percentage of real time. Do not use any P-states slower than the given percentage of full CPU speed. Use a deeper P-state when the processor is frequently stalled waiting for events such as cache misses. Controls how many times per second ESXi reevaluates which P-state each CPU should be in. Use deep ACPI C-states (C2 or below) when the processor is idle. Do not use C-states whose latency is greater than this value. TECHNICAL WHITE PAPER / 5

PARAMETER DESCRIPTION Power.CStateResidencyCoef Power.CStatePredictionCoef Power.PerfBias When a CPU becomes idle, choose the deepest C-state whose latency multiplied by this value is less than the host s prediction of how long the CPU will remain idle. Larger values make ESXi more conservative about using deep C-states; smaller values are more aggressive. A parameter in the ESXi algorithm for predicting how long a CPU that becomes idle will remain idle. Changing this value is not recommended. Performance Energy Bias Hint (Intel only). Sets an MSR on Intel processors to an Intel-recommended value. Intel recommends 0 for high performance, 6 for balanced, and 15 for low power. Other values are undefined. Table 1. Power Management Parameters Esxtop and HPM The esxtop power screen (obtained by pressing the p key) shows power information for the ESXi host. The following are some details of interest, shown in Figure 3: Power usage (second row): This is obtained from a sensor in the host s power supply. If the machine does not have a power sensor, or ESXi is not capable of reading the sensor on this specific type of machine, zero is shown. Frequency of each P-state (third row): The screenshot was obtained on an idle ESX host, which had an Intel Xeon Processor X5570 @ 2.93GHz with 16 logical processors. Which P-states are voted for by the ESXi algorithm (%P0-%P11 in the table heading): The screenshot shows 12 different P-states, P0 to P11, with P11 having the lowest clock frequency. Because the system is idle, all the cores are in the slowest P-state. On current systems, there are P-state dependencies across logical processors. Each logical processor can vote for a different P-state, but the entire core or entire socket must be in the same P-state, so the hardware selects the shallowest state that any of its logical processors are currently voting for. NOTE: When PCC is enabled, the power screen will show only two P-state columns, %P0 and %P1. %P0 is the time when ESXi voted for full speed; %P1 is anything less than full speed. %USED and %UTIL: Some of the esxtop counters can be affected by HPM. For example, %UTIL will show higher values for the same workload if the CPU is operating at a lower frequency. %UTIL is the percentage of real time that the logical CPU has been nonidle; %USED is the percentage of its nominal speed that the logical CPU has been operating at (with idle time counted as operating at zero speed). So %USED can be greater than 100 if the CPU has been in turbo mode, and it can be less than %UTIL in P-states slower than P0. This phenomenon can also happen when the BIOS is handling power management instead of ESXi. Be careful in interpreting these values when HPM is being used. TECHNICAL WHITE PAPER / 6

Figure 3. Esxtop Power Screen ESXi can compute an estimate of power usage for each virtual machine (in fact, for each process running on the ESXi host). To enable this feature, set the advanced configuration option /config/power/intopts/chargevms to 1. To view the per virtual machine power consumption in esxtop, press c to show the CPU screen, and then enable the power column on this screen by typing f, J, and then Enter. Figure 4 shows three virtual machines (VM1, VM2 and VM3) running on ESXi. VM1 and VM3 are not running any workload, which is why the power usage is low, 1W and 4W respectively. VM2 is running some workload and therefore is showing a power consumption of 112W. You will see a substantial amount of power charged to the idle process. This is the baseline power that is used by the machine even when no virtual machines are running. This per virtual machine power usage estimation feature, however, is still considered experimental in ESXi 5. Figure 4. Power Usage Estimation per Virtual Machine Screen TECHNICAL WHITE PAPER / 7

Power Savings Evaluation In this section, the microbenchmark CPU load generator, which simulates application loads running at different levels, is used to evaluate power savings. Experimental Environment and Results ESXi 5 was installed on a Dell PowerEdge R710 system with Intel Xeon Processor X5570 @ 2.93GHz with 16 logical processors. BIOS power management was set to OS Controlled Mode. A GW Instek GPM-8212-RS232 power meter was used to measure system power consumption. Figure 5. Power Consumption at Different Load Levels Under High, Balanced and Low Policies Four different load configurations are shown in Figure 5. Load-0% is no load, load-10% means the workload utilizes 10% of the CPU ( AVG PCPU UTIL (%) counter in esxtop), and so on. These are typical load levels in datacenter hosts. The graph shows three different regions, high, balanced and low, as previously described in HPM Power Policy Options in ESXi 5. At load-0%, there is no power savings by going from high to balanced, because C1E is already putting the cores in a lower frequency state. However, about 13% power is saved when the low policy is enabled. For load-20%, 13% power savings is observed when the balanced policy is enabled, and an additional 5% is saved when low policy is enabled. For load-30%, spikes are observed in the balanced policy because of frequent jumps between various p-states. 11% power is saved in the balanced policy, with an additional 12% in the low policy. For load-60%, there is no savings in the balanced policy but an average of 12% savings with the low policy. TECHNICAL WHITE PAPER / 8

Best Practices Based on the power management concepts and performance evaluation results presented in the previous sections, the following are some best practices to adopt when using HPM: Configure your BIOS settings to allow ESXi the most flexibility in using the power management features offered by your hardware. Use PCC on hardware where it is available; otherwise, select the OS Control mode under the BIOS power management options. To achieve the best performance per watt for most workloads, leave the power policy setting at the default, which is Balanced. For applications that require maximum performance, switch the power policy to High Performance. This includes latency-sensitive applications that must execute within strict constraints on response time (also see note). For maximum power savings, switch the power policy to Low Power. NOTE: Performance-sensitive applications should be tested to study the impact of the power settings on performance and power savings achieved. References 1. VMware Distributed Power Management Concepts and Use. VMware, Inc., 2009. http://www.vmware.com/files/pdf/dpm.pdf. 2. Advanced Configuration and Power Interface Specification, Revision 4.0a. Hewlett-Packard Corporation, Intel Corporation, Microsoft Corporation, Phoenix Technologies Ltd., Toshiba Corporation, 2010. http://www.acpi.info/. 3. vsphere Resource Management Guide. VMware, Inc., 2009. http://www.vmware.com/pdf/vsphere4/r40/vsp_40_resource_mgmt.pdf. About the Author Qasim Ali works at VMware with the Performance Engineering team. He earned his PhD from Purdue University in August 2009. His interests include resource management, CPU and memory scaling and monitor performance. Acknowledgements The author thanks all members of the VMware Performance Engineering team who contributed to and reviewed this paper. He also thanks Tim Mann from the vsphere Power Management Development team for providing technical background for this paper. TECHNICAL WHITE PAPER / 9

VMware, Inc. 3401 Hillview Avenue Palo Alto CA 94304 USA Tel 877-486-9273 Fax 650-427-5001 www.vmware.com Copyright 2010 VMware, Inc. All rights reserved. This product is protected by U.S. and international copyright and intellectual property laws. VMware products are covered by one or more patents listed at http://www.vmware.com/go/patents. VMware is a registered trademark or trademark of VMware, Inc. in the United States and/or other jurisdictions. All other marks and names mentioned herein may be trademarks of their respective companies. Item No: VMW-WP-HOST-MGMT-USLET-101-WEB