Storage Defragmentation Conflict Rules for User Transactions

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Database systems face performance degradation due to data fragmentation, leading to increased metadata size and query response times, which is exacerbated by transaction conflicts during defragmentation operations.

Innovation Solution

Perform defragmentation operations in parallel with user transactions, prioritizing user transactions over defragmentation transactions, and implement new conflict resolution rules that consider the transaction start time and overwritable metadata to minimize conflicts.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Productivity

If defragmentation operations are performed to reorganize data contiguously, then data fragmentation is reduced and query performance is improved, but transaction conflicts increase and user transactions may be rolled back

Engineering Contradiction:
Improvequery performanceVSAvoidtransaction integrity
Core Design Contradiction:
ProductivityVSReliability

Solution Approach 1:

The system dynamically adjusts conflict resolution behavior based on transaction type. User transactions are granted priority over defragmentation transactions when conflicts occur, ensuring that user-initiated modifications are preserved while allowing defragmentation to proceed during periods of lower user activity. This dynamic prioritization mechanism resolves the contradiction by making the system adaptable to different operational contexts.

Inventive Principle:
Principle #15Dynamics

Solution Approach 2:

The patent introduces an intermediary conflict resolution layer that mediates between defragmentation operations and user transactions. When a conflict is detected, the system evaluates the transaction type, start times, and modification patterns to determine which operation should proceed. This intermediary mechanism allows both defragmentation and user transactions to coexist by arbitrating conflicts based on predefined policies that favor user transactions while still enabling defragmentation progress.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Productivity

If defragmentation operations are performed in parallel with user transactions, then system resource utilization is improved, but conflict detection and resolution complexity increases

Engineering Contradiction:
Improvesystem resource utilizationVSAvoidconflict resolution mechanism
Core Design Contradiction:
ProductivityVSDevice complexity

Solution Approach 1:

The conflict resolution mechanism is segmented into distinct evaluation stages: conflict detection, transaction type identification, start time comparison, and resolution decision. By breaking down the complex conflict resolution process into discrete, manageable segments, the system can handle parallel defragmentation and user transactions efficiently without overwhelming complexity. Each segment processes specific aspects of the conflict independently, making the overall mechanism more tractable.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The system changes key parameters for defragmentation transactions compared to user transactions, specifically marking defragmentation transactions with unique identifiers and setting their priority levels differently. These parameter changes allow the conflict resolution mechanism to quickly distinguish between transaction types and apply appropriate resolution rules, simplifying the overall complexity while maintaining efficient parallel operation.

Inventive Principle:
Principle #35Parameter changes

3Device complexity

If data is kept contiguously organized, then metadata size is reduced and access efficiency is improved, but maintaining contiguity during concurrent updates becomes difficult

Engineering Contradiction:
Improvemetadata sizeVSAvoiddefragmentation efficiency
Core Design Contradiction:
Device complexityVSProductivity

Solution Approach 1:

The system performs defragmentation operations periodically rather than continuously, allowing data to be reorganized into contiguous structures at scheduled intervals. Between defragmentation cycles, user transactions proceed normally with occasional fragmentation. This periodic approach reduces metadata size and improves access efficiency during defragmented periods while maintaining overall system productivity by allowing normal operations to continue during transition periods.

Inventive Principle:
Principle #19Periodic action

Data Source

PatentUS12566754B1Transaction and defragmentation management
Publication Date: 2026.03.03 VAST DATA LTD
  • US12566754B1 patent drawing
  • US12566754B1 patent drawing
  • US12566754B1 patent drawing

AI summary

A method for transaction conflict management, the method includes writing, by a transaction controller and to a given logical address within a logical address space supported by a storage system, defragmentation data related to a defragmentation process, the defragmentation data being overwritable; identifying, by transaction controller, a transaction conflict associated with the defragmentation process, and (b) one or more user transaction requests related to the given logical address; and resolving the transaction conflict based on (i) the defragmentation data being overwritable, (ii) a timing of the writing of the defragmentation data, and (iii) one or more timings of one or more user transaction operations in relation to the one or more user transaction requests.