Unlock instant, AI-driven research and patent intelligence for your innovation.

Data writing method and apparatus

A data writing and data technology, applied in the storage field, can solve problems affecting SSD performance, etc.

Active Publication Date: 2017-11-14
INST OF MICROELECTRONICS CHINESE ACAD OF SCI
View PDF4 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

This feature of erasing first and then writing leads to the problem of GC delay (Garbage Collection Latency). Compared with the write operation, the recycling operation itself brings additional background data movement, which is commonly referred to as write amplification. The GC delay caused by the amplification directly affects the performance of the SSD (the smaller the GC delay, the better the performance of the entire SSD)

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Data writing method and apparatus
  • Data writing method and apparatus
  • Data writing method and apparatus

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0054] figure 1 It is a flowchart of a data writing method provided by the embodiment of this application.

[0055] like figure 1 As shown, the method includes:

[0056] S11. Obtain the target block to be erased in the SSD;

[0057] A data writing method provided in the embodiment of the present application is applied to a solid state disk (SSD), and is applied to a situation where data recovery operations need to be performed on the SSD.

[0058] In the embodiment of the present application, preferably, when it is necessary to perform data recovery on the SSD, it is necessary to acquire the target block to be erased in the SSD.

[0059] Specifically, when it is necessary to recover data from the SSD, the target block to be erased in the SSD can be directly acquired through interaction with the SSD, and the target block to be erased is the block currently to be erased in the SSD.

[0060] S12. Determine the target block to be erased information of the target block to be er...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a data writing method and apparatus, which is applied to a solid state disk (SSD). The method comprises the steps of obtaining a target to-be-erased block in the SSD and target to-be-erased block information, calculating a writing request frequency of a current writing request relative to the target to-be-erased block, and judging whether the writing request frequency meets a preset erasure rule or not, and when the rule is met, determining an obtained next to-be-erased block in the SSD as the target to-be-erased block; and when the rule is not met, storing data information in fragment pages meeting a data writing demand of the current writing request in the SSD and to-be-written data in the current writing request to to-be-written blocks in the SSD, and marking the fragment pages as invalid pages. Through the method, the quantity of valid pages in the to-be-erased blocks is reduced, so that GC delay caused by write amplification is shortened and the influence of data recovery operation on SSD performance is further reduced.

Description

technical field [0001] The present application relates to the field of storage technology, and more specifically, to a data writing method and device. Background technique [0002] A solid-state drive (SSD) is a hard drive composed of a control unit and a solid-state storage unit (NAND Flash). Solid-state hard drives use solid-state storage units to store data. Before data is written, the solid-state storage unit needs to be erased. The basic unit of the erase operation is a block, and each block contains several pages. The basic unit of write operations. [0003] Taking the data corresponding to the write operation stored in the SSD before and after the write operation as an example, there are two steps to complete a write operation: first write the data to the page that has been erased (that is, a blank page), and then write the data to the original page A Page is marked as invalid, and the Page marked as invalid cannot be written again before being erased, and such a Pa...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F12/02
CPCG06F12/0246
Inventor 朱迎海陈岚郝晓冉
Owner INST OF MICROELECTRONICS CHINESE ACAD OF SCI