File Defragmentation via Access Pattern Monitoring

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing technologies for file defragmentation in mobile storage devices are inefficient, leading to suboptimal storage space organization and user experience, particularly in mobile terminals where file reading and writing demands are high.

Innovation Solution

A file processing method that updates a file list based on file access information, prioritizing files for defragmentation using a weighted fragment count, and performs defragmentation only when a triggering event occurs, such as the device being in an idle state or a user-initiated command.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Productivity

If file defragmentation is performed frequently to improve storage space organization, then storage efficiency is improved, but device performance is impacted during active usage

Engineering Contradiction:
Improvestorage efficiencyVSAvoiddevice performance
Core Design Contradiction:
ProductivityVSSpeed

Solution Approach 1:

The patent implements periodic defragmentation by monitoring triggering events (file access patterns, storage device state) and performing defragmentation only when specific conditions are met, such as when the storage device is in idle state or when files show repeated access patterns. This avoids continuous defragmentation that would impact performance while still achieving storage optimization over time.

Inventive Principle:
Principle #19Periodic action

Solution Approach 2:

The system performs preliminary monitoring of file access information and identifies candidate files for defragmentation in advance, storing them in a file list. The actual defragmentation action is deferred until a triggering event occurs, allowing the system to prepare beforehand without immediately impacting performance during active usage.

Inventive Principle:
Principle #10Preliminary action

2Productivity

If defragmentation is performed on all files to improve storage organization, then storage efficiency is improved, but unnecessary operations increase traffic between storage device and host

Engineering Contradiction:
Improvestorage efficiencyVSAvoidtraffic between storage device and host
Core Design Contradiction:
ProductivityVSLoss of energy

Solution Approach 1:

The patent applies defragmentation selectively to specific files based on their access patterns and characteristics. By analyzing file access information and identifying only those files that would benefit from defragmentation (e.g., files with scattered data blocks and repeated access), the system avoids unnecessary defragmentation operations on all files, thereby reducing traffic between storage device and host.

Inventive Principle:
Principle #3Local quality

Solution Approach 2:

Instead of performing complete defragmentation on all files, the system performs partial defragmentation only on identified candidate files that meet specific criteria. This partial action approach achieves sufficient storage optimization without the excessive traffic and energy consumption that would result from defragmenting every file.

Inventive Principle:
Principle #16Partial or excessive action

3Productivity

If immediate defragmentation is performed when files are identified to improve storage efficiency, then storage organization is improved, but user experience is degraded due to performance impact

Engineering Contradiction:
Improvestorage organizationVSAvoiduser experience
Core Design Contradiction:
ProductivityVSEase of operation

Solution Approach 1:

The system uses periodic triggering events (such as idle state detection, charging state, or scheduled times) to determine when to perform defragmentation. This timing-based approach ensures that defragmentation occurs during periods when user interaction is minimal, thereby maintaining storage organization improvements while preserving user experience during active usage.

Inventive Principle:
Principle #19Periodic action

Solution Approach 2:

The system performs preliminary identification and monitoring of files needing defragmentation, storing them in a file list for future processing. The actual defragmentation is deferred until a triggering event occurs, allowing the system to prepare the work beforehand and execute it at an optimal time that minimizes impact on user experience.

Inventive Principle:
Principle #10Preliminary action

Data Source

PatentUS12332844B2File processing method, electronic apparatus and storage medium
Publication Date: 2025.06.17 SAMSUNG ELECTRONICS CO LTD
  • US12332844B2 patent drawing
  • US12332844B2 patent drawing
  • US12332844B2 patent drawing

AI summary

The present disclosure is related to a file processing method, electronic apparatus and storage medium, the file processing method including: updating a file list according to file access information for a file in a storage device, wherein the file list contains file inode numbers of files to be defragmented; defragmenting the files to be defragmented corresponding to the file inode numbers in the storage device, according to the updated file list, in response to the occurrence of a triggering event.