Patent ID: 9632888
Date: 2017-04-25
CPC Classifications: G06F

Claim:
1. A computer, comprising: a processor executing instructions of an operating system of the computer; a primary memory coupled to the processor, configured to load the instructions of the operating system of the computer, wherein the primary memory comprises at least two memory cards including a source memory card and a backup memory card; and a plurality of memory controllers coupled to the processor and the primary memory, wherein each of the at least two memory cards is associated with one of the plurality of memory controllers, wherein the processor is configured to send an initialization instruction to a basic input/output system (BIOS) of the computer for instructing the BIOS to initialize the backup memory card without allocating a system address to the backup memory card, receive a first trigger instruction, suspend, according to the first trigger instruction, a task that is being executed, determine the source memory card having to-be-migrated memory data, determine the backup memory card for the source memory card, and instruct a memory controller associated with the source memory card to perform memory data migration, and wherein the memory controller associated with the source memory card is configured to migrate memory data from the source memory card to the backup memory card according to an instruction of the operating system, the processor is further configured to set a mirror mode between the source memory card and the backup memory card, send a data read instruction of the operating system to the memory controller associated with the source memory card, wherein the data read instruction is used to instruct the memory controller associated with the source memory card to read the memory data from the source memory card, and send a data write instruction to the memory controller associated with the source memory card, wherein the data write instruction is used to instruct the memory controller associated with the source memory card to write the read memory data back to the source memory card, wherein the memory controller associated with the source memory card is further configured to read the memory data from the source memory card according to the data read instruction of the operating system, receive the data write instruction sent by the operating system, and send the memory data read from the source memory card to a memory controller associated with the backup memory card according to the mirror mode set for the source memory card and the backup memory card, and wherein the memory controller associated with the backup memory card is configured to write the received memory data read from the source memory card into the backup memory card.