Supercharge Your Innovation With Domain-Expert AI Agents!

Trim command implementation method and device based on solid state disk and computer device

A solid-state hard disk, a technology for implementing methods, applied in the input/output process of computing, data processing, instruments, etc., and can solve problems such as affecting user experience

Active Publication Date: 2019-12-13
SHENZHEN YILIAN INFORMATION SYST CO LTD
View PDF7 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In the solid-state hard disk, when the user deletes the file, it just cuts off the association between the file and the operating system, but the SSD still retains the mapping between the logical address and the physical address, and the data in the NAND (for the deleted file) is also considered valid by the SSD. FTL performs garbage collection operations, and these data will still be transported; for this reason, Nvme provides the Trim command, and the logical address that has been trimmed will be used as nomapping data or return the previously written data when it is read again. The data corresponding to the passed logical address will not be regarded as valid data when FTL performs garbage collection; when formatting a disk or deleting a large file, the host will send a Trim command to the SSD with a relatively large space. For the logical address of the segment space, the firmware needs to modify the corresponding "logical to physical address mapping table" to be invalid, and modify the corresponding number of valid pages. This operation often takes several seconds to more than ten seconds. Obviously, this delay affects the user experience. If there is an abnormal power failure during this process, the unfinished operation will not be resumed

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
  • Trim command implementation method and device based on solid state disk and computer device
  • Trim command implementation method and device based on solid state disk and computer device
  • Trim command implementation method and device based on solid state disk and computer device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0048] In order to make the purpose, technical solution and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present application, and are not intended to limit the present application.

[0049] In the existing SSD system, the following operations are usually performed after receiving the Trim command: take out the L2P table (logical address-physical address mapping table) corresponding to the logical address range passed in by the Trim command and back it up in a space, and then copy this mapping table Marked as an invalid address. Such as figure 1 As shown in , it is assumed that the range of Trim required is lpa m~n, and the corresponding mapping table is marked as invalid. Traverse each physical address gppa m~n corresponding to lpa m~n, if the addres...

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 relates to a Trim command implementation method and device based on a solid state disk, a computer device and a storage medium. The method comprises: acquiring a Trim command implementation request based on the solid state disk; requesting to analyze the logic address of the Trim command according to the Trim command of the solid state disk; splitting the logic address into an immediate execution part and a background execution part according to an analysis result; and executing synchronous Trim operation on the Trim command corresponding to the immediate execution part, markingthe Trim command corresponding to the background execution part in a Trim bitmap table, and writing the Trim command into the NAND. According to the method, the content of the Trim command is split into an immediately executed part and a background executed part. The immediately executed part is subjected to normal Trim operation, and the background executed part is marked and written into the NAND and is taken out when the NAND is idle, so that the completion time of the Trim command is shortened, and the SSD has better user experience.

Description

technical field [0001] The present invention relates to the technical field of solid-state hard drives, in particular to a method, device, computer equipment and storage medium for implementing a Trim command based on solid-state hard drives. Background technique [0002] At present, SSD (Solid State Drive) has been widely used in various occasions, and is gradually replacing traditional hard disks due to its excellent performance, power consumption, and environmental adaptability. In the solid-state hard disk, when the user deletes the file, it just cuts off the association between the file and the operating system, but the SSD still retains the mapping between the logical address and the physical address, and the data in the NAND (for the deleted file) is also considered valid by the SSD. FTL performs garbage collection operations, and these data will still be transported; for this reason, Nvme provides the Trim command, and the logical address that has been trimmed will b...

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): G06F3/06
CPCG06F3/0611G06F3/0652G06F3/0638G06F3/0679Y02D10/00
Inventor 左建冯元元冷志源
Owner SHENZHEN YILIAN INFORMATION SYST CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More