In-Memory Journal for Conditional SSD Metadata Updates

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

In paging SSDs, write commands are often acknowledged without the metadata page being loaded, leading to expensive read latency and challenges in power fail schemes, which can be costly and have scale limitations.

Innovation Solution

Implementing an in-memory journal that allows for conditional updates and atomic writes, enabling early command completion without needing to read from and write to flash memory, and reducing the time needed to flush data in response to power failures.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Loss of time

If write commands are acknowledged without the metadata page being loaded, then command completion time is improved, but read latency increases and data consistency reliability deteriorates

Engineering Contradiction:
Improvecommand completion timeVSAvoiddata consistency
Core Design Contradiction:
Loss of timeVSReliability

Solution Approach 1:

The patent applies preliminary action by pre-loading metadata pages into a cache memory before they are actually needed for write operations. This allows the system to acknowledge write commands immediately without waiting for metadata to be read from flash memory, while ensuring the metadata is already available in cache when needed, thus maintaining data consistency without increasing command completion time.

Inventive Principle:
Principle #10Preliminary action

2Speed

If metadata is stored in DRAM, then access speed is improved, but hardware cost and board space increase

Engineering Contradiction:
Improvemetadata access speedVSAvoidboard space
Core Design Contradiction:
SpeedVSArea of stationary object

Solution Approach 1:

The patent applies local quality by implementing a selective caching strategy where only frequently accessed or currently needed metadata pages are loaded into the DRAM cache, rather than storing all metadata in DRAM. This provides fast access speed for critical metadata while minimizing the amount of expensive DRAM and board space required.

Inventive Principle:
Principle #3Local quality

Solution Approach 2:

The patent implements a hierarchical memory structure where a small DRAM cache (inner layer) stores hot metadata, which is nested within the larger flash memory storage (outer layer). This nested arrangement allows the system to achieve fast access for frequently used metadata while relying on the cheaper, higher-capacity flash memory for the bulk of metadata storage.

Inventive Principle:
Principle #7Nested doll (Nesting)

3Reliability

If super-capacitors are added for power fail protection, then reliability is improved, but hardware cost and board space increase

Engineering Contradiction:
Improvepower fail protectionVSAvoidboard space
Core Design Contradiction:
ReliabilityVSArea of stationary object

Solution Approach 1:

The patent employs a software-based metadata logging mechanism that uses the existing flash memory storage to persistently log metadata changes. This approach replaces the need for expensive super-capacitor hardware with a software solution that utilizes readily available flash memory, achieving power fail protection without adding costly components or increasing board space.

Inventive Principle:
Principle #27Cheap short-living objects (Disposable)

4Measurement precision

If metadata pages are read from flash memory, then data accuracy is improved, but read latency and processing time increase

Engineering Contradiction:
Improvedata accuracyVSAvoidread latency
Core Design Contradiction:
Measurement precisionVSLoss of time

Solution Approach 1:

The patent applies preliminary action by pre-loading metadata pages into a DRAM cache before they are needed for write operations. This ensures that when write commands need to update metadata, the data is already available in fast memory, eliminating read latency while maintaining data accuracy through proper cache coherence protocols.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent introduces a DRAM cache as an intermediary layer between the flash memory and the write operation processing. This intermediary cache holds copies of metadata pages, allowing fast access and updates without repeatedly reading from slow flash memory, thus reducing read latency while maintaining data accuracy through proper cache management.

Inventive Principle:
Principle #24Intermediary (Mediator)

Data Source

PatentUS20250077110A1Conditional update, delayed lookup
Publication Date: 2025.03.06 KIOXIA CORP
  • US20250077110A1 patent drawing
  • US20250077110A1 patent drawing
  • US20250077110A1 patent drawing

AI summary

Various implementations described herein relate to systems and methods for managing metadata for conditional update, including adding conditional entry to a list in an in-memory journal for a conditional update associated with a garbage collection write, configuring a base entry in the list to point to the conditional entry, and in response to determining that the conditional update is resolved such that a physical location identified in the conditional entry is valid, freeing the conditional entry.