ZNS-SSD key value storage system garbage collection optimization method and device based on cache
By adopting a cache-based garbage collection optimization method in the ZNS-SSD key-value storage system, the cache is cached with effective SST files that are about to participate in the compaction operation, which solves the problems of read and write amplification and user-side write stagnation caused by garbage collection operations, and improves system performance.
Patent Information
- Application Number
- CN202510526278.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-25
- Publication Date
- 2025-05-30
- Estimated Expiration
- 2045-04-25
AI Technical Summary
In the key-value storage system combined with ZNS-SSD and LSM-Tree, the read and write amplification caused by garbage collection operations and user-side write stagnation problems affecting system performance.
Using a cache-based garbage collection optimization method, by selecting a Zone with an invalid data proportion >70% as a candidate Zone, the valid SST files that are about to participate in the compaction operation are cached, and the judgment conditions of the cache SST are adjusted according to the amount of cached data in the GC operation are adjusted to optimize the garbage collection operation.
The cascading amplification brought by the combination of ZNS-SSD and LSM-Tree is reduced, the efficiency of garbage collection operations is improved, the write amplification of data migration is reduced, and the read operation efficiency is improved, avoiding the problem of user-side write stagnation.
Smart Images

Figure CN120066984A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer storage, and particularly to a garbage collection optimization method and device for a cache-based ZNS-SSD key-value storage system. Background Art
[0002] ZNS-SSD is a new type of SSD technology that optimizes storage performance and extends device lifespan. By introducing the concept of partitioned storage and adopting a partitioned and sequential data writing and management method, it significantly improves storage efficiency, reduces write amplification, and effectively extends the device's service life.
[0003] The sequential write limitation of ZNS-SSD naturally fits with the append write and hierarchical merge methods used in the LSM-Tree (Log-Structured MergeTree) in a key-value storage system. The data structure of LSM-Tree exhibits excellent write performance and data persistence on ZNS-SSD. Combining ZNS-SSD with LSM-Tree can achieve significant performance improvement.
[0004] When the capacity of a certain Zone in ZNS-SSD is exhausted or reaches a preset threshold, a zone cleaning operation is triggered. During the cleaning process, the system will preferentially select a Zone with a lower proportion of invalid data for garbage collection (GC). During cleaning, the still valid data in the Zone will be migrated to a new target Zone, and the invalid data in the old Zone will be marked as recyclable. When the data migration is completed and there is no valid data in the old Zone, the system will perform a Reset operation to release the space of the Zone.
[0005] The migrated SST file may participate in the compaction operation of LSM-Tree subsequently. If the SST file triggers compaction immediately after the GC operation, it will cause the migrated data to quickly become invalid, resulting in read and write overhead. Some studies propose replacing the data migration in GC with a merge operation, but this method also brings new challenges: the complexity of the compaction operation is higher than simple data migration, which may increase the processing overhead. During the zone cleaning process, the compaction operation may cause the write stagnation at the user end, affecting the overall performance of the system.
[0006] Therefore, there is a need to design a garbage collection optimization method for a cache-based ZNS-SSD key-value storage system to improve the efficiency of garbage collection operations and reduce the read and write amplification of this operation. Summary of the Invention
[0007] The purpose of the present invention is to solve the problems in the prior art.
[0008] The technical solution adopted by the present invention to solve its technical problems is: to provide a garbage collection optimization method for a ZNS-SSD key-value storage system based on caching, including the following steps:
[0009] Selection step: Select the Zone with the invalid data ratio > 70% as the candidate Zone;
[0010] Judgment step: According to the judgment round value N, perform N rounds of judgment; in each round of judgment, cache the valid SST files to be involved in the compaction operation in the candidate Zone into the memory; the initial default value of N is 1;
[0011] Garbage collection step: Select the Zone with the largest ratio of invalid data plus cacheable SST data value in the candidate Zone for garbage collection operation;
[0012] Optimization step: Judge whether the amount of data cached in this GC operation is > 70% of the valid data. If so, directly end the garbage collection operation; otherwise, set the judgment round value to N + 1 and end the garbage collection operation.
[0013] Preferably, the judgment step includes the following steps:
[0014] Round judgment step: Confirm whether the current round of judgment is the first round of judgment. If so, enter the initial round judgment step; otherwise, enter the other round judgment step;
[0015] Initial round judgment step: Cache the valid SST files that satisfy Score x > 1 and Score x+1 to Score i are all greater than 0.8 into the memory; where x is a certain level from 0 to i - 1, and i is the level where the valid SST file is located;
[0016] Other round judgment step: Cache the valid SST files with Score i > 0.8 into the memory;
[0017] Wherein, , represents the SST file data size stored in the i-th layer, represents the SST file data size that can be stored in the i-th layer limit. The compaction operation threshold of the i-th layer is represented by Score i . Score i > 1 indicates that the i-th layer will actively trigger the compaction operation; Score i > 0.8 indicates that the i-th layer may trigger the compaction operation due to new data written in the upper layer.
[0018] Preferably, each round of judgment caches the valid SST files to be involved in the compaction operation in the candidate Zone into the memory, and further includes: adding a cache field to the SST file metadata saved in the Manifest file, modifying the cache field of the SST file metadata when caching an SST file, writing a cache record in the Manifest file, marking the data in the Zone as cacheable SST, and adjusting the read operation process and the compaction operation process.
[0019] Preferably, for the adjustment of the read operation process and the compaction operation process, the adjustment of the read operation is as follows: before performing a read operation on an SST file, first determine whether the SST file exists in the memory through the cache field, and if it exists, perform the read operation from the memory.
[0020] Preferably, for the adjustment of the read operation process and the compaction operation process, the adjustment of the compaction operation is as follows: when a cached SST file participates in the compaction operation, the corresponding cache record needs to be deleted, and the cached SST file data needs to be deleted.
[0021] The present invention also provides a garbage collection optimization device for a ZNS-SSD key-value storage system based on caching, which is used to implement the garbage collection optimization method for the ZNS-SSD key-value storage system based on caching described in any one of the above, including:
[0022] A selection module that selects a Zone with an invalid data ratio > 70% as a candidate Zone;
[0023] A judgment module that makes N rounds of judgments according to the judgment round value N; in each round of judgment, the valid SST files to be involved in the compaction operation in the candidate Zone are cached into the memory; the initial default value of N is 1;
[0024] A garbage collection module that selects the Zone with the largest ratio of invalid data plus cacheable SST data value in the candidate Zone for garbage collection operation;
[0025] An optimization module that judges whether the amount of data cached in this GC operation is > 70% of the valid data. If so, directly end the garbage collection operation; otherwise, set the judgment round value to N + 1 and end the garbage collection operation.
[0026] The present invention has the following beneficial effects:
[0027] (1) The present invention reduces the cascading amplification caused by the combination of ZNS-SSD and LSM-Tree. At the same time, it improves the efficiency of the GC operation and reduces the write amplification of data migration;
[0028] (2) By adding new metadata fields to the SST file and writing cache records in the Manifest file, the present invention improves the read operation efficiency and solves the problem of recovery after a failure of the SST file in the cache;
[0029] (3) By adjusting the traditional GC strategy and selecting the Zone with the largest proportion of invalid data and cacheable SST, the present invention can effectively reduce the amount of migration of valid data during the GC operation and speed up the GC operation;
[0030] (4) The present invention adjusts the judgment condition of the cache SST in this solution according to the amount of cached data during the GC operation, making this solution more widely applicable and effectively improving the GC performance in different regional placement strategies;
[0031] (5) The present invention performs cache operations on the SST, avoiding the problem of write stalls at the user end caused by frequently performing compaction operations on the SST files in the disk instead of the GC operation.
[0032] The following further elaborates on the present invention in detail with reference to the accompanying drawings and embodiments, but the present invention is not limited to the embodiments. Description of the Drawings
[0033] Figure 1 It is a method step diagram of the garbage collection optimization method for the cache-based ZNS-SSD key-value storage system according to the embodiment of the present invention;
[0034] Figure 2 It is a system structure diagram of the garbage collection optimization method for the cache-based ZNS-SSD key-value storage system according to the embodiment of the present invention;
[0035] Figure 3 It is a flow schematic diagram of the garbage collection optimization method for the cache-based ZNS-SSD key-value storage system according to the embodiment of the present invention;
[0036] Figure 4 It is a read operation flow schematic diagram of the garbage collection optimization method for the cache-based ZNS-SSD key-value storage system according to the embodiment of the present invention;
[0037] Figure 5 It is a compaction operation flow schematic diagram of the garbage collection optimization method for the cache-based ZNS-SSD key-value storage system according to the embodiment of the present invention;
[0038] Figure 6 It is a structure schematic diagram of the garbage collection optimization device for the cache-based ZNS-SSD key-value storage system according to the embodiment of the present invention. Specific Embodiments
[0039] The present invention provides a garbage collection optimization method and device for a cache-based ZNS-SSD key-value storage system. A candidate Zone for GC operation is selected based on the proportion of invalid data. SST files that can be cached are marked according to the Score value of the level and the CP pointer within the level. The SST files that will undergo subsequent compaction operations during the GC process are cached, valid data is migrated, and the Zone space is reclaimed. According to the amount of data cached in each GC operation, the judgment round of the SST files that can be cached is adaptively adjusted. Except for the first round, the SST files that can be cached are directly judged according to the CP pointer of this level. When the SST file is the SST file that the CP pointer can point to after the increased round and the Score value of this level is close to 1, the SST file is cached, and when performing the compaction operation, it is checked whether there is still the SST file cached in this level in the cache. If so and the Score value of this level is close to 1, the next compaction operation of this level is triggered in advance.
[0040] See Figure 1 As shown, it is the method step diagram of the garbage collection optimization method for the cache-based ZNS-SSD key-value storage system in the embodiment of the present invention, including the following steps:
[0041] S101, Selection step, select the Zone with the proportion of invalid data > 70% as the candidate Zone;
[0042] S102, Judgment step, according to the judgment round value N, perform N rounds of judgment; in each round of judgment, the valid SST files to participate in the compaction operation within the candidate Zone are cached in the memory;
[0043] S103, Garbage collection step, select the Zone with the largest proportion of invalid data plus cacheable SST data value in the candidate Zone for garbage collection operation;
[0044] S104, Optimization step, judge whether the amount of data cached in this GC operation > 70% of the valid data. If so, directly end the garbage collection operation; otherwise, set the judgment round value to N + 1 and end the garbage collection operation.
[0045] Among them, the initial default value of N is 1.
[0046] Specifically, in the S102 judgment step, for the SST files that need data migration, if the file will participate in the next compaction operation, the SST file is cached in the memory.
[0047] Specifically, between levels, through judgment, ; sum iRepresents the data size of the SST file stored in layer i, M i Represents the data size of the SST file that can be stored restricted by layer i. When Score i is greater than 1, select layer i to trigger the compaction operation. If there are multiple layers greater than 1 and equal, select the higher layer for the compaction operation. When the Score values of layers 0 to i are all < 1, it means that the compaction operation will not be triggered in this round, and the subsequent judgment of the SST file S involved in the GC operation will not be performed. When the Score value of layer 0 > 1 and the Score values of layers 1 to i - 1 are all close to 1, or the Score of layer i - 1 and layer i > 1. It means that layer i where the SST file S is located in this round may trigger the compaction operation for subsequent judgment. First, judge whether the SST file S has an overlapping key range with the SST file T that is about to trigger the compaction operation in layer i - 1. If so, it means that S is about to undergo the compaction operation and S is cached; if there is no overlapping key range, the Score value of layer i is close to or greater than 1, and CPi (compaction Point) points to S, indicating that S is about to undergo the compaction operation and S is cached.
[0048] See Figure 2 As shown, when the free space in the SSD is less than a certain amount, the GC operation is triggered. Zone1 is selected as the zone for area cleaning, and there is a valid SST file in it. After this file is judged to be cacheable, modify the metadata cache field of this SST in the Manifest and write the cache record, then mark the SST file in the zone and cache this SST file. Then perform the GC operation on Zone1 and reset Zone1 to reclaim space.
[0049] Specifically, in the S102 judgment step, a cache field is added to the SST metadata saved in Manifest, and a record of the cached SST is written in the Manifest file for subsequent fault recovery. And the read operation process is adjusted to improve the read performance. Before caching the SST, the cache field of the SST metadata in Manifest is changed to 1 (a value of 0 for this field indicates that the SST file is not in the cache), and then a record MemOnlySST: {file_number, key_range, level, creation_time, cache_address} is written, where file_number represents the SST file number, key_range represents the SST file key range, level represents the level where the SST is located, creation_time represents the SST file creation time, and cache_address represents the location in memory. This record is used to recover the data saved on the SSD in combination with the WAL file after a fault.
[0050] Specifically, when performing a read operation, query whether the cache field of the SST metadata in the Manifest file is 1. If it is 1, read the SST file from memory; if it is 0, read the SST file from the SSD.
[0051] Specifically, when the amount of cached data < 70% of the valid data volume in the Zone during the GC operation, increase the number of rounds of SST caching judgment. However, since the structure of the LSM tree changes after one round of compaction, it is relatively complex to judge the SST for the next round of compaction operation. Therefore, for rounds other than the first round, if the Score value of this layer is close to 1 and the CP pointer will point to this SST file after the increased number of rounds, then directly cache this SST. After performing the compaction operation on layer i, check whether there is still an SST cached in layer i in the cache. If there is a cached SST and the Score value of layer i is close to 1, then trigger the compaction operation of this layer in advance.
[0052] See Figure 3 As shown in the figure, it is a flowchart of the garbage collection optimization method for the cache-based ZNS-SSD key-value storage system, specifically as follows:
[0053] 201. When the free space in the SSD is insufficient, trigger the GC operation and jump to 202.
[0054] 202. Take all Zones where the proportion of invalid data < 70% as candidate Zones for subsequent judgment, and jump to 203.
[0055] 203. For the SST that needs to migrate valid data in the Zone, perform subsequent judgment and jump to 204. If all the valid data in the Zone has been judged, jump to 213 for GC operation.
[0056] 204. Judge whether the current judgment of the cacheable SST is the first round. If it is, jump to 205 to judge whether the SST file undergoes the compaction operation in the first round. If not, jump to 210 to judge the i-th round.
[0057] 205. Judge the SST files existing in the Zone. If Score0 > 1 and Score1 to Scorei > 0.8, it indicates that the SST file may participate in the compaction operation, and jump to 207. If the conditions are not met, judge another situation and jump to 206.
[0058] 206. Judge whether the SST file is another situation that triggers the compaction operation. If Scorei or Scorei - 1 > 1, it indicates that the SST file may participate in the compaction operation, and jump to 207. Otherwise, it indicates that the SST file cannot participate in the subsequent compaction operation, and jump to 203 to judge other SST files in the Zone.
[0059] 207. If there is a key overlap range between the SST file T that triggers the compaction operation in the i - 1 layer and this SST file, it indicates that this SST is passively triggered for the compaction operation. Cache this SST file and jump to 209. Otherwise, perform the judgment of the active trigger compaction condition and jump to 208.
[0060] 208. If this SST file is the file pointed to by the CPi pointer of layer i, it indicates that this file may actively trigger the compaction operation. Cache this SST file and jump to 209. Otherwise, it indicates that this SST file cannot participate in the subsequent compaction operation, and jump to 203 to judge other SST files in the Zone.
[0061] 209. Modify the SST metadata in the Manifest file and write the cache record. Cache this SST, mark the SST file in the SSD as a cacheable SST, and jump to 203 to judge other SST files.
[0062] 210. If after adaptive adjustment, the GC operation needs to judge the i-th round except the first round, jump to 211 to judge the SST file. If there is no additional judgment round, jump to 203 to judge other SST files.
[0063] 211. Whether the Score value of the level where the valid SST file is located in the Zone is > 0.8. If it is greater, it means that subsequent compaction operations may occur at this level, and jump to 212. If it is < 0.8, it means that the probability of subsequent compaction operations at this level is small, and jump to 203.
[0064] 212. Whether the CP pointer of the level where the valid SST file is located in the Zone can point to this SST after i compaction operations. If it can, it means that this SST file will trigger a compaction operation after i rounds of compaction. Cache this SST file and jump to 209. Otherwise, jump to 203.
[0065] 213. After all candidate Zones are judged, select the Zone with the most invalid data and cacheable data as the object of this GC operation. After caching the cacheable SST files and migrating the valid data, reset the Zone to reclaim space and jump to 214.
[0066] 214. Judge whether the amount of data cached in this GC operation is > 70% of the valid data. If it is greater, it means that this idea matches the placement method well and there is no need to increase the number of judgment rounds for cacheable SSTs, and jump to 216. Otherwise, jump to 215.
[0067] 215. The amount of data in the cached SST file < 70% of the valid data, indicating that it matches the current placement method poorly. Increase the number of judgment rounds for cacheable SSTs, increase the amount of cacheable data to improve the performance of the present invention, and jump to 216.
[0068] 216. Complete the GC operation.
[0069] See Figure 4 As shown in the figure, it is the adjusted read operation flow chart, specifically:
[0070] 301. Perform a read operation on the SST file.
[0071] 302. Search the Memtable to determine whether the SST file is in the Memtable. If it is, jump to 306. If it is not, jump to 303.
[0072] 303. Search the Immutable Memtable to determine whether the SST file is in the Immutable Memtable. If it is, jump to 306. If it is not, jump to 304.
[0073] 304. Search for the location of this SST in the LSM tree and jump to 305.
[0074] 305. Search for the metadata of the SST file in the Manifest file. If the cache field is 1, it means the SST is cached and jump to 306. If it is 0, it means the file is not cached and jump to 307.
[0075] 306. Read the SST file from memory and jump to 308.
[0076] 307. If the SST file is not in memory, read the corresponding block of the SST file from the SSD and jump to 308.
[0077] 308. The read operation ends.
[0078] See Figure 5 As shown in the adjusted compaction operation flowchart, the details are as follows:
[0079] 401. The LSM tree triggers the compaction operation and jumps to 402.
[0080] 402. Determine whether the SST file is cached through the Manifest file. If it is cached, jump to 403. Otherwise, jump to 404.
[0081] 403. Read the SST file participating in the compaction operation from memory and jump to 405.
[0082] 404. Read the corresponding block of the SST file from the SSD for the subsequent compaction operation and jump to 406.
[0083] 405. After the compaction operation, write back the new data, delete the corresponding cache record in the Manifest file, and the SST file data saved in memory, and jump to 407.
[0084] 406. After the compaction operation, write back the new data, mark the corresponding SST file on the SSD as invalid data to facilitate subsequent GC operations, and jump to 407.
[0085] 407. Determine whether there is a cached SST file in the same level as the currently triggered compaction operation in memory. If there is, jump to 408. If not, jump to 510.
[0086] 408. Determine whether the Score value of this layer is greater than 0.8. If it is greater than 0.8, jump to 409. If it is less than 0.8, do not trigger the compaction operation in advance and jump to 510.
[0087] 409. Trigger the compaction operation actively triggered by the cached SST file in advance.
[0088] 410. End this compaction operation.
[0089] Specifically, the method of the embodiment of the present invention is experimentally verified. Use db_bench to randomly write 26,488,000 key-value pairs with a key size of 16B and a value size of 1000B to the ZNS-SSD device, and then use db_bench to perform an overwrite update operation on the key-value pairs to obtain relevant data: The number of SST files migrated by the GC operation is 289, among which 63 SST files are SST files that can be cached in the initial round of judgment, and there are a few SST files among the 63 SST files that trigger the GC migration operation multiple times during the compaction process for data migration, and 4 SST files are SST files that can be cached in other rounds. By caching the SST files that can be cached according to the present invention, the write amplification caused by GC migrating valid data and compaction operations can be reduced, and the data migration operation can be reduced by about 22%. After optimizing the read process and compaction process, the number of read and write I / Os of the system can be reduced, and the read and write latency can be reduced.
[0090] See Figure 6 As shown, it is a schematic structural diagram of a garbage collection optimization device for a cache-based ZNS-SSD key-value storage system according to an embodiment of the present invention, including:
[0091] A selection module 601 that selects a Zone with an invalid data ratio > 70% as a candidate Zone;
[0092] A judgment module 602 that makes N rounds of judgments according to the judgment round value N; in each round of judgment, the valid SST files to participate in the compaction operation in the candidate Zone are cached in the memory; the initial default value of N is 1;
[0093] A garbage collection module 603 that selects the Zone with the largest ratio of invalid data plus cacheable SST data value in the candidate Zone for garbage collection operations;
[0094] An optimization module 604 that judges whether the data volume cached in this GC operation is > 70% of the valid data. If so, directly end the garbage collection operation; otherwise, set the judgment round value to N + 1 and end the garbage collection operation.
[0095] The module function implementation of a garbage collection optimization device for a cache-based ZNS-SSD key-value storage system according to an embodiment of the present invention is the same as the method of a garbage collection optimization device for a cache-based ZNS-SSD key-value storage system according to an embodiment of the present invention, which will not be elaborated here.
[0096] It can be seen that the present invention provides a garbage collection optimization method and device for a cache-based ZNS-SSD key-value storage system. By caching SST files that are about to undergo compaction operations, it avoids the cascading amplification caused by triggering compaction operations after GC operations migrate SST files. By adjusting the GC strategy, the cache performance is optimized, and an adaptive cacheable SST determination condition is adopted so that the present invention can play a role under different placement strategies.
[0097] The above are only the preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present invention shall be included within the protection scope of the present invention.
Claims
1. A cache-based ZNS-SSD key-value storage system garbage collection optimization method, characterized in that: The following steps are involved: In the selection step, the zones with invalid data ratio > 70% are selected as candidate zones; A judgment step, performing N rounds of judgment according to the judgment round value N; In each round of judgment, the valid SST files in the candidate zone that will participate in the compaction operation are cached in the memory. The initial default value of N is 1. In the garbage collection step, the zone with the largest proportion of invalid data and cacheable SST data value among the candidate zones is selected for garbage collection operation; Optimization step: determine whether the amount of data cached in this GC operation is greater than 70% of valid data. If so, terminate the garbage collection operation directly. Otherwise, the round value is determined to be N+1 and the garbage collection operation is terminated.
2. According to claim 1, the cache-based ZNS-SSD key-value storage system garbage collection optimization method is characterized in that: The judging step comprises the following steps: Round judgment step, confirm whether the current round judgment is the first round judgment, if yes, enter the initial round judgment step, otherwise enter other round judgment steps; The initial round of judgment steps will satisfy the Score x >1 and Score x+1 To Score i The valid SST files with values greater than 0.8 are cached into memory; x is a level from 0 to i-1, and i is the level where the valid SST file is located; In other rounds of judgment steps, Score i Valid SST files >0.8 are cached in memory; in, , Represents the size of the SST file data stored in the i-th layer, Represents the size of the SST file data that can be stored at the i-th level, through Score i Indicates the threshold for triggering compaction operation at layer i, Score i >1 indicates that the i layer will actively trigger the compaction operation; Score i >0.8 indicates that the i layer may trigger a compaction operation due to new data written to the upper layer.
3. The cache-based ZNS-SSD key-value storage system garbage collection optimization method according to claim 1, characterized in that: Each round of judgment caches the valid SST files in the candidate Zone that will participate in the compaction operation into the memory, and also includes: adding a cache field to the SST file metadata saved in the Manifest file, when caching an SST file, it is necessary to modify the cache field of the SST file metadata, write a cache record in the Manifest file, mark the data in the Zone as cacheable SST, and adjust the read operation process and the compaction operation process.
4. The cache-based ZNS-SSD key-value storage system garbage collection optimization method according to claim 3 is characterized in that: The read operation process and the compaction operation process are adjusted, and the adjustment of the read operation is as follows: before performing a read operation on the SST file, first determine whether the SST file exists in the memory through the cache field, and if so, perform a read operation from the memory.
5. The cache-based ZNS-SSD key-value storage system garbage collection optimization method according to claim 3 is characterized in that: The adjustment of the read operation process and the compaction operation process is as follows: when an SST file in a cache participates in a compaction operation, the corresponding cache record needs to be deleted, and the cached SST file data is deleted.
6. A cache-based ZNS-SSD key-value storage system garbage collection optimization device, characterized in that: The method for optimizing garbage collection of a cache-based ZNS-SSD key-value storage system according to any one of claims 1 to 5 comprises: Select the module and select the zones with invalid data ratio > 70% as candidate zones; The judgment module performs N rounds of judgment according to the judgment round value N. In each round of judgment, the valid SST files in the candidate zone that are to participate in the compaction operation are cached into the memory. The initial default value of N is 1. The garbage collection module selects the zone with the largest proportion of invalid data and cacheable SST data value in the candidate zone for garbage collection operation; The optimization module determines whether the amount of data cached in this GC operation is greater than 70% of the valid data. If so, the garbage collection operation is terminated directly; otherwise, the round value is set to N+1 and the garbage collection operation is terminated.
Citation Information
Patent Citations
SSD-based key-value separation storage method supporting efficient storage space management
CN112131140A
Method and system for reducing garbage collection and write amplification of key-value separation storage system
CN112395212A
Solid state disk garbage collection algorithm based on reinforcement learning
CN114185492A
Key value storage method and system based on SSD-SMR hybrid storage
CN116880750A
Selective use of garbage collection during expansion of geometry addressable regions of a redundant array of independent drive (RAID) configuration
US20210248068A1