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

Instruction conflict detection method, device, device and storage medium for solid-state hard disk

A technology of solid-state disk and conflict detection, which is applied in error detection/correction, generation of response errors, instruments, etc., can solve problems such as trim instruction and write instruction blocking, achieve optimization complexity, improve system performance, and solve mutual blocking problems Effect

Active Publication Date: 2022-05-31
BIWIN STORAGE TECH CO LTD +1
View PDF9 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The technical problem to be solved by the present invention is to provide a command conflict detection method, device, equipment and storage medium of a solid-state hard disk, which can solve the problem that the trim command and the write command block each other

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
  • Instruction conflict detection method, device, device and storage medium for solid-state hard disk
  • Instruction conflict detection method, device, device and storage medium for solid-state hard disk
  • Instruction conflict detection method, device, device and storage medium for solid-state hard disk

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0050] Please refer to Figure 4 , the first embodiment of the present invention is: a method for detecting instruction conflict of a solid state disk (Solid State Disk, SSD), which can be applied to the conflict detection of a write instruction (write instruction) and a trim instruction, and simplifies the existing write-trim instruction The complexity of the conflict detection algorithm, and solve the problem that the write instruction and the trim instruction block each other.

[0051] like Figure 4 shown, including the following steps:

[0052] S401: When a write instruction is received, write data into a corresponding block.

[0053] In this embodiment, in the process of executing the write instruction, the SSD firmware does not need to perform any detection and processing on the trim instruction at all, and directly performs the disk flushing operation.

[0054] S402: When the trim instruction is received, obtain the sequence number and pointer value of the block to ...

Embodiment 2

[0069] Please refer to figure 2 The second embodiment of the present invention is an instruction conflict detection device for a solid-state hard disk, which can execute the instruction conflict detection method for a solid-state hard disk provided by the first embodiment of the present invention, and has functional modules and beneficial effects corresponding to the execution method. The device can be implemented by software / or hardware, and specifically includes:

[0070] The writing module 201 is used for writing data into the corresponding block when receiving the writing instruction;

[0071] The first obtaining module 202 is configured to obtain the serial number of the block in which data is currently being written when the trim instruction is received, as the first serial number, and according to the L2P table, obtain the sequence of blocks corresponding to the physical area that is disabled for deletion number, as the second serial number;

[0072] The first markin...

Embodiment 3

[0081] Please refer to image 3 , the third embodiment of the present invention is: an electronic device, the electronic device includes:

[0082] one or more processors 301;

[0083] storage device 302 for storing one or more programs;

[0084] When the one or more programs are executed by the one or more processors 301, the one or more processors 301 implement each process in the above-mentioned embodiment of the instruction conflict detection method for a solid-state disk, and The same technical effect can be achieved, and in order to avoid repetition, details are not repeated here.

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 command conflict detection method, device, device and storage medium of a solid-state hard disk. The method includes: when receiving a write command, writing data into a corresponding block; The serial number of the block where the data is written is used as the first serial number, and according to the L2P table, the serial number of the block corresponding to the physical area that is prohibited to be deleted is obtained as the second serial number; if the first serial number is greater than the second serial number, Physical regions that are disabled for deletion are then marked as unmapped. The invention can solve the problem that the trim instruction and the write instruction block each other.

Description

technical field [0001] The present invention relates to the technical field of solid-state hard disks, and in particular, to a method, apparatus, device and storage medium for detecting instruction conflict of solid-state hard disks. Background technique [0002] At present, in the implementation of DRAMless SSD firmware, if the write command (write command) and trim command (also called Disable Delete Notify, disable delete notification) issued by the host involve the same storage area, firmware is required to ensure that the command issued by the host is strictly order, otherwise there will be data inconsistency problems. In order to achieve order preservation, mainstream firmware manufacturers generally use lock protection and two-way conflict detection methods in the trim and write processes. After the completion, if there is no conflict, then flash the disk; similarly, when executing the trim command, first perform lock protection, and then perform conflict detection w...

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): G06F11/07
CPCG06F11/0727G06F11/079
Inventor 孙成思孙日欣郭丽强高嵊昊
Owner BIWIN STORAGE TECH CO LTD