摘要 |
A method for dispatching CPUs of a hotspot domain VM and system includes determining a comprehensive utilization rate of the vCPUs of the hotspot domain VM according to counted use information of the vCPUs, determining that at least one online vCPU is to be added or to be reduced for the hotspot domain VM according to the comprehensive utilization rate of the vCPUs and the maximum number of the vCPUs. After an online vCPU is added, the method further includes adjusting the vCPUs of a common domain VM in the running queue of a physical CPU bound to the online vCPU, so that the online vCPU is dispatched on the physical CPU. After an online vCPU is reduced, the vCPU of the hotspot domain VM in the running queue of a physical CPU bound to the offline vCPU is adjusted, so that the vCPU of the common domain VM is dispatched on the physical CPU. |