In-Memory Metadata Indexing for Log-Structured SSDs

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Distributed storage systems face inefficiencies due to high write amplification in solid state disk drives (SSDs), leading to increased write overhead and reduced SSD lifespan, as SSDs must erase and rewrite data frequently, resulting in slower write operations and premature wear.

Innovation Solution

A method is implemented in a distributed storage system where a journal maintains logical changes to storage objects, with metadata records stored in memory rather than on disk, reducing the need for frequent on-disk write operations and minimizing write amplification by using in-memory data structures for indexing and allocation maps.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If metadata records are stored on disk in traditional distributed storage systems, then data persistence is ensured, but write amplification increases and SSD lifespan decreases

Engineering Contradiction:
Improvedata persistenceVSAvoidSSD lifespan
Core Design Contradiction:
ReliabilityVSDuration of action of stationary object

Solution Approach 1:

The patent introduces an in-memory metadata store as an intermediary layer between the journal and disk storage. Metadata records are first written to memory (fast, no wear), then asynchronously persisted to disk. This mediator decouples the frequent metadata writes from direct disk operations, reducing write amplification while maintaining data persistence through periodic flushing of metadata to disk.

Inventive Principle:
Principle #24Intermediary (Mediator)

Solution Approach 2:

The patent replaces the mechanical disk write operation for metadata with an in-memory storage mechanism. By substituting the mechanical writing process (which causes wear) with volatile memory storage, the system eliminates direct mechanical wear from metadata operations while ensuring persistence through asynchronous disk flushing, thus extending SSD lifespan.

Inventive Principle:
Principle #28Mechanics substitution (Replace mechanical system)

2Adaptability or versatility

If SSD blocks are erased and rewritten frequently to maintain data, then data updates are possible, but write overhead increases and performance decreases

Engineering Contradiction:
Improvedata update capabilityVSAvoidwrite performance
Core Design Contradiction:
Adaptability or versatilityVSProductivity

Solution Approach 1:

The patent segments the storage system into two distinct layers: a journal layer for sequential logging of data changes and a metadata layer in memory for tracking logical changes. By segmenting metadata management from data storage, the system can update metadata in memory without triggering SSD erase/rewrite cycles, thereby maintaining data update capability while improving write performance.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent performs preliminary action by pre-allocating journal blocks and pre-establishing the in-memory metadata structure before actual data operations occur. This preparation allows subsequent data updates to be logged sequentially in the journal without requiring frequent erasure and rewriting of SSD blocks, thus maintaining adaptability while enhancing write performance.

Inventive Principle:
Principle #10Preliminary action

3Productivity

If in-memory data structures are used for indexing and allocation maps, then write amplification is minimized, but memory consumption increases

Engineering Contradiction:
Improvewrite efficiencyVSAvoidmemory consumption
Core Design Contradiction:
ProductivityVSQuantity of substance

Solution Approach 1:

The patent applies local quality by making only the critical indexing and allocation map data structures in-memory, while other less frequently accessed metadata remains on disk. This selective in-memory placement optimizes write efficiency for hot paths (indexing and allocation) without requiring the entire metadata set to reside in memory, thus balancing write efficiency with memory consumption.

Inventive Principle:
Principle #3Local quality

Data Source

PatentUS11409705B2Log-structured storage device format
Publication Date: 2022.08.09 VMWARE INC
  • US11409705B2 patent drawing
  • US11409705B2 patent drawing
  • US11409705B2 patent drawing

AI summary

Embodiments of the disclosure provide techniques managing a log-structured solid state drive (SSD) format in a distributed storage system. SSDs in the distributed storage system maintains a journal of logical changes to storage objects to persist prepared and committed changes in the latency path. The journal includes metadata entries that describe changes and reference data pages. Dense data structures (such as a logical block addressing table) index the metadata entries. To reduce the amount of overhead in I/O operations, the distributed storage system maintains the dense data structures in memory rather than on disk.