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.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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.
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More - R&D
- Intellectual Property
- Life Sciences
- Materials
- Tech Scout
- Unparalleled Data Quality
- Higher Quality Content
- 60% Fewer Hallucinations
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2025 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com



