Patent ID: 7971078
Filing Date: 2011-06-28
Classification: G06F

Abstract:
1. A method for measurement-based power and energy accounting for virtual machines executing on a hosting device said method comprising: determining an energy for the hosting device during a first time interval and a second time interval; determining a difference in energy between said first and second time intervals; partitioning said hosting device into a plurality of regions; determining a distribution of said virtual machines within corresponding regions among said hosting device; determining an energy for each of said plurality of regions by distributing the determined difference in energy among said plurality of regions; selecting a model for determining an energy of resources operating within a corresponding virtual machine within a corresponding one of said regions; determining a level of activity of each of said resources in each virtual machine within a corresponding one of said regions, said level of activity being determined based on at least one of: an instruction completion rate and a period of time said resources in said virtual machine are active; utilizing said selected model to determine an energy based on said determined level of activity of each resource in each corresponding virtual machine within a corresponding one of said plurality of regions, wherein energy associated with resources shared among an plurality of virtual machines are allocated to a corresponding one of said virtual machines based on a number of requests made to said shared resource by said corresponding one of said virtual machines; determining a total energy for each of said virtual machines in corresponding regions based on a level of activity of said virtual machine and the energy associated with the corresponding shared resources; determining a power for each of said virtual machines within a corresponding region by dividing the determined total energy within a corresponding region by a length of the time interval; and outputting at least of said determined energy and said determined power of each virtual machine in each region.