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

Inactive Publication Date: 2017-09-08
NUBIA TECHNOLOGY CO LTD
View PDF6 Cites 13 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

This will lead to a decrease in system IO performance, and ev

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Defragmentation method, terminal device and computer readable storage medium
  • Defragmentation method, terminal device and computer readable storage medium
  • Defragmentation method, terminal device and computer readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

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:...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a defragmentation method, a terminal device and a computer readable storage medium. The method comprises following steps: obtaining a first file parameter and a second file parameter; the first file parameter is used for describing the fragmentation degree of a file and the second file parameter is used for describing the frequency of the file being operated; determining the defragmentation assessment parameter of the file according to the first file parameter and the second file parameter; when the defragmentation assessment parameter is larger than a preset threshold value, performing disk defragmentation on the file. The invention provides a defragmentation method, a terminal device and a computer readable storage medium. The fragmentation degree of a file is assessed through combining frequency of the file being accessed and the frequency of the file being corrected so as to determine whether to perform defragmentation; combined with scattered fragmented sections, gathering parts into a whole, carrying the fragmented sections to another continuous block of the same block group so as to avoid the amount incensement of bad sectors and prolong storage service life.

Description

technical field [0001] The invention relates to defragmentation technology, in particular to a defragmentation method, a terminal device and a computer-readable storage medium. Background technique [0002] On current mainstream Android phones, the data partition and the built-in sdcard partition have been merged, and the ext4 log file system is still used at the bottom layer. The ext4 file system considers the fragmentation problem at the beginning of its design, and adopts corresponding coping strategies, such as multi-block allocator, delayed allocation, block groups, etc. But when files continue to increase, or storage space starts to fill up (%85), fragmentation may still occur. Especially in the Android system, with the use of the app, the app data continues to expand, the storage space becomes more and more tight, and file system fragmentation is inevitable. This in turn leads to a decrease in system IO performance, and even affects system fluency and user experienc...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F12/02G06F3/06
CPCG06F3/0644G06F12/0253
Inventor 吕伟
Owner NUBIA TECHNOLOGY CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products