CN116974473A - Storage space management method, device, equipment and computer readable storage medium - Google Patents

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

Info

Publication number
CN116974473A
CN116974473A CN202310931764.1A CN202310931764A CN116974473A CN 116974473 A CN116974473 A CN 116974473A CN 202310931764 A CN202310931764 A CN 202310931764A CN 116974473 A CN116974473 A CN 116974473A
Authority
CN
China
Prior art keywords
storage
target storage
storage space
particles
state
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.)
Pending
Application number
CN202310931764.1A
Other languages
Chinese (zh)
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.)
Yusur Technology Co ltd
Original Assignee
Yusur 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 Yusur Technology Co ltd filed Critical Yusur Technology Co ltd
Priority to CN202310931764.1A priority Critical patent/CN116974473A/en
Publication of CN116974473A publication Critical patent/CN116974473A/en
Pending legal-status Critical Current

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/0604Improving or facilitating administration, e.g. storage management

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)
  • Debugging And Monitoring (AREA)

Abstract

The present disclosure relates to a storage space management method, apparatus, device, and computer-readable storage medium, the method comprising: acquiring the use state of each candidate storage particle in a storage space, wherein the storage space comprises a plurality of candidate storage particles; in response to receiving an operation indication for a storage space, determining a target storage grain corresponding to the operation indication from a plurality of candidate storage grains; determining whether the target storage particles meet the execution conditions of the operation instructions according to the operation instructions and the use states of the target storage particles; when the target storage particles are determined to meet the execution conditions of the operation instruction, the operation instruction is completed through the target storage particles; and updating the use state of the target storage particles to obtain the updated use state. According to the method and the device, corresponding operation is executed according to the states of the candidate storage particles, and the storage space is dynamically adjusted, so that the efficiency of the storage space management method is improved.

Description

