Storage Medium File Defragmentation via Integrity Thresholds
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Current file defragmentation methods in storage devices are inefficient, leading to increased processor and I/O resource usage due to the need to scan and reorganize multiple data fragments, which reduces reading and writing performance and wastes resources.
Innovation Solution
A system and method that determines a parameter representing the integrity of data fragments in a storage medium, with files being defragmented only if the parameter is below a preset threshold, optimizing the defragmentation process by reducing unnecessary operations and conserving resources.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Productivity
If all files in the storage medium are scanned and defragmented, then the reading and writing efficiency is improved, but the processor resources and I/O interface resources are wasted
Solution Approach 1:
The patent introduces a parameter (integrity parameter) to characterize the fragmentation state of files, and uses threshold comparison to determine whether defragmentation is necessary. This parameter-based decision mechanism avoids unnecessary defragmentation operations on already well-organized files, thereby reducing resource consumption while maintaining reading and writing efficiency.
2Loss of time
If files with multiple data fragments are defragmented, then the track seeking operations are reduced, but the defragmentation process consumes processor resources and I/O resources
Solution Approach 1:
Instead of defragmenting all files without distinction, the patent applies defragmentation selectively based on the integrity parameter threshold. Only files that meet the criterion (integrity parameter ≤ threshold) undergo defragmentation, which is a partial action approach that reduces unnecessary operations and associated resource consumption.
Solution Approach 2:
The system automatically evaluates the integrity parameter of each file and makes autonomous decisions about whether defragmentation is needed, without requiring manual intervention or comprehensive scanning of all files. This self-service mechanism optimizes the balance between reducing track seeking time and minimizing processor and I/O resource consumption.
Data Source
AI summary
The present disclosure relates to a system and method for managing files stored in a storage medium. The method may include obtaining file information of a file stored in the storage medium, wherein the file includes at least two data fragments, each two of the at least two data fragments are stored separately in two discontinuous storage units in the storage medium. The method may also include determining a first parameter of the file according to the file information, wherein the first parameter represents an integrity of the at least two data fragments in the storage medium. The method may further include determining whether the first parameter is equal to or smaller than a preset threshold. The method may still further include defragmenting the at least two data fragments in the storage medium if the first parameter is equal to or smaller than the preset threshold.


