# US 2022/0035548 A1 · Data storage method, electronic device, and computer program product

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

- Number: US 2022/0035548 A1
- Document ID: US20220035548A1
- Status: Published application
- Kind: A1
- Application number: 17/085,799
- Filed: 2020-10-30
- Published: 2022-02-03
- Earliest claimed: 2020-07-31
- Assignees: EMC IP Holding Company LLC
- Applicants: EMC IP Holding Company LLC
- Inventors: Yong Yang; Yunhai Gong
- Web page: https://patentgrep.com/patent/US20220035548A1

## CPC

- G06F 3/0646: {Horizontal data movement in storage systems, i.e. moving data in between storage devices or systems}
- G06F 3/061: {Improving I/O performance}
- G06F 3/0619: {in relation to data integrity, e.g. data losses, bit errors}
- G06F 3/0647: {Migration mechanisms}
- G06F 3/0656: {Data buffering arrangements}
- G06F 3/0679: {Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]}
- G06F 3/0685: {Hybrid storage combining heterogeneous device types, e.g. hierarchical storage, hybrid arrays}
- G06F 16/9027: {Trees}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Embodiments of the present disclosure provide a data storage method, an electronic device, and a computer program product. The method includes: determining the number of at least one first storage apparatus of a storage system, each first storage apparatus being persistent and storing a log that includes record entries of to-be-stored data; and writing, if it is determined that the number is greater than a threshold number, the to-be-stored data into a corresponding memory table from the log where the to-be-stored data is located, wherein data in the memory table will be written to a second storage apparatus of the storage system. In this way, the storage efficiency of the storage system can be improved.

## Claims

### Claim 1

A method, comprising:
determining, by a system comprising a processor, a number of at least one first storage apparatus of a storage system, each of the at least one first storage apparatus being persistent and storing a log that comprises record entries of to-be-stored data; and
in response to determining that the number is greater than a threshold number, writing the to-be-stored data into a corresponding memory table from the log where the to-be-stored data is located, wherein data in the memory table will be written to a second storage apparatus of the storage system.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the storage system comprises a plurality of persistent storage apparatuses, and determining the number of the at least one first storage apparatus comprises:
receiving an acknowledgment message from one of the plurality of persistent storage apparatuses, the acknowledgment message indicating that the log stored in the persistent storage apparatus comprises the record entries of the to-be-stored data; and
determining the persistent storage apparatus as the first storage apparatus.

### Claim 3 (depends on 1)

The method according to claim 1, wherein writing the to-be-stored data into the corresponding memory table from each log comprises:
in response to determining that the number is greater than the threshold number, sending a write request to the at least one first storage apparatus, so that the to-be-stored data is written from the log of the at least one first storage apparatus into the corresponding memory table.

### Claim 4 (depends on 1)

The method according to claim 1, further comprising:
in response to determining that the number is not greater than the threshold number, removing the record entries of the to-be-stored data from each log.

### Claim 5 (depends on 1)

The method according to claim 1, further comprising:
determining a size of stored data in the memory table; and
in response to determining that the size of the stored data is greater than a threshold size, writing the stored data in the memory table from the first storage apparatus where the memory table is located to the second storage apparatus.

### Claim 6 (depends on 5)

The method according to claim 5, wherein the threshold size is determined based on a maximum capacity of the first storage apparatus where the memory table is located.

### Claim 7 (depends on 1)

The method according to claim 1, wherein the memory table is a part of a tree structure of the storage system.

### Claim 8

An electronic device, comprising:
a processor; and
a memory coupled to the processor and having instructions stored therein, wherein the instructions, when executed by the processor, cause the electronic device to execute actions comprising:
determining a number of at least one first storage apparatus of a storage system, each first storage apparatus being persistent and storing a log that comprises record entries of to-be-stored data; and
based on the number being determined to be greater than a threshold number, writing the to-be-stored data into a corresponding memory table from the log where the to-be-stored data is located, wherein data in the memory table will be written to a second storage apparatus of the storage system.

### Claim 9 (depends on 8)

The device according to claim 8, wherein the storage system comprises a plurality of persistent storage apparatuses, and determining the number of the at least one first storage apparatus comprises:
receiving an acknowledgment message from one of the plurality of persistent storage apparatuses, the acknowledgment message indicating that the log stored in the persistent storage apparatus comprises the record entries of the to-be-stored data; and
determining the persistent storage apparatus as the first storage apparatus.

### Claim 10 (depends on 8)

The device according to claim 8, wherein writing the to-be-stored data into the corresponding memory table from each log comprises:
sending, if it is determined that the number being determined to be greater than the threshold number, a write request to the at least one first storage apparatus, so that the to-be-stored data is written from the log of the at least one first storage apparatus into the corresponding memory table.

### Claim 11 (depends on 8)

The device according to claim 8, wherein the actions further comprise:
removing, based on the number being determined not to be greater than the threshold number, the record entries of the to-be-stored data from each log.

### Claim 12 (depends on 8)

The device according to claim 8, wherein the actions further comprise:
determining a size of stored data in the memory table; and
writing, based on the size of the stored data being determined to be greater than a threshold size, the stored data in the memory table from the first storage apparatus where the memory table is located to the second storage apparatus.

### Claim 13 (depends on 12)

The device according to claim 12, wherein the threshold size is determined based on a maximum capacity of the first storage apparatus where the memory table is located.

### Claim 14 (depends on 8)

The device according to claim 8, wherein the memory table is a part of a tree structure of the storage system.

### Claim 15

A non-transitory computer program product tangibly stored in a computer-readable medium and comprising machine-executable instructions, wherein the machine-executable instructions, when executed, cause a machine to perform operations, comprising:
determining a number of first storage apparatuses of a storage system, the first storage apparatuses being persistent and storing a log that comprises record entries of to-be-stored data; and
where the number is determined to be greater than a threshold number, writing the to-be-stored data into a corresponding memory table from the log where the to-be-stored data is located, wherein data in the memory table will be written to a second storage apparatus of the storage system.

### Claim 16 (depends on 15)

The non-transitory computer program product according to claim 15, wherein the storage system comprises a plurality of persistent storage apparatuses, and determining the number of the first storage apparatuses comprises:
receiving an acknowledgment message from one of the plurality of persistent storage apparatuses, the acknowledgment message indicating that the log stored in the persistent storage apparatus comprises the record entries of the to-be-stored data; and
determining the persistent storage apparatus as the first storage apparatuses.

### Claim 17 (depends on 15)

The non-transitory computer program product according to claim 15, wherein writing the to-be-stored data into the corresponding memory table from each log comprises:
where the number is determined to be greater than the threshold number, sending a write request to the first storage apparatuses, so that the to-be-stored data is written from the log of the first storage apparatuses into the corresponding memory table.

### Claim 18 (depends on 15)

The non-transitory computer program product according to claim 15, wherein the operations further comprise:
where the number is determined not to be greater than the threshold number, removing the record entries of the to-be-stored data from each log.

### Claim 19 (depends on 15)

The non-transitory computer program product according to claim 15, wherein the operations further comprise:
determining a size of stored data in the memory table; and
where the size of the stored data is determined to be greater than a threshold size, writing the stored data in the memory table from the first storage apparatuses where the memory table is located to the second storage apparatus.

### Claim 20 (depends on 19)

The non-transitory computer program product according to claim 19, wherein the threshold size is determined based on a maximum capacity of the first storage apparatus where the memory table is located, and wherein the memory table is a part of a tree structure of the storage system.