Storage space management method, device, equipment and computer readable storage medium
Technical Field
The present disclosure relates to the field of data communications technologies, and in particular, to a storage space management method, apparatus, device, and computer readable storage medium.
Background
With the continuous improvement of communication technology, explosive growth of data volume is brought, rapid development of memory chips and computer technology is stimulated, and communication between devices tends to be in the directions of multithreading, multi-core, multi-dimension and the like.
In the existing data storage architecture, a small-grain storage mode is generally adopted to store large-flow data, and the method can realize high-efficiency use of the storage space, but meanwhile, the storage space is monitored and managed with low efficiency due to the fact that management of the storage grains is very complex.
Disclosure of Invention
In order to solve the above technical problems, the present disclosure provides a storage space management method, apparatus, device, and computer readable storage medium, so as to improve the management efficiency of storage space.
In a first aspect, an embodiment of the present disclosure provides a storage space management method, including:
acquiring the use state of each candidate storage particle in a storage space, wherein the storage space comprises a plurality of candidate storage particles;
in response to receiving an operation indication for the storage space, determining a target storage grain corresponding to the operation indication from the plurality of candidate storage grains;
determining whether the target storage particles meet the execution conditions of the operation instruction according to the operation instruction and the use state of the target storage particles;
completing the operation instruction through the target storage particle when the target storage particle is determined to meet the execution condition of the operation instruction;
and updating the use state of the target storage particles to obtain the updated use state.
In some embodiments, when the operation instruction is a storage space application instruction, the determining, according to the operation instruction and the usage state of the target storage grain, whether the target storage grain meets the execution condition of the operation instruction includes:
if the using state of the target storage particles is an idle state, determining that the target storage particles meet the executing conditions indicated by the storage space application; or alternatively, the process may be performed,
and if the use state of the target storage particles is an occupied state or an error state, determining that the target storage particles do not meet the execution conditions indicated by the storage space application.
In some embodiments, when the operation instruction is a storage space release instruction, the determining, according to the operation instruction and the usage state of the target storage grain, whether the target storage grain meets an execution condition of the operation instruction includes:
if the using state of the target storage particles is an occupied state, determining that the target storage particles meet the executing condition of the storage space release; or alternatively, the process may be performed,
and if the using state of the target storage particles is an idle state or an error state, determining that the target storage particles do not meet the execution condition of the storage space release.
In some embodiments, when the operation instruction is a storage space application instruction, the updating the usage state of the target storage particle to obtain an updated usage state includes:
and updating the use state of the target storage particles from an idle state to an occupied state.
In some embodiments, when the operation instruction is a storage space release instruction, the updating the usage state of the target storage granule to obtain an updated usage state includes:
updating the use state of the target storage particles from the occupied state to the idle state.
In some embodiments, after determining whether the target storage grain meets the execution condition of the operation instruction according to the operation instruction and the use state of the target storage grain, the method further includes:
and updating the use state of the target storage grain into an error state when the target storage grain is determined not to meet the execution condition indicated by the operation.
In some embodiments, the method further comprises:
and if the number of the candidate storage particles with the same use state in the storage space exceeds a preset threshold, generating alarm information, wherein the alarm information is used for representing the occurrence of the abnormality of the storage space.
In a second aspect, an embodiment of the present disclosure provides a storage space management apparatus, including:
the storage space comprises a plurality of candidate storage particles;
a first determining module, configured to determine, in response to receiving an operation instruction for the storage space, a target storage grain corresponding to the operation instruction from the plurality of candidate storage grains;
the second determining module is used for determining whether the target storage particles meet the execution conditions of the operation instructions according to the operation instructions and the use states of the target storage particles;
the execution module is used for completing the operation instruction through the target storage particles if the target storage particles meet the execution conditions of the operation instruction;
and the updating module is used for updating the use state of the target storage particles to obtain the updated use state.
In a third aspect, an embodiment of the present disclosure provides an electronic device, including:
a memory;
a processor; and
a computer program;
wherein the computer program is stored in the memory and configured to be executed by the processor to implement the method according to the first aspect.
In a fourth aspect, embodiments of the present disclosure provide a computer-readable storage medium having stored thereon a computer program for execution by a processor to implement the method of the first aspect.
In a fifth aspect, the disclosed embodiments also provide a computer program product comprising a computer program or instructions which, when executed by a processor, implement a storage space management device method as described above.
According to the storage space management device, the storage space management method, the storage space management device, the storage space management equipment and the computer readable storage medium, the storage space is dynamically adjusted by recording the state of each candidate storage particle in the storage space and executing corresponding operation according to the state of the candidate storage particle, so that the efficiency of the storage space management method is improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure.
In order to more clearly illustrate the embodiments of the present disclosure or the solutions in the prior art, the drawings that are required for the description of the embodiments or the prior art will be briefly described below, and it will be obvious to those skilled in the art that other drawings can be obtained from these drawings without inventive effort.
FIG. 1 is a schematic diagram of a normal data processing flow;
FIG. 2 is a schematic diagram of an abnormal situation data processing flow;
FIG. 3 is a flowchart of a method for managing storage space according to an embodiment of the present disclosure;
fig. 4 is a schematic view of an application scenario provided in an embodiment of the present disclosure;
FIG. 5 is a flowchart of a method for managing storage space according to another embodiment of the present disclosure;
FIG. 6 is a flowchart of a method for managing storage space according to another embodiment of the present disclosure;
FIG. 7 is a schematic diagram of a storage space management device according to an embodiment of the disclosure;
fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the disclosure.
Detailed Description
In order that the above objects, features and advantages of the present disclosure may be more clearly understood, a further description of aspects of the present disclosure will be provided below. It should be noted that, without conflict, the embodiments of the present disclosure and features in the embodiments may be combined with each other.
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present disclosure, but the present disclosure may be practiced otherwise than as described herein; it will be apparent that the embodiments in the specification are only some, but not all, embodiments of the disclosure.
In the granular storage scene, if the use condition of each storage granule cannot be mastered globally, the abnormal problems of repeated use, repeated release and the like of a certain storage granule can occur, so that the loss and confusion of data are introduced, and the whole storage system is crashed. Such as: some memory granule is not used, but the external module sends a memory granule release signal, which once taken by the memory space will cause the granule to appear in the resource pool multiple times, which will tend to cause data coverage, resulting in data loss.
FIG. 1 is a schematic diagram of a normal data processing flow. Under normal conditions, in the data storage process, the data processing flow is shown in fig. 1, 0-7 are storage particles, and the time T0 is power-on initialization; t1 is an external module, applies for using a storage space, and obtains storage particles with the number of 0; t2 is the use of the storage space completed by the external module, and the storage particles with the number of 0 are recovered into the storage space.
FIG. 2 is a schematic diagram of an abnormal situation data processing flow. As shown in fig. 2, repeated release of the storage particles with the number 0 at the time T3 will cause the storage space with the number 1 to be extruded out of the resource pool, resulting in resource waste, and simultaneously, two storage particles with the number 0 will exist in the resource pool, and during distribution and use of subsequent storage particles, there will be repeated use of the storage particles with the number 0, resulting in loss of data coverage.
Therefore, the storage grain state is not perceived, so that data storage errors are caused, and further system breakdown can be caused in the long-time running process.
In view of this problem, embodiments of the present disclosure provide a storage space management method, which is described below with reference to specific embodiments.
Fig. 3 is a flowchart of a storage space management method according to an embodiment of the present disclosure. The method can be applied to the application scenario shown in fig. 4, where the application scenario includes a storage space, and a plurality of storage particles in the storage space.
It can be appreciated that the storage space management method provided by the embodiment of the present disclosure may also be applied in other scenarios.
The storage space management method shown in fig. 3 is described below in conjunction with the application scenario shown in fig. 4, where the method includes the following specific steps:
s301, acquiring a use state of each candidate storage particle in a storage space, wherein the storage space comprises a plurality of candidate storage particles.
In the data storage process, the storage space is divided into a plurality of storage particles. In the embodiment of the present disclosure, a plurality of storage particles in a storage space are referred to as candidate storage particles. Specifically, the storage space shown in fig. 4, for example, is divided into a plurality of candidate storage granules (numbered 1, 2, 3 … … in order in fig. 4).
And in the stage of power-on initialization of the equipment where the storage space is located, initializing the storage space and the candidate storage particles, and recording the use state of each candidate storage particle. Typically, the usage status of each candidate storage granule is idle at this time.
The usage status of the candidate storage grain is used to characterize the occupied status of the candidate storage grain and whether the candidate storage grain is normal. In some embodiments, the usage states of the candidate storage granules include an idle state, an occupied state, and an error state.
When the using state of the candidate storage particles is an idle state, the candidate storage particles are normal and are not used currently; when the using state of the candidate storage particles is the occupied state, the candidate storage particles are normal and are currently used; when the use state of the candidate storage grain is an error state, the candidate storage grain is abnormal and cannot be used or released currently.
S302, in response to receiving an operation instruction for the storage space, determining target storage particles corresponding to the operation instruction from the plurality of candidate storage particles.
The operation instruction of the storage space is used for applying for allocation of the storage space when the data needs to be stored, or releasing and recycling the storage space after the use is completed.
The operation instruction is used for deciding an operation to be performed on the storage space. For example, the application allocation or release of the storage space is performed, and specifically, the application allocation or release of the candidate storage particles is performed. For example, the storage space application instruction is used for applying for allocation of storage space; the storage space release indication is used to release the storage space that has been used.
Upon receiving an operation indication for the storage space, a target storage grain of a plurality of candidate storage grains included in the storage space is first determined.
S303, determining whether the target storage particles meet the execution conditions of the operation instruction according to the operation instruction and the use state of the target storage particles.
And determining the use state of the target storage grain according to the use state of each candidate storage grain recorded currently, and determining whether the target storage grain meets the execution condition of the operation instruction.
For example, if the usage state of the target storage grain is an error state, it is obvious that the target storage grain cannot meet the execution condition of the operation instruction; if the use state of the target storage particle is the occupied state or the idle state, further judging whether the target storage particle meets the execution condition of the operation instruction.
S304, completing the operation instruction through the target storage grain when the target storage grain is determined to meet the execution condition of the operation instruction.
And S305, updating the use state of the target storage particles to obtain updated use states.
If the usage state of the target storage grain can meet the execution condition of the operation instruction, the operation instruction is completed through the target storage grain, for example, the target storage grain is allocated or released, and the state of the target storage grain is updated.
In some embodiments, if the updated usage status of the target storage particle is an error status, the error information is reported for viewing and analysis by related personnel.
The method comprises the steps of obtaining the use state of each candidate storage particle in a storage space, wherein the storage space comprises a plurality of candidate storage particles; in response to receiving an operation indication for the storage space, determining a target storage grain corresponding to the operation indication from the plurality of candidate storage grains; determining whether the target storage particles meet the execution conditions of the operation instruction according to the operation instruction and the use state of the target storage particles; completing the operation instruction through the target storage particle when the target storage particle is determined to meet the execution condition of the operation instruction; and updating the use state of the target storage particles to obtain an updated use state, and dynamically adjusting the storage space by recording the state of each candidate storage particle in the storage space and executing corresponding operation according to the state of the candidate storage particle, thereby improving the efficiency of the storage space management method.
Fig. 5 is a flowchart of a storage space management method according to another embodiment of the present disclosure, as shown in fig. 5, the method includes the following steps:
s501, acquiring the use state of each candidate storage particle in a storage space, wherein the storage space comprises a plurality of candidate storage particles.
S502, in response to receiving a storage space application instruction, determining a target storage particle corresponding to the storage space application instruction from the plurality of candidate storage particles.
S503, judging whether the target storage particles meet the execution conditions indicated by the storage space application; if yes, executing S504; if not, S506 is performed.
Specifically, if the use state of the target storage particle is an idle state, determining that the target storage particle meets the execution condition indicated by the storage space application; or if the use state of the target storage particle is an occupied state or an error state, determining that the target storage particle does not meet the execution condition indicated by the storage space application.
S504, finishing the storage space application instruction through the target storage particles.
S505, updating the use state of the target storage particles from an idle state to an occupied state.
S506, updating the use state of the target storage particles to be an error state.
When the storage space application instruction is received, the use state of the target storage particles is read, and the next operation is determined by combining the storage space application instruction and the use state of the target storage particles.
When the use state of the target storage particles is in an idle state, the storage space application operation is compliant, the target storage particles can be used for the storage space application operation, the storage space application indication is completed through the target storage particles, and meanwhile, the use state of the target storage particles is updated to be in an occupied state.
When the use state of the target storage particle is the occupied state, the storage space application operation is illegal at the moment, and the storage particle which is already used cannot be allocated again, so that the target storage particle cannot be used for the storage space application operation, the storage space application instruction is not executed, and the use state of the target storage particle is updated to be the error state.
When the use state of the target storage particle is an error state, the storage space application operation is illegal at this time, and the abnormal storage particle cannot be operated, so that the target storage particle cannot be used for the storage space application operation, and the storage space application instruction is not executed, and the use state of the target storage particle is updated to the error state, namely, the use state of the target storage particle is maintained.
Fig. 6 is a flowchart of a storage space management method according to another embodiment of the present disclosure, as shown in fig. 6, the method includes the following steps:
s601, acquiring the use state of each candidate storage particle in a storage space, wherein the storage space comprises a plurality of candidate storage particles.
S602, in response to receiving the storage space release indication, determining a target storage particle corresponding to the storage space release indication from the plurality of candidate storage particles.
S603, judging whether the target storage particles meet the execution condition of the storage space release instruction; if yes, executing S604; if not, S606 is performed.
Specifically, if the use state of the target storage particles is an occupied state, determining that the target storage particles meet the execution condition of the storage space release; or if the use state of the target storage grain is an idle state or an error state, determining that the target storage grain does not meet the execution condition of the storage space release.
S604, finishing the storage space release instruction through the target storage particles.
S605, updating the use state of the target storage particles from the occupied state to the idle state.
S606, updating the use state of the target storage particles into an error state.
When the storage space application instruction is received, the use state of the target storage particles is read, and the next operation is determined by combining the storage space application instruction and the use state of the target storage particles.
When the use state of the target storage grain is in an idle state, the storage space release operation is illegal, and the unused storage grain cannot be released, so that the target storage grain cannot be used for the storage space release operation, and the storage space release instruction is not executed, so that the use state of the target storage grain is updated to be in an error state.
When the use state of the target storage particle is the occupied state, the storage space release operation is compliant, the target storage particle can be used for the storage space release operation, the storage space release instruction is completed through the target storage particle, and the use state of the target storage particle is updated to be the idle state.
When the use state of the target storage grain is in an error state, the storage space release operation is illegal at the moment, the abnormal storage grain cannot be operated, so that the target storage grain cannot be used for the storage space release operation, the storage space release instruction is not executed, and the use state of the target storage grain is updated to be in an error state, namely, the use state of the target storage grain is maintained.
According to the embodiment of the disclosure, the use state of the storage particles is recorded, the storage strategy is adjusted in real time according to the use state, the use state of the storage particles is dynamically managed, and the stability of the whole storage system is improved.
On the basis of the above embodiment, the storage space management method further includes: and if the number of the candidate storage particles with the same use state in the storage space exceeds a preset threshold, generating alarm information, wherein the alarm information is used for representing the occurrence of the abnormality of the storage space.
In the process of data storage, the use states of candidate storage particles in the storage space are monitored, and the number of the candidate storage particles in each use state is counted. When the number of candidate storage particles in a certain use state exceeds a preset threshold, the state in the storage space is possibly abnormal, and alarm information is generated and reported. Specifically, different preset thresholds may be set for different usage states, which is not limited by the embodiments of the present disclosure.
For example, when the number of candidate storage particles in the error state exceeds the preset threshold, the number of candidate storage particles which cannot be used in the current storage space is excessive, and repair or adjustment is needed.
Or when the number of candidate storage particles in the idle state exceeds a preset threshold, the method indicates that a large amount of resources in the current storage space can be used, and can support load balance with other storage spaces.
Or when the number of the candidate storage particles in the occupied state exceeds a preset threshold, the number of the candidate storage particles in the occupied state indicates that the available storage resources in the current storage space are less, and load balancing with other storage spaces is needed.
According to the embodiment of the disclosure, the storage space state is analyzed in a summarizing way, and the state is reported in real time, so that the storage strategy can be dynamically adjusted in time, and the management efficiency and stability of the whole storage system are improved.
Fig. 7 is a schematic structural diagram of a storage space management device according to an embodiment of the present disclosure. The storage space management apparatus may be a device in which the storage space is located as described in the above embodiment, or the storage space management apparatus may be a part or component in a device in which the storage space is located. The storage space management apparatus provided in the embodiment of the present disclosure may execute the processing flow provided in the embodiment of the storage space management method, as shown in fig. 7, the storage space management apparatus 70 includes: an acquisition module 71, a first determination module 72, a second determination module 73, an execution module 74, an update module 75; the acquiring module 71 is configured to acquire a usage status of each candidate storage granule in a storage space, where the storage space includes a plurality of candidate storage granules; the first determining module 72 is configured to determine, in response to receiving an operation instruction for the storage space, a target storage grain corresponding to the operation instruction from the plurality of candidate storage grains; the second determining module 73 is configured to determine, according to the operation instruction and the usage status of the target storage granule, whether the target storage granule meets an execution condition of the operation instruction; the execution module 74 is configured to complete the operation instruction through the target storage grain when it is determined that the target storage grain meets an execution condition of the operation instruction; the updating module 75 is configured to update the usage status of the target storage granule, and obtain an updated usage status.
Optionally, when the operation instruction is a storage space application instruction, the second determining module 73 is configured to determine that the target storage particle meets an execution condition of the storage space application instruction if a usage state of the target storage particle is an idle state; or if the use state of the target storage particle is an occupied state or an error state, determining that the target storage particle does not meet the execution condition indicated by the storage space application.
Optionally, when the operation instruction is a storage space release instruction, the second determining module 73 is configured to determine that the target storage particle meets an execution condition of the storage space release if the usage state of the target storage particle is an occupied state; or if the use state of the target storage grain is an idle state or an error state, determining that the target storage grain does not meet the execution condition of the storage space release.
Optionally, when the operation indication is a storage space application indication, the updating module 75 is configured to update the usage state of the target storage granule from an idle state to an occupied state.
Optionally, when the operation indication is a storage space release indication, the updating module 75 is configured to update the usage state of the target storage granule from an occupied state to an idle state.
Optionally, the updating module 75 is further configured to update the usage status of the target storage grain to an error status when the target storage grain does not meet the execution condition indicated by the operation.
Optionally, the storage space management device 70 further includes a generating module 76, configured to generate alarm information, where the alarm information is used to characterize that the storage space is abnormal, if the number of candidate storage particles with the same usage status in the storage space exceeds a preset threshold.
The storage space management device of the embodiment shown in fig. 7 may be used to implement the technical solution of the above-mentioned method embodiment, and its implementation principle and technical effects are similar, and will not be described herein again.
Fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the disclosure. The electronic device may be a device in which the storage space is located as described in the above embodiments. The electronic device provided in the embodiment of the present disclosure may execute the processing flow provided in the embodiment of the storage space management method, and as shown in fig. 8, the electronic device 80 includes: memory 81, processor 82, computer programs and communication interface 83; wherein the computer program is stored in the memory 81 and configured to be executed by the processor 82 for performing the memory space management method as described above.
In addition, the embodiment of the present disclosure also provides a computer-readable storage medium having stored thereon a computer program that is executed by a processor to implement the storage space management method described in the above embodiment.
Furthermore, embodiments of the present disclosure provide a computer program product comprising a computer program or instructions which, when executed by a processor, implement a memory space management method as described above.
The foregoing description is only of the preferred embodiments of the present disclosure and description of the principles of the technology being employed. It will be appreciated by persons skilled in the art that the scope of the disclosure referred to in this disclosure is not limited to the specific combinations of features described above, but also covers other embodiments which may be formed by any combination of features described above or equivalents thereof without departing from the spirit of the disclosure. Such as those described above, are mutually substituted with the technical features having similar functions disclosed in the present disclosure (but not limited thereto).
Moreover, although operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. In certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of the present disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are example forms of implementing the claims.
It should be noted that in this document, 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 foregoing is merely a specific embodiment of the disclosure to enable one skilled in the art to understand or practice the disclosure. 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 disclosure. Thus, the present disclosure is not intended to be limited to the embodiments shown and described herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A method of storage space management, the method comprising:
acquiring the use state of each candidate storage particle in a storage space, wherein the storage space comprises a plurality of candidate storage particles;
in response to receiving an operation indication for the storage space, determining a target storage grain corresponding to the operation indication from the plurality of candidate storage grains;
determining whether the target storage particles meet the execution conditions of the operation instruction according to the operation instruction and the use state of the target storage particles;
completing the operation instruction through the target storage particle when the target storage particle is determined to meet the execution condition of the operation instruction;
and updating the use state of the target storage particles to obtain the updated use state.
2. The method according to claim 1, wherein when the operation instruction is a storage space application instruction, the determining whether the target storage grain satisfies an execution condition of the operation instruction according to the operation instruction and the usage state with the target storage grain includes:
if the using state of the target storage particles is an idle state, determining that the target storage particles meet the executing conditions indicated by the storage space application; or alternatively, the process may be performed,
and if the use state of the target storage particles is an occupied state or an error state, determining that the target storage particles do not meet the execution conditions indicated by the storage space application.
3. The method of claim 1, wherein when the operation indication is a storage space release indication, the determining whether the target storage grain satisfies an execution condition of the operation indication according to the operation indication and the usage status with the target storage grain comprises:
if the using state of the target storage particles is an occupied state, determining that the target storage particles meet the executing condition of the storage space release; or alternatively, the process may be performed,
and if the using state of the target storage particles is an idle state or an error state, determining that the target storage particles do not meet the execution condition of the storage space release.
4. The method of claim 1, wherein updating the usage status of the target storage particle when the operation indication is a storage space application indication, to obtain an updated usage status, comprises:
and updating the use state of the target storage particles from an idle state to an occupied state.
5. The method of claim 1, wherein updating the usage status of the target storage particle when the operation indication is a storage space release indication, the updated usage status comprising:
updating the use state of the target storage particles from the occupied state to the idle state.
6. The method of claim 1, wherein after determining whether the target storage grain satisfies the execution condition of the operation instruction according to the operation instruction and the usage state with the target storage grain, the method further comprises:
and updating the use state of the target storage grain into an error state when the target storage grain is determined not to meet the execution condition indicated by the operation.
7. The method according to claim 1, wherein the method further comprises:
and if the number of the candidate storage particles with the same use state in the storage space exceeds a preset threshold, generating alarm information, wherein the alarm information is used for representing the occurrence of the abnormality of the storage space.
8. A storage space management apparatus, comprising:
the storage space comprises a plurality of candidate storage particles;
a first determining module, configured to determine, in response to receiving an operation instruction for the storage space, a target storage grain corresponding to the operation instruction from the plurality of candidate storage grains;
the second determining module is used for determining whether the target storage particles meet the execution conditions of the operation instructions according to the operation instructions and the use states of the target storage particles;
the execution module is used for completing the operation instruction through the target storage particles if the target storage particles meet the execution conditions of the operation instruction;
and the updating module is used for updating the use state of the target storage particles to obtain the updated use state.
9. An electronic device, comprising:
a memory;
a processor; and
a computer program;
wherein the computer program is stored in the memory and configured to be executed by the processor to implement the method of any of claims 1-7.
10. A computer readable storage medium, on which a computer program is stored, which computer program, when being executed by a processor, implements the method according to any of claims 1-7.
CN202310931764.1A 2023-07-26 2023-07-26 Storage space management method, device, equipment and computer readable storage medium Pending CN116974473A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310931764.1A CN116974473A (en) 2023-07-26 2023-07-26 Storage space management method, device, equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310931764.1A CN116974473A (en) 2023-07-26 2023-07-26 Storage space management method, device, equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN116974473A true CN116974473A (en) 2023-10-31

