Patent ID: 8296761

Claim:
A virtual machine system comprising: a plurality of LPARs configured on a physical machine, each of the LPARs having virtual hardware to be emulated by a control program for controlling an assignment of a hardware resource and a guest OS for controlling the virtual hardware; means running on the guest OS for measuring a CPU busy ratio and reflecting the measured CPU busy ratio to a busy ratio of a physical CPU for each of the guest OS; and a display unit for displaying the busy ratio of the physical CPU used by each of the LPARs at a predetermined interval, wherein: in order to detect a busy ratio of a logical CPU provided in any one of the LPARs at a predetermined sampling timing, said measuring means detects that an idle time exists in the LPAR when the physical CPU is not assigned to any of the LPARs for a time period between timings of the two consecutive detections of the busy ratio of the logical CPU; and the busy ratio of the physical CPU is calculated using the idle time as an idle time of the CPU provided in the LPAR, and the calculated busy ratio of the physical CPU is displayed, wherein: an elapsed time counter is provided in a hypervisor used as the control program for counting an elapsed time; an interface is provided to read the elapsed time counter on the guest OS running on the LPAR; and a content of the elapsed time counter is acquired under execution of said measuring means, and wherein said measuring means: acquires a content of the elapsed time counter at a timing predetermined by a time interrupt, calculates a difference between the lastly acquired value of the elapsed time counter and the previously acquired value of the elapsed time counter, reflects the calculated difference to a variable obtained by accumulating the number of sampling timings expected to occur due to the fact that the physical CPU is not assigned to the LPAR in which the measuring means is provided, calculates each of variables to be displayed to ensure that the variables are changed, and displays results of the calculations on the display unit as CPU busy ratios in the physical machine.