CPC G06F 9/45533 (2013.01) [G06F 9/505 (2013.01)] | 20 Claims |
1. A method for detecting virtual machine load, comprising:
acquiring a virtual processor thread corresponding to a target virtual machine, wherein the virtual processor thread is an exclusive thread of the target virtual machine;
acquiring a first occupation duration of the virtual processor thread in a guest mode within a first detection period, wherein the virtual processor thread in the guest mode is used for executing a task request of the target virtual machine, and the first occupation duration represents a duration in which the virtual processor thread is in a state of executing the task request of the target virtual machine; and
obtaining a running load of the target virtual machine according to a proportion of the first occupation duration in the first detection period.
|