Data processing method and device of SSD hard disk

A data processing device and data processing technology, applied in the field of information processing, can solve the problems of reducing disk life, reducing read and write efficiency, and non-partitioning of hot and cold data writing, and achieve the effect of reducing the number of erasing and writing and improving the efficiency of garbage collection.

CN108228103AInactive Publication Date: 2018-06-29SHENZHEN YILIAN INFORMATION SYST CO LTD
5 Cites 4 Cited by

Patent Information

Authority / Receiving Office
CN · China
Current Assignee / Owner
Publication Date
2018-06-29
Estimated Expiration
Not applicable · inactive patent

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

Abstract

The invention provides a data processing method and device of a SSD hard disk and relates to the technical field of information processing. The method includes: dividing a cache region into a cold data cache storage region and a hot data cache storage region; dividing user regions into a hot data region, a cold data region, a hot data waste recycling region and a cold data waste recycling region;when data are cold data, storing the data in the cold data cache storage region; when the cold data cache storage region is in a state of being full of data, writing the data into the cold data region; when waste recycling operation needs to be performed, selecting a block with smallest effective data amount from all user regions; when the block with the smallest effective data amount is a hot data block, writing the block into the hot data waste recycling region. The data processing method has the advantages that waste recycling efficiency is improved, and the number of erasing times of the SSD hard disk is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] The invention relates to the technical field of information processing, in particular to a data processing method and device for an SSD hard disk. Background technique

[0002] The most efficient garbage collection mechanism in the existing technology hopes to select the storage block containing the least valid data each time, thereby improving the efficiency of garbage collection.

[0003] However, in the process of realizing the technical solution of the present invention, the inventor of the present application found that the above-mentioned prior art has at least the following technical problems:

[0004] In the existing technology, hot and cold data are written without partitioning, resulting in low garbage collection efficiency. Cold data will also be moved around with garbage collection, which not only reduces the read and write efficiency, but also reduces the life of the disk. Contents of the invention

[0005] The embodiment of the present...

Examples

Embodiment 1

[0038] The embodiment of the present application provides a data processing method of an SSD hard disk, figure 1 It is a schematic flowchart of a data processing method for an SSD hard disk in an embodiment of the present invention. Such as figure 1 As shown, the data includes cold data and hot data, and the method includes:

[0039] Step 110: Divide the cache area into a cold data cache storage area and a hot data cache storage area; divide the user area into a hot data area, a cold data area, a hot data garbage collection area, and a cold data garbage collection area;

[0040] Step 120: When the data is cold data, store the data in the cold data cache storage area;

[0041] Step 130: When the data in the cold data cache storage area is full, write the data into the cold data area;

[0042] Step 140: When a garbage collection operation is required, select the block with the smallest amount of valid data from all user areas;

[0043] Step 150: When the block with the small...

Embodiment 2

[0048] Based on the same inventive concept as the data processing method of an SSD hard disk in the foregoing embodiments, the present invention also provides a data processing device for an SSD hard disk, such as figure 2 shown, including:

[0049] The first partition unit 11, the first partition unit 11 is used to distinguish the cache area into a cold data cache storage area and a hot data cache storage area; distinguish the user area into a hot data area, a cold data area, and a hot data area Garbage collection area, cold data garbage collection area;

[0050] The first storage unit 12, the first storage unit 12 is used to store the data in the cold data cache storage area when the data is cold data;

[0051] The first writing unit 13, the first writing unit 13 is used to write data into the cold data area when the data in the cold data cache storage area is full;

[0052] A first selection unit 14, the first selection unit 14 is configured to select a block with the sm...

Embodiment 3

[0062] Based on the same inventive concept as the data processing method of an SSD hard disk in the foregoing embodiments, the present invention also provides a data processing device for an SSD hard disk, on which a computer program is stored, and when the program is executed by a processor, the aforementioned A step in any method of a data processing method for an SSD hard disk.

[0063] Among them, in image 3 In, bus architecture (represented by bus 300), bus 300 may include any number of interconnected buses and bridges, bus 300 will include one or more processors represented by processor 302 and various types of memory represented by memory 304 circuits linked together. The bus 300 may also link together various other circuits, such as peripherals, voltage regulators, and power management circuits, etc., which are well known in the art and thus will not be further described herein. The bus interface 306 provides an interface between the bus 300 and the receiver 301 and...