Zone Garbage Collection Using Data Hotness in File Systems

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Current garbage collection algorithms in file systems fail to consider data hotness and coldness, leading to increased write amplification and lack of segregation between hot and cold data, as they prioritize zones based solely on garbage rate without considering recent data access patterns.

Innovation Solution

Implement a method for garbage collection that computes a garbage rate and sequence number for each zone, using dwell time and thresholds to differentiate between hot and cold data, thereby selecting candidate zones for garbage collection based on these criteria to avoid write amplification and improve data segregation.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Productivity

If current GC algorithms select zones based solely on maximum garbage rate, then the file system can free up maximum space by GCing zones with highest invalid data, but the algorithm may pick zones with hot data that are frequently overwritten by the host, resulting in the entire zone being erased instead of undergoing GC

Engineering Contradiction:
Improvespace reclamation efficiencyVSAvoidGC operation effectiveness
Core Design Contradiction:
ProductivityVSReliability

Solution Approach 1:

The patent changes the selection parameters from solely garbage rate to a composite of garbage rate and data hotness (sequence number). This allows the system to identify zones that not only have high invalid data ratios but also contain cold data that is unlikely to be rewritten, ensuring GC operations are effective rather than wasting resources on zones destined for erasure anyway

Inventive Principle:
Principle #35Parameter changes

Solution Approach 2:

The patent introduces sequence numbers as a feedback mechanism that tracks data hotness and access patterns. By monitoring how recently data was written or rewritten, the system can predict whether a zone is likely to be overwritten by the host and adjust GC candidate selection accordingly, preventing futile GC operations

Inventive Principle:
Principle #23Feedback

2Productivity

If current GC algorithms select zones based solely on maximum garbage rate, then the algorithm can quickly identify candidate zones, but this results in increasing write amplification by selecting zones already scheduled for complete erasure by the host

Engineering Contradiction:
ImproveGC processing speedVSAvoidwrite amplification
Core Design Contradiction:
ProductivityVSLoss of substance

Solution Approach 1:

The patent adds sequence number as an additional selection parameter beyond garbage rate. This allows the system to filter out zones with hot data that would otherwise be selected for GC but are actually scheduled for host erasure, reducing unnecessary write amplification while maintaining reasonable GC processing speed

Inventive Principle:
Principle #35Parameter changes

Solution Approach 2:

The patent performs an additional filtering step beyond simple garbage rate calculation by checking sequence numbers. This partial extra action (checking sequence numbers) prevents selecting zones that would lead to excessive write amplification, trading a small amount of additional processing for significant reduction in wasted write operations

Inventive Principle:
Principle #16Partial or excessive action

3Device complexity

If current GC algorithms select zones based solely on maximum garbage rate, then the algorithm can simplify the selection process, but this results in lack of segregation between hot and cold data, causing zones to become a mixture and increasing write amplification

Engineering Contradiction:
ImproveGC algorithm complexityVSAvoidwrite amplification
Core Design Contradiction:
Device complexityVSLoss of substance

Solution Approach 1:

The patent introduces sequence number as an additional parameter to distinguish hot from cold data. By incorporating this parameter into the selection criteria, the algorithm can segregate cold data zones (good GC candidates) from hot data zones (poor GC candidates), reducing write amplification without significantly increasing algorithmic complexity

Inventive Principle:
Principle #35Parameter changes

Solution Approach 2:

The patent segments zones into different categories based on their sequence numbers and data hotness characteristics. This segmentation allows the GC algorithm to selectively target cold data zones while avoiding hot data zones, achieving better data segregation and reduced write amplification

Inventive Principle:
Principle #1Segmentation

Data Source

PatentUS12468626B2Techniques for garbage collecting zones in a file system
Publication Date: 2025.11.11 LEMON INC(GB)
  • US12468626B2 patent drawing
  • US12468626B2 patent drawing
  • US12468626B2 patent drawing

AI summary

Described are examples for performing garbage collection in a file system having multiple zones of data. A garbage rate associated with an amount of invalid data in the zone can be computed for each zone of the multiple zones in the file system. One or more candidate zones, of the multiple zones, can be determined for garbage collection based on the garbage rate and a sequence number assigned to the zone. Garbage collection of the one or more candidate zones in the file system can be performed.