# US 9,354,985 B2 · Data processing device and data processing method

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

- Number: US 9,354,985 B2
- Document ID: US9354985B2
- Status: Granted
- Kind: B2
- Application number: 14/483,970
- Filed: 2014-09-11
- Published: 2015-06-04
- Granted: 2016-05-31
- Earliest claimed: 2013-12-02
- Assignees: Huawei Technologies Co., Ltd.
- Applicants: Huawei Technologies Co., Ltd.
- Inventors: Tianfu Jin; Nunu Ren; Mingjun Li
- Web page: https://patentgrep.com/patent/US9354985B2

## CPC

- G06F 3/0619: {in relation to data integrity, e.g. data losses, bit errors}
- G06F 3/0611: {in relation to response time}
- G06F 3/0614: {Improving the reliability of storage systems}
- G06F 3/0643: {Management of files}
- G06F 3/065: {Replication mechanisms}
- G06F 3/0683: {Plurality of storage devices}
- G06F 11/1456: {Hardware arrangements for backup}
- G06F 11/1469: {Backup restoration techniques}
- G06F 11/1471: involving logging of persistent data for recovery
- G06F 11/1612: {where the redundant component is persistent storage}
- G06F 2201/82: Solving problems relating to consistency
- G06F 2201/85: Active fault masking without idle spares
- Y02D 10/00: Energy efficient computing, e.g. low power processors, power management or thermal management
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- Y02D: CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE

## Abstract

Embodiments of the present invention provide a data processing device and a data processing method. In the data processing device and the data processing method provided by the embodiments of the present invention, first data in a memory is written into a first non-volatile storage unit in a log file form, and a log file of the first data written into the first non-volatile storage unit is written into a second non-volatile storage unit. Because a data write speed of the first non-volatile storage unit is higher than a data write speed of the second non-volatile storage unit, fast backup of the data in the memory can be achieved, and when the data in the memory is lost in an abnormal situation, security of the data in the memory can be ensured.

## Claims

### Claim 1

A data processing device, comprising:
a control unit;
a memory coupled to the control unit;
a first non-volatile storage unit coupled to the control unit; and
a second non-volatile storage unit coupled to the first non-volatile storage unit and the control unit,
wherein a data write speed of the first non-volatile storage unit is higher than a data write speed of the second non-volatile storage unit,
wherein the control unit is configured to write first data into the memory, write the first data into the first non-volatile storage unit in a log file form, and write, into the second non-volatile storage unit, a log file of the first data written into the first non-volatile storage unit,
wherein the control unit is further configured to write a second data into the memory, and write the second data into the first non-volatile storage unit in the log file form, and when writing the second data into the first non-volatile storage unit in the log file form, suspend writing the log file of the first data in the first non-volatile storage unit into the second non-volatile storage unit.

### Claim 2 (depends on 1)

The data processing device according to claim 1, wherein the control unit comprises a data recovery unit configured to recover the first data, when the first data is lost from the memory using the log file of the first data in the second non-volatile storage unit, and recover the second data, when the second data is lost from the memory using a log file of the second data in the first non-volatile storage unit.

### Claim 3 (depends on 1)

The data processing device according to claim 1, wherein the control unit is further configured to: after the log file of the first data in the first non-volatile storage unit is written into the second non-volatile storage unit, instruct the first non-volatile storage unit to release a space occupied by the log file of the first data.

### Claim 4 (depends on 1)

The data processing device according to claim 1, wherein the data write speed of the first non-volatile storage unit is the same as a data write speed of the memory.

### Claim 5

A data processing device, wherein the data processing device comprises a control unit, a memory, a first non-volatile storage unit, and a second non-volatile storage unit; a data write speed of the first non-volatile storage unit is higher than a data write speed of the second non-volatile storage unit; and
the control unit is configured to write first data into the memory, and write the first data into the first non-volatile storage unit in a log file form; and
the control unit is further configured to
acquire the first data from the memory, and convert the acquired first data to a log file and write the converted log file into the second non-volatile storage unit, and
acquire the first data from the memory and write the first data into the second non-volatile storage unit.

