Space management method, device and system of cloud storage space, electronic equipment and computer readable storage medium

A technology of space management and storage space, which is applied in the field of cloud computing and can solve problems such as large consumption of computing resources

Pending Publication Date: 2021-05-07
ALIBABA GRP HLDG LTD
View PDF5 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] Embodiments of the present invention provide a space management method, device, and system for cloud storage space, electronic equipment, and a computer-readable storage medium, so as to solve the defect of large consumption of computing resources during garbage collection in the prior art

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
  • Space management method, device and system of cloud storage space, electronic equipment and computer readable storage medium
  • Space management method, device and system of cloud storage space, electronic equipment and computer readable storage medium
  • Space management method, device and system of cloud storage space, electronic equipment and computer readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0074] figure 1 It is a schematic diagram of an application scenario of a cloud storage space management system provided by an embodiment of the present invention, figure 1 The shown structure is only one example of the space management system of the cloud storage space to which the technical solution of the present invention can be applied. Such as figure 1 As shown, the space management system of the cloud storage space includes: a data processing node, a management node and a space recovery node.

[0075] Wherein, the data processing node is used to write the snapshot reference state of each data block in the stored data into the intermediate record file, update the reference count file of the stored data according to the intermediate record file, and Reference status, update the number of references in the reference counting file, and calculate the garbage ratio of the storage space for storing data according to the reference counting file, where the reference counting f...

Embodiment 2

[0085] figure 2 It is a flow chart of an embodiment of the space management method of cloud storage space provided by the present invention. The execution subject of the method may be a data processing node in the space management system of cloud storage space mentioned above, or it may be a space management capability with storage space Various servers can also be devices or chips integrated on these devices. Such as image 3 As shown, the space management method of the cloud storage space includes the following steps:

[0086] S201. Write the snapshot reference status of each data block in the storage data into an intermediate record file.

[0087] In the embodiment of the present invention, when a data block in the stored data is referenced by the snapshot, or the snapshot referencing the data block is deleted, the data processing node writes the corresponding snapshot reference state into the intermediate record file.

[0088] S202. Update the reference count file of t...

Embodiment 3

[0095] image 3 It is a flow chart of another embodiment of the space management method for cloud storage space provided by the present invention. Such as image 3 shown in the above figure 2 On the basis of the illustrated embodiments, the space management method of the cloud storage space provided by the embodiment of the present invention may include the following steps:

[0096] S301. Generate a reference entry according to the change information of the snapshot of the reference data block.

[0097] S302. Write the reference entry into the intermediate record file.

[0098] In the embodiment of the present invention, the reference entry generated according to the change information of the snapshot includes at least the identification information of the data block and the reference change identification information of the snapshot, wherein when the snapshot is deleted, the reference change identification information is used to decrement the identification count by one, ...

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 space management method, device and system for a cloud storage space, electronic equipment and a computer readable storage medium. The method comprises the following steps: writing a snapshot reference state of each data block in storage data into an intermediate record file; updating a reference count file of the stored data according to the intermediate record file; according to the reference condition of the data block by the cloud disk corresponding to the snapshot, updating the reference times in the reference counting file; and according to the reference counting file, calculating the garbage ratio of the storage space of the storage data. According to the embodiment of the invention, the intermediate record file is used for recording the snapshot reference state of the data block, so that the reference count file for storing the data can be updated, the reference count is adopted for judging the reference frequency of the data block, and when the snapshot is added or deleted, only the reference count of the corresponding data block needs to be subjected to addition and subtraction operation, so that the consumption of computing resources during garbage collection is not increased along with the increase of the number of snapshots.

Description

technical field [0001] The present invention relates to the technical field of cloud computing, and in particular to a space management method, device and system for cloud storage space, electronic equipment, and a computer-readable storage medium. Background technique [0002] In the technical field of cloud computing, in order to make full use of data storage space, garbage collection is performed on cloud disk data, that is, storage space occupied by useless data is recovered. The usual practice is to read useful data from the old data file, write it to the new data file, and modify the index to point the reference to the old data file to the new data file, and then delete the old data file , to free up storage space. [0003] In the prior art, cloud disks and snapshots are separated for garbage collection, and bitmaps are used to record whether each data block in the data file corresponding to the snapshots is referenced, and the bitmap information is stored in a persis...

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): G06F3/06
CPCG06F3/0608G06F3/0641G06F3/0652G06F3/067
Inventor 朱成海佘海斌费巩君
Owner ALIBABA GRP HLDG 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