US 12,217,073 B2
Method, an apparatus, an electronic device, and a storage medium for detecting virtual machine load
Yang Zhang, Beijing (CN); and Zhimin Feng, Beijing (CN)
Assigned to BEIJING VOLCANO ENGINE TECHNOLOGY CO., LTD., Beijing (CN)
Filed by Beijing Volcano Engine Technology Co., Ltd., Beijing (CN)
Filed on May 29, 2024, as Appl. No. 18/677,805.
Claims priority of application No. 202310645315.0 (CN), filed on Jun. 1, 2023.
Prior Publication US 2024/0403090 A1, Dec. 5, 2024
Int. Cl. G06F 9/455 (2018.01); G06F 9/50 (2006.01)
CPC G06F 9/45533 (2013.01) [G06F 9/505 (2013.01)] 20 Claims
OG exemplary drawing
 
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.