# US 2013/0254446 A1 · Memory Management Method and Device for Distributed Computer System

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2013/0254446 A1
- Document ID: US20130254446A1
- Status: Published application
- Kind: A1
- Application number: 13/892,203
- Filed: 2013-05-10
- Published: 2013-09-26
- Earliest claimed: 2011-07-20
- Assignees: Huawei Technologies Co., Ltd.
- Applicants: Huawei Technologies Co., Ltd.
- Inventors: Gaohuai Han; Wei Wang; Xishi Qiu
- Web page: https://patentgrep.com/patent/US20130254446A1

## CPC

- G06F 13/4081: {Live connection to bus, e.g. hot-plugging (current or voltage limitation during live insertion H02H9/004)}
- G06F 11/1666: {where the redundant component is memory or memory area}
- G06F 11/20: using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method and a device for managing memories in a node are provided. The method includes: setting an appointed memory module in a slave node as a key memory module, setting, in a primary node, a mirror memory module of the key memory module, where same data is stored in the key memory module and the mirror memory module; and implementing hot swap processing of the slave node or the key memory module by using the mirror memory module. In the embodiments of the present invention, mirroring is formed by the key memory module in the slave node and the mirror memory module in the primary node, and the hot swap processing of the slave node or the key memory module is implemented by using the mirror memory module. Thus hot swapping of a single memory module is supported.

## Claims

### Claim 1

A memory management method for a distributed computer system, comprising:
determining a key memory module in a memory of a slave node in a distributed computer system; and
setting, in a primary node, a mirror memory module of the key memory module,
wherein the mirror memory module is configured to implement hot swapping of the key memory module, and
wherein same data is stored in the key memory module and the mirror memory module.

### Claim 2 (depends on 1)

The memory management method for the distributed computer system according to claim 1, wherein a memory that cannot be migrated is stored and put in the key memory module.

### Claim 3 (depends on 1)

The memory management method for the distributed computer system according to claim 1, wherein the same data is stored in the key memory module and the mirror memory module comprises:
performing the same operations in the mirror memory module of the primary node when data write, modification, and deletion operations are performed in the key memory module of the slave node; and
performing a data read operation through the key memory module of the slave node when hot swap processing is not performed on the slave node or the key memory module.

### Claim 4 (depends on 1)

The memory management method for the distributed computer system according to claim 1, wherein the mirror memory module is configured to implement the hot swapping of the key memory module comprises:
disabling the key memory module in the slave node, enabling the mirror memory module in the primary node, and transferring operation processing to be performed in the key memory module to the mirror memory module when all memory modules in the slave node are required to be hot swapped out; and
powering off all the memory modules in the slave node and hot swapping all the memory modules out of the slave node after migration processing is performed on memories stored and put in an ordinary memory module other than the key memory module in the slave mode.

### Claim 5 (depends on 1)

The memory management method for the distributed computer system according to claim 1, wherein the mirror memory module is configured to implement the hot swapping of the key memory module comprises:
disabling the key memory module in the slave node, enabling the mirror memory module in the primary node, and transferring the operation processing to be performed in the key memory module to the mirror memory module when the key memory module in the slave node is required to be hot swapped out; and
powering off the key memory module in the slave node and hot swapping the key memory module out of the slave node.

### Claim 6 (depends on 1)

The memory management method for the distributed computer system according to claim 1, wherein the mirror memory module is configured to implement the hot swapping of the key memory module comprises:
performing power-on on the key memory module, enabling the key memory module in the slave node, and enabling the mirror memory module in the primary node after the key memory module is hot swapped into the slave node; and
disabling the mirror memory module after a data synchronization operation between the key memory module and the mirror memory module is performed.

### Claim 7

A memory management device for a distributed computer system, comprising:
a memory module setting module configured to set an appointed memory module in a slave node as a key memory module, and set, in a primary node, a mirror memory module of the key memory module, wherein same data is stored in the key memory module and the mirror memory module; and
a hot swap processing module configured to implement hot swap processing of the key memory module by using the mirror memory module.

### Claim 8 (depends on 7)

