CN112162701B - Storage space recycling method, device, equipment and computer storage medium - Google Patents

Storage space recycling method, device, equipment and computer storage medium Download PDF

Info

Publication number
CN112162701B
CN112162701B CN202010988131.0A CN202010988131A CN112162701B CN 112162701 B CN112162701 B CN 112162701B CN 202010988131 A CN202010988131 A CN 202010988131A CN 112162701 B CN112162701 B CN 112162701B
Authority
CN
China
Prior art keywords
unmap
storage space
preset
split
target
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.)
Active
Application number
CN202010988131.0A
Other languages
Chinese (zh)
Other versions
CN112162701A (en
Inventor
王玉梁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Inspur Data Technology Co Ltd
Original Assignee
Beijing Inspur Data Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing Inspur Data Technology Co Ltd filed Critical Beijing Inspur Data Technology Co Ltd
Priority to CN202010988131.0A priority Critical patent/CN112162701B/en
Publication of CN112162701A publication Critical patent/CN112162701A/en
Application granted granted Critical
Publication of CN112162701B publication Critical patent/CN112162701B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0608Saving storage space on storage systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0629Configuration or reconfiguration of storage systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0646Horizontal data movement in storage systems, i.e. moving data in between storage devices or systems
    • G06F3/0652Erasing, e.g. deleting, data cleaning, moving of data to a wastebasket

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Memory System (AREA)

Abstract

The application discloses a storage space recovery method, a storage space recovery device, storage space recovery equipment and a computer medium, which are applied to a full-flash memory system and are used for obtaining a target Unmap IO for representing and recovering a storage space of a thin 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 an aggregated Unmap IO, and ensuring that the aggregated Unmap IO carries a preset mark; recovering the storage space of the thin volume based on the aggregated Unmap IO and a preset mark; the preset marks comprise marks for representing storage space recovery. In the method, the mark for recovering the storage space by the characterization can be prevented from being lost after splitting and aggregation of the target Unmap IO, and the recovery success rate is improved.

Description

Storage space recycling method, device, equipment and computer storage medium
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a storage space recycling method, apparatus, device, and computer storage medium.
Background
With the advent of the big data age, users' demands for storage space are continually increasing. As a large amount of data is written into the storage space, the disk storage space is exhausted, and in order to ensure that new data can be stored, the stored data needs to be recovered. For example, in a full flash memory system, an automatic thin provisioning module can be set, and by means of the automatic thin provisioning module, storage space can be allocated to users from a thin storage pool according to needs, and when files in thin volumes need to be deleted, the repeated use of the storage space can be realized through a space recycling function. However, in this process, there is a case where the space recovery fails.
In summary, how to improve the recovery rate of the full flash memory is a problem to be solved by those skilled in the art.
Disclosure of Invention
The purpose of the application is to provide a storage space recycling method, which can solve the technical problem of how to improve the recycling success rate of the 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 object, the present application provides the following technical solutions:
a storage space recycling method is applied to a full flash memory system, and comprises the following steps:
acquiring a target Unmap IO representing and recovering storage space of the thin 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;
the split Unmap IO is aggregated according to a preset Vio value to obtain an aggregated Unmap IO, and the aggregated Unmap IO is ensured to carry the preset mark;
recovering the storage space of the thin volume based on the aggregate Unmap IO and the preset mark;
the preset marks comprise marks for representing storage space recovery.
Preferably, the obtaining the target un map IO for characterizing and recovering the storage space of the thin volume includes:
obtaining a simplified volume storage space recovery instruction sent by a host connected with the full flash memory system;
and converting the reduced volume storage space recovery instruction to obtain the target Unmap IO.
Preferably, the obtaining a thin volume storage space reclamation instruction sent by a host end connected to the all-flash storage system includes:
and acquiring a file deleting instruction sent by the host end connected with the full flash memory system.
Preferably, the obtaining a thin volume storage space reclamation instruction sent by a host end connected to the all-flash storage system includes:
and acquiring a formatted volume instruction sent by the host connected with the full flash memory system.
Preferably, the splitting the target umap IO according to the preset Pio value to obtain a split umap IO, and ensuring that the split umap IO carries a preset flag, including:
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;
if the split Unmap IO does not carry the preset mark, adding the preset mark for the split Unmap IO.
Preferably, the adding the preset flag for the splitting umap IO includes:
and adding the preset mark to the head of the split Unmap IO.
Preferably, the types of the preset marks include a numerical mark, an alphabetic mark and a symbolic mark.
A memory space reclamation device applied to an all-flash memory system, comprising:
the first acquisition module is used for acquiring a target Unmap IO for representing and recovering the storage space of the 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 ensuring 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 aggregate Unmap IO and the preset mark;
the preset marks comprise marks for representing storage space recovery.
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 recited in any preceding claim when executing the computer program.
A computer readable storage medium having stored therein a computer program which when executed by a processor performs the steps of the storage space reclamation method as described in any of the above.
The storage space recovery method is applied to a full-flash memory system, and a target Unmap IO for representing and recovering the storage space of the thin 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 an aggregated Unmap IO, and ensuring that the aggregated Unmap IO carries a preset mark; recovering the storage space of the thin volume based on the aggregated Unmap IO and a preset mark; the preset marks comprise marks for representing storage space recovery. In the method, in the process of obtaining the split Unmap IO and the aggregate Unmap IO, the split Unmap IO and the aggregate Unmap IO are required to carry preset marks, and because the preset marks are marks for carrying out storage space recovery by characterization, the marks for carrying out storage space recovery by the characterization after splitting and aggregation of the target Unmap IO can be avoided, so that the recovery of the storage space of the reduced volume corresponding to the aggregate Unmap IO can be conveniently carried out according to the preset marks, and the recovery success rate is improved. The storage space recycling device, the storage space recycling equipment and the computer readable storage medium 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 that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only embodiments of the present application, and that other drawings may be obtained according to the provided drawings without inventive effort to a person skilled in the art.
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 a response of a thin volume storage space reclamation instruction in a full flash memory system;
fig. 3 is a schematic structural diagram of a storage space recovery device according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a storage space recycling apparatus according to an embodiment of the present application;
fig. 5 is another schematic structural diagram of a storage space recycling apparatus according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are only some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
With the advent of the big data age, users' demands for storage space are continually increasing. As a large amount of data is written into the storage space, the disk storage space is exhausted, and in order to ensure that new data can be stored, the stored data needs to be recovered. For example, in a full flash memory system, an automatic thin provisioning module can be set, and by means of the automatic thin provisioning module, storage space can be allocated to users from a thin storage pool according to needs, and when files in thin volumes need to be deleted, the repeated use of the storage space can be realized through a space recycling function. However, in this process, the target umap IO marked with the storage space of the thin volume needs to be split and aggregated, and in this process, the mark marked with the storage space of the thin volume in the target umap IO is easily lost, thereby causing the recovery failure of the storage space of the thin volume. The storage space recycling method can improve the recycling success rate of the full flash memory.
Referring to fig. 1, fig. 1 is a flowchart of a storage space recycling method according to an embodiment of the present application.
The storage space recycling method provided by the embodiment of the application is applied to a full flash memory system and can comprise the following steps:
step S101: and acquiring a target Unmap IO representing the storage space of the recovery thin volume.
In practical application, the full flash memory system may first obtain a target Unmap (Input/Output) IO (Input/Output) representing the storage space of the recovery thin volume, so as to recover the corresponding storage space of the thin volume according to the target Unmap IO. The type and the content of the target Unmap IO can be determined according to actual requirements.
Step S102: splitting the target Unmap IO according to the preset Pio value to obtain a split Unmap IO, and ensuring that the split Unmap IO carries a preset mark.
In practical application, after the target Unmap IO for representing and recovering the storage space of the thin volume is obtained, because the target Unmap IO needs to be split and aggregated in LCA (Lower Cache), the target Unmap IO can be split according to a preset Pio value to obtain the split Unmap IO, and in the process, in order to avoid the loss of the mark for representing and recovering the storage space of the thin volume in the target Unmap IO, the split Unmap IO needs to be ensured to carry a preset mark.
It should be noted that the preset Pio (split IO granularity) value refers to a preset split IO granularity value, and the size thereof may be determined according to actual needs, for example, the preset Pio value may be 32K or the like.
Step S103: and polymerizing the split Unmap IO according to a preset Vio value to obtain an aggregated Unmap IO, and ensuring that the aggregated 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 memory system, splitting the target Unmap IO according to a preset Pio value to obtain a split Unmap IO, and after ensuring that the split Unmap IO carries a preset mark, aggregating the split Unmap IO according to a preset Vio value to obtain an aggregated Unmap IO, and in the process, ensuring that the aggregated Unmap IO carries the preset mark in order to avoid losing marks after the split Unmap IO is aggregated to simplify the mark for recovering the storage space of the volume.
It should be noted that the preset Vio (lower brush) value refers to a preset lower brush IO granularity value, and the size thereof may be determined according to actual needs, for example, the preset Vio value may be 64K or the like.
Step S104: recovering the storage space of the thin volume based on the aggregated Unmap IO and a preset mark; the preset marks comprise marks for representing storage space recovery.
In practical application, the split Unmap IO is aggregated according to a preset Vio value to obtain an aggregated Unmap IO, after the aggregated Unmap IO carries a preset mark, the mark for recovering the storage space by the portable token in the aggregated Unmap IO is ensured, and correspondingly, the whole flash memory system can recover the storage space of the thin volume based on the aggregated Unmap IO and the preset mark.
It should be noted that in practical applications, an automatic thin provisioning module is generally disposed in the full-flash memory system to perform space reclamation, so that the automatic thin provisioning module may receive the aggregated umap IO output by the LCA, and the automatic thin provisioning module performs data deletion on the LBA (Logic Block Adress, logical address block) in the full-flash memory system according to the aggregated umap IO, so as to release the corresponding thin volume storage space.
The storage space recovery method is applied to a full-flash memory system, and a target Unmap IO for representing and recovering the storage space of the thin 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 an aggregated Unmap IO, and ensuring that the aggregated Unmap IO carries a preset mark; recovering the storage space of the thin volume based on the aggregated Unmap IO and a preset mark; the preset marks comprise marks for representing storage space recovery. In the method, in the process of obtaining the split Unmap IO and the aggregate Unmap IO, the split Unmap IO and the aggregate Unmap IO are required to carry preset marks, and because the preset marks are marks for carrying out storage space recovery by characterization, the marks for carrying out storage space recovery by the characterization after splitting and aggregation of the target Unmap IO can be avoided, so that the recovery of the storage space of the reduced volume corresponding to the aggregate Unmap IO can be conveniently carried out according to the preset marks, and the recovery success rate is improved.
In the storage space recovery method provided by the embodiment of the application, in the process of acquiring the target Unmap IO representing and recovering the storage space of the thin volume, the recovery instruction sent by the host end may be received by the full-flash storage system, so that in the process of acquiring the target Unmap IO, the full-flash storage system needs to acquire the thin volume storage space recovery instruction sent by the host end connected with the full-flash storage system; and converting the recovery instruction of the storage space of the reduced volume to obtain the target Unmap IO.
In a specific application scenario, the type of the thin volume storage space reclamation instruction may be a file deletion instruction, a formatted volume instruction, or the like.
It should be noted that in the full flash memory system, the target un map IO obtained through the protocol conversion needs to pass through the storage software stack MR to reach the LCA. The process of responding to the thin volume storage space reclamation instruction in the full flash storage system can be referred to as fig. 2.
In the storage space recovery method provided by the embodiment of the application, the full flash memory system splits the target Unmap IO according to the preset Pio value to obtain split Unmap IO, and ensures that in the process of carrying a preset mark on the split Unmap IO, the split Unmap IO can be split according to the preset Pio value to obtain split Unmap IO; judging whether the split Unmap IO carries a preset mark or not; 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 a preset mark for splitting the Unmap IO, the full-flash memory system can add the preset mark to the head of the splitting the Unmap IO in order to facilitate the addition and identification of the preset mark.
In the storage space recycling method provided by the embodiment of the application, the types of the preset marks added by the full flash memory system may include a numeric 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: 1 pool is created, taking a simplified pool as an example, and a disk array is added into the pool; creating a 10G thin volume on the pool; after the mapping relation between the storage equipment and the host is established, copying 2G files into the disk by using an fdisk-l command to sweep/dev/sdg, and checking that the volume usage capacity is 2G after the data is dropped; deleting the written file data in the host, deleting according to the storage space recovery method provided by the application, and checking that the volume capacity is 0 after the deletion is completed; writing full data into the reduced volume through the vddbench; after the data is dropped, the host end uses a formatting instruction mkfs.ex4-E non-discard/dev/sdg to format the volume through the storage space recycling method provided by the application; the volume capacity was found to be 0 after viewing the volume. According to the test process, the data in the storage space of the thin volume can be deleted or formatted accurately.
Referring to fig. 3, fig. 3 is a schematic structural diagram of a storage space recycling apparatus according to an embodiment of the present application.
The storage space recovery device provided in the embodiment of the application is applied to a full flash memory system, and may include:
a first obtaining module 101, configured to obtain a target un map IO that characterizes a storage space of the recovery thin volume;
the first splitting module 102 is configured to split the target umap IO according to a preset Pio value, obtain a split umap IO, and ensure that the split umap IO carries a preset flag;
the first aggregation module 103 is configured to aggregate the split umap IO according to a preset Vio value, obtain an aggregated umap IO, and ensure that the aggregated umap IO carries a preset flag;
the first recovery module 104 is configured to recover the storage space of the thin volume based on the aggregated umap IO and the preset flag;
the preset marks comprise marks for representing storage space recovery.
The storage space recovery device provided in the embodiment of the present application is applied to a full flash memory system, and the first acquisition module may include:
the first acquisition unit is used for acquiring a thin volume storage space recovery instruction sent by a host end connected with the full flash memory system;
the first conversion unit is used for converting the storage space recovery instruction of the reduced volume to obtain a target Unmap IO.
The storage space recovery device provided by the embodiment of the application is applied to a full flash memory system, and the first acquisition unit can be specifically used for: and acquiring a file deleting instruction sent by a host connected with the full flash memory system.
The storage space recovery device provided by the embodiment of the application is applied to a full flash memory system, and the 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 device, is applied to full flash memory 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 judging unit is used for judging whether the split Unmap IO carries a preset mark or not; if the split Unmap IO does not carry the preset mark, adding the preset mark for the split Unmap IO.
The storage space recovery device provided in the embodiment of the present application is applied to a full flash memory system, and the first judging unit may include:
the first adding unit is used for adding the preset mark to the header of the split Unmap IO.
The storage space recycling device is applied to a full-flash memory system, and the types of preset marks can comprise numerical marks, letter marks and symbol marks.
The application also provides storage space recycling equipment and a computer readable storage medium, which have the corresponding effects of the storage space recycling method. Referring to fig. 4, fig. 4 is a schematic structural diagram of a storage space recycling apparatus according to an embodiment of the present application.
The storage space recycling device provided in the embodiment of the present application includes a memory 201 and a processor 202, where the memory 201 stores a computer program, and the processor 202 implements the following steps when executing the computer program:
acquiring a target Unmap IO representing and recovering storage space of the thin 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 an aggregated Unmap IO, and ensuring that the aggregated Unmap IO carries a preset mark;
recovering the storage space of the thin volume based on the aggregated Unmap IO and a preset mark;
the preset marks comprise marks for representing storage space recovery.
The storage space recycling device provided in the embodiment of the present application includes a memory 201 and a processor 202, where the memory 201 stores a computer program, and the processor 202 implements the following steps when executing the computer program: obtaining a simplified volume storage space recovery instruction sent by a host connected with a full flash memory system; and converting the storage space recovery instruction of the reduced volume to obtain a target Unmap IO.
The storage space recycling device provided in the embodiment of the present application includes a memory 201 and a processor 202, where the memory 201 stores a computer program, and the processor 202 implements the following steps when executing the computer program: and acquiring a file deleting instruction sent by a host connected with the full flash memory system.
The storage space recycling device provided in the embodiment of the present application includes a memory 201 and a processor 202, where the memory 201 stores a computer program, 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 in the embodiment of the present application includes a memory 201 and a processor 202, where the memory 201 stores a computer program, 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 the split Unmap IO carries a preset mark or not; 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 in the embodiment of the present application includes a memory 201 and a processor 202, where the memory 201 stores a computer program, and the processor 202 implements the following steps when executing the computer program: and adding a preset mark to the header of the split Unmap IO.
The storage space recycling device provided in the embodiment of the present application includes a memory 201 and a processor 202, where the memory 201 stores a computer program, and the processor 202 implements the following steps when executing the computer program: the types of preset marks include numerical marks, alphabetic marks, and symbolic marks.
Referring to fig. 5, another storage space recycling apparatus provided in an embodiment of the present application may further include: an input port 203 connected to the processor 202 for transmitting an externally input command 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 recovery equipment and the outside. The display unit 204 may be a display panel, a laser scanning display, or the like; communication means employed by the communication module 205 include, but are not limited to, mobile high definition link technology (HML), universal Serial Bus (USB), high Definition Multimedia Interface (HDMI), wireless connection: wireless fidelity (WiFi), bluetooth communication, bluetooth low energy communication, ieee802.11s based communication.
The embodiment of the application provides a computer readable storage medium, in which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
acquiring a target Unmap IO representing and recovering storage space of the thin 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 an aggregated Unmap IO, and ensuring that the aggregated Unmap IO carries a preset mark;
recovering the storage space of the thin volume based on the aggregated Unmap IO and a preset mark;
the preset marks comprise marks for representing storage space recovery.
The embodiment of the application provides a computer readable storage medium, in which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented: obtaining a simplified volume storage space recovery instruction sent by a host connected with a full flash memory system; and converting the storage space recovery instruction of the reduced volume to obtain a target Unmap IO.
The embodiment of the application provides a computer readable storage medium, in which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented: and acquiring a file deleting instruction sent by a host connected with the full flash memory system.
The embodiment of the application provides a computer readable storage medium, in which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented: and acquiring a formatted volume instruction sent by a host connected with the full flash memory system.
The embodiment of the application provides a computer readable storage medium, in which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented: splitting the Unmap IO according to a preset Pio value to obtain a split Unmap IO; judging whether the split Unmap IO carries a preset mark or not; 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 computer readable storage medium, in which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented: and adding a preset mark to the header of the split Unmap IO.
The embodiment of the application provides a computer readable storage medium, in which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented: the types of preset marks include numerical marks, alphabetic marks, and symbolic marks.
The computer readable storage medium referred to in this application includes 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 medium known in the art.
The description of the relevant parts in the storage space recycling apparatus, the device and the computer readable storage medium provided in the embodiments of the present application refers to the detailed description of the corresponding parts in the storage space recycling method provided in the embodiments of the present application, and will not be repeated here. In addition, the parts of the above technical solutions provided in the embodiments of the present application, which are consistent with the implementation principles of the corresponding technical solutions in the prior art, are not described in detail, so that redundant descriptions are avoided.
It is further noted that relational terms such as first and second, and the like are 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. Moreover, 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 one … …" does not exclude the presence of other like 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 (8)

1. The storage space recycling method is characterized by being applied to a full flash memory system and comprising the following steps of:
acquiring a target Unmap IO representing and recovering storage space of the thin 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;
the split Unmap IO is aggregated according to a preset Vio value to obtain an aggregated Unmap IO, and the aggregated Unmap IO is ensured to carry the preset mark;
recovering the storage space of the thin volume based on the aggregate Unmap IO and the preset mark;
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, wherein the splitting Unmap IO comprises:
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;
if the split Unmap IO does not carry the preset mark, adding the preset mark to the head of the split Unmap IO;
the preset marks comprise marks for representing storage space recovery.
2. The method of claim 1, wherein the obtaining a target umap IO characterizing reclaimed thin volume storage space comprises:
obtaining a simplified volume storage space recovery instruction sent by a host connected with the full flash memory system;
and converting the reduced volume storage space recovery instruction to obtain the target Unmap IO.
3. The method of claim 2, wherein the obtaining the thin volume storage space reclamation instruction sent by the host side connected to the all-flash storage system includes:
and acquiring a file deleting instruction sent by the host end connected with the full flash memory system.
4. The method of claim 2, wherein the obtaining the thin volume storage space reclamation instruction sent by the host side connected to the all-flash storage system includes:
and acquiring a formatted volume instruction sent by the host connected with the full flash memory system.
5. The method according to any one of claims 1 to 4, wherein the type of preset marking comprises a numeric marking, an alphabetic marking, a symbolic marking.
6. A memory space reclamation apparatus, characterized in that it is applied to a full flash memory system, comprising:
the first acquisition module is used for acquiring a target Unmap IO for representing and recovering the storage space of the 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 ensuring 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 aggregate Unmap IO and the preset mark;
wherein the first splitting module comprises:
the first splitting unit is used for splitting the Unmap IO according to the preset Pio value to obtain the split Unmap IO;
the first judging unit is used for judging whether the split Unmap IO carries the preset mark or not; if the split Unmap IO does not carry the preset mark, adding the preset mark to the head of the split Unmap IO;
the preset marks comprise marks for representing storage space recovery.
7. 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 according to any of claims 1 to 5 when executing the computer program.
8. A computer readable storage medium, characterized in that the computer readable storage medium has stored therein a computer program which, when executed by a processor, implements the steps of the storage space reclamation method according to any of claims 1 to 5.
CN202010988131.0A 2020-09-18 2020-09-18 Storage space recycling method, device, equipment and computer storage medium Active CN112162701B (en)

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 CN112162701A (en) 2021-01-01
CN112162701B true 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)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113568581B (en) * 2021-07-29 2023-08-01 武汉天喻信息产业股份有限公司 Multi-application resource recovery method and system for embedded equipment

