CN113806076B - Method, device, equipment and readable medium for distributing four-control environment memory - Google Patents

Method, device, equipment and readable medium for distributing four-control environment memory Download PDF

Info

Publication number
CN113806076B
CN113806076B CN202110932734.3A CN202110932734A CN113806076B CN 113806076 B CN113806076 B CN 113806076B CN 202110932734 A CN202110932734 A CN 202110932734A CN 113806076 B CN113806076 B CN 113806076B
Authority
CN
China
Prior art keywords
pool
dmm
memory
storage device
cluster
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
CN202110932734.3A
Other languages
Chinese (zh)
Other versions
CN113806076A (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.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent 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 Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202110932734.3A priority Critical patent/CN113806076B/en
Publication of CN113806076A publication Critical patent/CN113806076A/en
Application granted granted Critical
Publication of CN113806076B publication Critical patent/CN113806076B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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/5061Partitioning or combining of resources
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/50Indexing scheme relating to G06F9/50
    • G06F2209/5011Pool
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2212/00Indexing scheme relating to accessing, addressing or allocation within memory systems or architectures
    • G06F2212/10Providing a specific technical effect
    • G06F2212/1032Reliability improvement, data loss prevention, degraded operation etc
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The invention provides a method, a device, equipment and a readable medium for memory allocation in four-control environments of different memory configuration equipment, wherein the method comprises the following steps: responding to a four-control environment formed by storage devices with different memory configurations of a cluster, and creating a plurality of DMM pool in the cluster; responding to the controller initialization of the storage equipment, and selecting a corresponding DMM pool for initialization according to the memory size of the storage equipment; in response to the controller initialization of the storage device being completed, the metadata management module of the storage device sets configuration information in the initialized DMM pool; and in response to creating the reduced pool in the cluster, memory is allocated to a metadata management module of the storage device from the DMM pool according to an owner of the created reduced pool. By using the scheme of the invention, dynamic memory allocation can be realized under the condition that devices with different memory specifications build a four-control environment, and unknown errors caused by memory application of the metadata management module can be avoided.

Description

Method, device, equipment and readable medium for distributing four-control environment memory
Technical Field
The present invention relates to the field of computers, and more particularly, to a method, apparatus, device, and readable medium for memory allocation in a four-control environment of devices with different memory configurations.
Background
In the full flash reduced pool storage function, dynamic memory allocation is used to dynamically allocate the memory used by the metadata management module, that is, if the full flash reduced pool is configured in the current system, the memory required by the metadata management module (Master Data Management, MDM, software component for managing metadata) is applied from the module through the DMM (Dynamic Memory Management, dynamic memory management module, as software component for managing device memory allocation), otherwise, the metadata management module does not work, and no memory is required to be applied.
Since the current DMM module manages a DMM Pool (which refers to a resource Pool managed by the dynamic memory allocation module) corresponding to an ID allocated to each module that adopts dynamic memory allocation, when the system is initialized, the DMM module already confirms that a DMM Pool corresponding to an ID is allocated to the metadata management module, and this DMM Pool information is already set according to the requirements of the metadata management module and cannot be changed any more, and the maximum memory allocation specification of the DMM Pool is already determined.
Each storage device contains two controllers that belong to the same IOGRP. In a four-control environment, there are two sets of storage devices, so the two storage devices belong to two different IOGRPs (input-output groups) in the same cluster. When the system memories of the two sets of storage devices are different, the memories required to be dynamically allocated by the metadata management module are also different, so that the controllers in the two different IOGRPs cannot use the DMM Pool corresponding to the same ID, namely, the existing design does not meet the memory application requirements of the metadata management module when the different memory devices form a four-control environment.
Disclosure of Invention
Therefore, an object of the embodiments of the present invention is to provide a method, apparatus, device and readable medium for memory allocation in four-control environments of devices with different memory configurations.
Based on the above objects, an aspect of the embodiments of the present invention provides a method for allocating memory in four control environments of different memory allocation devices, including the following steps:
responding to a four-control environment formed by storage devices with different memory configurations of a cluster, and creating a plurality of DMM pool in the cluster;
responding to the controller initialization of the storage equipment, and selecting a corresponding DMM pool for initialization according to the memory size of the storage equipment;
in response to the controller initialization of the storage device being completed, the metadata management module of the storage device sets configuration information in the initialized DMM pool;
and in response to creating the reduced pool in the cluster, memory is allocated to a metadata management module of the storage device from the DMM pool according to an owner of the created reduced pool.
According to one embodiment of the present invention, in response to a controller initialization of a storage device, selecting a corresponding DMM pool for initialization according to a memory size of the storage device includes:
acquiring the memory size of the storage device, and matching the memory size of the storage device with the memory size of each DMM pool;
and selecting the DMM pool with the same memory size as the memory size of the storage device for initialization.
According to one embodiment of the present invention, in response to a cluster consisting of storage devices of different memory configurations forming a four-control environment, creating a number of DMM pool in the cluster comprises:
in response to a cluster consisting of storage devices of different memory configurations, creating a number of DMM pool having different memory sizes in the cluster.
According to one embodiment of the invention, the configuration information includes maximum resource application number information.
According to one embodiment of the invention, in response to creating a reduced pool within a cluster, allocating memory from a DMM pool to a metadata management module of a storage device according to an owner of the created reduced pool comprises:
acquiring an input/output group corresponding to the storage device;
judging the information of the input and output groups of the owners of the created reduced pool;
and distributing memory from the DMM pool to a metadata management module of the storage device corresponding to the information of the input/output group according to the information of the input/output group of the owner of the created reduced pool.
In another aspect of the embodiment of the present invention, there is also provided an apparatus for memory allocation in a four-control environment of different memory configuration devices, where the apparatus includes:
the creation module is configured to respond to a four-control environment formed by storage devices with different memory configurations of the cluster, and create a plurality of DMM pool in the cluster;
the initialization module is configured to respond to the controller initialization of the storage equipment, and select corresponding DMM pool for initialization according to the memory size of the storage equipment;
a setting module configured to set configuration information in the initialized DMM pool in response to completion of controller initialization of the storage device;
and the allocation module is configured to respond to the creation of the reduced pool in the cluster, and allocate the memory from the DMM pool to the metadata management module of the storage device according to the owner of the created reduced pool.
According to one embodiment of the invention, the initialization module is further configured to:
acquiring the memory size of the storage device, and matching the memory size of the storage device with the memory size of each DMM pool;
and selecting the DMM pool with the same memory size as the memory size of the storage device for initialization.
According to one embodiment of the invention, the creation module is further configured to:
in response to a cluster consisting of storage devices of different memory configurations, creating a number of DMM pool having different memory sizes in the cluster.
According to one embodiment of the invention, the configuration information includes maximum resource application number information.
According to one embodiment of the invention, the allocation module is further configured to:
acquiring an input/output group corresponding to the storage device;
judging the information of the input and output groups of the owners of the created reduced pool;
and distributing memory from the DMM pool to a metadata management module of the storage device corresponding to the information of the input/output group according to the information of the input/output group of the owner of the created reduced pool.
In another aspect of the embodiments of the present invention, there is also provided a computer apparatus including:
at least one processor; and
and a memory storing computer instructions executable on the processor, the instructions when executed by the processor performing the steps of any of the methods described above.
In another aspect of the embodiments of the present invention, there is also provided a computer-readable storage medium storing a computer program which, when executed by a processor, implements the steps of any of the methods described above.
The invention has the following beneficial technical effects: according to the method for distributing the memory of the four-control environments of the different memory configuration devices, provided by the embodiment of the invention, a plurality of DMM pool are created in the cluster by responding to the four-control environments formed by the storage devices with different memory configurations of the cluster; responding to the controller initialization of the storage equipment, and selecting a corresponding DMM pool for initialization according to the memory size of the storage equipment; in response to the controller initialization of the storage device being completed, the metadata management module of the storage device sets configuration information in the initialized DMM pool; in response to the establishment of the reduced pool in the cluster, according to the technical scheme that the owner of the established reduced pool allocates memory to the metadata management module of the storage device from the DMM pool, dynamic memory allocation can be realized under the condition that devices with different memory specifications build four-control environments, and unknown errors caused by memory application of the metadata management module can be avoided.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are necessary for the description of the embodiments or the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention and that other embodiments may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic flow chart of a method for four-control environment memory allocation for different memory configuration devices according to one embodiment of the invention;
FIG. 2 is a schematic diagram of an apparatus for four-control environment memory allocation for different memory allocation devices according to one embodiment of the present invention;
FIG. 3 is a schematic diagram of a computer device according to one embodiment of the invention;
fig. 4 is a schematic diagram of a computer-readable storage medium according to one embodiment of the invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the following embodiments of the present invention will be described in further detail with reference to the accompanying drawings.
Based on the above objects, a first aspect of the embodiments of the present invention proposes an embodiment of a method for memory allocation in a four-control environment of different memory configuration devices. Fig. 1 shows a schematic flow chart of the method.
As shown in fig. 1, the method may include the steps of:
s1, responding to a cluster to form a four-control environment by storage devices with different memory configurations, and creating a plurality of DMM pool in the cluster.
For example, there are a storage device a and a storage device B in the cluster, where the memory size of the storage device a is 128GB, including two controllers node1 and node2, the memory size of the storage device B is 256GB, including two controllers node3 and node4, and after the four-control environment is formed, two storages form a four-control cluster, in which case dmm_pool having different memory sizes need to be created in the cluster, for example, dmm_pool1 having 128GB memory, dmm_pool2 having 256GB memory, and dmm_pool3 having 512GB memory are created.
S2, responding to the controller initialization of the storage device, and selecting a corresponding DMM pool for initialization according to the memory size of the storage device.
When two controllers of the storage device a are initialized, since the memory of the storage device a is 128GB, dmm_pool1 having the same memory size is selected for initialization, and when the memory is used later, the memory is applied from dmm_pool1, and similarly, when two controllers of the storage device B are initialized, since the memory of the storage device B is 256GB, dmm_pool2 is selected for initialization, and when the memory is used later, the memory is applied from dmm_pool 2.
S3, in response to the completion of the initialization of the controller of the storage device, the metadata management module of the storage device sets configuration information in the initialized DMM pool.
After the device is initialized, when the metadata management module is set, the metadata management module of the storage device a selects information such as a parameter max_pool_size (maximum resource application number) in which dmm_pool1 is set, and the metadata management module of the storage device B selects information such as a parameter max_pool_size in which dmm_pool2 is set.
S4, responding to the establishment of the reduced pool in the cluster, and distributing memory to a metadata management module of the storage device from the DMM pool according to the owner of the established reduced pool.
Acquiring an input/output group corresponding to a storage device, judging information of an owner input/output group of a created compaction Pool, for example, the input/output group corresponding to a storage device A is IOGRP0, the input/output group corresponding to a storage device B is IOGRP 1, judging that the owner of the created compaction Pool is IOGRP0, and similarly, if the owner of the compaction Pool is IOGRP 1, the DMM module allocates memory to a metadata management module of the storage A from Dmm_Poo1, and if the owner of the compaction Pool is IOGRP 1, the DMM module allocates memory to a metadata management module of the storage B from Dmm_Poo2. If no reduced Pool is created in either IOGRP0 or IOGRP 1, the DMM module does not allocate memory from the corresponding Dmm_pool to the metadata module.
By the technical scheme, dynamic memory allocation can be realized under the condition that devices with different memory specifications build a four-control environment, and unknown errors caused by memory application of the metadata management module can be avoided.
In a preferred embodiment of the present invention, in response to the controller initialization of the storage device, selecting a corresponding DMM pool for initialization according to the memory size of the storage device includes:
acquiring the memory size of the storage device, and matching the memory size of the storage device with the memory size of each DMM pool;
and selecting the DMM pool with the same memory size as the memory size of the storage device for initialization. For example, the cluster includes a storage device a and a storage device B, where the memory size of the storage device a is 128G, the memory size of the storage device B is 256G, dmm_pool1 with 128GB memory and dmm_pool2 with 256GB memory are created, and if dmm_pool3 with 512GB memory, the storage device a selects dmm_pool1 with 128GB memory to initialize, and the storage device B selects dmm_pool2 with 256GB memory to initialize.
In a preferred embodiment of the present invention, in response to a cluster consisting of storage devices of different memory configurations forming a four-control environment, creating a number of DMM pool in the cluster comprises:
in response to a cluster consisting of storage devices of different memory configurations, creating a number of DMM pool having different memory sizes in the cluster. For example, dmm_pool1 with 128GB memory, dmm_pool2 with 256GB memory, and dmm_pool3 with 512GB memory are created.
In a preferred embodiment of the invention, the configuration information includes maximum resource application number information.
In a preferred embodiment of the present invention, in response to creating a reduced pool within a cluster, allocating memory from a DMM pool to a metadata management module of a storage device according to an owner of the created reduced pool comprises:
acquiring an input/output group corresponding to the storage device;
judging the information of the input and output groups of the owners of the created reduced pool;
and distributing memory from the DMM pool to a metadata management module of the storage device corresponding to the information of the input/output group according to the information of the input/output group of the owner of the created reduced pool. For example, the input/output group corresponding to the storage device a is the IOGRP0, the input/output group corresponding to the storage device B is the IOGRP 1, and if it is determined that the owner of the created reduced Pool is the IOGRP0, the DMM module allocates memory to the metadata management module of the storage a from the dmm_pool1, and similarly, if the owner of the reduced Pool is the IOGRP 1, the DMM module allocates memory to the metadata management module of the storage B from the dmm_pool 2. If no reduced Pool is created in either IOGRP0 or IOGRP 1, the DMM module does not allocate memory from the corresponding Dmm_pool to the metadata module.
By the technical scheme, dynamic memory allocation can be realized under the condition that devices with different memory specifications build a four-control environment, and unknown errors caused by memory application of the metadata management module can be avoided.
It should be noted that, it will be understood by those skilled in the art that all or part of the procedures in implementing the methods of the above embodiments may be implemented by a computer program to instruct related hardware, and the above program may be stored in a computer readable storage medium, and the program may include the procedures of the embodiments of the above methods when executed. Wherein the storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), or the like. The computer program embodiments described above may achieve the same or similar effects as any of the method embodiments described above.
Furthermore, the method disclosed according to the embodiment of the present invention may also be implemented as a computer program executed by a CPU, which may be stored in a computer-readable storage medium. When executed by a CPU, performs the functions defined above in the methods disclosed in the embodiments of the present invention.
In view of the above object, a second aspect of the present invention provides an apparatus for four-control environment memory allocation of different memory configuration devices, as shown in fig. 2, an apparatus 200 includes:
the creation module 201, the creation module 201 is configured to create a number of DMM pool in the cluster in response to the cluster being composed of storage devices of different memory configurations.
For example, there are a storage device a and a storage device B in the cluster, where the memory size of the storage device a is 128GB, including two controllers node1 and node2, the memory size of the storage device B is 256GB, including two controllers node3 and node4, and after the four-control environment is formed, two storages form a four-control cluster, in which case dmm_pool having different memory sizes need to be created in the cluster, for example, dmm_pool1 having 128GB memory, dmm_pool2 having 256GB memory, and dmm_pool3 having 512GB memory are created.
The system further comprises an initialization module 202, wherein the initialization module 202 is configured to respond to the controller initialization of the storage device, and select a corresponding DMM pool for initialization according to the memory size of the storage device.
When two controllers of the storage device a are initialized, since the memory of the storage device a is 128GB, dmm_pool1 having the same memory size is selected for initialization, and when the memory is used later, the memory is applied from dmm_pool1, and similarly, when two controllers of the storage device B are initialized, since the memory of the storage device B is 256GB, dmm_pool2 is selected for initialization, and when the memory is used later, the memory is applied from dmm_pool 2.
The storage device further comprises a setting module 203, wherein the setting module 203 is configured to respond to the completion of the initialization of the controller of the storage device, and the metadata management module of the storage device sets configuration information in the initialized DMM pool.
After the device is initialized, when the metadata management module is set, the metadata management module of the storage device a selects information such as a parameter max_pool_size (maximum resource application number) in which dmm_pool1 is set, and the metadata management module of the storage device B selects information such as a parameter max_pool_size in which dmm_pool2 is set.
Also included is an allocation module 204, the allocation module 204 configured to allocate memory from the DMM pool to the metadata management module of the storage device according to an owner of the created reduced pool in response to creating the reduced pool within the cluster.
Acquiring an input/output group corresponding to a storage device, judging information of an owner input/output group of a created compaction Pool, for example, the input/output group corresponding to a storage device A is IOGRP0, the input/output group corresponding to a storage device B is IOGRP 1, judging that the owner of the created compaction Pool is IOGRP0, and similarly, if the owner of the compaction Pool is IOGRP 1, the DMM module allocates memory to a metadata management module of the storage A from Dmm_Poo1, and if the owner of the compaction Pool is IOGRP 1, the DMM module allocates memory to a metadata management module of the storage B from Dmm_Poo2. If no reduced Pool is created in either IOGRP0 or IOGRP 1, the DMM module does not allocate memory from the corresponding Dmm_pool to the metadata module.
In a preferred embodiment of the present invention, the initialization module 202 is further configured to:
acquiring the memory size of the storage device, and matching the memory size of the storage device with the memory size of each DMM pool;
and selecting the DMM pool with the same memory size as the memory size of the storage device for initialization.
In a preferred embodiment of the invention, the creation module 201 is further configured to:
in response to a cluster consisting of storage devices of different memory configurations, creating a number of DMM pool having different memory sizes in the cluster.
In a preferred embodiment of the invention, the configuration information includes maximum resource application number information.
In a preferred embodiment of the present invention, the distribution module 204 is further configured to:
acquiring an input/output group corresponding to the storage device;
judging the information of the input and output groups of the owners of the created reduced pool;
and distributing memory from the DMM pool to a metadata management module of the storage device corresponding to the information of the input/output group according to the information of the input/output group of the owner of the created reduced pool.
Based on the above object, a third aspect of the embodiments of the present invention proposes a computer device. Fig. 3 is a schematic diagram of an embodiment of a computer device provided by the present invention. As shown in fig. 3, an embodiment of the present invention includes the following means: at least one processor S21; and a memory S22, the memory S22 storing computer instructions S23 executable on the processor, the instructions when executed by the processor performing the method of:
responding to a four-control environment formed by storage devices with different memory configurations of a cluster, and creating a plurality of DMM pool in the cluster;
responding to the controller initialization of the storage equipment, and selecting a corresponding DMM pool for initialization according to the memory size of the storage equipment;
in response to the controller initialization of the storage device being completed, the metadata management module of the storage device sets configuration information in the initialized DMM pool;
and in response to creating the reduced pool in the cluster, memory is allocated to a metadata management module of the storage device from the DMM pool according to an owner of the created reduced pool.
In a preferred embodiment of the present invention, in response to the controller initialization of the storage device, selecting a corresponding DMM pool for initialization according to the memory size of the storage device includes:
acquiring the memory size of the storage device, and matching the memory size of the storage device with the memory size of each DMM pool;
and selecting the DMM pool with the same memory size as the memory size of the storage device for initialization.
In a preferred embodiment of the present invention, in response to a cluster consisting of storage devices of different memory configurations forming a four-control environment, creating a number of DMM pool in the cluster comprises:
in response to a cluster consisting of storage devices of different memory configurations, creating a number of DMM pool having different memory sizes in the cluster.
In a preferred embodiment of the invention, the configuration information includes maximum resource application number information.
In a preferred embodiment of the present invention, in response to creating a reduced pool within a cluster, allocating memory from a DMM pool to a metadata management module of a storage device according to an owner of the created reduced pool comprises:
acquiring an input/output group corresponding to the storage device;
judging the information of the input and output groups of the owners of the created reduced pool;
and distributing memory from the DMM pool to a metadata management module of the storage device corresponding to the information of the input/output group according to the information of the input/output group of the owner of the created reduced pool.
Based on the above object, a fourth aspect of the embodiments of the present invention proposes a computer-readable storage medium. Fig. 4 is a schematic diagram of an embodiment of a computer-readable storage medium provided by the present invention. As shown in fig. 4, the computer-readable storage medium S31 stores a computer program S32 that, when executed by a processor, performs the following method:
responding to a four-control environment formed by storage devices with different memory configurations of a cluster, and creating a plurality of DMM pool in the cluster;
responding to the controller initialization of the storage equipment, and selecting a corresponding DMM pool for initialization according to the memory size of the storage equipment;
in response to the controller initialization of the storage device being completed, the metadata management module of the storage device sets configuration information in the initialized DMM pool;
and in response to creating the reduced pool in the cluster, memory is allocated to a metadata management module of the storage device from the DMM pool according to an owner of the created reduced pool.
In a preferred embodiment of the present invention, in response to the controller initialization of the storage device, selecting a corresponding DMM pool for initialization according to the memory size of the storage device includes:
acquiring the memory size of the storage device, and matching the memory size of the storage device with the memory size of each DMM pool;
and selecting the DMM pool with the same memory size as the memory size of the storage device for initialization.
In a preferred embodiment of the present invention, in response to a cluster consisting of storage devices of different memory configurations forming a four-control environment, creating a number of DMM pool in the cluster comprises:
in response to a cluster consisting of storage devices of different memory configurations, creating a number of DMM pool having different memory sizes in the cluster.
In a preferred embodiment of the invention, the configuration information includes maximum resource application number information.
In a preferred embodiment of the present invention, in response to creating a reduced pool within a cluster, allocating memory from a DMM pool to a metadata management module of a storage device according to an owner of the created reduced pool comprises:
acquiring an input/output group corresponding to the storage device;
judging the information of the input and output groups of the owners of the created reduced pool;
and distributing memory from the DMM pool to a metadata management module of the storage device corresponding to the information of the input/output group according to the information of the input/output group of the owner of the created reduced pool.
Furthermore, the method disclosed according to the embodiment of the present invention may also be implemented as a computer program executed by a processor, which may be stored in a computer-readable storage medium. The above-described functions defined in the methods disclosed in the embodiments of the present invention are performed when the computer program is executed by a processor.
Furthermore, the above-described method steps and system units may also be implemented using a controller and a computer-readable storage medium storing a computer program for causing the controller to implement the above-described steps or unit functions.
Those of skill would further appreciate that the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the disclosure herein may be implemented as electronic hardware, computer software, or combinations of both. To clearly illustrate this interchangeability of hardware and software, various illustrative components, blocks, modules, circuits, and steps have been described above generally in terms of their functionality. Whether such functionality is implemented as software or hardware depends upon the particular application and design constraints imposed on the overall system. 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 disclosure.
In one or more exemplary designs, the functions may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one location to another. A storage media may be any available media that can be accessed by a general purpose or special purpose computer. By way of example, and not limitation, such computer-readable media can comprise RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a general purpose or special purpose computer or general purpose or special purpose processor. Further, any connection is properly termed a computer-readable medium. For example, if the software is transmitted from a website, server, or other remote source using a coaxial cable, fiber optic cable, twisted pair, digital Subscriber Line (DSL), or wireless technologies such as infrared, radio, and microwave, then the coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of medium. Disk and disc, as used herein, includes Compact Disc (CD), laser disc, optical disc, digital Versatile Disc (DVD), floppy disk, blu-ray disc where disks usually reproduce data magnetically, while discs reproduce data optically with lasers. Combinations of the above should also be included within the scope of computer-readable media.
The foregoing is an exemplary embodiment of the present disclosure, but it should be noted that various changes and modifications could be made herein without departing from the scope of the disclosure as defined by the appended claims. The functions, steps and/or actions of the method claims in accordance with the disclosed embodiments described herein need not be performed in any particular order. Furthermore, although elements of the disclosed embodiments may be described or claimed in the singular, the plural is contemplated unless limitation to the singular is explicitly stated.
It should be understood that as used herein, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly supports the exception. It should also be understood that "and/or" as used herein is meant to include any and all possible combinations of one or more of the associated listed items.
The foregoing embodiment of the present invention has been disclosed with reference to the number of embodiments for the purpose of description only, and does not represent the advantages or disadvantages of the embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program for instructing relevant hardware, and the program may be stored in a computer readable storage medium, where the storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
Those of ordinary skill in the art will appreciate that: the above discussion of any embodiment is merely exemplary and is not intended to imply that the scope of the disclosure of embodiments of the invention, including the claims, is limited to such examples; combinations of features of the above embodiments or in different embodiments are also possible within the idea of an embodiment of the invention, and many other variations of the different aspects of the embodiments of the invention as described above exist, which are not provided in detail for the sake of brevity. Therefore, any omission, modification, equivalent replacement, improvement, etc. of the embodiments should be included in the protection scope of the embodiments of the present invention.

