Defragmentation method, terminal device and computer readable storage medium
A defragmentation and fragmentation technology, applied in the input/output process of computing, memory system, data processing, etc., can solve problems such as user experience affecting system fluency, system IO performance degradation, etc., to avoid increase, prolong storage life, The effect of avoiding the number of bad blocks
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
no. 1 example
[0048] according to figure 1 As shown, the first embodiment of the present invention provides a defragmentation method, the method comprising:
[0049] S1: Obtain a first file parameter and a second file parameter; the first file parameter is used to describe the fragmentation degree of the file, and the second file parameter is used to describe the operating frequency of the file;
[0050] For the first file parameter, in this embodiment, it includes: according to the number ExtentNum of the physical disk section and the block number blocknum occupied by the file, determine the first file parameter as:
[0051]
[0052] The acquisition of the second file parameter specifically includes: acquiring the first parameter of the file, and the first parameter includes: last modification time, creation time, last access time and last defragmentation time;
[0053] assigning a value to the second file parameter according to the condition that the first parameter satisfies the foll...
no. 2 example
[0113] The second embodiment of the present invention provides a terminal device, the terminal includes a memory, a processor, and a communication bus; the communication bus is used for connection and communication between the memory and the processor; the processor is used for Executing the defragmentation program stored in the memory to implement the steps of the defragmentation method.
[0114] The method includes: obtaining a first file parameter and a second file parameter; the first file parameter is used to describe the fragmentation degree of the file, and the second file parameter is used to describe the operating frequency of the file; according to the The first file parameter and the second file parameter determine the defragmentation evaluation parameter of the file; when the defragmentation evaluation parameter is greater than a preset threshold, perform disk defragmentation on the file.
[0115] Optionally, the obtaining of the second file parameters specifically...
no. 3 example
[0128]The third embodiment of the present invention provides a computer-readable storage medium, which is characterized in that the computer-readable storage medium stores one or more preset programs, and when the preset programs are executed by a processor, the The steps of the defragmentation method.
[0129] The method includes: obtaining a first file parameter and a second file parameter; the first file parameter is used to describe the fragmentation degree of the file, and the second file parameter is used to describe the operating frequency of the file; according to the The first file parameter and the second file parameter determine the defragmentation evaluation parameter of the file; when the defragmentation evaluation parameter is greater than a preset threshold, perform disk defragmentation on the file.
[0130] Optionally, the obtaining of the second file parameters specifically includes: obtaining the first parameters of the file, and the first parameters include:...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com