Disk defragmentation method, disk defragmentation device and host

A defragmentation and disk fragmentation technology, which is applied in the computer field and can solve problems such as excessive disk fragmentation.

Active Publication Date: 2016-05-18
CHENGDU HUAWEI TECH
View PDF5 Cites 22 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In the prior art, during the disk space allocation process, there may be data blocks of other files between the discrete data blocks of the source file, such as Figure 1B As shown, blk1, blk7, blk9, blk11 and blk13 are data blocks

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
  • Disk defragmentation method, disk defragmentation device and host
  • Disk defragmentation method, disk defragmentation device and host
  • Disk defragmentation method, disk defragmentation device and host

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0083] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0084] Normally, an object refers to a file or a container used to store data in the system. The data block of the management object (obj for short) needs to add some metadata management information. For example, the data block of the management object needs to add at least one indirect block and at least one object management structure block (the...

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 embodiment of the invention provides a disk defragmentation method, a disk defragmentation device and a host. The method comprises the following steps: judging the fragmentation degree of a first disk area according to a first space management object; if determining that the fragmentation degree of the first disk area reaches the preset fragmentation degree, writing a data block of each object corresponding to a defragmentation sub-area into a continuous disk space according to the first space management object, and writing metadata, which is generated when the data block of each object is written in the continuous disk space, in the continuous space, wherein the defragmentation sub-area is smaller or equal to the first disk area; and releasing the defragmentation sub-area. Visibly, a section of continuous idle space in the first disk area can be obtained after the defragmentation sub-area is subjected to disk defragmentation according to space management information; and thus, the disk defragmentation efficiency is increased.

Description

technical field [0001] Embodiments of the present invention relate to computer technology, and in particular to a disk defragmentation method, device and host. Background technique [0002] As the disk capacity increases, the file system takes longer and longer, and the fragmented space on the disk becomes more and more. For mechanical disks, sequential read and write can give full play to its performance, but more and more disk fragments bring more and more discrete IO, causing the head to jump back and forth, resulting in a sharp decline in read and write performance. [0003] Figure 1A It is a schematic diagram of the existing disk defragmentation method, Figure 1B for the physical view of the object before defragmentation, Figure 1C A physical view of an object after defragmentation for an existing disk. In the prior art, disk defragmentation is performed in the following manner: 1) judging whether the number of continuous data blocks included in a certain source f...

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 CHENGDU HUAWEI TECH
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