Claims (10)

1. The method for allocating the memory in the four-control environment of the different memory allocation devices is characterized by comprising the following steps:
responding to a four-control environment formed by storage devices with different memory configurations of a cluster, and creating a plurality of DMM pool in the cluster;
responding to the controller initialization of the storage equipment, and selecting a corresponding DMM pool for initialization according to the memory size of the storage equipment;
in response to the controller initialization of the storage device being completed, the metadata management module of the storage device sets configuration information in the initialized DMM pool;
and in response to creating the reduced pool in the cluster, memory is allocated to a metadata management module of the storage device from the DMM pool according to an owner of the created reduced pool.
2. The method of claim 1, wherein selecting a corresponding DMM pool for initialization based on a memory size of the storage device in response to controller initialization of the storage device comprises:
acquiring the memory size of the storage device, and matching the memory size of the storage device with the memory size of each DMM pool;
and selecting the DMM pool with the same memory size as the memory size of the storage device for initialization.
3. The method of claim 1, wherein creating a number of DMM pool in the cluster in response to the cluster being composed of storage devices of different memory configurations forming a four-control environment comprises:
in response to a cluster consisting of storage devices of different memory configurations, creating a number of DMM pool having different memory sizes in the cluster.
4. The method of claim 1, wherein the configuration information includes maximum resource application number information.
5. The method of claim 1, wherein in response to creating the reduced pool within the cluster, allocating memory from the DMM pool to the metadata management module of the storage device according to an owner of the created reduced pool comprises:
acquiring an input/output group corresponding to the storage device;
judging the information of the input and output groups of the owners of the created reduced pool;
and distributing memory from the DMM pool to a metadata management module of the storage device corresponding to the information of the input/output group according to the information of the input/output group of the owner of the created reduced pool.
6. An apparatus for memory allocation in a four-control environment of different memory configuration devices, the apparatus comprising:
the creation module is configured to respond to a four-control environment formed by storage devices with different memory configurations by the cluster, and create a plurality of DMM pool in the cluster;
the initialization module is configured to respond to the controller initialization of the storage equipment, and select corresponding DMM pool for initialization according to the memory size of the storage equipment;
a setting module configured to set configuration information in the initialized DMM pool in response to completion of controller initialization of the storage device;
and the allocation module is configured to respond to the creation of the reduced pool in the cluster, and allocate the memory from the DMM pool to the metadata management module of the storage device according to the owner of the created reduced pool.
7. The apparatus of claim 6, wherein the initialization module is further configured to:
acquiring the memory size of the storage device, and matching the memory size of the storage device with the memory size of each DMM pool;
and selecting the DMM pool with the same memory size as the memory size of the storage device for initialization.
8. The apparatus of claim 6, wherein the creation module is further configured to:
in response to a cluster consisting of storage devices of different memory configurations, creating a number of DMM pool having different memory sizes in the cluster.
9. A computer device, comprising:
at least one processor; and
a memory storing computer instructions executable on the processor, which when executed by the processor, perform the steps of the method of any one of claims 1-5.
10. A computer readable storage medium storing a computer program, characterized in that the computer program when executed by a processor implements the steps of the method of any one of claims 1-5.
CN202110932734.3A 2021-08-13 2021-08-13 Method, device, equipment and readable medium for distributing four-control environment memory Active CN113806076B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110932734.3A CN113806076B (en) 2021-08-13 2021-08-13 Method, device, equipment and readable medium for distributing four-control environment memory

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110932734.3A CN113806076B (en) 2021-08-13 2021-08-13 Method, device, equipment and readable medium for distributing four-control environment memory

