A method and system for determining power consumption of a virtual machine is disclosed. This power consumption is then billed to a user of the virtual machine.
Method and System for Determining Power Consumption of a Virtual Machine
Disclosed is a method and system for determining exact power consumption of a virtual machine. Typically, a number of computing cycles (i.e. BogoMips) consumed over a period is used as a metric for determining power consumption of a computing system. Users may share large computing resources by partitioning the computing resources into virtual machines. However, using a number of computing cycles consumed over a period as a metric for determining the power consumption provides a rough estimate to a virtual machine's energy consumption.
In an instance of a method and system as disclosed herein, power sensors are embedded in the hardware computing resources. The power sensors monitor the power consumption of these hardware resources and saves the monitored data. This monitored data helps in determining exact power consumption of the virtual machine. In addition, a hypervisor provides information pertaining to hardware computing resources to each virtual machine mapping data. Thereafter, the monitored data provided by the power sensors is mapped with a time during which the virtual machine utilized the hardware computing resources. This mapping provides an estimate of exact power consumed by the virtual machine. Therefore, the user associated with the virtual machine is then billed for the total number of watts consumed by the user's virtual machine. Thu...