Garbage collection method, device, equipment and readable storage medium for solid-state hard disk

A technology of solid-state hard drives and recycling methods, which is applied in the direction of multi-programming devices, program control design, and data processing input/output processes, etc., and can solve the problems of inability to recycle data blocks, large number of valid data frames, and inefficient garbage collection and other issues, to achieve the effects of controllable space utilization, improved stability and reliability, and improved space recovery rate

Active Publication Date: 2022-06-17
北京浪潮数据技术有限公司
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, if there are multiple data blocks with a low number of erasures that need to be migrated within a period of time, and these data blocks contain many valid data frames, the data blocks cannot be recovered for a long time, which will affect the efficiency of recovering valid data blocks , can easily affect the performance of solid-state drives. For example, in the early stage of the SSD life cycle, when there are a large number of old data blocks with the same number of wear times, cold data written randomly, and a large number of valid data frames may result in inefficient garbage collection. storm
That is to say, when related technologies perform garbage collection of source data blocks according to the level of wear and tear, the space recovery rate is low, and even inefficient garbage collection storms may occur, which affects the user's read and write efficiency, especially under heavy writing conditions. The number of blocks will be low to a certain level, and no free blocks can be recovered for a long time, and the disk cannot respond to the IO request of the host, and the high-quality and long-life service of SSD cannot be guaranteed.

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
  • Garbage collection method, device, equipment and readable storage medium for solid-state hard disk
  • Garbage collection method, device, equipment and readable storage medium for solid-state hard disk
  • Garbage collection method, device, equipment and readable storage medium for solid-state hard disk

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0053] In order to make those skilled in the art better understand the solution of the present invention, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments. Obviously, the described embodiments are only some, but not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

[0054] The terms "first", "second", "third", "fourth", etc. in the description and claims of the present application and the above drawings are used to distinguish different objects, rather than to describe a specific order. . Furthermore, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device comprising a series of ste...

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 garbage collection method, device, equipment and computer-readable storage medium for a solid-state hard disk. Wherein, the method includes performing random discrete processing on the number of times of wear of each dirty data block in the solid state disk; calculating the garbage collection of each dirty data block according to the average number of times of wear, the number of valid data frames of each dirty data block, and the number of times of wear after randomization Priority: Divide dirty data blocks into multiple categories based on the number of valid data frames of each dirty data block, and use preset adjustment factors to adjust the garbage collection priority values ​​of dirty data blocks in various data sets; according to the current idle The relationship between the total number of data blocks and the number threshold is to perform garbage collection from each data set according to the adjusted garbage collection priority. On the basis of improving the space utilization rate of the solid-state disk and taking into account wear balance, it can avoid garbage collection. The occurrence of cold data migration storms can also effectively improve the stability and reliability of solid-state drives and ensure user experience.

Description

technical field [0001] The present application relates to the technical field of wear leveling of solid-state drives, and in particular, to a method, apparatus, device, and computer-readable storage medium for garbage collection of solid-state drives. Background technique [0002] With the rapid development of cloud computing and Internet technologies, massive data needs to be stored all the time in daily work and life. Data storage technology has been developed accordingly to meet the actual storage needs of explosively growing data. Solid State Drives (SSD) are hard disks made of solid-state electronic storage chip arrays, and are composed of a control unit and a solid-state storage unit. Due to its stable performance, such as fast read and write speed and low energy consumption, it effectively overcomes many shortcomings of mechanical hard disks and is widely used. [0003] The storage unit of the solid-state hard disk includes a plurality of data blocks (Block), and 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
Patent Type & Authority Patents(China)
IPC IPC(8): G06F3/06G06F9/50
CPCG06F3/0616G06F3/064G06F3/0646G06F3/0688G06F9/5022
Inventor 王鑫
Owner 北京浪潮数据技术有限公司
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