Publications (2)

Publication Number Publication Date
CN113806076A CN113806076A (en) 2021-12-17
CN113806076B true CN113806076B (en) 2023-08-04

Family

ID=78942931

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110932734.3A Active CN113806076B (en) 2021-08-13 2021-08-13 Method, device, equipment and readable medium for distributing four-control environment memory

Country Status (1)

Country Link
CN (1) CN113806076B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115470009B (en) * 2022-11-15 2023-03-24 浪潮电子信息产业股份有限公司 Memory resource management method, system, device and medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103218360A (en) * 2012-01-18 2013-07-24 中国石油天然气集团公司 Method of industrial real-time database for realizing dynamic memory management by adopting memory pool technology
CN112162850A (en) * 2020-09-03 2021-01-01 北京浪潮数据技术有限公司 Memory application method, device, equipment and medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103218360A (en) * 2012-01-18 2013-07-24 中国石油天然气集团公司 Method of industrial real-time database for realizing dynamic memory management by adopting memory pool technology
CN112162850A (en) * 2020-09-03 2021-01-01 北京浪潮数据技术有限公司 Memory application method, device, equipment and medium

Also Published As

Publication number Publication date
CN113806076A (en) 2021-12-17

Similar Documents

Publication Publication Date Title
US11700300B2 (en) Cluster resource management in distributed computing systems
CN109886693B (en) Consensus realization method, device, equipment and medium for block chain system
CN101741907A (en) Method and system for balancing server load and main server
CN106170757B (en) A kind of date storage method and device
CN110244901B (en) Task allocation method and device and distributed storage system
CN112269661B (en) Partition migration method and device based on Kafka cluster
CN113806076B (en) Method, device, equipment and readable medium for distributing four-control environment memory
CN110781156A (en) Data node distribution method, equipment and medium
CN111324457A (en) Method, device, equipment and medium for issuing inference service in GPU cluster
CN111654399B (en) Networking method, device, equipment and storage medium based on SD-WAN
CN110990415A (en) Data processing method and device, electronic equipment and storage medium
CN114124948A (en) High-availability method, device, equipment and readable medium for cloud component
CN106708636A (en) Cluster-based data caching method and apparatus
CN103580918A (en) Method and device for processing configuration data
CN110290228B (en) Internet protocol IP address allocation method and device
CN114546493A (en) Core sharing method and device, processing core, electronic device and medium
CN113259474B (en) Storage management method, system, storage medium and equipment
CN105391758A (en) Method and device for allocating resources in local area network
CN105245569A (en) Breakpoint uploading method and system
CN116360686A (en) Method, device, equipment and medium for optimizing performance of distributed storage system
CN103841185A (en) Load balancing method and device
CN113672177B (en) Method, device, equipment and readable medium for customizing volume QoS (quality of service) of multiple clients
CN108989398B (en) Virtual shared storage unit and cluster storage system based on cloud storage
CN115955404B (en) Internet of things scene management method, device, equipment and medium
CN113886172B (en) Method, device, equipment and readable medium for managing micro-services in cluster

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