Citations (12)

* Cited by examiner, † Cited by third party
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
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
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

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9329792B2 (en) * 2014-01-14 2016-05-03 International Business Machines Corporation Storage thin provisioning and space reclamation
US10795768B2 (en) * 2018-10-22 2020-10-06 Seagate Technology Llc Memory reallocation during raid rebuild

Patent Citations (12)

* Cited by examiner, † Cited by third party
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
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
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)

* Cited by examiner, † Cited by third party
Title
一种面向虚拟化云计算平台的内存优化技术;李亚琼;宋莹;黄永兵;;计算机学报(04);全文 *
自动精简配置技术中空间回收方法的研究;韩朴杰;康慕宁;张晓;;计算机与现代化(12);全文 *

Also Published As

Publication number Publication date
CN112162701A (en) 2021-01-01

Similar Documents

Publication Publication Date Title
CN107229415B (en) Data writing method, data reading method, related equipment and system
CN107481762B (en) Trim processing method and device of solid state disk
US10585589B2 (en) Data collation method, storage device, storage controller, and storage array
CN109522154B (en) Data recovery method and related equipment and system
CN103167134A (en) Infinite storage system and method of mobile phone
EP3142014B1 (en) Method, device and user equipment for reading/writing data in nand flash
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
CN109446147B (en) Data interaction method of network storage device and pcie device
CN112162701B (en) Storage space recycling method, device, equipment and computer storage medium
CN114327258B (en) Solid state disk processing method, system, equipment and computer storage medium
CN111399857A (en) FRU data burning method, system, equipment and computer storage medium
CN110209605A (en) The register reading/writing method and calculating equipment of PCIE Cardbus NIC Cardbus
CN109542357B (en) Command parameter assembling method, system, equipment and computer storage medium
CN115934579A (en) Solid state disk garbage recycling method, accelerating device, equipment and computer medium
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
KR101093019B1 (en) System for restoring transmission data using main memory direct control of mobile communications terminal and method provide therefor
CN107506283B (en) Method and system for host to push information to SAN storage
CN111881211B (en) Method, system and equipment for synchronizing storage data and computer storage medium
CN112783420A (en) Data deleting and garbage recycling method, device, system and storage medium
US20190294806A1 (en) Method and system for implementing data secure deletion in mobile terminal
CN103500092A (en) Judgment method for WORM appending writing and storage device
CN110688180B (en) Front-end system, front-end data flow control method, electronic device and storage medium
CN109947598B (en) SSD microcode backup method, system, device and computer storage medium

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