A method, device, equipment and storage medium for mixed reading and writing of ssd

A write request and read request technology, applied in the storage field, can solve the problems of wasting IO processing time of the core, reading data errors, etc., and achieve the effect of ensuring data correctness, reducing IO delay, and ensuring atomicity

Active Publication Date: 2022-02-18
ZHENGZHOU YUNHAI INFORMATION TECH CO LTD
View PDF8 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

This kind of scheme requires two operations on the L2P in its own core for a certain read and write, which wastes the IO processing time of the core.
And in the normal IO process, if the atomicity of writing cannot be guaranteed, once there is a read insertion, a read data error will occur

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
  • A method, device, equipment and storage medium for mixed reading and writing of ssd

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0032] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0033] The present invention provides a method for mixed reading and writing of SSD, such as figure 1 shown, including the following steps:

[0034] S101. When a write request is received, lock processing is performed by a lock manager (lock manager);

[0035] The lock manager is responsible for locking all writing processes;

[0036] S102, when receiving a read request, apply for a lock to the lock manager, perform a read operation when the lock is applied ...

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 present application discloses a method, device, device, and storage medium for mixed reading and writing of SSDs. The method includes: when a write request is received, lock processing is performed through a lock manager; when a read request is received, an application is made to the lock manager Lock, when the lock is applied for, the read operation is performed, and when the lock is not applied for, it is hung on the pending list. This application uses a special lock manager to manage read-write locks, which can realize read-write and unlock in the IO process, ensure the atomicity of writing in mixed reading and writing, and ensure the correctness of data during mixed reading and writing. In addition, due to the use of Managed by a dedicated lock manager, which can reduce IO latency.

Description

technical field [0001] The present invention relates to the field of storage technology, in particular to a method, device, equipment and storage medium for mixed reading and writing of SSDs. Background technique [0002] Solid State Drives (SSD), as a storage device, its most basic function is to complete data reading and writing and storage operations. During the operation of SSD, it often encounters mixed reading and writing and reads and writes fall into the same segment. In the case of a logical block address (Logical Block Address, LBA), in this case, processing needs to be performed to ensure that each read data is correct data. [0003] At present, the existing practice is usually to write the lock bit (lock bit) into the logical-physical mapping table (L2P table) when writing, and then when the read comes, first judge whether the bit is locked, and when it is locked, then The normal read operation can only be completed when it is not read and is not locked. This k...

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 Patents(China)
IPC IPC(8): G06F3/06
Inventor 苗森
Owner ZHENGZHOU YUNHAI INFORMATION TECH CO LTD
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