CN112162701A - Storage space recovery method, device, equipment and computer storage medium - Google Patents
Storage space recovery method, device, equipment and computer storage medium Download PDFInfo
- Publication number
- CN112162701A CN112162701A CN202010988131.0A CN202010988131A CN112162701A CN 112162701 A CN112162701 A CN 112162701A CN 202010988131 A CN202010988131 A CN 202010988131A CN 112162701 A CN112162701 A CN 112162701A
- Authority
- CN
- China
- Prior art keywords
- unmap
- storage space
- preset
- split
- mark
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000011084 recovery Methods 0.000 title claims abstract description 52
- 238000000034 method Methods 0.000 title claims abstract description 51
- 230000000379 polymerizing effect Effects 0.000 claims abstract description 8
- 230000002776 aggregation Effects 0.000 claims abstract description 4
- 238000004220 aggregation Methods 0.000 claims abstract description 4
- 238000004590 computer program Methods 0.000 claims description 41
- 238000004064 recycling Methods 0.000 claims description 33
- 238000012217 deletion Methods 0.000 claims description 8
- 230000037430 deletion Effects 0.000 claims description 8
- 230000004931 aggregating effect Effects 0.000 claims description 2
- 230000008569 process Effects 0.000 description 13
- 238000006116 polymerization reaction Methods 0.000 description 8
- 238000004891 communication Methods 0.000 description 7
- 230000000875 corresponding effect Effects 0.000 description 6
- 238000005516 engineering process Methods 0.000 description 6
- 238000010586 diagram Methods 0.000 description 5
- 230000009471 action Effects 0.000 description 3
- 238000006243 chemical reaction Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 230000004044 response Effects 0.000 description 2
- 238000012360 testing method Methods 0.000 description 2
- 238000005056 compaction Methods 0.000 description 1
- 238000013507 mapping Methods 0.000 description 1
- 230000005055 memory storage Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 239000002245 particle Substances 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0602—Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
- G06F3/0608—Saving storage space on storage systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0629—Configuration or reconfiguration of storage systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0646—Horizontal data movement in storage systems, i.e. moving data in between storage devices or systems
- G06F3/0652—Erasing, e.g. deleting, data cleaning, moving of data to a wastebasket
Abstract
The application discloses a storage space recovery method, a device, equipment and a computer medium, which are applied to a full flash storage system and used for acquiring a target Unmap IO representing a storage space of a recovered compact volume; splitting a target Unmap IO according to a preset Pio value to obtain a split Unmap IO, and ensuring that the split Unmap IO carries a preset mark; polymerizing the split Unmap IO according to a preset Vio value to obtain a polymerized Unmap IO, and ensuring that the polymerized Unmap IO carries a preset mark; recovering the storage space of the thin volume based on the aggregated Unmap IO and the preset mark; the preset mark comprises a mark for representing the recovery of the storage space. In the application, the target Unmap IO can be prevented from losing the mark for representing the storage space recovery after splitting and aggregation, and the recovery success rate is improved.
Description
Technical Field
The present application relates to the field of data processing technologies, and in particular, to a method, an apparatus, a device, and a computer storage medium for storage space reclamation.
Background
With the advent of the big data age, the demand of users for storage space is continuously increasing. As a large amount of data is written into the storage space, the storage space of the disk is exhausted, and the stored data needs to be recycled to ensure that new data can be stored. For example, in a full flash storage system, a thin provisioning module may be provided, and a storage space may be allocated from a thin storage pool to a user as needed by the thin provisioning module, and when a file in a thin volume needs to be deleted, the storage space may be reused by a space recycling function. However, in this process, a situation in which space reclamation fails may occur.
In summary, how to improve the recovery rate of the full flash memory space is a problem to be solved urgently by those skilled in the art.
Disclosure of Invention
The application aims to provide a storage space recovery method which can solve the technical problem of how to improve the recovery success rate of a full flash storage space to a certain extent. The application also provides a storage space recycling device, equipment and a computer readable storage medium.
In order to achieve the above purpose, the present application provides the following technical solutions:
a storage space recovery method is applied to a full flash storage system and comprises the following steps:
acquiring a target Unmap IO representing the storage space of the recovered compact volume;
splitting the target Unmap IO according to a preset Pio value to obtain a split Unmap IO, and ensuring that the split Unmap IO carries a preset mark;
polymerizing the split Unmap IO according to a preset Vio value to obtain a polymerized Unmap IO, and ensuring that the polymerized Unmap IO carries the preset mark;
recovering the storage space of the thin volume based on the aggregated Unmap IO and the preset mark;
the preset marks comprise marks for representing storage space recycling.
Preferably, the obtaining a target Unmap IO representing the storage space of the recycled thin volume includes:
acquiring a compact volume storage space recovery instruction sent by a host connected with the full flash storage system;
and converting the compact volume storage space recovery instruction to obtain the target Unmap IO.
Preferably, the obtaining of the compact volume storage space recycling instruction sent by the host connected to the full flash storage system includes:
and acquiring a file deletion instruction sent by the host connected with the full flash memory system.
Preferably, the obtaining of the compact volume storage space recycling instruction sent by the host connected to the full flash storage system includes:
and acquiring a formatted volume instruction sent by the host side connected with the full flash storage system.
Preferably, the splitting the target Unmap IO according to a preset Pio value to obtain a split Unmap IO, and ensuring that the split Unmap IO carries a preset flag includes:
splitting the Unmap IO according to the preset Pio value to obtain the split Unmap IO;
judging whether the split Unmap IO carries the preset mark or not;
and if the split Unmap IO does not carry the preset mark, adding the preset mark to the split Unmap IO.
Preferably, the adding the preset mark to the split Unmap IO includes:
adding the preset tag to the head of the split Unmap IO.
Preferably, the type of the preset mark comprises a number mark, a letter mark and a symbol mark.
A storage space recycling device is applied to a full flash storage system and comprises:
the first obtaining module is used for obtaining a target Unmap IO representing the storage space of the recovered thin volume;
the first splitting module is used for splitting the target Unmap IO according to a preset Pio value to obtain a split Unmap IO and ensure that the split Unmap IO carries a preset mark;
the first aggregation module is used for aggregating the split Unmap IO according to a preset Vio value to obtain an aggregated Unmap IO and ensuring that the aggregated Unmap IO carries the preset mark;
the first recovery module is used for recovering the storage space of the thin volume based on the aggregated Unmap IO and the preset mark;
the preset marks comprise marks for representing storage space recycling.
A storage space reclamation apparatus, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the storage space reclamation method as described in any one of the above when said computer program is executed.
A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the storage space reclamation method as set forth in any one of the preceding claims.
The storage space recovery method is applied to a full flash storage system, and a target Unmap IO representing the storage space of a recovered reduced volume is obtained; splitting a target Unmap IO according to a preset Pio value to obtain a split Unmap IO, and ensuring that the split Unmap IO carries a preset mark; polymerizing the split Unmap IO according to a preset Vio value to obtain a polymerized Unmap IO, and ensuring that the polymerized Unmap IO carries a preset mark; recovering the storage space of the thin volume based on the aggregated Unmap IO and the preset mark; the preset mark comprises a mark for representing the recovery of the storage space. In this application, at the in-process that obtains split Unmap IO and polymerization Unmap IO, need to ensure that split Unmap IO and polymerization Unmap IO carry the mark of predetermineeing, because predetermineeing the mark and carrying out the mark that storage space retrieved for the sign, so can avoid target Unmap IO to lose the sign after split and polymerization and carry out the mark that storage space retrieved, be convenient for follow-up according to predetermineeing the mark and retrieve the retrench volume storage space that polymerization Unmap IO corresponds, improve and retrieve the success rate. The storage space recovery device, the equipment and the computer readable storage medium provided by the application also solve the corresponding technical problems.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a storage space recycling method according to an embodiment of the present application;
FIG. 2 is a flow chart of the response of a thin volume storage space reclamation instruction in a full flash storage system;
fig. 3 is a schematic structural diagram of a storage space recycling device according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of a storage space recycling apparatus according to an embodiment of the present disclosure;
fig. 5 is another schematic structural diagram of a storage space recycling apparatus according to an embodiment of the present disclosure.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
With the advent of the big data age, the demand of users for storage space is continuously increasing. As a large amount of data is written into the storage space, the storage space of the disk is exhausted, and the stored data needs to be recycled to ensure that new data can be stored. For example, in a full flash storage system, a thin provisioning module may be provided, and a storage space may be allocated from a thin storage pool to a user as needed by the thin provisioning module, and when a file in a thin volume needs to be deleted, the storage space may be reused by a space recycling function. However, in this process, the target Unmap IO marked with the storage space of the recovered thin volume needs to be split and aggregated, and in this process, the tag representing the storage space recovery of the thin volume in the target Unmap IO is easily lost, thereby causing the storage space recovery of the thin volume to fail. The storage space recovery method provided by the application can improve the recovery success rate of the full flash storage space.
Referring to fig. 1, fig. 1 is a flowchart illustrating a method for recovering a storage space according to an embodiment of the present disclosure.
The storage space recovery method provided by the embodiment of the application is applied to a full flash storage system, and can include:
step S101: and acquiring a target Unmap IO representing the storage space of the recovered compact volume.
In practical application, the full flash storage system may first obtain a target Unmap IO (Input/Output) representing a storage space of the recovered thin volume, so as to subsequently recover the corresponding storage space of the thin volume according to the target Unmap IO. The type and content of the target Unmap IO can be determined according to actual needs.
Step S102: and splitting the target Unmap IO according to a preset Pio value to obtain the split Unmap IO, and ensuring that the split Unmap IO carries a preset mark.
In practical application, after a target Unmap IO representing and recovering a storage space of a compact volume is obtained, the target Unmap IO needs to pass through an LCA (Lower Cache, second-level Cache) and needs to be split and aggregated in the LCA, so that the target Unmap IO can be split according to a preset Pio value to obtain the split Unmap IO.
It should be noted that the preset Pio (split IO granularity) value refers to a preset split IO granularity value, and the size of the preset split IO granularity value may be determined according to actual needs, for example, the preset Pio value may be 32K.
Step S103: and polymerizing the split Unmap IO according to a preset Vio value to obtain a polymerized Unmap IO, and ensuring that the polymerized Unmap IO carries a preset mark.
In practical application, because the target Unmap IO needs to be split and aggregated in the LCA of the full flash storage system, the target Unmap IO is split according to a preset Pio value to obtain split Unmap IO, and after the split Unmap IO is ensured to carry a preset mark, the split Unmap IO needs to be aggregated according to a preset Vio value to obtain aggregated Unmap IO.
It should be noted that the preset Vio (lower brush) value refers to a preset lower brush IO particle size value, and the size of the preset Vio value may be determined according to actual needs, for example, the preset Vio value may be 64K, and the like.
Step S104: recovering the storage space of the thin volume based on the aggregated Unmap IO and the preset mark; the preset mark comprises a mark for representing the recovery of the storage space.
In practical application, the split Unmap IO is aggregated according to a preset Vio value to obtain an aggregated Unmap IO, and after the aggregated Unmap IO carries a preset mark, the aggregated Unmap IO carries a mark for representing to recover the storage space, and accordingly, the full flash storage system can recover the storage space of the compact volume based on the aggregated Unmap IO and the preset mark.
It should be noted that in practical applications, the full flash storage system is generally provided with an auto thin provisioning module to perform space recovery, so that the auto thin provisioning module may receive aggregated Unmap IO output by LCA, and the auto thin provisioning module performs data deletion on an LBA (Logic Block address, logical address Block) in the full flash storage system according to the aggregated Unmap IO to release a corresponding thin volume storage space.
The storage space recovery method is applied to a full flash storage system, and a target Unmap IO representing the storage space of a recovered reduced volume is obtained; splitting a target Unmap IO according to a preset Pio value to obtain a split Unmap IO, and ensuring that the split Unmap IO carries a preset mark; polymerizing the split Unmap IO according to a preset Vio value to obtain a polymerized Unmap IO, and ensuring that the polymerized Unmap IO carries a preset mark; recovering the storage space of the thin volume based on the aggregated Unmap IO and the preset mark; the preset mark comprises a mark for representing the recovery of the storage space. In this application, at the in-process that obtains split Unmap IO and polymerization Unmap IO, need to ensure that split Unmap IO and polymerization Unmap IO carry the mark of predetermineeing, because predetermineeing the mark and carrying out the mark that storage space retrieved for the sign, so can avoid target Unmap IO to lose the sign after split and polymerization and carry out the mark that storage space retrieved, be convenient for follow-up according to predetermineeing the mark and retrieve the retrench volume storage space that polymerization Unmap IO corresponds, improve and retrieve the success rate.
In the storage space recovery method provided by the embodiment of the application, the full flash storage system may receive a recovery instruction sent by a host end in the process of obtaining a target Unmap IO representing the storage space of a recovered compact volume, so that the full flash storage system needs to obtain the compact volume storage space recovery instruction sent by the host end connected with the full flash storage system in the process of obtaining the target Unmap IO; and converting the compact volume storage space recovery instruction to obtain a target Unmap IO.
In a specific application scenario, the type of the compact volume storage space reclamation instruction may be a file deletion instruction, or a formatted volume instruction.
It should be noted that in the full flash storage system, the target Unmap IO obtained through protocol conversion needs to pass through the storage software stack MR to reach the LCA. The response process of the thin volume storage space reclamation instruction in the full flash storage system can refer to fig. 2.
In the method for recovering the storage space provided by the embodiment of the application, the full flash storage system splits a target Unmap IO according to a preset Pio value to obtain a split Unmap IO, and can split the Unmap IO according to the preset Pio value to obtain the split Unmap IO in the process of ensuring that the split Unmap IO carries a preset mark; judging whether split Unmap IO carries a preset mark or not; and if the split Unmap IO does not carry the preset mark, adding the preset mark for the split Unmap IO.
In a specific application scenario, in the process of adding the preset mark to the split Unmap IO, the full flash storage system may add the preset mark to the head of the split Unmap IO in order to facilitate adding and identifying the preset mark.
In the method for recovering a storage space provided by the embodiment of the present application, the type of the preset mark added to the full flash storage system may include a number mark, a letter mark, a symbol mark, and the like.
In order to facilitate understanding of the storage space recovery method provided by the present application, the storage space recovery method provided by the present application is tested, and the test process may be as follows: creating 1 pool, taking a compaction pool as an example, and adding a disk array into the pool; creating a 10G thin volume on the pool; after the storage device and the host establish a mapping relation, copying a 2G file into a magnetic disk through a fdisk-l command disk scanning/dev/sdg, and checking the volume use capacity to be 2G after data is landed; deleting written file data in the host, deleting the file data according to the storage space recovery method provided by the application, and checking the volume capacity to be 0 after the deletion is finished; writing full data into the thin volume through the vdbech; after data is destaged, the host end uses a formatting instruction mkfs.ex4-E nondiscard/dev/sdg to format the volume by the storage space recovery method provided by the application; after checking the volume, the volume capacity is found to be 0. According to the test process, the data in the storage space of the compact volume can be accurately deleted or formatted.
Referring to fig. 3, fig. 3 is a schematic structural diagram of a storage space recycling device according to an embodiment of the present disclosure.
The storage space recycling device provided by the embodiment of the application is applied to a full flash storage system, and can include:
a first obtaining module 101, configured to obtain a target Unmap IO representing a storage space of a recycled thin volume;
the first splitting module 102 is configured to split a target Unmap IO according to a preset Pio value to obtain a split Unmap IO, and ensure that the split Unmap IO carries a preset flag;
the first aggregation module 103 is configured to aggregate the split Unmap IO according to a preset Vio value to obtain an aggregated Unmap IO, and ensure that the aggregated Unmap IO carries a preset flag;
the first recovery module 104 is configured to recover the thin volume storage space based on the aggregate Unmap IO and the preset tag;
the preset mark comprises a mark for representing the recovery of the storage space.
The embodiment of the application provides a storage space recovery unit, is applied to full flash memory system, and first acquisition module can include:
the system comprises a first acquisition unit, a second acquisition unit and a third acquisition unit, wherein the first acquisition unit is used for acquiring a thin volume storage space recovery instruction sent by a host connected with a full flash storage system;
and the first conversion unit is used for converting the storage space recovery instruction of the compact volume to obtain a target Unmap IO.
The embodiment of the application provides a storage space recovery unit, is applied to full flash memory system, and first acquisition unit can be specifically used for: and acquiring a file deletion instruction sent by a host connected with the full flash memory system.
The embodiment of the application provides a storage space recovery unit, is applied to full flash memory system, and first acquisition unit can be specifically used for: and acquiring a formatted volume instruction sent by a host connected with the full flash memory system.
The embodiment of the application provides a storage space recovery unit, is applied to full flash memory storage system, and first split module can include:
the first splitting unit is used for splitting the Unmap IO according to a preset Pio value to obtain a split Unmap IO;
the first judgment unit is used for judging whether the split Unmap IO carries a preset mark or not; and if the split Unmap IO does not carry the preset mark, adding the preset mark for the split Unmap IO.
The embodiment of the application provides a storage space recovery unit, is applied to full flash memory system, and first judgement unit can include:
the first adding unit is used for adding a preset mark to the head of the split Unmap IO.
The storage space recovery device provided by the embodiment of the application is applied to a full flash storage system, and the type of the preset mark can comprise a number mark, a letter mark and a symbol mark.
The application also provides a storage space recycling device and a computer readable storage medium, which have the corresponding effects of the storage space recycling method provided by the embodiment of the application. Referring to fig. 4, fig. 4 is a schematic structural diagram of a storage space recycling apparatus according to an embodiment of the present disclosure.
The storage space recycling device provided by the embodiment of the application comprises a memory 201 and a processor 202, wherein a computer program is stored in the memory 201, and the processor 202 implements the following steps when executing the computer program:
acquiring a target Unmap IO representing the storage space of the recovered compact volume;
splitting a target Unmap IO according to a preset Pio value to obtain a split Unmap IO, and ensuring that the split Unmap IO carries a preset mark;
polymerizing the split Unmap IO according to a preset Vio value to obtain a polymerized Unmap IO, and ensuring that the polymerized Unmap IO carries a preset mark;
recovering the storage space of the thin volume based on the aggregated Unmap IO and the preset mark;
the preset mark comprises a mark for representing the recovery of the storage space.
The storage space recycling device provided by the embodiment of the application comprises a memory 201 and a processor 202, wherein a computer program is stored in the memory 201, and the processor 202 implements the following steps when executing the computer program: acquiring a compact volume storage space recovery instruction sent by a host connected with a full flash storage system; and converting the storage space recovery instruction of the compact volume to obtain a target Unmap IO.
The storage space recycling device provided by the embodiment of the application comprises a memory 201 and a processor 202, wherein a computer program is stored in the memory 201, and the processor 202 implements the following steps when executing the computer program: and acquiring a file deletion instruction sent by a host connected with the full flash memory system.
The storage space recycling device provided by the embodiment of the application comprises a memory 201 and a processor 202, wherein a computer program is stored in the memory 201, and the processor 202 implements the following steps when executing the computer program: and acquiring a formatted volume instruction sent by a host connected with the full flash memory system.
The storage space recycling device provided by the embodiment of the application comprises a memory 201 and a processor 202, wherein a computer program is stored in the memory 201, and the processor 202 implements the following steps when executing the computer program: splitting the Unmap IO according to a preset Pio value to obtain a split Unmap IO; judging whether split Unmap IO carries a preset mark or not; and if the split Unmap IO does not carry the preset mark, adding the preset mark for the split Unmap IO.
The storage space recycling device provided by the embodiment of the application comprises a memory 201 and a processor 202, wherein a computer program is stored in the memory 201, and the processor 202 implements the following steps when executing the computer program: a preset tag is added to the head of the split Unmap IO.
The storage space recycling device provided by the embodiment of the application comprises a memory 201 and a processor 202, wherein a computer program is stored in the memory 201, and the processor 202 implements the following steps when executing the computer program: the type of the preset mark includes a number mark, a letter mark, and a symbol mark.
Referring to fig. 5, another storage space recycling apparatus provided in the embodiment of the present application may further include: an input port 203 connected to the processor 202, for transmitting externally input commands to the processor 202; a display unit 204 connected to the processor 202, for displaying the processing result of the processor 202 to the outside; and the communication module 205 is connected with the processor 202 and is used for realizing the communication between the storage space recycling device and the outside. The display unit 204 may be a display panel, a laser scanning display, or the like; the communication method adopted by the communication module 205 includes, but is not limited to, mobile high definition link technology (HML), Universal Serial Bus (USB), High Definition Multimedia Interface (HDMI), and wireless connection: wireless fidelity technology (WiFi), bluetooth communication technology, bluetooth low energy communication technology, ieee802.11s based communication technology.
A computer-readable storage medium is provided in an embodiment of the present application, in which a computer program is stored, and when the computer program is executed by a processor, the computer program implements the following steps:
acquiring a target Unmap IO representing the storage space of the recovered compact volume;
splitting a target Unmap IO according to a preset Pio value to obtain a split Unmap IO, and ensuring that the split Unmap IO carries a preset mark;
polymerizing the split Unmap IO according to a preset Vio value to obtain a polymerized Unmap IO, and ensuring that the polymerized Unmap IO carries a preset mark;
recovering the storage space of the thin volume based on the aggregated Unmap IO and the preset mark;
the preset mark comprises a mark for representing the recovery of the storage space.
A computer-readable storage medium is provided in an embodiment of the present application, in which a computer program is stored, and when the computer program is executed by a processor, the computer program implements the following steps: acquiring a compact volume storage space recovery instruction sent by a host connected with a full flash storage system; and converting the storage space recovery instruction of the compact volume to obtain a target Unmap IO.
A computer-readable storage medium is provided in an embodiment of the present application, in which a computer program is stored, and when the computer program is executed by a processor, the computer program implements the following steps: and acquiring a file deletion instruction sent by a host connected with the full flash memory system.
A computer-readable storage medium is provided in an embodiment of the present application, in which a computer program is stored, and when the computer program is executed by a processor, the computer program implements the following steps: and acquiring a formatted volume instruction sent by a host connected with the full flash memory system.
A computer-readable storage medium is provided in an embodiment of the present application, in which a computer program is stored, and when the computer program is executed by a processor, the computer program implements the following steps: splitting the Unmap IO according to a preset Pio value to obtain a split Unmap IO; judging whether split Unmap IO carries a preset mark or not; and if the split Unmap IO does not carry the preset mark, adding the preset mark for the split Unmap IO.
A computer-readable storage medium is provided in an embodiment of the present application, in which a computer program is stored, and when the computer program is executed by a processor, the computer program implements the following steps: a preset tag is added to the head of the split Unmap IO.
A computer-readable storage medium is provided in an embodiment of the present application, in which a computer program is stored, and when the computer program is executed by a processor, the computer program implements the following steps: the type of the preset mark includes a number mark, a letter mark, and a symbol mark.
The computer-readable storage media to which this application relates include Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage media known in the art.
For a description of relevant parts in the storage space recycling device, the apparatus, and the computer-readable storage medium provided in the embodiments of the present application, reference is made to detailed descriptions of corresponding parts in the storage space recycling method provided in the embodiments of the present application, and details are not repeated here. In addition, parts of the above technical solutions provided in the embodiments of the present application, which are consistent with the implementation principles of corresponding technical solutions in the prior art, are not described in detail so as to avoid redundant description.
It is further noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims (10)
1. A method for recycling storage space is applied to a full flash storage system and comprises the following steps:
acquiring a target UnmapIO representing the storage space of the recovered compact volume;
splitting the target Unmap IO according to a preset Pio value to obtain a split Unmap IO, and ensuring that the split Unmap IO carries a preset mark;
polymerizing the split Unmap IO according to a preset Vio value to obtain a polymerized Unmap IO, and ensuring that the polymerized Unmap IO carries the preset mark;
recovering the storage space of the thin volume based on the aggregated Unmap IO and the preset mark;
the preset marks comprise marks for representing storage space recycling.
2. The method of claim 1, wherein obtaining the target Unmap IO characterizing the thin volume storage space reclaimed comprises:
acquiring a compact volume storage space recovery instruction sent by a host connected with the full flash storage system;
and converting the compact volume storage space recovery instruction to obtain the target Unmap IO.
3. The method according to claim 2, wherein the obtaining the thin volume storage space reclamation instruction sent by the host connected to the full flash storage system comprises:
and acquiring a file deletion instruction sent by the host connected with the full flash memory system.
4. The method according to claim 2, wherein the obtaining the thin volume storage space reclamation instruction sent by the host connected to the full flash storage system comprises:
and acquiring a formatted volume instruction sent by the host side connected with the full flash storage system.
5. The method according to claim 1, wherein the splitting the target Unmap IO according to a preset Pio value to obtain a split Unmap IO and ensure that the split Unmap IO carries a preset flag includes:
splitting the Unmap IO according to the preset Pio value to obtain the split Unmap IO;
judging whether the split Unmap IO carries the preset mark or not;
and if the split Unmap IO does not carry the preset mark, adding the preset mark to the split Unmap IO.
6. The method according to claim 5, wherein the adding the preset mark for the split Unmap IO comprises:
adding the preset tag to the head of the split Unmap IO.
7. The method according to any one of claims 1 to 6, wherein the type of the preset mark comprises a numeric mark, a letter mark, a symbol mark.
8. A storage space recycling device applied to a full flash storage system comprises:
the first obtaining module is used for obtaining a target Unmap IO representing the storage space of the recovered thin volume;
the first splitting module is used for splitting the target UnmapIO according to a preset Pio value to obtain a split Unmap IO and ensure that the split Unmap IO carries a preset mark;
the first aggregation module is used for aggregating the split Unmap IO according to a preset Vio value to obtain an aggregated Unmap IO and ensuring that the aggregated Unmap IO carries the preset mark;
the first recovery module is used for recovering the storage space of the thin volume based on the aggregated Unmap IO and the preset mark;
the preset marks comprise marks for representing storage space recycling.
9. A storage space recycling apparatus, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the storage space reclamation method as claimed in any one of claims 1 to 5 when executing said computer program.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the storage space reclamation method as recited in any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010988131.0A CN112162701B (en) | 2020-09-18 | 2020-09-18 | Storage space recycling method, device, equipment and computer storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010988131.0A CN112162701B (en) | 2020-09-18 | 2020-09-18 | Storage space recycling method, device, equipment and computer storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112162701A true CN112162701A (en) | 2021-01-01 |
CN112162701B CN112162701B (en) | 2023-12-22 |
Family
ID=73862497
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010988131.0A Active CN112162701B (en) | 2020-09-18 | 2020-09-18 | Storage space recycling method, device, equipment and computer storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112162701B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113568581A (en) * | 2021-07-29 | 2021-10-29 | 武汉天喻信息产业股份有限公司 | Multi-application resource recovery method and system for embedded equipment |
Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102045258A (en) * | 2010-12-22 | 2011-05-04 | 北京星网锐捷网络技术有限公司 | Data caching management method and device |
CN103984641A (en) * | 2014-05-22 | 2014-08-13 | 华为技术有限公司 | Storage space recycling method and storage space recycling device based on thin provisioning technology |
CN104035729A (en) * | 2014-05-22 | 2014-09-10 | 中国科学院计算技术研究所 | Block device thin-provisioning method for log mapping |
US8977830B1 (en) * | 2012-11-26 | 2015-03-10 | Emc Corporation | Crash consistency |
US20150199147A1 (en) * | 2014-01-14 | 2015-07-16 | International Business Machines Corporation | Storage thin provisioning and space reclamation |
CN108845764A (en) * | 2018-05-30 | 2018-11-20 | 郑州云海信息技术有限公司 | A kind of processing method and processing device of I/O data |
CN108958653A (en) * | 2018-06-26 | 2018-12-07 | 郑州云海信息技术有限公司 | A kind of space reclamation method, system and relevant apparatus based on bottom aggregate file |
CN110554843A (en) * | 2019-09-10 | 2019-12-10 | 深圳市得一微电子有限责任公司 | Method and system for storing file data by multiple storage devices |
CN110659217A (en) * | 2019-08-30 | 2020-01-07 | 苏州浪潮智能科技有限公司 | Garbage recycling method, device and equipment for solid state disk and storage medium |
CN110955613A (en) * | 2018-09-26 | 2020-04-03 | 北京忆恒创源科技有限公司 | Intelligent data streaming and flow tracking for storage devices |
CN111007985A (en) * | 2019-10-31 | 2020-04-14 | 苏州浪潮智能科技有限公司 | Compatible processing method, system and equipment for space recovery of storage system |
US20200125447A1 (en) * | 2018-10-22 | 2020-04-23 | Seagate Technology Llc | Memory reallocation during raid rebuild |
CN111108488A (en) * | 2017-11-07 | 2020-05-05 | 华为技术有限公司 | Memory block recovery method and device |
CN111459659A (en) * | 2020-03-10 | 2020-07-28 | 中国平安人寿保险股份有限公司 | Data processing method, device, scheduling server and medium |
-
2020
- 2020-09-18 CN CN202010988131.0A patent/CN112162701B/en active Active
Patent Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102045258A (en) * | 2010-12-22 | 2011-05-04 | 北京星网锐捷网络技术有限公司 | Data caching management method and device |
US8977830B1 (en) * | 2012-11-26 | 2015-03-10 | Emc Corporation | Crash consistency |
US20150199147A1 (en) * | 2014-01-14 | 2015-07-16 | International Business Machines Corporation | Storage thin provisioning and space reclamation |
CN103984641A (en) * | 2014-05-22 | 2014-08-13 | 华为技术有限公司 | Storage space recycling method and storage space recycling device based on thin provisioning technology |
CN104035729A (en) * | 2014-05-22 | 2014-09-10 | 中国科学院计算技术研究所 | Block device thin-provisioning method for log mapping |
CN111108488A (en) * | 2017-11-07 | 2020-05-05 | 华为技术有限公司 | Memory block recovery method and device |
CN108845764A (en) * | 2018-05-30 | 2018-11-20 | 郑州云海信息技术有限公司 | A kind of processing method and processing device of I/O data |
CN108958653A (en) * | 2018-06-26 | 2018-12-07 | 郑州云海信息技术有限公司 | A kind of space reclamation method, system and relevant apparatus based on bottom aggregate file |
CN110955613A (en) * | 2018-09-26 | 2020-04-03 | 北京忆恒创源科技有限公司 | Intelligent data streaming and flow tracking for storage devices |
US20200125447A1 (en) * | 2018-10-22 | 2020-04-23 | Seagate Technology Llc | Memory reallocation during raid rebuild |
CN110659217A (en) * | 2019-08-30 | 2020-01-07 | 苏州浪潮智能科技有限公司 | Garbage recycling method, device and equipment for solid state disk and storage medium |
CN110554843A (en) * | 2019-09-10 | 2019-12-10 | 深圳市得一微电子有限责任公司 | Method and system for storing file data by multiple storage devices |
CN111007985A (en) * | 2019-10-31 | 2020-04-14 | 苏州浪潮智能科技有限公司 | Compatible processing method, system and equipment for space recovery of storage system |
CN111459659A (en) * | 2020-03-10 | 2020-07-28 | 中国平安人寿保险股份有限公司 | Data processing method, device, scheduling server and medium |
Non-Patent Citations (2)
Title |
---|
李亚琼;宋莹;黄永兵;: "一种面向虚拟化云计算平台的内存优化技术", 计算机学报, no. 04 * |
韩朴杰;康慕宁;张晓;: "自动精简配置技术中空间回收方法的研究", 计算机与现代化, no. 12 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113568581A (en) * | 2021-07-29 | 2021-10-29 | 武汉天喻信息产业股份有限公司 | Multi-application resource recovery method and system for embedded equipment |
CN113568581B (en) * | 2021-07-29 | 2023-08-01 | 武汉天喻信息产业股份有限公司 | Multi-application resource recovery method and system for embedded equipment |
Also Published As
Publication number | Publication date |
---|---|
CN112162701B (en) | 2023-12-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11068455B2 (en) | Mapper tree with super leaf nodes | |
CN107481762B (en) | Trim processing method and device of solid state disk | |
EP2631916A1 (en) | Data deletion method and device | |
CN109522154B (en) | Data recovery method and related equipment and system | |
US10585589B2 (en) | Data collation method, storage device, storage controller, and storage array | |
CN109491606B (en) | Full flash memory space management method, system, equipment and computer medium | |
CN111309687A (en) | Object storage small file processing method, device, equipment and storage medium | |
CN111007985B (en) | Compatible processing method, system and equipment for space recovery of storage system | |
CN111143290A (en) | Memory management method, system, equipment and computer readable storage medium | |
CN103677674A (en) | Data processing method and device | |
CN112162701A (en) | Storage space recovery method, device, equipment and computer storage medium | |
CN114327258B (en) | Solid state disk processing method, system, equipment and computer storage medium | |
CN114780448A (en) | Method and device for quickly copying data, computer equipment and storage medium | |
CN111399857A (en) | FRU data burning method, system, equipment and computer storage medium | |
CN115934579A (en) | Solid state disk garbage recycling method, accelerating device, equipment and computer medium | |
US11500721B2 (en) | Solid-state disk and reading and writing method thereof | |
EP3846037B1 (en) | Storage device configured to support multi-streams and operation method thereof | |
US11436105B2 (en) | Data processing method and memory controller utilizing the same | |
CN109471598B (en) | Data deleting method and device of storage equipment and computer readable storage medium | |
CN111124306A (en) | Data deleting method, system, equipment and computer readable storage medium | |
CN110286995B (en) | Data reading and writing method and device | |
CN111881211B (en) | Method, system and equipment for synchronizing storage data and computer storage medium | |
CN109947598B (en) | SSD microcode backup method, system, device and computer storage medium | |
CN112783420A (en) | Data deleting and garbage recycling method, device, system and storage medium | |
CN103500092A (en) | Judgment method for WORM appending writing and storage device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |