US2017103001A1PendingUtilityA1

Data processing device and data processing method

44
Assignee: HUAWEI TECH CO LTDPriority: Dec 2, 2013Filed: Dec 20, 2016Published: Apr 13, 2017
Est. expiryDec 2, 2033(~7.4 yrs left)· nominal 20-yr term from priority
G06F 3/0683G06F 3/0611G06F 11/1471G06F 11/1612G06F 11/1469G06F 3/0614G06F 3/0643G06F 11/1456G06F 3/0619G06F 2201/82G06F 2201/85G06F 3/065Y02D10/00G06F 2201/805G06F 3/0688
44
PatentIndex Score
0
Cited by
0
References
0
Claims

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

exact text as granted — not AI-modified
What is claimed is: 
     
         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,   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, and write log file of the first data into the first non-volatile storage unit, and wherein the log file of the first data records data changes of the first data, and write, into the second non-volatile storage unit, the log file of the first data written into the first non-volatile storage unit.   
     
     
         2 . The data processing device according to  claim 1 , 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 log file of the first data into the first non-volatile storage unit; and   the persistency control unit is configured to write, into the second non-volatile storage unit, the log file of the first data written into the first non-volatile storage unit.   
     
     
         3 . The data processing device according to  claim 2 , wherein the memory read/write control unit is further configured to write second data into the memory, and write a log file of the second data into the first non-volatile storage unit. 
     
     
         4 . The data processing device according to  claim 3 , wherein the data recovery unit is further configured to recover the first data lost in the memory by using the log file of the first data in the second non-volatile storage unit, and recover the second data lost in the memory by using the log file of the second data in the first non-volatile storage unit. 
     
     
         5 . The data processing device according to  claim 2 , wherein the persistency 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 space occupied by the log file of the first data. 
     
     
         6 . The data processing device according to  claim 3 , wherein the persistency control unit is further configured to, when the memory read/write control unit writes the log file of the second data into the first non-volatile storage unit , suspend writing the log file of the first data in the first non-volatile storage unit into the second non-volatile storage unit. 
     
     
         7 . 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. 
     
     
         8 . 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,   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, and write a log file of the first data into the first non-volatile storage unit , and   wherein the control unit is further configured to acquire the first data from the memory, and convert the acquired first data to the log file and write the converted log file into the second non-volatile storage unit, or acquire the first data from the memory and write the first data into the second non-volatile storage unit, wherein the log file of the first data records data changes of the first data.   
     
     
         9 . The data processing device according to  claim 8 , 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 log file of the first data into the first non-volatile storage unit; and   the persistency control unit is configured to acquire the first data from the memory, and convert the acquired first data to the log file and write the converted log file into the second non-volatile storage unit, or acquire the first data from the memory and write the first data into the second non-volatile storage unit.   
     
     
         10 . The data processing device according to  claim 8 , wherein the memory read/write control unit is further configured to write second data into the memory, and write a log file of the second data into the first non-volatile storage unit. 
     
     
         11 . The data processing device according to  claim 10 , wherein the data recovery unit is further configured to recover the first data lost in the memory by using the log file of the first data in the second non-volatile storage unit, and recover the second data lost in the memory by using the log file of the second data in the first non-volatile storage unit. 
     
     
         12 . A data processing method applied in a data processing device, comprising:
 receiving, by the data processing device, first data to be written into a memory of the data processing device;   writing the first data into the memory, and writing a log file of the first data into a first non-volatile storage unit , wherein the log file of the first data records data changes of the first data; and   writing, into a second non-volatile storage unit, the 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.   
     
     
         13 . The data processing method according to  claim 12 , further comprising:
 writing second data into the memory, and writing a log file of the second data into the first non-volatile storage unit.   
     
     
         14 . The data processing method according to  claim 13 , further comprising:
 when the first data in the memory is lost, recovering the first data lost in the memory by 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 in the memory by using the log file of the second data in the first non-volatile storage unit.   
     
     
         15 . The data processing method according to  claim 12 , wherein after the writing, into a second non-volatile storage unit, the log file of the first data in the first non-volatile storage unit, instructing the first non-volatile storage unit to release space occupied by the log file of the first data. 
     
     
         16 . The data processing method according to  claim 13 , wherein 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. 
     
     
         17 . A data processing method applied in a data processing device, comprising:
 receiving, by the data processing device, first data to be written into a memory of the data processing device;   writing the first data into the memory, and writing a log file of the first data into a first non-volatile storage unit ; and   converting the first data in the memory to the log file and writing the converted log file into a second non-volatile storage unit, writing the first data in the memory into a 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, and wherein the log file of the first data records data changes of the first data.   
     
     
         18 . The data processing method according to  claim 17 , further comprising:
 writing second data into the memory, and writing a log file the second data into the first non-volatile storage unit .   
     
     
         19 . The data processing method according to  claim 18 , further comprising:
 when the first data in the memory is lost, recovering the first data lost in the memory by 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 in the memory by using the log file of the second data in the first non-volatile storage unit.   
     
     
         20 . The data processing method according to  claim 17 , wherein the recovering the first data lost in the memory by 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 by using 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 by using converted first data.

Cited by (0)

No later patents cite this yet.

References (0)

No backward citations on record.