The memory management device for the distributed computer system according to claim 7, wherein the memory module setting module is further configured to:
perform the same operations in the mirror memory module of the primary node when data write, modification, and deletion operations are performed in the key memory module of the slave node; and
perform a data read operation through the key memory module of the slave node when the hot swap processing is not performed on the slave node or the key memory module.

### Claim 9 (depends on 7)

The memory management device for the distributed computer system according to claim 7, wherein the hot swap processing module comprises:
a first processing module configured to, when all memory modules in the slave node are required to be hot swapped out, disable the key memory module in the slave node, enable the mirror memory module in the primary node, and transfer operation processing to be performed in the key memory module to the mirror memory module, and
wherein the hot swap processing module is configured to, after migration processing is performed on memories stored and put in an ordinary memory module other than the key memory module in the slave node, power off all the memory modules in the slave node and hot swap all the memory modules out of the slave node.

### Claim 10 (depends on 7)

The memory management device for the distributed computer system according to claim 7, wherein the hot swap processing module comprises a second processing module configured to, when the key memory module in the slave node is required to be hot swapped out, disable the key memory module in the slave node, enable the mirror memory module in the primary node, transfer operation processing to be performed in the key memory module to the mirror memory module, power off the key memory module in the slave node, and hot swap the key memory module out of the slave node.

### Claim 11 (depends on 7)

The memory management device for the distributed computer system according to claim 7, wherein the hot swap processing module comprises a third processing module configured to:
perform power-on on the key memory module, enable the key memory module in the slave node, and enable the mirror memory module in the primary node after the key memory module is hot swapped into the slave node; and
disable the mirror memory module after a data synchronization operation between the key memory module and the mirror memory module is performed.

### Claim 12

A distributed computer system, comprising
a slave node;
a primary node; and
a memory management node,
wherein the memory management node comprises at least one memory and a processor connected to the at least one memory,
wherein the processor is configured to determine a key memory module in a memory of the slave node in the distributed computer system and set, in the primary node, a mirror memory module of the key memory module,
wherein the mirror memory module is configured to implement hot swapping of the key memory module, and
wherein same data is stored in the key memory module and the mirror memory module.

### Claim 13 (depends on 12)

The system according to claim 12, wherein the processor connected to the at least one memory is specifically configured to:
perform the same operations in the mirror memory module of the primary node when data write, modification, and deletion operations are performed in the key memory module of the slave node; and
perform a data read operation through the key memory module of the slave node when hot swap processing is not performed on the slave node or the key memory module.

### Claim 14 (depends on 12)

The system according to claim 12, wherein the processor connected to the at least one memory is specifically configured to:
disable the key memory module in the slave node, enable the mirror memory module in the primary node, and transfer operation processing to be performed in the key memory module to the mirror memory module when all memory modules in the slave node are required to be hot swapped out; and
power off all the memory modules in the slave node and hot swap all the memory modules out of the slave node after migration processing is performed on memories stored and put in an ordinary memory module other than the key memory module in the slave node.

### Claim 15 (depends on 12)

The system according to claim 12, wherein the processor connected to the at least one memory is specifically configured to:
disable the key memory module in the slave node, enable the mirror memory module in the primary node, and transfer the operation processing to be performed in the key memory module to the mirror memory module when the key memory module in the slave node is required to be hot swapped out; and
power off the key memory module in the slave node and hot swap the key memory module out of the slave node.

### Claim 16 (depends on 12)

The system according to claim 12, wherein the processor connected to the at least one memory is specifically configured to:
perform power-on on the key memory module, enable the key memory module in the slave node, and enable the mirror memory module in the primary node after the key memory module is hot swapped into the slave node; and
disable the mirror memory module after a data synchronization operation between the key memory module and the mirror memory module is performed.

### Claim 17

A non-transitory computer readable medium having computer executable instructions for performing a method, comprising:
determining a key memory module in a memory of a slave node in a distributed computer system; and
setting, in a primary node, a mirror memory module of the key memory module,
wherein the mirror memory module is configured to implement hot swapping of the key memory module, and
wherein same data is stored in the key memory module and the mirror memory module.
