[go: up one dir, main page]

CN112162850B - Memory application method, device, equipment and medium - Google Patents

Memory application method, device, equipment and medium Download PDF

Info

Publication number
CN112162850B
CN112162850B CN202010915152.XA CN202010915152A CN112162850B CN 112162850 B CN112162850 B CN 112162850B CN 202010915152 A CN202010915152 A CN 202010915152A CN 112162850 B CN112162850 B CN 112162850B
Authority
CN
China
Prior art keywords
dynamic memory
memory
module
pool
management module
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
CN202010915152.XA
Other languages
Chinese (zh)
Other versions
CN112162850A (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 CN202010915152.XA priority Critical patent/CN112162850B/en
Publication of CN112162850A publication Critical patent/CN112162850A/en
Application granted granted Critical
Publication of CN112162850B publication Critical patent/CN112162850B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5011Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
    • G06F9/5016Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals the resource being the memory
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/0223User address space allocation, e.g. contiguous or non contiguous base addressing
    • G06F12/023Free address space management
    • G06F12/0238Memory management in non-volatile memory, e.g. resistive RAM or ferroelectric memory

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

The application provides a memory application method, which comprises the following steps: receiving a creating instruction of a full flash reduced pool; creating a full-flash reduced pool according to the creation instruction, and applying for a dynamic memory required by the operation of the metadata management module; the full-flash thin pool is a storage pool which is built by using solid-state storage media and can be built into a self-thin volume, and if the dynamic memory is applied, the dynamic memory is distributed to all sub-modules. Therefore, the metadata management module of the full-flash simplifying pool is required to work only when the storage system needs to create the full-flash simplifying pool, and the memory space required by the metadata management module, namely the dynamic memory, is applied at the moment. The application also provides a memory application device, electronic equipment and a computer readable storage medium, which have the beneficial effects.

Description

Memory application method, device, equipment and medium
Technical Field
The present invention relates to the field of memory allocation technologies, and in particular, to a method, an apparatus, a device, and a medium for applying for a memory.
Background
The full flash thin pool refers to a storage pool which is built entirely using solid state storage media (solid state disk SSD) and can be created from thin volumes. In the full-flash compact pool storage function, the metadata management module is used for metadata management, and when the system is initialized, the system can apply for the memory management space required by the metadata management module during working. However, when the system has no full flash reduced pool but only a common pool, the memory management space applied by the metadata management module is not used, so that the waste of the memory space is caused, and even the performance of the system is reduced.
Therefore, how to provide a solution to the above technical problem is a problem that a person skilled in the art needs to solve at present.
Disclosure of Invention
The invention aims to provide a memory application method, a memory application device, electronic equipment and a computer readable storage medium, which can reduce the waste of memory space and improve the performance of a storage system. The specific scheme is as follows:
the application discloses a memory application method, which comprises the following steps:
receiving a creating instruction of a full flash reduced pool;
creating the full flash reduced pool according to the creation instruction, and applying for a dynamic memory required by the operation of the metadata management module; the all-flash thin pool is a storage pool that is built entirely using solid state storage media and that can be created from thin volumes,
and if the application is applied to the dynamic memory, distributing the dynamic memory to each sub-module.
Optionally, before receiving the instruction for creating the full flash reduced pool, the method further includes:
respectively adding preset information required by the dynamic memory application of the metadata management module at a CSM end and an AGT end of the dynamic memory management module; the preset information comprises a maximum memory to be reserved and an initial reserved memory size;
and initializing and registering the preset information during system initialization.
Optionally, after the initializing registration of the preset information during system initialization, the method further includes:
adding first dynamic memory management information at a CSM end of the all-flash reduced pool management module; the first dynamic memory management information is used for identifying whether the memory required by the metadata management module is applied and the size of the applied memory,
adding second dynamic memory management information at the AGT end of the metadata management module; the second dynamic memory management information comprises identification information and allocation information, wherein the identification information is used for identifying whether the memory required by the metadata management module is applied.
Optionally, after the dynamic memory is allocated to each sub-module if the application is applied to the dynamic memory, the method further includes:
when the dynamic memory is applied, modifying the first dynamic memory management information;
and sending a modification instruction to each node so that the AGT end of each node modifies the second dynamic memory management information.
Optionally, if the application is applied to the dynamic memory, the dynamic memory is allocated to each sub-module, including:
acquiring the residual dynamic memory by using a CSM end of the dynamic memory management module;
judging whether the residual dynamic memory is larger than the dynamic memory or not;
and if the dynamic memory is larger than the dynamic memory, applying the dynamic memory required by the operation of the metadata management module, and distributing the dynamic memory to each sub-module.
Optionally, the method further comprises:
when deleting the full flash reduced pool, notifying an AGT end of each node to modify the second dynamic memory management information;
releasing the dynamic memory allocated to each sub-module;
and modifying the first dynamic memory management information according to the released information.
Optionally, when deleting the all-flash reduced pool, notifying the AGT end of each node to modify the second dynamic memory management information includes:
triggering a release instruction through a CLI or a GUI when deleting the full flash reduced pool;
and notifying the AGT end of each node to modify the second dynamic memory management information according to the release instruction.
The application discloses memory application device includes:
the instruction receiving module is used for receiving the creation instruction of the full-flash simplified pool;
the application module is used for creating the full-flash reduced pool according to the creation instruction and applying for dynamic memory required by the operation of the metadata management module; the full-flash thin pool is a storage pool which is built by using solid storage media and can be created into self-thin volumes;
and the distribution module is used for distributing the dynamic memory to each sub-module if the dynamic memory is applied to.
The application discloses electronic equipment includes:
a memory for storing a computer program;
and the processor is used for realizing the steps of the memory application method when executing the computer program.
The present application discloses a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the memory application method as described above.
The application provides a memory application method, which comprises the following steps: receiving a creating instruction of a full flash reduced pool; creating a full-flash reduced pool according to the creation instruction, and applying for a dynamic memory required by the operation of the metadata management module; the full-flash thin pool is a storage pool which is built by using solid-state storage media and can be built into a self-thin volume, and if the dynamic memory is applied, the dynamic memory is distributed to all sub-modules.
Therefore, the metadata management module of the full-flash simplifying pool is required to work only when the storage system needs to create the full-flash simplifying pool, and the memory space required by the metadata management module, namely the dynamic memory, is applied at the moment.
The application also provides a memory application device, an electronic device and a computer readable storage medium, which have the above beneficial effects and are not described herein.
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 memory application method according to an embodiment of the present disclosure;
fig. 2 is a schematic structural diagram of a memory application device according to an embodiment of the present application.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of the embodiments of the present application more clear, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. 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.
The full flash thin pool refers to a storage pool which is built entirely using solid state storage media (solid state disk SSD) and can be created from thin volumes. In the full-flash compact pool storage function, the metadata management module is used for metadata management, and when the system is initialized, the system can apply for the memory management space required by the metadata management module during working. However, when the system has no full flash reduced pool but only a common pool, the memory management space applied by the metadata management module is not used, so that the waste of the memory space is caused, and even the performance of the system is reduced.
Based on the above technical problems, the present embodiment provides a memory application method, which can reduce the waste of memory space and improve the performance of a storage system, so as to implement, referring specifically to fig. 1, fig. 1 is a flowchart of a memory application method provided in the embodiment of the present application, and specifically includes:
s101, receiving a creation instruction of a full-flash reduced pool;
s102, creating the full-flash reduced pool according to the creation instruction, and applying for a dynamic memory required by the operation of the metadata management module; the all-flash thin pool is a storage pool that is built entirely using solid state storage media and that can be created from thin volumes,
and when receiving the creation instruction of the full-flash reduced pool, creating the full-flash reduced pool and applying for dynamic memory required by the work of the metadata management module.
In this embodiment, the dynamic memory required by the metadata management module will be applied whenever the full flash reduced pool is created, and if the full flash reduced pool is not created, the dynamic memory required by the metadata management module will not be applied, and when the full flash reduced pool is deleted, the dynamic memory applied before will be released. The waste of the memory space is reduced, and the performance of the storage system is improved.
Further, before receiving the creation instruction of the full flash reduced pool, the method further comprises: respectively adding preset information required by the dynamic memory application of the metadata management module at a CSM end and an AGT end of the dynamic memory management module; the preset information comprises a maximum memory to be reserved and an initial reserved memory size; and initializing and registering the preset information during system initialization.
It can be understood that the dynamic memory management module of the storage system in this embodiment is provided with a CSM end and an AGT end. The CSM side (Control state machine ) is represented in the storage system as the control state machine for each module. The AGT end (agent, module terminal) is represented in the storage system as a module terminal on each node. And respectively adding preset information required by dynamic memory application of the MDM module (metadata management module) at the CSM end and the AGT end, wherein the preset information comprises information such as maximum memory to be reserved, initial reserved memory size and the like, and carrying out initialization registration on the information during system initialization.
Further, after initializing and registering the preset information during system initialization, the method further comprises: adding first dynamic memory management information at a CSM end of the full-flash reduced pool management module; the first dynamic memory management information is used for identifying whether the memory required by the metadata management module is applied and the size of the applied memory, and the second dynamic memory management information is added at the AGT end of the metadata management module; the second dynamic memory management information includes identification information and allocation information, where the identification information is used to identify whether the memory required by the metadata management module has been applied.
Wherein, adding management information, namely first dynamic memory management information, at the CSM end of the full-flash reduced pool management module, namely the full-flash reduced pool management information, and identifying whether the memory required by the MDM module is applied and the size of the applied memory; and adding information related to the application and allocation conditions of the dynamic memory of the module at the AGT end of the MDM module, marking whether the memory required by the MDM module is applied, and allocating the memory to each sub-module for use.
It can be understood that in this embodiment, the CSM end and the AGT end are respectively set in the all-flash reduced pool management module and the MDM module to implement disaster recovery, and when a certain node fails due to a fault, data recovery can be performed according to the stored first dynamic memory management information and second dynamic memory management information when the node is powered on again, so as to ensure normal operation of the system.
And S103, if the dynamic memory is applied, distributing the dynamic memory to each sub-module.
In this embodiment, the dynamic memory applied strongly is allocated to each sub-module, and the sub-modules in this embodiment include, but are not limited to: write cache, read cache, etc. The present embodiment is not limited to the allocation rule, and the user-definable setting is only required as long as the purpose of the present embodiment can be achieved. The specific allocation rule may be average allocation, or may be allocation according to the application frequency of each sub-module.
Further, if the application is applied to the dynamic memory, the dynamic memory is allocated to each sub-module, including:
the CSM end of the dynamic memory management module is utilized to obtain the residual dynamic memory;
judging whether the residual dynamic memory is larger than the dynamic memory or not;
if the dynamic memory is larger than the dynamic memory, the dynamic memory required by the operation of the metadata management module is applied, and the dynamic memory is distributed to each sub-module.
In this embodiment, when the remaining dynamic memory is greater than the required dynamic memory, the method can apply for the dynamic memory and allocate the dynamic memory to each sub-module, and if the remaining dynamic memory is not greater than the required dynamic memory, wait, and execute the step of acquiring the remaining dynamic memory by using the CSM end of the dynamic memory management module after the system releases the dynamic memory until the required dynamic memory can be applied for. By the method, the phenomenon that the running speed is low or the running is problematic caused by directly applying for the residual dynamic memory when the residual dynamic memory is not larger than the required dynamic memory is avoided.
Further, if the application is applied to the dynamic memory, after the dynamic memory is allocated to each sub-module, the method further includes: when the dynamic memory is applied, modifying the first dynamic memory management information; and sending a modification instruction to each node so that the AGT end of each node modifies the second dynamic memory management information.
In the implementation, the first dynamic memory management information and the second dynamic memory management information are updated in real time, so that the latest information stored in the system is ensured, and when a certain node fails due to a fault, the memory can be restored according to the stored information.
Based on the above technical scheme, in this embodiment, only when the storage system is to create the full flash reduced pool, the metadata management module of the full flash reduced pool is required to work, and at this time, the memory space required by the metadata management module, that is, the dynamic memory, is applied, and when the storage system does not have the full flash reduced pool, the dynamic memory required by the metadata management module is not applied, so that the waste of the memory space is reduced, and the performance of the storage system is improved.
Further, the method further comprises the following steps: when deleting the full flash simplifying pool, notifying an AGT end of each node to modify the second dynamic memory management information; releasing the dynamic memory allocated to each sub-module; and modifying the first dynamic memory management information according to the released information.
Further, when deleting the all-flash reduced pool, triggering a release instruction through the CLI or the GUI; and according to the release instruction, notifying the AGT end of each node to modify the second dynamic memory management information.
When deleting the all-flash simplifying pool, triggering a command line processing flow through CLI (Command Line Interface for batch scripting, command line interface) or GUI (Graphical User Interface, graphic user interface), and calling an AGT interface by the CSM to inform the AGT end of each node of modifying the management information related to the MDM dynamic memory and releasing the dynamic memory allocated to each sub-module, and then modifying the memory management information of the MDM module at the CSM end to identify that the dynamic memory is released and can be used by other modules.
Therefore, in this embodiment, when the system does not have the full flash pool, the MDM module does not work, so that the memory space (dynamic memory) required by the MDM module is not required to be applied at this time, and only when the system is to create the full flash pool, the MDM module in the full flash pool is required to work, the memory space required by the MDM module is required to be applied, and when the system does not have the full flash pool, the memory space previously applied by the MDM module is released. The waste of the memory space is reduced, and the system performance is improved.
Based on any one of the foregoing embodiments, this embodiment provides a specific memory application method, which implements dynamic memory application and release, including:
the management of the dynamic memory module DMM is divided into a CSM end and an AGT end, and the following operations are needed for carrying out memory dynamic application and release:
1. respectively adding information required by MDM module dynamic memory application at CSM end and AGT end, including information such as maximum memory to be reserved, initial reserved memory size, etc., and carrying out initialization registration on the information when the system is initialized;
2. adding first dynamic memory management information at a CSM end of the full-flash reduced pool management information, and identifying whether the memory required by the MDM module is applied and the size of the applied memory;
3. adding second dynamic memory management information at the AGT end of the MDM module, wherein the second dynamic memory management information comprises information related to the application and allocation conditions of the dynamic memory of the module, and identifying whether the memory required by the MDM module is applied or not and allocating the memory to each sub-module for use;
4. when a first full-flash simplifying pool is created, a command line processing flow is triggered through a CLI or a GUI, a CSM end of a dynamic memory management module inquires and applies for dynamic memory required by an MDM module, MDM module dynamic memory management information of the CSM end is modified, the dynamic memory is already applied for identification, an AGT end of each node is notified of modifying management information related to the MDM dynamic memory, and the applied dynamic memory is distributed to each sub-module so as to ensure that the MDM module can work normally;
5. when the last all-flash simplifying pool is deleted, a command line processing flow is triggered through the CLI or the GUI, the CSM calls an AGT interface to inform the AGT end of each node of modifying the management information related to the MDM dynamic memory, and releases the dynamic memory allocated to each sub-module, then the memory management information of the MDM module of the CSM end is modified, and the identification of the released dynamic memory can be used by other modules.
The following describes a memory application device provided in this embodiment, and the memory application device described below and the memory application method described above may be correspondingly referred to each other, and referring to fig. 2, fig. 2 is a schematic structural diagram of the memory application device provided in this embodiment, where the memory application device includes:
an instruction receiving module 201, configured to receive a creation instruction of a full flash reduced pool;
the application module 202 is configured to create the full flash reduced pool according to the creation instruction, and apply for a dynamic memory required by the metadata management module to work; the full-flash thin pool is a storage pool which is built by using solid storage media and can be created into self-thin volumes;
and the allocation module 203 is configured to allocate the dynamic memory to each sub-module if the dynamic memory is applied.
Optionally, the method further comprises:
the information adding module is used for respectively adding preset information required by the dynamic memory application of the metadata management module at the CSM end and the AGT end of the dynamic memory management module; the preset information comprises a maximum memory to be reserved and an initial reserved memory size;
and the initialization module is used for carrying out initialization registration on preset information during system initialization.
Optionally, the method further comprises:
the first dynamic memory management information adding module is used for adding the first dynamic memory management information at the CSM end of the all-flash reduced pool management module; the first dynamic memory management information is used for identifying whether the memory required by the metadata management module has been applied for, and the size of the applied memory,
the second dynamic memory management information adding module is used for adding second dynamic memory management information at the AGT end of the metadata management module; the second dynamic memory management information includes identification information and allocation information, where the identification information is used to identify whether the memory required by the metadata management module has been applied.
Optionally, the method further comprises:
the first modification module is used for modifying the first dynamic memory management information after the application to the dynamic memory;
and the second modification module is used for sending modification instructions to each node so as to enable the AGT end of each node to modify the second dynamic memory management information.
Optionally, the allocation module 203 includes:
the acquisition unit is used for acquiring the residual dynamic memory by utilizing the CSM end of the dynamic memory management module;
the judging unit is used for judging whether the residual dynamic memory is larger than the dynamic memory or not;
and the distribution unit is used for applying the dynamic memory required by the operation of the metadata management module if the dynamic memory is larger than the dynamic memory, and distributing the dynamic memory to each sub-module.
Optionally, the method further comprises:
the notification module is used for notifying the AGT end of each node to modify the second dynamic memory management information when the all-flash simplifying pool is deleted;
the release module is used for releasing the dynamic memory distributed to each sub-module;
and the third modification module is used for modifying the first dynamic memory management information according to the released information.
Optionally, the notification module includes:
the triggering unit is used for triggering a release instruction through the CLI or the GUI when the full flash reduced pool is deleted;
and the notification unit is used for notifying the AGT end of each node to modify the second dynamic memory management information according to the release instruction.
Since the embodiments of the apparatus portion and the embodiments of the method portion correspond to each other, the embodiments of the apparatus portion are referred to the description of the embodiments of the method portion, and are not repeated herein.
The following describes an electronic device provided in the embodiments of the present application, where the electronic device described below and the memory application method described above may be referred to correspondingly.
The present embodiment provides an electronic device including:
a memory for storing a computer program;
and the processor is used for realizing the steps of the memory application method when executing the computer program.
Since the embodiments of the electronic device portion and the embodiments of the memory application method portion correspond to each other, the embodiments of the electronic device portion refer to the description of the embodiments of the memory application method portion, which is not repeated herein.
A computer readable storage medium provided in the embodiments of the present application is described below, and the computer readable storage medium described below and the method described above may be referred to correspondingly.
The present embodiment provides a computer readable storage medium, on which a computer program is stored, which when executed by a processor implements the steps of the memory application method described above.
Since the embodiments of the computer readable storage medium portion and the embodiments of the method portion correspond to each other, the embodiments of the computer readable storage medium portion are referred to the description of the embodiments of the method portion, and are not repeated herein.
In the description, each embodiment is described in a progressive manner, and each embodiment is mainly described by the differences from other embodiments, so that the same similar parts among the embodiments are mutually referred. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant points refer to the description of the method section.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative elements and steps are described above generally in terms of functionality in order to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. The software modules may be disposed in 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 above describes in detail a memory application method, a memory application device, an electronic apparatus, and a computer readable storage medium provided in the present application. Specific examples are set forth herein to illustrate the principles and embodiments of the present application, and the description of the examples above is only intended to assist in understanding the methods of the present application and their core ideas. It should be noted that it would be obvious to those skilled in the art that various improvements and modifications can be made to the present application without departing from the principles of the present application, and such improvements and modifications fall within the scope of the claims of the present application.

Claims (8)

1. A memory application method, comprising:
respectively adding preset information required by the dynamic memory application of the metadata management module at a CSM end and an AGT end of the dynamic memory management module; the preset information comprises a maximum memory to be reserved and an initial reserved memory size;
initializing and registering the preset information when the system is initialized;
receiving a creating instruction of a full flash reduced pool;
creating the full flash reduced pool according to the creation instruction, and applying for a dynamic memory required by the operation of the metadata management module; the all-flash thin pool is a storage pool that is built entirely using solid state storage media and that can be created from thin volumes,
if the application is applied to the dynamic memory, the dynamic memory is distributed to each sub-module; the application for the dynamic memory and the allocation of the dynamic memory to each sub-module include: acquiring the residual dynamic memory by using a CSM end of the dynamic memory management module; judging whether the residual dynamic memory is larger than the dynamic memory or not; and if the dynamic memory is larger than the dynamic memory, applying the dynamic memory required by the operation of the metadata management module, and distributing the dynamic memory to each sub-module.
2. The memory application method according to claim 1, wherein after the initializing registration of the preset information at the system initialization, further comprising:
adding first dynamic memory management information at a CSM end of the all-flash reduced pool management module; the first dynamic memory management information is used for identifying whether the memory required by the metadata management module is applied and the size of the applied memory,
adding second dynamic memory management information at the AGT end of the metadata management module; the second dynamic memory management information comprises identification information and allocation information, wherein the identification information is used for identifying whether the memory required by the metadata management module is applied.
3. The memory application method according to claim 2, wherein after the dynamic memory is allocated to each sub-module if the dynamic memory is applied, further comprising:
when the dynamic memory is applied, modifying the first dynamic memory management information;
and sending a modification instruction to each node so that the AGT end of each node modifies the second dynamic memory management information.
4. The memory application method according to claim 3, further comprising:
when deleting the full flash reduced pool, notifying an AGT end of each node to modify the second dynamic memory management information;
releasing the dynamic memory allocated to each sub-module;
and modifying the first dynamic memory management information according to the released information.
5. The memory application method according to claim 4, wherein when deleting the all-flash reduced pool, notifying the AGT end of each node to modify the second dynamic memory management information includes:
triggering a release instruction through a CLI or a GUI when deleting the full flash reduced pool;
and notifying the AGT end of each node to modify the second dynamic memory management information according to the release instruction.
6. A memory application device, comprising:
the instruction receiving module is used for receiving the creation instruction of the full-flash simplified pool; before the receiving the creation instruction of the full flash reduced pool, the method further comprises the following steps: respectively adding preset information required by the dynamic memory application of the metadata management module at a CSM end and an AGT end of the dynamic memory management module; the preset information comprises a maximum memory to be reserved and an initial reserved memory size; initializing and registering the preset information when the system is initialized;
the application module is used for creating the full-flash reduced pool according to the creation instruction and applying for dynamic memory required by the operation of the metadata management module; the full-flash thin pool is a storage pool which is built by using solid storage media and can be created into self-thin volumes;
the allocation module is used for allocating the dynamic memory to each sub-module if the dynamic memory is applied to the dynamic memory; the application for the dynamic memory and the allocation of the dynamic memory to each sub-module include: acquiring the residual dynamic memory by using a CSM end of the dynamic memory management module; judging whether the residual dynamic memory is larger than the dynamic memory or not; and if the dynamic memory is larger than the dynamic memory, applying the dynamic memory required by the operation of the metadata management module, and distributing the dynamic memory to each sub-module.
7. An electronic device, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the memory application method according to any one of claims 1 to 5 when executing said computer program.
8. A computer readable storage medium, characterized in that the computer readable storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of the memory application method according to any of claims 1 to 5.
CN202010915152.XA 2020-09-03 2020-09-03 Memory application method, device, equipment and medium Active CN112162850B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010915152.XA CN112162850B (en) 2020-09-03 2020-09-03 Memory application method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010915152.XA CN112162850B (en) 2020-09-03 2020-09-03 Memory application method, device, equipment and medium

Publications (2)

Publication Number Publication Date
CN112162850A CN112162850A (en) 2021-01-01
CN112162850B true CN112162850B (en) 2023-12-22

Family

ID=73858412

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010915152.XA Active CN112162850B (en) 2020-09-03 2020-09-03 Memory application method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN112162850B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113806076B (en) * 2021-08-13 2023-08-04 苏州浪潮智能科技有限公司 A method, device, device and readable medium for memory allocation in a four-control environment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102567107A (en) * 2011-10-31 2012-07-11 广东电网公司电力科学研究院 Highly-concurrent real-time memory resource management and scheduling method
CN104035887A (en) * 2014-05-22 2014-09-10 中国科学院计算技术研究所 Block device caching device and method based on simplification configuration system
WO2019126412A1 (en) * 2017-12-21 2019-06-27 Nxgen Partners Ip, Llc Full duplex using oam
CN110377529A (en) * 2019-06-27 2019-10-25 苏州浪潮智能科技有限公司 A kind of method, apparatus and equipment of full flash memory storage system data management

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8589355B2 (en) * 2010-10-29 2013-11-19 International Business Machines Corporation Data storage in a cloud

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102567107A (en) * 2011-10-31 2012-07-11 广东电网公司电力科学研究院 Highly-concurrent real-time memory resource management and scheduling method
CN104035887A (en) * 2014-05-22 2014-09-10 中国科学院计算技术研究所 Block device caching device and method based on simplification configuration system
WO2019126412A1 (en) * 2017-12-21 2019-06-27 Nxgen Partners Ip, Llc Full duplex using oam
CN110377529A (en) * 2019-06-27 2019-10-25 苏州浪潮智能科技有限公司 A kind of method, apparatus and equipment of full flash memory storage system data management

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
基于用户级融合I/O的Key-Value存储系统优化技术研究;安仲奇;张云尧;邢晶;霍志刚;;计算机研究与发展(第03期);全文 *
嵌入式实时动态内存管理机制研究与应用;顾胜元;杨丹;黄海伦;;重庆工学院学报(自然科学版)(第01期);全文 *

Also Published As

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

Similar Documents

Publication Publication Date Title
CN112214313B (en) Memory allocation method and related equipment
CN112579251B (en) Method and device for virtual machine memory management
EP3220269A1 (en) Mobile terminal and resource management method thereof
CN109753361B (en) Memory management method, electronic equipment and storage device
DE112014001397T5 (en) Flux-based low-latency network operation
CN113127228A (en) Graphic rendering method, server, and computer-readable storage medium
US20230168953A1 (en) Inter-process communication method and apparatus
CN112162850B (en) Memory application method, device, equipment and medium
CN113419672A (en) Storage capacity management method, system and storage medium
CN115237607B (en) Memory configuration method and device, electronic equipment and storage medium
CN111881476A (en) Object storage control method and device, computer equipment and storage medium
CN115712394A (en) Data reading and writing method and device, computer equipment and readable storage medium
CN104216771A (en) Restarting method and device for software program
CN108255608B (en) Management method of memory pool
CN117349042A (en) Multi-process data communication method and communication device based on shared memory
CN111314401A (en) Resource allocation method, device, system, terminal and computer readable storage medium
CN105512091A (en) Memory allocation method and device
CN106909384A (en) A kind of sanlock optimization method and devices based on cluster file system
CN113377522B (en) Method and device for processing memory blocks in memory pool, electronic equipment and storage medium
CN110543357B (en) Method, related device and system for managing application program object
CN106648907A (en) Method and device for increasing memory reuse
CN117591327A (en) core file generation method and device, electronic equipment and storage medium
EP3933582A1 (en) Distributed storage method and device, electronic apparatus and computer-readable medium
CN106407465A (en) File deletion method and system based on distributed file system
CN114564153A (en) A method, device, device and storage medium for releasing volume mapping

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