A data processing method and device
A data processing and data technology, applied in the direction of electrical digital data processing, data processing input/output process, instruments, etc., can solve the problems of increasing garbage collection load, blank page generation, resource waste, etc., to avoid load and delay use Life expectancy and the effect of reducing waste of resources
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0063] An embodiment of the present invention provides a data processing method, the method is applied to a storage device, such as figure 1 As shown, the method includes:
[0064] Step 101. Obtain data characteristics of data in each storage block in a storage device.
[0065] Wherein, the data feature refers to the number of write operations and / or the number of erase operations of data.
[0066] In one embodiment, the data includes at least the first type of data (cold data) and the second type of data (hot data).
[0067] Specifically, the first type of data means that the number of write operations and / or the number of erase operations of the data is less than or equal to the first threshold.
[0068] Specifically, the second type of data means that the number of write operations and / or the number of erase operations of data is greater than or equal to a second threshold; wherein, the second threshold is greater than the first threshold.
[0069] In one embodiment, the...
Embodiment 2
[0140] Based on the technical solutions described in the above embodiments, the embodiments of the present invention provide a data processing device, such as figure 2 As shown, the data processing device includes:
[0141] Flash memory medium 21, used for storing data;
[0142] The processor 22 is configured to obtain data characteristics of data in each storage block in the storage device; select at least one active storage area from each storage block; migrate the first data in the storage block that needs data processing to the at least one active storage area; An active storage area, wherein the data characteristic of the first data satisfies a predetermined condition.
[0143] Optionally, the processor 22 is also configured to:
[0144] After the at least one active storage area is full, the storage block requiring data processing is used as a new active storage area.
[0145] Optionally, the processor 22 is also configured to:
[0146] When the at least one active ...
Embodiment 3
[0168] Based on the technical solutions described in the above embodiments, the embodiments of the present invention provide a data processing device, such as image 3 As shown, the data processing device includes:
[0169] An acquisition unit 31, configured to acquire data characteristics of data in each storage block in the storage device;
[0170] A selection unit 32, configured to select at least one active storage area from the storage blocks;
[0171] The processing unit 33 is configured to migrate the first data in the storage block requiring data processing to the at least one active storage area, wherein the data characteristic of the first data satisfies a predetermined condition.
[0172] Optionally, the selection unit 32 is further configured to:
[0173] After the at least one active storage area is full, the storage block requiring data processing is used as a new active storage area.
[0174] Optionally, the selecting unit 32 uses the storage block requiring da...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


