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

GC flow control method and device, computer readable storage medium and electronic equipment

A computer program and flow control technology, applied in computing, electrical digital data processing, instruments, etc., can solve problems such as delay uncertainty, host service interruption, and inaccurate delay control, and achieve the effect of improving stability.

Active Publication Date: 2021-02-02
成都佰维存储科技有限公司
View PDF7 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

If the suspension time is too long, it may cause the host to fail to write IO timeout, resulting in host business interruption;
[0006] For the second method, although the space recovery of GC and the space consumption of host IO can be controlled, there will be the following problems: First, the delay control is not accurate enough (the host writes IO in the process of sending it to NAND. After some logical processing, the delay of this processing is uncertain); secondly, because the speed of reclaiming each super block is different (the amount of data that needs to be relocated in each super block is different), therefore, Due to the inability to accurately match GC and host IO, the performance of host IO will fluctuate under this flow control when writing host IO, which is unfavorable for some host applications that require performance stability

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
  • GC flow control method and device, computer readable storage medium and electronic equipment
  • GC flow control method and device, computer readable storage medium and electronic equipment
  • GC flow control method and device, computer readable storage medium and electronic equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0064] Please refer to Figure 4 , a GC flow control method, comprising steps:

[0065] S1. Preset the main token bucket, reserved token bucket, token water level and the first storage space corresponding to each token;

[0066] For example, setting a page is a token, that is, the first storage space corresponding to each token is a page, and setting the token water level to 35;

[0067] S2. When receiving the reclaimed space when the GC is completed, determine the number of tokens corresponding to the reclaimed space according to the first storage space;

[0068] For example, when the reclaimed space obtained when the GC is completed is 43 pages, it can be determined that the number of tokens corresponding to the reclaimed space is 43 according to the first storage space;

[0069] S3. Add tokens of the token number into the main token bucket or reserved token bucket according to the token water level;

[0070] S4. Receive a write IO request, and obtain a corresponding numb...

Embodiment 2

[0074] The difference between this embodiment and Embodiment 1 is that it specifically defines how to add tokens of the token number into the main token bucket or reserved token bucket according to the token water level:

[0075] Judging whether the number of tokens is higher than the token water level, if so, adding tokens corresponding to the token water level in the main token bucket, and adding the remaining tokens to the reserved token bucket Reserve the token bucket, if not, take out tokens from the reserved token bucket to make up the number of tokens to the token water level, and add the tokens corresponding to the token water level to the token water level the primary token bucket;

[0076] Specifically, such as Figure 8 , 9 As shown, on the basis of the first embodiment above, if the space of n pages is reclaimed when a super block GC is completed, and n is higher than the preset token water level, then add The number of tokens corresponding to the token water le...

Embodiment 3

[0081] On the basis of Embodiment 1 or Embodiment 2, another optional implementation manner is to judge whether the number of tokens in the main token bucket is lower than the preset number of tokens, and if so, from the reserved Taking out tokens from the token bucket to the main token bucket, so that the number of tokens in the main token bucket is equal to the preset number of tokens.

[0082] Preferably, the preset number of tokens is determined according to the maximum number of tokens required to obtain the data corresponding to the IO write request in the current period of time, so as to ensure that the corresponding number of tokens can always be obtained when the current IO is written. Tokens, IO does not need to hang up and wait, and at the same time, the number of tokens in the main token bucket can be fully obtained by IO, which improves the utilization of space resources.

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 GC flow control method and device, a computer readable storage medium and electronic equipment. The method comprises the steps of: presetting a main token bucket, a reservedtoken bucket, token water levels and first storage spaces corresponding to tokens; when the recovery space when GC is completed is received, determining the token number corresponding to the recoveryspace according to the first storage space; adding the tokens of the token number into the main token bucket or the reserved token bucket according to the token water level; and receiving a write IO request, and obtaining a corresponding number of tokens from the main token bucket according to the data size corresponding to the write IO request. According to the embodiment of the invention, the GCrecovery space is stored and used by using the token bucket mechanism, it is ensured that the GC space recovery speed is matched with the speed of the host IO consumption space, and meanwhile, the reserved token bucket and the auxiliary main token bucket are additionally arranged to store tokens generated by the GC recovery space, so that performance jitter generated by different super blocks ofGC can be balanced, and therefore, the stability of IO writing performance of the host is improved.

Description

technical field [0001] The invention relates to the field of hard disk storage, in particular to a GC flow control method, device, computer-readable storage medium and electronic equipment. Background technique [0002] During the use of SSD (Solid State Drives, solid state drives), when the amount of writing reaches the capacity that the host can recognize after the disk is mapped to the operating system and then continues to write, the SSD needs to perform GC (GarbageCollection, garbage collection). )deal with. Such as figure 1 , 2 As shown, the internal storage space of the SSD is composed of multiple super blocks, wherein one data block block is composed of multiple data pages. [0003] With the writing of the host IO, for the same LBA (Logic Block Address, logical data block address) position, if an overwrite occurs, the firmware (firmware) will allocate new space for the overwritten data, and The data stored in the previous space becomes old data, and the space bec...

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
IPC IPC(8): G06F3/06
CPCG06F3/061G06F3/0604G06F3/0679G06F3/0631
Inventor 孙成思孙日欣曾煜高嵊昊
Owner 成都佰维存储科技有限公司
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