Family

ID=88474372

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310931764.1A Pending CN116974473A (en) 2023-07-26 2023-07-26 Storage space management method, device, equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN116974473A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102541743A (en) * 2010-12-17 2012-07-04 伊姆西公司 Storage management method, equipment and system
CN103927261A (en) * 2013-01-15 2014-07-16 国际商业机器公司 Efficient Allocation And Reclamation Method For Thin-provisioned Storage And System Thereof
CN111367461A (en) * 2018-12-25 2020-07-03 北京兆易创新科技股份有限公司 Storage space management method and device
CN112306408A (en) * 2020-10-27 2021-02-02 苏州浪潮智能科技有限公司 Storage block processing method, device, equipment and storage medium
CN114356211A (en) * 2021-11-19 2022-04-15 苏州浪潮智能科技有限公司 Storage space processing method and device, electronic equipment and storage medium
CN115686346A (en) * 2021-07-29 2023-02-03 腾讯科技(深圳)有限公司 Data storage method and device and computer readable storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102541743A (en) * 2010-12-17 2012-07-04 伊姆西公司 Storage management method, equipment and system
CN103927261A (en) * 2013-01-15 2014-07-16 国际商业机器公司 Efficient Allocation And Reclamation Method For Thin-provisioned Storage And System Thereof
CN111367461A (en) * 2018-12-25 2020-07-03 北京兆易创新科技股份有限公司 Storage space management method and device
CN112306408A (en) * 2020-10-27 2021-02-02 苏州浪潮智能科技有限公司 Storage block processing method, device, equipment and storage medium
CN115686346A (en) * 2021-07-29 2023-02-03 腾讯科技(深圳)有限公司 Data storage method and device and computer readable storage medium
CN114356211A (en) * 2021-11-19 2022-04-15 苏州浪潮智能科技有限公司 Storage space processing method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
US8719623B2 (en) Optimized placement of virtual machines in a network environment
US9086952B2 (en) Memory management and method for allocation using free-list
US9571567B2 (en) Methods and systems to manage computer resources in elastic multi-tenant cloud computing systems
US9489231B2 (en) Selecting provisioning targets for new virtual machine instances
WO2016165470A1 (en) Vnf instance processing method and device, and vnfm
US20080109817A1 (en) Schedule control program and schedule control method
US10530708B2 (en) Apparatus and method for managing computing resources in network function virtualization system
US8869149B2 (en) Concurrency identification for processing of multistage workflows
US20180107396A1 (en) Tracking ownership of memory in a data processing system through use of a memory monitor
DE112015000384T5 (en) Increase reliability in a distributed storage system
US20230333960A1 (en) Dynamic distributed tracing instrumentation in a microservice architecture
US9846546B2 (en) Method and apparatus for storing image
US8458719B2 (en) Storage management in a data processing system
CN108804230A (en) A kind of method, apparatus and medium for distributing resource according to the type of device PCI
CN110297743B (en) Load testing method and device and storage medium
US11032159B2 (en) Apparatus for preformance analysis of virtual network functions in network functional virtualization platform and method thereof
US11048557B2 (en) Methods and modules relating to allocation of host machines
CN116974473A (en) Storage space management method, device, equipment and computer readable storage medium
CN115373764B (en) Automatic container loading method and device
CN113467723B (en) Data storage method, device, equipment and medium
US20130247063A1 (en) Computing device and method for managing memory of virtual machines
CN115220908A (en) Resource scheduling method, device, electronic equipment and storage medium
US7769976B2 (en) Identifying code that wastes virtual memory
CN110851286B (en) Thread management method and device, electronic equipment and storage medium
US20100115169A1 (en) Processor and interrupt handling method

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