摘要 |
The present invention discloses a method, an apparatus, and a system for implementing hot migration of a virtual machine. The method includes: determining, by a source virtual machine migration management apparatus on a source physical machine, non-temporary data memory pages of a virtual machine on the source physical machine; copying the non-temporary data memory pages from the source physical machine to a target physical machine; cyclically copying dirty pages, which are generated in the process of copying the non-temporary data memory pages, from the source physical machine to the target physical machine until a ratio of a quantity of dirty pages which are not yet copied to a quantity of the non-temporary data memory pages is less than a preset value; and performing migration of the virtual machine when the ratio of the quantity of the dirty pages which are not yet copied to the quantity of the non-temporary data memory pages is less than the preset value. According to the method provided by embodiments of the present invention, processes and memory pages in a multi-process system are classified, so that temporary data memory pages are not copied in a cyclical copying process of dirty pages, thereby reducing a waste of a CPU and network bandwidth of a system and improving user experience. |