Garbage recycling method and device and computer readable storage medium

A recycling method and garbage technology, applied in the field of electronics, can solve problems such as insufficient system performance and poor effectiveness of file system garbage collection, and achieve the effect of improving the degree of fragmentation, performance and sufficient performance.
CN110928852AActive Publication Date: 2020-03-27GUANGDONG OPPO MOBILE TELECOMM CORP LTD

Patent Information

Authority / Receiving Office
CN ยท China
Patent Type
Applications(China)
Current Assignee / Owner
GUANGDONG OPPO MOBILE TELECOMM CORP LTD
Publication Date
2020-03-27

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

Abstract

The invention provides a garbage recycling method and device and a computer readable storage medium. The garbage recycling method comprises the following steps: counting the number of times that all data blocks in all to-be-moved sections in a to-be-moved section set are moved; determining a target to-be-moved segment from the to-be-moved segment set based on the counted number of times that the block is moved; and moving the effective data blocks in the target to-be-moved segment to a target garbage collection position. Through implementation of the scheme, the target to-be-moved segment is selected and moved to the target position on the basis of the block moving times; the level of reducing the fragmentation degree of the file system is considered during garbage recycling; the fragmentation degree of the file system is effectively improved; the effectiveness of garbage recycling of the file system is enhanced; and the performance of the file system is brought into full play.
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] The present application relates to the field of electronic technology, and in particular to a garbage collection method, device and computer-readable storage medium. Background technique

[0002] In the file system, a space allocation unit of a certain size is called a block, and a unit composed of a certain number of continuous blocks is called a segment. Valid data on the block is deleted or is recorded as invalid after being updated in other locations, and the available data in the segment Space becomes fragmented. In the computer field, file systems need to perform garbage collection operations for fragmented space. The core task of garbage collection is to move valid data blocks in fragmented segments to other locations, so as to obtain more fragment-free segments to meet the overall requirements. Segment space allocation requirements or to achieve continuous writing.

[0003] At present, when performing garbage collection, one of the garbage co...

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