Garbage Collection Bitmask for Data Storage Metadata

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Data storage devices face inefficiencies due to the extensive effort required to maintain accurate metadata, which burdens system resources and leads to inefficient use of memory, especially when managing multiple versions of data and identifying stale data for garbage collection.

Innovation Solution

Implementing a system with garbage collection units (GCUs) that utilize a bitmask and sequence map stored in a header region to monitor and update metadata in real-time, allowing for the identification of stale data without accessing metadata, and maintaining a bitmask table and hierarchical log in separate caches for efficient data management.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Measurement precision

If metadata is extensively mapped to track all data versions and locations, then data retrieval accuracy is improved, but system resource burden and operation time increase significantly

Engineering Contradiction:
Improvedata retrieval accuracyVSAvoidmetadata management complexity
Core Design Contradiction:
Measurement precisionVSDevice complexity

Solution Approach 1:

The patent segments the memory space into garbage collection units (GCUs), each with its own header region containing a bitmask. This segmentation allows the system to track data validity at the GCU level rather than maintaining comprehensive metadata for every data version, reducing overall metadata complexity while preserving retrieval accuracy through localized tracking.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent introduces a bitmask as an intermediary data structure that indirectly tracks data validity without requiring direct metadata mappings for all data versions. The bitmask serves as a compact mediator between the physical memory locations and the logical data validity state, reducing the burden of extensive metadata management.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Measurement precision

If comprehensive metadata mapping is maintained to identify stale data, then garbage collection accuracy is improved, but operation speed and productivity decrease

Engineering Contradiction:
Improvestale data identification accuracyVSAvoidgarbage collection speed
Core Design Contradiction:
Measurement precisionVSProductivity

Solution Approach 1:

The patent performs preliminary actions by setting and updating bitmask values at the time of data writing and invalidation. Instead of requiring comprehensive metadata mapping during garbage collection, the system has already prepared the validity state information in the bitmask, enabling rapid identification of stale data without extensive processing during the garbage collection operation.

Inventive Principle:
Principle #10Preliminary action

3Measurement precision

If real-time metadata updates are performed for every data version, then data version tracking accuracy is improved, but system resource consumption and time overhead increase

Engineering Contradiction:
Improvedata version tracking accuracyVSAvoidmetadata update time
Core Design Contradiction:
Measurement precisionVSLoss of time

Solution Approach 1:

The patent extracts the essential validity tracking information into a compact bitmask structure stored in the GCU header, separating this critical information from the full metadata that would otherwise need to be maintained. This extraction allows the system to track data version validity with minimal overhead, storing only the necessary validity state rather than complete metadata for each version.

Inventive Principle:
Principle #2Taking out (Extraction)

Data Source

PatentUS8417904B2Garbage collection management in a data storage device
Publication Date: 2013.04.09 SEAGATE TECH LLC
  • US8417904B2 patent drawing
  • US8417904B2 patent drawing
  • US8417904B2 patent drawing

AI summary

Method and apparatus for handling data in a data storage device. In accordance with some embodiments, a memory space with a plurality of garbage collection units (GCUs) that are each arranged into pages of memory that store user data identified by logical addresses (LAs) and each GCU has a metadata region that stores metadata that correlates the LAs with physical addresses (PAs). A header region in each page of memory stores a bitmask and a sequence map of the LAs in each page that are used by a log manager to creates a bitmask table stored in a first cache and a hierarchical log stored in a second cache. The bitmask table and hierarchical log are used to determine when the LAs stored in the selected GCU are stale, and update the bitmask for each page in the selected GCU after the stale data has been erased.