Virtual machine migrating method and system based on NUMA architecture

A virtual machine migration and virtual machine technology, applied in the computer field, can solve the problems of being on the same physical machine, effect constraints, and inability to place virtual machine memory

CN104123171AActive Publication Date: 2014-10-29ZHEJIANG UNIV
4 Cites 16 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Publication Date
2014-10-29

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

Abstract

The invention discloses a virtual machine migrating method and system based on the NUMA architecture. The virtual machine migrating method based on the NUMA architecture comprises the steps that the configuration information of a virtual machine to be migrated is obtained, and a temporary file is generated according to the content in a memory page and a virtual machine register which have already been used by the virtual machine to be migrated and the state of an I / O device; the virtual machine to be migrated is stopped; the node information of all physical nodes in a target host is obtained, and whether a target node exists on the target host is judged according to the node information and a migration command; if the target node exists on the target host, the virtual machine to be migrated is migrated to the target node according to the temporary file and the configuration information; if the target node does not exist on the target host, an error report is sent. According to the virtual machine migrating method and system based on the NUMA architecture, it is guaranteed that virtual nodes of the NUMA topological structure of the virtual machine correspond to the NUMA nodes of a physical machine in a one-to-one mode on the basis of migration, the performance degradation of the virtual machine is small, the NUMA topological structure of the virtual machine can be changed according to the hardware condition of the target host, and thus the virtual machine can be adapted to more diversified hardware environments.
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] The invention relates to the field of computer technology, in particular to a virtual machine migration method and system based on NUMA architecture. Background technique

[0002] In computer technology, virtualization technology is a technology that abstracts physical computing resources, such as CPU, memory, network and storage, so that users can use these resources more reasonably. It has been widely used in some scenarios such as Internet services and cloud computing.

[0003] Early computers adopted the SMP structure (Symmetric Multi-Processing, symmetric multi-processing structure), that is, all the memory is shared by all CPUs, and each CPU can arbitrarily access any address of the memory. However, with the development of hardware, especially as the number of CPU cores increases, the existing SMP structure is prone to memory access conflicts, that is, different CPUs access the same memory at the same time, resulting in bus conflicts, and access...

Examples

Embodiment Construction

[0075] The present invention will be described in detail below with reference to the drawings and specific embodiments.

[0076] The virtual machine migration system in this embodiment is based on figure 1 The MUMA architecture shown, the MUMA architecture includes m hosts (physical hosts, host 1, ..., host m), each physical host is equipped with several physical nodes, of which there are p on the first host (host 1) Physical nodes (physical node 1, physical node 2, ..., physical node p). Such as figure 1 As shown, the virtual machine migration system includes:

[0077] The virtual machine monitor is used to receive the migration instruction and obtain the configuration information of the virtual machine to be migrated, the configuration information includes the memory information of the virtual machine, the number of VCPUs, and I / O device information, etc.;

[0078] The temporary file generator is used to generate temporary files according to the configuration information ...