-
公开(公告)号:US10216530B2
公开(公告)日:2019-02-26
申请号:US15375919
申请日:2016-12-12
Applicant: Huawei Technologies Co., Ltd.
Inventor: Jian Li , Haibing Guan , Qiang Gu
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.
-
公开(公告)号:US20170090962A1
公开(公告)日:2017-03-30
申请号:US15375919
申请日:2016-12-12
Applicant: Huawei Technologies Co., Ltd.
Inventor: Jian Li , Haibing Guan , Qiang Gu
CPC classification number: G06F9/45533 , G06F9/45558 , G06F13/4234 , G06F2009/4557 , G06F2009/45583
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.
-