Method for realizing fast random writing of SSD (Solid State Disk) and avoiding writing repetition

A random write, fast technology, applied in the storage field, can solve the problems of slow speed and large memory, and achieve the effect of improving efficiency and quality, low memory usage, and small memory usage

Active Publication Date: 2021-07-20
SHANDONG SINOCHIP SEMICON
View PDF8 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Bitmap takes up a lot of memory, and the current random write is performed on the entire SSD, and the speed is relatively slow

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
  • Method for realizing fast random writing of SSD (Solid State Disk) and avoiding writing repetition

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0024] This embodiment discloses a method for realizing fast random writing of SSD and avoiding duplication of writing. This method applies for an array of 4096*1024 (only occupying 4M memory size) in the scene of random writing of data to a large-capacity SSD device, as the index array. Divide the size of the SSD device file by the length of the LBA index array to obtain the number of loops of the index array. Randomize the indexed array through a "shuffle algorithm". Then, by creating a thread with the same number of loop traversals as the execution unit for random writing, traverse the randomized index array, and implement asynchronous non-blocking submission io through libaio library functions io_submit(), io_getevents(), etc., to achieve fast random writing And avoid writing duplication, and complete the random write operation of the whole disk during the random write data verification test process.

[0025] Such as figure 1 Shown, the concrete process that this method...

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 discloses a method for realizing fast random writing of an SSD and avoiding writing repetition, which comprises the following steps of: in a scene of carrying out data random writing on SSD equipment, applying an array with the size of N as an index array of LBA; dividing the size of the SSD equipment file by the length of the LBA index array to obtain the number n of circular traversal times of the index array; randomizing the index array through a random algorithm; creating threads, the number of which is the same as the number of circular traversal times of the index array, as execution units of random writing, and traversing the randomized index array in each thread; and in the traversing process, realizing asynchronous and non-blocking IO submission through a libaio library function. According to the method and the device, a small amount of memory is occupied, rapid random write-in of the whole high-capacity SSD equipment is realized, and the test requirement of write repetition is avoided.

Description

technical field [0001] The invention relates to the field of storage, in particular to a method for realizing fast random writing of SSD and avoiding repeated writing. Background technique [0002] The data consistency verification test for SSD storage devices includes random read and write verification tests. For the random writing process, fio, the mainstream testing tool currently used in the industry, can determine whether to use a piece of memory (bitmap) to record whether it is random to a repeated position through the setting of the parameter—norandommap, and then decide whether to use the repeated position for writing operate. Bitmap takes up a lot of memory, and the current random write is performed on the entire SSD, and the speed is relatively slow. Contents of the invention [0003] The technical problem to be solved by the present invention is to provide a method for realizing fast random writing of SSD and avoiding duplication of writing, which realizes the...

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
IPC IPC(8): G06F3/06G06F11/10
CPCG06F3/061G06F3/0614G06F3/064G06F3/0643G06F3/0679G06F11/1004
Inventor 王璞刘正主李铁段好强
Owner SHANDONG SINOCHIP SEMICON
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products