Method of realizing LBA-level TRIM command by solid state disk

A solid-state drive, level technology, applied in the direction of memory address/allocation/relocation, input/output to the record carrier, etc., can solve problems such as unusability, and achieve simple results

Inactive Publication Date: 2018-01-26
RAMAXEL TECH SHENZHEN
View PDF3 Cites 16 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, if the host sends a certain LBA (512byte) in TRIM LPA M, this method cannot be used

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 of realizing LBA-level TRIM command by solid state disk
  • Method of realizing LBA-level TRIM command by solid state disk
  • Method of realizing LBA-level TRIM command by solid state disk

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0012] 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 creative efforts fall within the protection scope of the present invention.

[0013] figure 1 It is an implementation diagram of the trim command in the 4KB mapping mechanism; for SSDs, the logical space specified by the TRIM command can be quickly realized by setting the relevant mapping of the mapping table to an invalid mapping. But this only works for granular maps with LPA (4KB) level or larger. The host issues the TRIM LPA M (4KB) command, and the data of the original mapping record LPA M in the SSD mapping table is written in the pag...

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 of realizing an LBA-level TRIM command by a solid state disk. The method is characterized by: dividing each data page into N data blocks according to a size of 512 KBor 1024 KB, and setting N data bits in a metadata area of each data page to use the same as a data block status identification table, wherein each bit of the data block status identification table respectively and uniquely corresponds to one of the data blocks, and identifies whether data on the corresponding data block are valid; and reading the entire data page by a garbage collection program, recognizing valid data blocks of the data page through detecting the data block status identification table of the data page, migrating data of the valid data blocks, and modifying a mapping table at the same time to complete garbage collection of the data page. Metadata space provided by the NAND flash data page is fully utilized, newly adding extra memory capacity is not needed, and realization is simple and effective.

Description

technical field [0001] The invention relates to a solid-state hard disk control technology, in particular to a method for a solid-state hard disk to realize LBA-level TRIM commands. Background technique [0002] The TRIM command is a technology developed by Microsoft and major SSD manufacturers, and belongs to the technical command of the ATA8-ACS specification. TRIM is a SATA interface command that tells NAND flash solid-state storage devices which data to erase. [0003] At present, most solid-state drives map data at a logical block address LPA (4KB) or greater granularity. For such solid-state drives, it is difficult to implement TRIM commands at the LBA (512Byte) level. One implementation is to change LPA-level or larger-grained mapping to LBA-level. This method will greatly increase the size of the mapping table in the solid-state drive, requiring more memory support and affecting performance. Or for some solid-state drives, directly point out that the LBA-level TRIM...

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/02G06F3/06
Inventor 华荣
Owner RAMAXEL TECH SHENZHEN
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