Flash Translation Layer Signature Detection for SSD Write Optimization

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Journaling and copy-on-write schemes in databases and filesystems lead to significant performance penalties when using solid-state drives (SSDs), as they result in redundant data writes and storage device fragmentation, necessitating changes to the source code to mitigate these issues.

Innovation Solution

An enhanced flash translation layer (FTL) that calculates signatures of data blocks, detects whether writes are journal or non-journal operations, and manages logical to physical block address mappings to eliminate redundant writes without modifying the databases/filesystems source code, using a signature table to map multiple logical block addresses to a single physical block address.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If journaling scheme is used to ensure write atomicity, then data write transaction atomicity is guaranteed, but performance penalty increases on SSDs due to redundant data writes

Engineering Contradiction:
Improvewrite atomicityVSAvoidperformance
Core Design Contradiction:
ReliabilityVSProductivity

Solution Approach 1:

The system performs preliminary actions by writing data to the journal region first before writing to the target location. The enhanced FTL detects these journal write operations and prevents redundant writes by checking whether the data has already been written to the journal, thereby maintaining atomicity while avoiding unnecessary redundant writes on SSDs

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The enhanced FTL acts as an intermediary between the journaling scheme and the SSD storage device. It intercepts journal write operations, detects them through signature calculation, and manages the mapping between journal logical addresses and physical SSD locations, preventing redundant physical writes while preserving the journaling atomicity guarantee

Inventive Principle:
Principle #24Intermediary (Mediator)

2Reliability

If copy-on-write scheme is used to ensure write atomicity, then data write transaction atomicity is guaranteed, but storage device fragmentation increases leading to performance degradation

Engineering Contradiction:
Improvewrite atomicityVSAvoidperformance
Core Design Contradiction:
ReliabilityVSProductivity

Solution Approach 1:

The system performs preliminary actions by creating a signature table that records the mapping between logical block addresses and physical block addresses before fragmentation occurs. When a copy-on-write operation is detected, the system checks the signature table to determine if the target physical location is already occupied, thereby preventing unnecessary fragmentation while maintaining atomicity

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The enhanced FTL serves as an intermediary that manages the copy-on-write process. It intercepts COW operations, calculates signatures of the data blocks, checks the signature table for existing mappings, and coordinates the physical address allocation, thereby reducing fragmentation without compromising the atomicity guarantee

Inventive Principle:
Principle #24Intermediary (Mediator)

3Productivity

If existing solutions to mitigate performance penalty are implemented, then performance improvement is achieved, but source code modification is required which increases adoption difficulty

Engineering Contradiction:
ImproveperformanceVSAvoidadoption ease
Core Design Contradiction:
ProductivityVSEase of manufacture

Solution Approach 1:

The enhanced FTL is designed as an intermediary layer between the database/filesystem software and the SSD hardware. It handles all the performance optimization logic at this intermediate level, including signature calculation, journal write detection, and physical address mapping management. This approach improves performance without requiring modifications to the upper-layer software, making adoption straightforward

Inventive Principle:
Principle #24Intermediary (Mediator)

Solution Approach 2:

The enhanced FTL implements self-service by automatically detecting whether a write operation is a journal or COW operation, calculating signatures, checking the signature table, and managing physical address mappings without external intervention. This autonomous operation eliminates the need for source code modifications while achieving performance improvements

Inventive Principle:
Principle #25Self-service

Data Source

PatentUS10620846B2Enhancing flash translation layer to improve performance of databases and filesystems
Publication Date: 2020.04.14 SCALEFLUX INC
  • US10620846B2 patent drawing
  • US10620846B2 patent drawing
  • US10620846B2 patent drawing

AI summary

An enhanced FTL system and method are provided for eliminating redundant write operations. A method is disclosed, including: processing a data write operation from a host that deploys a journaling scheme, wherein the data write operation includes a specified LBA that maps to a PBA in a SSD memory; calculating a signature of a data block during a write operation; detecting whether the data write should be handled as journal or non-journal write operation without assistance from the host; in response to a detected journal write operation, allocating a new PBA, writing the data block to the new PBA, updating a mapping table with a new LBA-PBA mapping, and inserting the signature into a signature table for the new LBA-PBA mapping; and in response to a detected non-journal write operation, mapping the specified LBA to an existing PBA if the signature matches a stored signature in the mapping table.