Journaling Overhead Reduction via Remapping Interface

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Journaling in file systems, particularly in cloud environments, incurs significant overhead due to the need for redundant writes during checkpointing and replay processes, leading to performance issues and potential data corruption, especially when compared to local block devices.

Innovation Solution

Implementing a remapping interface for cloud block devices that allows blocks in a journaling transaction to be atomically mapped to their final disk locations with minimal overhead, using a virtual block device and device index map to avoid additional writes and reduce journaling overhead.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If physical journaling is used to ensure file system consistency, then reliability is improved, but productivity deteriorates due to write amplification

Engineering Contradiction:
Improvefile system consistencyVSAvoidwrite performance
Core Design Contradiction:
ReliabilityVSProductivity

Solution Approach 1:

The patent segments the journaling process by separating metadata journaling from data writing. Instead of writing both metadata and data to the journal (physical journaling), the system only journals metadata changes while data is written directly to its final location. This segmentation eliminates the write amplification problem while maintaining consistency through metadata-only journaling.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent extracts the data writing operation from the journaling process. In traditional physical journaling, both metadata and data are written to the journal. This invention extracts data writing and performs it directly to the final disk location, keeping only metadata journaling in the journal subsystem. This extraction eliminates redundant data writes while preserving the consistency benefits of journaling.

Inventive Principle:
Principle #2Taking out (Extraction)

2Reliability

If journal replay is performed after system crash to ensure consistency, then reliability is improved, but loss of time increases due to long recovery periods

Engineering Contradiction:
Improvefile system consistencyVSAvoidrecovery time
Core Design Contradiction:
ReliabilityVSLoss of time

Solution Approach 1:

The patent extracts data writing from the journal replay process. Since data is written directly to its final location without passing through the journal, the replay process only needs to replay metadata changes from the journal, not entire data blocks. This extraction dramatically reduces recovery time while maintaining file system consistency.

Inventive Principle:
Principle #2Taking out (Extraction)

Solution Approach 2:

The patent applies partial action by performing only metadata journaling instead of complete data and metadata journaling. The journal contains only metadata changes, which are much smaller in volume than full data blocks. This partial approach to journaling reduces the amount of data that needs to be replayed during recovery, thereby reducing recovery time.

Inventive Principle:
Principle #16Partial or excessive action

3Productivity

If metadata is journaled separately from data to improve write performance, then productivity is improved, but reliability deteriorates due to potential sync issues

Engineering Contradiction:
Improvewrite performanceVSAvoiddata consistency
Core Design Contradiction:
ProductivityVSReliability

Solution Approach 1:

The patent introduces a remapping interface as an intermediary between the journaling subsystem and the block device. This remapping interface ensures that metadata journaling and data writing are coordinated through a unified mapping mechanism. The remapping interface acts as a mediator that maintains consistency between journaled metadata and actual data locations, preventing sync issues while preserving write performance benefits.

Inventive Principle:
Principle #24Intermediary (Mediator)

Solution Approach 2:

The patent implements feedback through the remapping interface that tracks and coordinates metadata changes with data locations. The remapping interface provides feedback about the current state of block mappings, ensuring that metadata journaling reflects actual data positions. This feedback mechanism maintains reliability by preventing metadata and data from falling out of sync while preserving the performance benefits of separate metadata journaling.

Inventive Principle:
Principle #23Feedback

Data Source

PatentUS11243909B2Journaling overhead reduction with remapping interface
Publication Date: 2022.02.08 CLOUD INTELLIGENCE ASSETS HOLDING (SINGAPORE) PTE LTD
  • US11243909B2 patent drawing
  • US11243909B2 patent drawing
  • US11243909B2 patent drawing

AI summary

Methods and systems are provided for improving a journaling file system by reducing journaling overhead utilizing a remapping interface to log-structured cloud block devices such that blocks in a journaling transaction are atomically mapped to their final disk locations with minimum overhead. With log-structured cloud block devices, all blocks may be stored in logfiles and indexed for access. By modifying the index of the destination block to point to the corresponding journal block, the additional write may be avoided, and a journal block may effectively be remapped from its original LBA to its destination LBA without any actual data movement, thereby reducing the file system journaling overhead.