### Claim 6 (depends on 5)

The data processing device according to claim 5, wherein the control unit comprises a memory read/write control unit and a persistency control unit, wherein
the memory read/write control unit is configured to write the first data into the memory, and write the first data into the first non-volatile storage unit in the log file form; and
the persistency control unit is configured to implement one of the following:
(a) acquiring the first data from the memory, and converting the acquired first data to a log file and writing the converted log file into the second non-volatile storage unit, and
(b) acquiring the first data from the memory and writing the first data into the second non-volatile storage unit.

### Claim 7 (depends on 5)

The data processing device according to claim 5, wherein the memory read/write control unit is further configured to write second data into the memory, and write the second data into the first non-volatile storage unit in the log file form.

### Claim 8 (depends on 5)

The data processing device according to claim 5, wherein the control unit comprises a data recovery unit configured to recover the first data, when the first data is lost from the memory using the log file of the first data in the second non-volatile storage unit, and recover the second data, when the second data is lost from the memory using a log file of the second data in the first non-volatile storage unit.

### Claim 9 (depends on 5)

The data processing device according to claim 5, wherein the data write speed of the first non-volatile storage unit is the same as a data write speed of the memory.

### Claim 10

A data processing method, wherein the data processing method is applied in a data processing device and comprises:
receiving first data to be written into a memory of the data processing device;
writing the first data into the memory, and writing the first data into a first non-volatile storage unit in a log file form;
writing, into a second non-volatile storage unit, a log file of the first data written into the first non-volatile storage unit, wherein a data write speed of the first non-volatile storage unit is higher than a data write speed of the second non-volatile storage unit;
writing a second data into the memory, and writing the second data into the first non-volatile storage unit in the log file form; and
when the second data is written into the first non-volatile storage unit in the log file form, suspending writing the log file of the first data in the first non-volatile storage unit into the second non-volatile storage unit.

### Claim 11 (depends on 10)

The data processing method according to claim 10, wherein:
when the first data in the memory is lost, recovering the first data lost from the memory using the log file of the first data in the second non-volatile storage unit; and
when the second data in the memory is lost, recovering the second data lost from the memory using a log file of the second data in the first non-volatile storage unit.

### Claim 12 (depends on 10)

The data processing method according to claim 10, wherein after the writing, into a second non-volatile storage unit, a log file of the first data in the first non-volatile storage unit, instructing the first non-volatile storage unit to release a space occupied by the log file of the first data.

### Claim 13 (depends on 10)

The data processing method according to claim 10, wherein the data write speed of the first non-volatile storage unit is the same as a data write speed of the memory.

### Claim 14

A data processing method, wherein the data processing method is applied in a data processing device and comprises:
receiving first data to be written into a memory of the data processing device;
writing the first data into the memory, and writing the first data into a first non-volatile storage unit in a log file form; and
converting the first data in the memory to a log file and writing the converted log file into a second non-volatile storage unit, writing the first data in the memory into the second non-volatile storage unit, wherein a data write speed of the first non-volatile storage unit is higher than a data write speed of the second non-volatile storage unit.

### Claim 15 (depends on 14)

The data processing method according to claim 14, further comprising:
writing second data into the memory, and writing the second data into the first non-volatile storage unit in the log file form.

### Claim 16 (depends on 15)

The data processing method according to claim 15, wherein:
when the first data in the memory is lost, recovering the first data lost from the memory using the log file of the first data in the second non-volatile storage unit; and
when the second data in the memory is lost, recovering the second data lost from the memory using a log file of the second data in the first non-volatile storage unit.

### Claim 17 (depends on 14)

The data processing method according to claim 14, wherein the recovering the first data lost from the memory using the first data in the second non-volatile storage unit comprises:
determining whether a conversion from the log file of the first data to the first data is completed;
when the conversion is not completed, recovering the first data in the memory using the converted first data and the log file of the first data that is not converted; and
when the conversion is completed, recovering the first data in the memory using the converted first data.

### Claim 18 (depends on 14)

The data processing method according to claim 14, wherein the data write speed of the first non-volatile storage unit is the same as a data write speed of the memory.
