Professional Documents
Culture Documents
Chongya Ma, Zhiying Jiang, Ke Zhang and Guangfei Zhang Zhixiong Jiang, Chunyang Lu and Yushan Cai
Institute of Computing Technology, Information Technology Center,
Chinese Academy of Sciences, China National Petroleum Corporation,
Beijing, 100190, China Beijing, 102200, China
{ machongya, jiangzhiying, zhangke, zhangguangfei}@ict.ac.cn {jiangzhixiong, luchunyang, caiyushan}@cnpc.com.cn
Abstract—With the rapid growth of power consumption and Academics have always focused on studying how to
the cooling cost in data centers, it is more and more important to measure VM power consumption in the traditional server
improve the utilization rate of power by more sophisticate power environment and also put forward a variety of models and
monitoring and management strategy. VM power consumption methods. Finer-grained VM power consumption measurement
measurement and related scheduling strategy contribute to make strategy, VM scheduling method and state monitoring method
cloud computing center more efficient on the basis of making full can help achieve highly efficient and green cloud computing
use of existing power and cooling resources. In this paper, we center by using existing resources of VM power consumption
propose methods to meter the power consumption of VM, and more accurately.
design scheduling strategies based on power consumption to
migrate VM between hosts in order to achieve power capping. There are a lot of challenges in VM power consumption
Specifically, we propose an improved VM power metering measurement, VM scheduling, and state monitoring in cloud
method, in which the power consumption of cooling fans is computing center. The problem of VM power consumption
isolated. Besides, we solve the problem of the dynamic power measurement is how to make the method more accurate.
metering where the hyper-threading of host processor is enabled. Besides, in some special cases (hyper-threading function being
In addition, we propose VM migration and scheduling strategy opened), the existing measuring methods (including the method
on the basis of power consumption. Last but not the least, we we have proposed before) is no longer valid, then how should
propose a strategy to monitor data center status, including power
we deal with it. The challenges in VM scheduling are about
consumption and resource utilization of all hosts and VMs. All
how to detect the host whose power consumption is close to the
above are demonstrated an evaluated in a prototype system.
limit, how to choose the VM that should be migrated and how
Keywords—virtual machine; power metering; power capping to choose the destination host where the VM should be
migrated.
I. INTRODUCTION The goal of our research is to carry out an improved VM
machine power metering method on the basis of VPower(a VM
With the rapid development of computer science and
machine power metering method we have proposed before).
technology, virtualization technology is more and more widely
Specifically, we isolate the power of fan and analysis it
used in data centers. Virtualization is also used in the platforms
independently. And we also analysis the VM power
of cloud computing. In the programming and test environments,
consumption when hyper-threading function of the processor is
virtualization technology has many advantages, such as having
opened. According to data of VM power consumption, we
a lower total cost, improving availability, high-efficiency, and
study the VM scheduling strategy. To be specific, through
so on; But at the same time it also brings great challenges. The
monitoring the power consumption of the host and VM in real
growing cost of power consumption and power cooling is a
time, we migrate the VM on the host whose power is close to
huge challenge which both cloud computing and data center
the limit to the host whose power is low, so as to reduce power
operators are faced with. So providing a kind of effective VM
consumption in the source host and realize VM scheduling and
power consumption measurement strategy is imminent. Many
power capping. Finally, we also monitor the VM state, such as
international famous IT companies have introduced advanced
CPU utilization, memory utilization, cache missing rate and so
technology to reduce the power consumption of the data center.
on.
For example, Intel data center management platform (Data
Center Manager, DCM) can monitor and manage the energy
consumption of data center frame and the sever group. II. RELATED WORK
In a data center, administrators use power capping to ensure In our previous work[1], a method named VPower was
power supply. Power capping provides configuration proposed. The energy consumption of a computer is divided
information of power limit for every sever so as to avoid the into two parts: static power and dynamic power. The static
excessive supply of energy and make the data center power and power is obtained when the host OS is in idle state. To get the
cooling resources under effective control. Besides. the ability dynamic power, a two dimensional lookup table(LUT) is
to monitor the real-time status of all hosts and VMs, such as constructed for each VM, which gives an empirical power
CPU and memory utilization is of great importance. value at certain CPU utilization and last-level-cache(LLC) miss
rate. Other related works, such as [2][3][4], have the similar
idea that deduce power consumption from resource usage.
All previous methods are defective in the situation that the In previous methods, the power consumption of cooling
hyper-threading of host processor is enabled, where the fans is included in the static power of host, and is always
relationship between power consumption and CPU utilization shared averagely by all VMs currently running at the host.
changes when the hyper-threading function takes effect. We However, fan speed is always varying due to varying
give a solution to this issue. Besides, the power consumption of environment, which results in a varying power consumption, as
cooling fans is separated outside the static power in traditional shown in Fig. 3. Further more, average sharing of fan power is
metering methods. not fair, because the fan power is consumed for cooling while
not all VMs produce the same heat.
Power capping are usually achieved by load balancing at
the application level, or by degradation at hardware level. VM &388WLOL]DWLRQ '\QDPLF3RZHU
'\QDPLF3RZHU:
analysis based on workload traces shown that distinct power
&38
saving could be achieved. As a major step forward to make this
practical, we identify several key issues, define corresponding
strategies, and design and implement an prototype system
finally, which gives a good demonstrate how VM power
metering could play a part in power capping.
7RWDO&RXQWRI90
III. VIRTUAL MACHINE POWER METERING Fig. 2. Different dynamic power per VM at the same CPU utilization.
The energy consumption of a computer could be divided
into two parts: static power and dynamic power. The static
power is consumed whenever a computer is powered on, and
+RVW3RZHU:
the dynamic power is consumed when a computer executes
instructions, accesses memory or performs other operations.
A. Challenges
Dynamic power metering when hyper-threading enabled in
host processor. )DQ6SHHGNUSP
PVM ( i ) _ const PHost _ const / N VM (2)
To address the challenge that inferring fan power from fan
speed, we construct a one dimensional lookup table (LUT) for
each host which gives an empirical power value at certain fan
speed rate as shown in equation (3). The LUT for a host,
&388WLOL]DWLRQ
LHost_fan, is constructed when any application of the host has not
been deployed. All hosts that have the same configuration use
Fig. 1. Host dynamic power at different CPU utilization.
the same lookup table. All VMs shares the fan power of the
host where the VMs run on according to the dynamic power of
The traditional methods of dynamic power metering does each VM, as shown in equation (4).
not apply, which deduce power consumption from resource
utilization. As shown in Fig. 2, the dynamic power per VM PHost _ fan LHost _ fan ( S Host _ fan ) (3)
becomes less when the number of running VMs increases.
Varying power of fans
PVM ( i ) _ dynamic condition of determining whether the current power of a host
PVM ( i ) _ fan PHost _ fan u NVM (4) (P) is close to the limit is as follows:
¦ PVM ( n ) _ dynamic
n 1
P t Pth Pmin ( Pmax Pmin ) u T % (7)
We get the overall power of a host at different fan speed (2) Determine which VM to migrate out
under the condition of no-load and find the overall power at the
When the overall power of a host at the current time meets
highest fan speed of the host. The highest power of fan can be
or exceeds the detection threshold, a VM on the host should be
known by fan product manuals. At this moment, we can get
migrated from the host to some other host so as to ensure
the constant power of the host by subtracting the highest power
power capping. We select the VM that has the minimum
of fan from the overall power of the host at the highest fan
dynamic power and after migrating which, we can make the
speed. In addition, fan power of the host at different fan speed
power of the host reduced below the threshold value. In this
can also be got by subtracting the constant power from the
way, we can select the VM which should be migrated.
overall power of the host at different fan speed under the
condition of no-load. In this way, we can construct a one The reason of selecting the VM with the minimum dynamic
dimensional lookup table (LUT) for each host. power to migrate is that it is the fastest to migrate. As shown in
Fig. 4, for the VMs that have the same configuration (having
Under the condition of the hyper-threading function being
same number of logical cores and same memory capacity), the
opened, the utilization rate of processor is no longer linear with
smaller the dynamic power of a VM, the shorter the time
the power consumption of it. The existing measuring methods
needed for migration.
(including the method we have proposed before) is no longer
valid. In this situation, all VMs can share the estimated
/LYH0LJUDWLRQ7LPHV
dynamic power of the host in accordance with a kind of
proportion as shown in the equation (5).
P 'VM ( i ) _ dynamic
PVM ( i ) _ dynamic PHost _ dynamic u NVM (5)
¦P
n 1
'
VM ( n ) _ dynamic
90'\QDPLF3RZHU
CentOS 6.2 x86_64 with KVM hypervisor. One of the three
servers as the scheduler and the Ganglia central node, the other
tow serve as host machine, on which six VMs (vm-
101/102/103/108/109/110) are placed. Besides, another
machine (not shown) with four 1TB disks acts as an NFS
Server which is used to store VM images. 7LPHV
+RVW3RZHU:
7LPHV
VI. CONCLUTION
Fig. 5. Architecture of prototype system.
We proposed an improved metering method for VM power
consumption and presented scheduling strategies for doing live
migration of VMs based on power consumption to achieve
power capping. A prototype system was introduced and
experiments were carried out. Experimental result shows that
our method gives accurate power consumption of VMs and
scheduling based on power consumption is able to achieve
power capping effectively.