Multi-Stream Write-Ahead Logging for Flash Concurrency and Endurance

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing storage systems fail to leverage SSDs' ability to handle random writes efficiently while minimizing performance and durability trade-offs, as traditional logging approaches often use a single, sequential log optimized for hard drives, limiting concurrency and scalability.

Innovation Solution

A region-based, multi-log write-ahead logging system optimized for flash-based storage devices, dividing the SSD into multiple regions with separate header and data portions, allowing concurrent write operations and supporting efficient crash recovery, and erasing entire regions once all records are persisted to long-term storage.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If a single sequential log structure optimized for hard drives is used, then data durability and consistency are ensured, but concurrency and scalability are limited

Engineering Contradiction:
Improvedata durabilityVSAvoidconcurrency
Core Design Contradiction:
ReliabilityVSProductivity

Solution Approach 1:

The patent divides the write-ahead log into multiple independent streams (e.g., stream 1, stream 2, stream 3), each capable of handling concurrent write operations. This segmentation allows multiple write operations to proceed in parallel without blocking each other, thereby improving concurrency while maintaining durability through the sequential logging mechanism within each stream.

Inventive Principle:
Principle #1Segmentation

2Device complexity

If traditional sequential logging is used, then implementation simplicity is maintained, but write throughput is limited

Engineering Contradiction:
Improvelogging structure simplicityVSAvoidwrite throughput
Core Design Contradiction:
Device complexityVSProductivity

Solution Approach 1:

The patent implements a dynamic logging structure where the system can automatically switch between multiple streams based on availability and performance conditions. The logging mechanism adapts its behavior by selecting optimal streams for different write operations, enabling high throughput while maintaining manageable complexity through automated stream management.

Inventive Principle:
Principle #15Dynamics

3Speed

If flash-based storage is used for write-ahead logging, then write speed and access performance are improved, but write amplification and device wear increase

Engineering Contradiction:
Improvewrite speedVSAvoiddevice longevity
Core Design Contradiction:
SpeedVSReliability

Solution Approach 1:

The patent implements a garbage collection mechanism that identifies and discards obsolete log records after they have been successfully flushed to persistent storage. By periodically cleaning up completed writes and reusing freed space in flash-based log streams, the system reduces write amplification and extends device longevity while maintaining high write speeds.

Inventive Principle:
Principle #34Discarding and recovering

4Reliability

If global ordering is enforced across all writes, then data consistency is maintained, but scalability and concurrency are reduced

Engineering Contradiction:
Improvedata consistencyVSAvoidscalability
Core Design Contradiction:
ReliabilityVSAdaptability or versatility

Solution Approach 1:

The patent segments the global ordering requirement into per-stream ordering. Each write stream maintains its own sequential ordering to ensure consistency within that stream, while multiple streams can operate concurrently without enforcing global ordering across all streams. This approach maintains data consistency where needed while enabling scalability and concurrency across the entire system.

Inventive Principle:
Principle #1Segmentation

Data Source

PatentUS12566552B1Multi-stream write-ahead log optimized for flash-based storage devices
Publication Date: 2026.03.03 VDURA INC
  • US12566552B1 patent drawing
  • US12566552B1 patent drawing
  • US12566552B1 patent drawing

AI summary

A storage system is configured to manage a write-ahead log on a flash-based non-volatile storage device. The system divides the device's logical address space into multiple regions, each comprising a header portion with fixed-size record headers and a data portion for variable-length records. The system receives incoming write operations and temporarily stores them in the write-ahead log before flushing them to long-term storage. Metadata for each record is stored in the header portion, while the corresponding data is written to the data portion. The system enables concurrent writes by supporting partial overlap in write timing across records, improving throughput. By structuring log regions to align with physical erase blocks and enabling bulk erasure of obsolete regions, the system reduces write amplification and enhances flash-based non-volatile storage device endurance.