Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

File system defragmentation method and device and storage medium

A file system and defragmentation technology, applied in the direction of file system, file system function, multi-program device, etc., can solve the problems of reading and writing speed, system resource occupation, affecting business execution, and failing to meet business needs, etc.

Active Publication Date: 2021-11-05
INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF4 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, the following problems exist in the actual application process: when the degree of disk fragmentation does not reach the threshold, the read and write speed of some file systems cannot meet the business needs due to too many system resources being occupied, which affects business execution.
Existing methods cannot solve this problem

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
  • File system defragmentation method and device and storage medium
  • File system defragmentation method and device and storage medium
  • File system defragmentation method and device and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0050] This embodiment provides a file system defragmentation method. To implement the file system defragmentation method of this application, the following parameters must first be configured for the file system:

[0051] (1), configure priority parameters for the file system according to the business performance requirements realized by each file system; in the specific implementation process, the priority parameters include high priority and low priority; maintain a high level for business performance needs Configure high-priority priority parameters for specific file systems; configure low-priority priority parameters for file systems whose business performance does not need to be maintained at a high level.

[0052] The priority parameter is configured as a high-priority file system as a high-priority file system;

[0053] The priority parameter is configured as a low-priority file system as a low-priority file system.

[0054] (2) Configuring each file system with a max...

Embodiment 2

[0079] The difference between Embodiment 2 and Embodiment 1 is that the maximum response time threshold is further divided into a maximum read response time threshold and a maximum write response time threshold. There are certain differences in the read and write response times of general file systems. Considering the differences in reading and writing, this embodiment further refines the maximum response time threshold into a maximum read response time threshold and a maximum write response time threshold.

[0080] refer to Figure 4 As shown, the process of the file system defragmentation method in this embodiment includes:

[0081] S10, record the read response time of the file system, and record the write response time of the file;

[0082] S20, respectively judge whether the read response time of the file system is greater than the corresponding maximum read response time threshold; determine whether the write response time of the file system is greater than the correspo...

Embodiment 3

[0098] This embodiment provides a file system defragmentation device, including a parameter configuration module, a response time collection module, a fragmentation degree detection module, a first task construction module, a second task construction module, and a resource configuration module. The file system defragmentation apparatus provided in this embodiment is used to implement the file system defragmentation method shown in Embodiment 1 or Embodiment 2.

[0099] When implementing the file system defragmentation method shown in Embodiment 1:

[0100] The parameter configuration module configures the priority parameters of the file system, the maximum response time threshold, and the maximum fragmentation threshold;

[0101] The response time collection module collects the response time of the file system;

[0102] The fragmentation degree detection module detects the fragmentation degree of the file system whose response time is greater than the maximum response time th...

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 relates to a file system defragmentation method and device and a storage medium, and the method comprises the steps: recording the response time of a file system, and judging whether the response time of the file system is greater than a corresponding maximum response time threshold value or not; if yes, detecting whether the current fragmentation degree of the file system is larger than the corresponding maximum fragmentation degree threshold value or not, if yes, judging whether the file system is a high-priority file system or not according to priority parameters, and if yes, starting defragmentation of the high-priority file system; and if the file system is a low-priority file system, starting a defragmentation task of the low-priority file system under the condition of ensuring that the response time of any high-priority file system does not exceed the corresponding maximum response time threshold value. According to the file system defragmentation method provided by the invention, starting of defragmentation of the low-priority file system can be coordinated, and resource allocation is optimized to meet the service performance of the high-priority file system.

Description

technical field [0001] The present application relates to the field of file system defragmentation, in particular to a file system defragmentation method, device and storage medium. Background technique [0002] The storage system will inevitably generate fragments during the read and write process, and the fragmentation will continue to increase with the increase in the business capacity of the storage system and the increase in the usage time of the file system. [0003] For the storage system, sequential reading and writing of the disks in the storage system can ensure the reading and writing speed of the file system, and a large number of file system fragments will bring discrete IO, and the magnetic head jumps back and forth between discrete IOs when reading and writing. , leading to a decrease in the read and write speed of the file system. There are a large number of defragmentation technologies that have been disclosed. Most of these technologies detect the degree o...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F16/17G06F9/50
CPCG06F16/1724G06F9/5038Y02D10/00
Inventor 刘兵
Owner INSPUR SUZHOU INTELLIGENT TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products