Invention Grant
- Patent Title: Method for mapping between virtual CPU and physical CPU and electronic device
-
Application No.: US15375919Application Date: 2016-12-12
-
Publication No.: US10216530B2Publication Date: 2019-02-26
- Inventor: Jian Li , Haibing Guan , Qiang Gu
- Applicant: Huawei Technologies Co., Ltd.
- Applicant Address: CN Shenzhen
- Assignee: HUAWEI TECHNOLOGIES CO., LTD.
- Current Assignee: HUAWEI TECHNOLOGIES CO., LTD.
- Current Assignee Address: CN Shenzhen
- Agency: Conley Rose, P.C.
- Priority: CN201410262063 20140612
- Main IPC: G06F9/46
- IPC: G06F9/46 ; G06F9/455 ; G06F13/42

Abstract:
A method for mapping between a virtual central processing unit (CPU) and a physical CPU. The method includes obtaining, by a virtual machine manager, a set of to-be-mapped first virtual CPUs in a current time period and a first physical CPU that has fewest to-be-run tasks, obtaining, by the virtual machine manager, a first characteristic value of each first virtual CPU in the set of first virtual CPUs and a second characteristic value of the first physical CPU, obtaining, by the virtual machine manager from all the first characteristic values, a target characteristic value that matches the second characteristic value, and mapping a target virtual CPU corresponding to the target characteristic value to the first physical CPU for running. By means of the foregoing technical solutions, resource contention and a decrease in overall system performance are avoided when mapping a virtual CPU to a physical CPU.
Public/Granted literature
- US20170090962A1 Method for Mapping Between Virtual CPU and Physical CPU and Electronic Device Public/Granted day:2017-03-30
Information query