摘要 |
A memory migration method and device are provided, and relate to the field of computer application technologies. A memory page is combined into a memory block, which reduces a quantity of migrations, and improves CPU utilization. The method includes: receiving, by a first node, a migration instruction sent by a second node (201); sequentially scanning each memory page between a physical address of a start memory page accessed by a target process and a physical address of an end memory page accessed by the target process (202), where the memory page is a memory page accessed by the target process or a memory page accessed by a non-target process; determining whether each memory page meets a block combination condition, and combining a memory page that meets the block combination condition into a corresponding memory block (203); and migrating the corresponding memory block to a memory area of the second node (204). |