Virtual computer control system effectively using a CPU with predetermined assignment ratios of resources based on a first and second priority mechanism
First Claim
1. A central processing unit control system for use in a virtual computer system having an actual computer comprising a plurality of actual central processing units, a control program for operating a plurality of virtual computers in said actual computer, a central processing unit assignment information area for storing a central processing unit resource assignment ratio of each of said virtual computers on the basis of running time of said actual central processing units to be assigned, and a ready queue for storing pointer information on said virtual computers, each piece of said pointer information indicating the correspondence to said central processing unit assignment information area in priority order of central processing unit resource assignment for said virtual computers, wherein said control program assigns said actual central processing units to said virtual computers according to the order specified by said pointer information in said ready queue, and each of said virtual computers is repeatedly operated according to a predetermined assignment ratio indicated in said central processing unit assignment information area, said central processing unit control system comprising:
- operation counter means, provided in said central processing unit assignment information area, for storing, for each of said virtual computers, the number of successful assigning operations according to a predetermined central processing unit resource assignment ratio; and
assignment order control means, provided in said control program, forchecking the number of the successful assigning operations of each virtual computer stored by said operation counter means and the central processing unit resource assignment ratio for each virtual computer each time the central processing unit resource is assigned,arranging the pointer information on said ready queue in order from a largest central processing unit resource assignment ratio to the smallest central processing unit resource assignment ratio when the numbers of successful assigning operations are same for each virtual computer, andarranging, when the number of successful assigning operations are not the same for each virtual computer, the pointer information on said ready queue in order from a first group to a last group, where the first group contains virtual computers having the highest central processing unit resource assignment ratio and being the same for each virtual computer in the group, and the last group contains virtual computers having the lowest central processing unit resource assignment ratio and being the same for each virtual computer in the group, groups existing between the first group and the last group having successively lower central processing unit resource assignment ratios and each virtual computer in each group having the same central processing unit resource assignment ratio as the other virtual computers in the group.
1 Assignment
0 Petitions
Accused Products
Abstract
The system of controlling CPUs in a virtual computer system in which virtual computers are operated by assigning CPU resources to a plurality of virtual computers (guest VMs) according to optional ratios aims at effectively utilizing actual CPUs with predetermined assignment ratios duly maintained even if the CPU assignment ratios are unequally set among a plurality of guest VMs. The present invention comprises an operation counter for storing the number of times of operations in which each guest VM is successfully assigned CPU resources according to a predetermined assignment ratio, and an assignment order control unit for arranging pointer information on guest VMs in order of number of times of operations indicated by the operation counter, the pointer information being arranged in the ready queue where the current priority in the CPU resource assignment is set using the pointer information on each VM, and for arranging the pointer information on guest VMs in high-to-low order of assignment ratio for those which indicate the same number of times of operations.
-
Citations
19 Claims
-
1. A central processing unit control system for use in a virtual computer system having an actual computer comprising a plurality of actual central processing units, a control program for operating a plurality of virtual computers in said actual computer, a central processing unit assignment information area for storing a central processing unit resource assignment ratio of each of said virtual computers on the basis of running time of said actual central processing units to be assigned, and a ready queue for storing pointer information on said virtual computers, each piece of said pointer information indicating the correspondence to said central processing unit assignment information area in priority order of central processing unit resource assignment for said virtual computers, wherein said control program assigns said actual central processing units to said virtual computers according to the order specified by said pointer information in said ready queue, and each of said virtual computers is repeatedly operated according to a predetermined assignment ratio indicated in said central processing unit assignment information area, said central processing unit control system comprising:
-
operation counter means, provided in said central processing unit assignment information area, for storing, for each of said virtual computers, the number of successful assigning operations according to a predetermined central processing unit resource assignment ratio; and assignment order control means, provided in said control program, for checking the number of the successful assigning operations of each virtual computer stored by said operation counter means and the central processing unit resource assignment ratio for each virtual computer each time the central processing unit resource is assigned, arranging the pointer information on said ready queue in order from a largest central processing unit resource assignment ratio to the smallest central processing unit resource assignment ratio when the numbers of successful assigning operations are same for each virtual computer, and arranging, when the number of successful assigning operations are not the same for each virtual computer, the pointer information on said ready queue in order from a first group to a last group, where the first group contains virtual computers having the highest central processing unit resource assignment ratio and being the same for each virtual computer in the group, and the last group contains virtual computers having the lowest central processing unit resource assignment ratio and being the same for each virtual computer in the group, groups existing between the first group and the last group having successively lower central processing unit resource assignment ratios and each virtual computer in each group having the same central processing unit resource assignment ratio as the other virtual computers in the group. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
-
-
10. A control system for use with a central processing unit, where a plurality of virtual computers each has a corresponding assignment ratio and, in accordance with a priority order of the virtual computers, is sequentially assignable to the central processing unit for processing by the central processing unit, the control system comprising:
-
a first mechanism arranging the priority order of the virtual computers so that, when the number of times each virtual computer has been assigned to the central processing unit is the same for each virtual computer, the priority order is in descending order from the virtual computer having a largest assignment ratio to the virtual computer having a smallest assignment ratio, and a second mechanism arranging the priority order of the virtual computers so that, when the number of times each virtual computer has been assigned to the central processing unit is not the same for each virtual computer, the priority order is in descending order from a first group of virtual computers having a highest assignment ratio which is the same for each virtual computer in the group, to a last group of virtual computers having a lowest assignment ratio which is the same for each virtual computer in the group, and wherein the virtual computers are assigned to the central processing unit for processing in accordance with the priority as arranged by the first mechanism and second mechanism. - View Dependent Claims (11, 12, 13, 14, 15, 16, 17, 18)
-
-
19. A method for use with a central processing unit, where a plurality of virtual computers each has a corresponding assignment ratio and, in accordance with a priority order of the virtual computers, is sequentially assignable to the central processing unit for processing by the central processing unit, the method comprising:
-
arranging the priority order of the virtual computers so that, when the number of times each virtual computer has been assigned to the central processing unit is the same for each virtual computer, the priority order is in descending order from the virtual computer having a largest assignment ratio to the virtual computer having a smallest assignment ratio; arranging the priority order of the virtual computer so that, when the number of times each virtual computer has been assigned to the central processing unit is not the same for each virtual computer, the priority order is in descending order from a first group of virtual computers having a highest assignment ratio which is the same for each virtual computer in the group, to a last group of virtual computers having a lower assignment ratio which the same for each virtual computer in the group; and assigning the virtual computers to the central processing unit for processing in accordance with the arranged priority order.
-
Specification