Server memory monitoring method and device

By converting and monitoring the initial power supply parameters of memory units in the server memory controller, the problem that the server system cannot monitor the power consumption of a single memory unit is solved, and accurate power consumption monitoring for each memory unit and the efficiency of power use is improved.

CN119025374APending Publication Date: 2024-11-26INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411045641.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-31
Publication Date
2024-11-26

AI Technical Summary

Technical Problem

The server system cannot effectively monitor the power consumption of a single memory unit, resulting in low power consumption monitoring efficiency and inability to detect power consumption abnormalities in time.

Method used

By converting the initial power supply parameters of each memory unit into the initial power consumption parameters in the server memory controller, and detecting the power deviation parameters according to the system power consumption parameters and reference power consumption parameters, and then adjusting the power supply mode to achieve the purpose of each memory Accurate power consumption monitoring of units.

Benefits of technology

It improves the accuracy and efficiency of server memory power consumption monitoring, can promptly detect and deal with power consumption abnormalities, and improves the power use efficiency of the overall system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119025374A_ABST
    Figure CN119025374A_ABST
Patent Text Reader

Abstract

The invention provides a server memory monitoring method and device, a memory controller is used for being connected with a memory system in a server to be monitored, and the method comprises the steps that initial power supply parameters of all target memory units in a connected target memory system are converted into initial power utilization parameters; detecting an electric energy deviation parameter of each target memory unit according to the system power utilization parameter, the reference power utilization parameter and the initial power utilization parameter, wherein the electric energy deviation parameter is used for indicating the deviation between the collected electric energy used by the target memory unit and the electric energy actually used by the target memory unit; according to the electric energy deviation parameter, the initial electricity utilization parameter is converted into a target electricity utilization parameter, the target electricity utilization parameter is used for indicating the electric energy actually used by the target memory unit, and the target electricity utilization parameter is used for controlling the power supply mode of the target memory unit. By means of the method and device, the problem that the power consumption monitoring efficiency of the server memory is low is solved, and the effect of improving the power consumption monitoring efficiency of the server memory is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the computer field, and in particular, to a method and device for monitoring server memory. Background Art

[0002] When DDR (Double Data Rate Synchronous Dynamic Random Access Memory) provides storage space for the server, it is necessary to provide power support to each DDR DIMM (Dual Inline Memory Modules). Currently, the server motherboard provides power management for all memories connected to the server, but this power management solution allows the server system to only obtain the overall power consumption of all memories connected to the server, and cannot determine the power consumption of a single memory unit, let alone monitor whether a single memory unit has abnormal power consumption. The power consumption monitoring efficiency of the server memory is low. Summary of the invention

[0003] The embodiments of the present application provide a method and device for monitoring server memory, so as to at least solve the problem of low efficiency in monitoring power consumption of server memory in the related art.

[0004] According to an embodiment of the present application, a method for monitoring server memory is provided, which is applied to a memory controller of the server, wherein the memory controller is used to connect to a memory system in the server to be monitored, wherein the memory system in the server includes a plurality of memory units, and the memory units are used to provide memory space for the server, wherein the method includes:

[0005] Converting the initial power supply parameters of each target memory unit in the connected target memory system into initial power usage parameters, wherein the target memory unit is a memory unit currently provided with power in the target memory system, the initial power supply parameters are used to indicate the power provided to the target memory unit, and the initial power usage parameters are used to indicate the power used by the corresponding target memory unit;

[0006] Detecting the power deviation parameter of each of the target memory units according to the system power usage parameter, the reference power usage parameter and the initial power usage parameter, wherein the system power usage parameter is recorded on the target server where the target memory system is located, the system power usage parameter is used to indicate the total power used by the target memory system, the reference power usage parameter is the sum of the initial power usage parameter, and the power deviation parameter is used to indicate the deviation between the collected power used by the target memory unit and the actual power used by the target memory unit;

[0007] The initial power usage parameter is converted into a target power usage parameter according to the power deviation parameter, wherein the target power usage parameter is used to indicate the power actually used by the target memory unit, and the target power usage parameter is used to control the power supply mode of the target memory unit.

[0008] As an optional implementation manner, detecting the power deviation parameter of each target memory unit according to the system power usage parameter, the reference power usage parameter and the initial power usage parameter includes:

[0009] Calculating the difference between the system power consumption parameter and the reference power consumption parameter to obtain a reference power deviation parameter of the target memory system;

[0010] The electric energy deviation parameter is detected according to the initial electric energy parameter, the reference electric energy parameter and the reference electric energy deviation parameter.

[0011] As an optional implementation manner, detecting the electric energy deviation parameter according to the initial power consumption parameter, the reference power consumption parameter and the reference electric energy deviation parameter includes:

[0012] Calculating the ratio of the initial power consumption parameter to the reference power consumption parameter to obtain a target deviation ratio parameter;

[0013] The reference electric energy deviation parameter is allocated according to the target deviation proportion parameter to obtain the electric energy deviation parameter.

[0014] As an optional implementation manner, converting the initial power supply parameters of each target memory unit in the connected target memory system into initial power consumption parameters includes:

[0015] Acquire the initial power supply parameters of each of the target memory units;

[0016] The initial power supply parameter is converted into the initial power usage parameter according to conversion attribute information of each of the target memory units, wherein the conversion attribute information is used to indicate the efficiency of the target memory unit in using the electric energy provided to the target memory unit.

[0017] As an optional implementation, a plurality of target power supply registers are deployed in the target memory unit, and the plurality of target power supply registers are used to record a plurality of initial partial power supply parameters of the target memory unit, and the initial partial power supply parameters are used to indicate the power provided to the corresponding memory components in the target memory unit;

[0018] The obtaining of the initial power supply parameters of each of the target memory units includes:

[0019] reading a plurality of the initial partial power supply parameters from a plurality of the target power supply registers;

[0020] The sum of a plurality of the initial partial power supply parameters is calculated to obtain the initial power supply parameter.

[0021] As an optional implementation manner, converting the initial power supply parameter into the initial power usage parameter according to the conversion attribute information of each target memory unit includes:

[0022] Detecting a target model of the target memory unit;

[0023] Searching for a target power conversion efficiency corresponding to the target model from the models and power conversion efficiencies of the memory units having a corresponding relationship, wherein the conversion attribute information includes the target power conversion efficiency;

[0024] The initial power supply parameter is converted into the initial power consumption parameter based on the target power conversion efficiency.

[0025] As an optional implementation, the memory controller includes a baseboard management controller of the server to be monitored, a power management device is deployed on the target memory unit, the baseboard management controller is connected to a server mainboard of the server to be monitored, and the server mainboard is connected to the target memory unit;

[0026] The converting the initial power supply parameters of each target memory unit in the connected target memory system into the initial power consumption parameters comprises: sending an initial power supply parameter acquisition request to the server mainboard, wherein the initial power supply parameter acquisition request is used to request the server mainboard to obtain the initial power supply parameters from the power management device and return the initial power supply parameters; receiving the initial power supply parameters returned by the server mainboard in response to the initial power supply parameter acquisition request; converting the initial power supply parameters into the initial power consumption parameters;

[0027] The detecting the power deviation parameter of each of the target memory units according to the system power consumption parameter, the reference power consumption parameter and the initial power consumption parameter comprises: sending a system power consumption parameter acquisition request to the server mainboard, wherein the system power consumption parameter acquisition request is used to request to acquire the system power consumption parameter; receiving the system power consumption parameter returned by the server mainboard in response to the system power consumption parameter acquisition request and calculating the sum of the initial power consumption parameters of a plurality of the target memory units of the target memory system to obtain the reference power consumption parameter; calculating the power deviation parameter of each of the target memory units according to the difference between the reference power consumption parameter and the system power consumption parameter, and the ratio of the initial power consumption parameter to the reference power consumption parameter;

[0028] The converting the initial power usage parameter into the target power usage parameter according to the power deviation parameter includes: calculating the sum of the initial power usage parameter and the power deviation parameter to obtain the target power usage parameter.

[0029] According to another embodiment of the present application, a server memory monitoring device is provided, which is applied to a memory controller of the server, wherein the memory controller is used to connect to a memory system in the server to be monitored, wherein the memory system in the server includes a plurality of memory units, and the memory units are used to provide memory space for the server, wherein the device includes:

[0030] A first conversion module, configured to convert an initial power supply parameter of each target memory unit in the connected target memory system into an initial power consumption parameter, wherein the target memory unit is a memory unit currently provided with power in the target memory system, the initial power supply parameter is used to indicate the power provided to the target memory unit, and the initial power consumption parameter is used to indicate the power used by the corresponding target memory unit;

[0031] A detection module, used for detecting the power deviation parameter of each of the target memory units according to the system power usage parameter, the reference power usage parameter and the initial power usage parameter, wherein the system power usage parameter is recorded on the target server where the target memory system is located, the system power usage parameter is used to indicate the total power used by the target memory system, the reference power usage parameter is the sum of the initial power usage parameter, and the power deviation parameter is used to indicate the deviation between the collected power used by the target memory unit and the actual power used by the target memory unit;

[0032] The second conversion module is used to convert the initial power usage parameter into a target power usage parameter according to the power deviation parameter, wherein the target power usage parameter is used to indicate the actual power used by the target memory unit, and the target power usage parameter is used to control the power supply mode of the target memory unit.

[0033] According to another embodiment of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when run.

[0034] According to another embodiment of the present application, an electronic device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0035] Through the present application, since the memory controller of the server will be connected to the memory system in the server to be monitored, multiple memory units in the memory system provide memory space for the server, and the initial power supply parameters for indicating the electric energy provided to the target memory unit that is currently provided with electric energy in the connected target memory system are converted into initial power consumption parameters for indicating the electric energy used by the corresponding target memory unit, the power deviation parameters for indicating the deviation between the collected electric energy used by the target memory unit and the electric energy actually used by the target memory unit are detected for each target memory unit based on the system power consumption parameters for indicating the total electric energy used by the target memory system recorded on the target server where the target memory system is located, the reference power consumption parameters representing the initial power consumption parameters, and the initial power consumption parameters, and the initial power consumption parameters, and the initial power consumption parameters are converted into The target power usage parameter is used to indicate the actual power usage of the target memory unit, and the target power usage parameter is used to control the power supply mode of the target memory unit, that is, by converting the initial power supply parameters of each memory unit into the initial power usage parameters, and detecting the power deviation parameters of the target memory unit according to the system power usage parameters indicating the total power used by the target memory system, the reference power usage parameters characterizing the sum of the initial power usage parameters, and the initial power usage parameters, so that the deviation between the collected power usage and the actual power usage of each target memory unit can be calculated with the help of the sum of the total power used by the memory system that can be determined and the initial power usage parameters, and the initial power usage parameters, and further, the actual power usage of each target memory unit can be accurately obtained. Therefore, the problem of low power consumption monitoring efficiency of server memory can be solved, and the effect of improving the power consumption monitoring efficiency of server memory can be achieved. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] Figure 1 It is a hardware structure block diagram of a server device of a server memory monitoring method according to an embodiment of the present application;

[0037] Figure 2 is a flow chart of a method for monitoring server memory according to an embodiment of the present application;

[0038] Figure 3 is a structural diagram of a method for monitoring and managing power consumption of a memory according to an embodiment of the present application;

[0039] Figure 4 is a flow chart of a method for monitoring and managing power consumption of a memory according to an embodiment of the present application;

[0040] Figure 5 It is a structural block diagram of a server memory monitoring device according to an embodiment of the present application. DETAILED DESCRIPTION

[0041] The embodiments of the present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0042] It should be noted that the terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0043] The method embodiments provided in the embodiments of the present application can be executed in a server device or a similar computing device. Taking running on a server device as an example, Figure 1 1 is a hardware structure block diagram of a server device of a server memory monitoring method according to an embodiment of the present application. Figure 1 As shown, the server device may include one or more ( Figure 1 Only one is shown in the figure) processor 102 (processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the server device may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above server device. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.

[0044] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the server memory monitoring method in the embodiment of the present application. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, the above method is implemented. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the server device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0045] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the server device. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0046] In this embodiment, a method for monitoring server memory is provided. The method is applied to a memory controller of a server. The memory controller is used to connect to a memory system in a server to be monitored. The memory system in the server includes a plurality of memory units. The memory units are used to provide memory space for the server. Figure 2 is a flow chart of a method for monitoring server memory according to an embodiment of the present application, such as Figure 2 As shown, the process includes the following steps:

[0047] Step S202, converting the initial power supply parameters of each target memory unit in the connected target memory system into initial power consumption parameters, wherein the target memory unit is a memory unit currently provided with power in the target memory system, the initial power supply parameters are used to indicate the power provided to the target memory unit, and the initial power consumption parameters are used to indicate the power used by the corresponding target memory unit;

[0048] Step S204, detecting the power deviation parameter of each of the target memory units according to the system power usage parameter, the reference power usage parameter and the initial power usage parameter, wherein the system power usage parameter is recorded on the target server where the target memory system is located, the system power usage parameter is used to indicate the total power used by the target memory system, the reference power usage parameter is the sum of the initial power usage parameter, and the power deviation parameter is used to indicate the deviation between the collected power used by the target memory unit and the actual power used by the target memory unit;

[0049] Step S206, converting the initial power usage parameter into a target power usage parameter according to the power deviation parameter, wherein the target power usage parameter is used to indicate the actual power used by the target memory unit, and the target power usage parameter is used to control the power supply mode of the target memory unit.

[0050] Through the above steps, since the memory controller of the server will be connected to the memory system in the server to be monitored, multiple memory units in the memory system provide memory space for the server, and the initial power supply parameters for indicating the electric energy provided to the target memory unit that is currently provided with electric energy in the connected target memory system are converted into initial power consumption parameters for indicating the electric energy used by the corresponding target memory unit, the power deviation parameters for indicating the deviation between the collected electric energy used by the target memory unit and the electric energy actually used by the target memory unit are detected for each target memory unit according to the system power consumption parameters for indicating the total electric energy used by the target memory system recorded on the target server where the target memory system is located, the reference power consumption parameters representing the initial power consumption parameters, and the initial power consumption parameters, and the initial power consumption parameters are used to detect the electric energy deviation parameters of each target memory unit, and the initial power consumption parameters are converted into the initial power consumption parameters according to the electric energy deviation parameters. The target power usage parameter is used to indicate the actual power usage of the target memory unit. The target power usage parameter is used to control the power supply mode of the target memory unit, that is, by converting the initial power supply parameters of each memory unit into the initial power usage parameter, the power deviation parameter of the target memory unit is detected according to the system power usage parameter indicating the total power used by the target memory system, the reference power usage parameter characterizing the sum of the initial power usage parameter, and the initial power usage parameter. By means of the sum of the total power used by the memory system that can be determined and the initial power usage parameter and the initial power usage parameter, the deviation between the collected power usage and the actual power usage of each target memory unit can be calculated. Further, the actual power usage of each target memory unit can be accurately obtained. Therefore, the problem of low power consumption monitoring efficiency of the server memory can be solved, and the effect of improving the power consumption monitoring efficiency of the server memory can be achieved.

[0051] Optionally, in an embodiment of the present application, the memory controller includes but is not limited to a BMC (baseboard management controller), the memory unit includes but is not limited to a DDR DIMM, the memory system includes but is not limited to a plurality of DDR DIMMs, and the plurality of DDR DIMMs provide memory space for the server.

[0052] In the embodiment provided in step S202, the initial power supply parameters are used to indicate the electric energy provided to the target memory unit, and the initial power supply parameters include but are not limited to the power supply output parameters recorded by the power supply device. Optionally, in the embodiment of the present application, including but not limited to deploying a power management module on each memory unit, setting the attribute register of the power management module so that the power supply register of the power management module records the partial electric energy provided by the power management module, and obtaining multiple initial partial power supply parameters by reading the data recorded in the power supply register of the power management module, performing digital-to-analog conversion on the multiple initial partial power supply parameters and summing the results after the digital-to-analog conversion to obtain the initial power supply parameters.

[0053] Optionally, in an embodiment of the present application, converting the initial power supply parameters of each target memory unit in the connected target memory system into initial power consumption parameters includes but is not limited to querying the model of each target memory unit, finding the target conversion efficiency of each target memory unit from the corresponding memory unit models and power conversion efficiencies according to the model of each target memory unit, and converting the initial power supply parameters of each target memory unit into initial power consumption parameters according to the initial power supply parameters of each target memory unit and the corresponding target conversion efficiency.

[0054] Optionally, in an embodiment of the present application, when the multiple target memory units included in the target memory system are all memory units of the same model, including but not limited to deploying a power management integrated circuit on the motherboard of the target server where the target memory system is located, the power management integrated circuit is used to manage the power usage of the target memory system, and the initial power supply parameters of each target memory unit in the connected target memory system are converted into initial power consumption parameters, including but not limited to obtaining the system power supply parameters of the target memory system from the power management integrated circuit, wherein the system power supply parameters are used to indicate the power provided to the target memory system; calculating the system conversion efficiency according to the system power supply parameters and the system power consumption parameters, wherein the system power consumption parameters are recorded on the target server where the target memory system is located, and the system power consumption parameters are used to indicate the total power used by the target memory system; based on the system conversion efficiency, the initial power supply parameters of each target memory unit of the target memory system are converted into initial power consumption parameters. Through the above steps, the power conversion efficiency can be calculated without relying on the preparation of previous data, which improves the flexibility of the power conversion efficiency acquisition scheme and improves the efficiency of converting the initial power supply parameters into the initial power consumption parameters.

[0055] In the embodiment provided in step S204, the system power usage parameters are used to indicate the total power used by the target memory system, including but not limited to being recorded in real time on the central processor of the target server where the target memory system is located. The central processor of the target server obtains the system power usage parameters of the target memory system through the memory system management module of the target server.

[0056] Optionally, in an embodiment of the present application, the reference power usage parameter is the sum of the initial power usage parameters, that is, the reference power usage parameter is the collected electric energy used by the target memory system. Because the electric energy used by each target memory unit in the target memory system cannot be completely collected, that is, the collected electric energy used by each target memory unit is inaccurate, and therefore the collected electric energy used by the target memory system is also inaccurate. Therefore, there is an error between the reference power usage parameter indicating the collected electric energy used by the target memory system and the system power usage parameter indicating the total electric energy used by the target memory system. The present application determines the overall deviation of the system by calculating the sum of the collected initial power usage parameters and comparing it with the accurate electric energy used by the target memory system recorded in the server, and determines the deviation of each target memory unit based on the overall deviation of the system and the initial power usage parameters of each target memory unit in the target memory system, thereby obtaining the accurate power usage of a single target memory unit.

[0057] In the embodiment provided in step S206, converting the initial power usage parameter into the target power usage parameter according to the power deviation parameter includes but is not limited to calculating the sum of the initial power usage parameter of the target memory unit and the power deviation parameter of the target memory unit to obtain the target power usage parameter of the target memory unit.

[0058] Optionally, in the embodiments of the present application, including but not limited to, power management devices are deployed in multiple target memory units, and the target power consumption parameters are used to control the working mode of the power management device to achieve control of the power supply mode of the target memory unit. Specifically, as shown in Table 1, the power consumption (i.e., the power used) limit of memory units of different capacities is set, and corresponding strategies are adopted for regulation.

[0059] Table 1

[0060] capacity Light load power consumption limit Full load power consumption limit 16 GB A1 A2 32GB B1 B2 64GB C1 C2 128GB D1 D2

[0061] Optionally, taking a 16GB capacity memory unit as an example, when the power consumption of the monitored DIMM (i.e., the target memory unit) is ≤A1 and the duration is T, the PMIC mode (i.e., the working mode of the power management device) is set to the DCM (DiscontinuoUs CurrentMode) mode, at which the PMIC conversion efficiency is higher and more energy-saving. When the power consumption of the DlMM is monitored to be ≥A1 and the duration is T, the PMIC mode is set to the FCCM (ContinuoUs CurrentMode) mode to provide a larger current required by the load. When the power consumption of the DIMM is monitored to be ≥A2 and the duration is T, heat dissipation, frequency reduction and other strategies are adopted to reduce the power consumption of the DI MM. Optionally, the monitoring of the target power consumption parameters takes an interval time t to obtain and record the power consumption parameters, including but not limited to setting T=nt, n=1, 2, 3, ..., m, wherein the selection of n is not specifically limited in this application and can be set according to actual conditions. Through the above steps, the power consumption limit is set according to the memory capacity: the light load power consumption limit is set, and the PMIC working mode is set according to this limit; the full load power consumption limit is set, and when this limit is exceeded, heat dissipation, frequency reduction and other strategies are adopted to reduce the DIMM power consumption. This can effectively control the power supply mode of each target memory unit and improve the power supply efficiency of the target memory system.

[0062] As an optional implementation manner, detecting the power deviation parameter of each target memory unit according to the system power usage parameter, the reference power usage parameter and the initial power usage parameter includes:

[0063] Calculating the difference between the system power consumption parameter and the reference power consumption parameter to obtain a reference power deviation parameter of the target memory system;

[0064] The electric energy deviation parameter is detected according to the initial electric energy parameter, the reference electric energy parameter and the reference electric energy deviation parameter.

[0065] Through the above steps, the difference between the system power consumption parameters and the reference power consumption parameters is calculated, and the deviation between the calculated power consumption and the actual power consumption of the entire target memory system is learned. Based on this, the deviation between the calculated value and the actual value of the power consumption of a single memory unit can be further analyzed to help obtain the final accurate actual value of the power consumption of a single memory unit, thereby improving the power consumption monitoring efficiency of the server memory.

[0066] As an optional implementation manner, detecting the electric energy deviation parameter according to the initial power consumption parameter, the reference power consumption parameter and the reference electric energy deviation parameter includes:

[0067] Calculating the ratio of the initial power consumption parameter to the reference power consumption parameter to obtain a target deviation ratio parameter;

[0068] The reference electric energy deviation parameter is allocated according to the target deviation proportion parameter to obtain the electric energy deviation parameter.

[0069] Optionally, in an embodiment of the present application, detecting the power deviation parameters of each target memory unit includes but is not limited to extracting the total power consumption of all memory units recorded in the server, that is, the server system monitors the memory power consumption by obtaining the total power consumption of all memory units (DIMM) under the server CPU (that is, the system power consumption parameter), which is recorded as PA; there are several memory units under the server CPU, and the physical addresses are recorded as DIMMO, DIMM1, DIMM2, ..., DIMMy, and the calculated power consumption (that is, the initial power consumption parameter) of each DIMM is obtained respectively, and the power consumption values ​​are recorded as P0, P1, P2, ..., Py respectively, and the calculated value of the total power consumption of all memory units under the server CPU (that is, the reference power consumption parameter) PB = P0 + P1 + P2 + ... + Py, then the total deviation between the actual power consumption and the calculated power consumption (that is, the reference power deviation parameter) Δ = PA-PB. Then calculate the power consumption proportion of different DlMMs, such as the power consumption proportion of DlMMO X0 = P0 / PB, and calculate the power consumption proportion of DlMMO, DlMM1, DlMM2, ..., DlMMy (i.e., target deviation proportion parameter), respectively, and record them as X0, X1, X2, ..., Xy. Finally, the δ (i.e., power deviation parameter) of DIMM can be calculated = X*Δ, such as δ = X0*Δ of DIMMO, δ = X1*Δ of DIMM1, and so on.

[0070] Through the above steps, the deviation between the calculated power usage and the actual power usage of the entire target memory system is obtained based on the deviation between the calculated power usage of the entire target memory system and the comparison between the collected calculated power usage of the single target memory unit and the calculated power usage of the entire target memory system. The solution for correcting the collected calculated power usage of the single target memory unit to obtain the actual power usage is accurately determined, so that the actual power usage of the single target memory unit can be accurately learned, thereby improving the power consumption monitoring efficiency of the server memory.

[0071] As an optional implementation manner, converting the initial power supply parameters of each target memory unit in the connected target memory system into initial power consumption parameters includes:

[0072] Acquire the initial power supply parameters of each of the target memory units;

[0073] The initial power supply parameter is converted into the initial power usage parameter according to conversion attribute information of each of the target memory units, wherein the conversion attribute information is used to indicate the efficiency of the target memory unit in using the electric energy provided to the target memory unit.

[0074] Through the above steps, after the initial power supply parameters of each target memory unit are obtained, the initial power supply parameters are converted into initial power consumption parameters according to the conversion attribute information of each target memory unit, taking into account the impact of power supply loss on the memory power supply process, thereby improving the accuracy of the detected initial power consumption parameters of the target memory unit.

[0075] As an optional implementation, a plurality of target power supply registers are deployed in the target memory unit, and the plurality of target power supply registers are used to record a plurality of initial partial power supply parameters of the target memory unit, and the initial partial power supply parameters are used to indicate the power provided to the corresponding memory components in the target memory unit;

[0076] The obtaining of the initial power supply parameters of each of the target memory units includes:

[0077] reading a plurality of the initial partial power supply parameters from a plurality of the target power supply registers;

[0078] The sum of a plurality of the initial partial power supply parameters is calculated to obtain the initial power supply parameter.

[0079] Optionally, in an embodiment of the present application, the target power supply register includes but is not limited to a PMIC register, and multiple initial partial power supply parameters recorded in multiple PMIC registers include but are not limited to being recorded in hexadecimal form, which need to be converted into binary values ​​for digital-to-analog conversion processing.

[0080] As an optional implementation manner, converting the initial power supply parameter into the initial power usage parameter according to the conversion attribute information of each target memory unit includes:

[0081] Detecting a target model of the target memory unit;

[0082] Searching for a target power conversion efficiency corresponding to the target model from the models and power conversion efficiencies of the memory units having a corresponding relationship, wherein the conversion attribute information includes the target power conversion efficiency;

[0083] The initial power supply parameter is converted into the initial power consumption parameter based on the target power conversion efficiency.

[0084] Optionally, in an embodiment of the present application, detecting a target model of a target memory unit includes but is not limited to detecting a target power supply mode of the target memory unit, and a corresponding target power conversion efficiency may be searched according to the target power supply mode.

[0085] Through the above steps, the corresponding power conversion efficiency is obtained based on the model of the target memory unit, and the power supply parameters are converted into power consumption parameters through the corresponding power conversion efficiency. Combined with the characteristics of each target memory unit itself, the converted power consumption parameters are more in line with the power usage of the target memory unit, that is, the obtained power consumption parameters are more accurate.

[0086] As an optional implementation, the memory controller includes a baseboard management controller of the server to be monitored, a power management device is deployed on the target memory unit, the baseboard management controller is connected to a server mainboard of the server to be monitored, and the server mainboard is connected to the target memory unit;

[0087] The converting the initial power supply parameters of each target memory unit in the connected target memory system into the initial power consumption parameters comprises: sending an initial power supply parameter acquisition request to the server mainboard, wherein the initial power supply parameter acquisition request is used to request the server mainboard to obtain the initial power supply parameters from the power management device and return the initial power supply parameters; receiving the initial power supply parameters returned by the server mainboard in response to the initial power supply parameter acquisition request; converting the initial power supply parameters into the initial power consumption parameters;

[0088] The detecting the power deviation parameter of each of the target memory units according to the system power consumption parameter, the reference power consumption parameter and the initial power consumption parameter comprises: sending a system power consumption parameter acquisition request to the server mainboard, wherein the system power consumption parameter acquisition request is used to request to acquire the system power consumption parameter; receiving the system power consumption parameter returned by the server mainboard in response to the system power consumption parameter acquisition request and calculating the sum of the initial power consumption parameters of a plurality of the target memory units of the target memory system to obtain the reference power consumption parameter; calculating the power deviation parameter of each of the target memory units according to the difference between the reference power consumption parameter and the system power consumption parameter, and the ratio of the initial power consumption parameter to the reference power consumption parameter;

[0089] The converting the initial power usage parameter into the target power usage parameter according to the power deviation parameter includes: calculating the sum of the initial power usage parameter and the power deviation parameter to obtain the target power usage parameter.

[0090] As an optional implementation, Figure 3 is a structural diagram of a memory power consumption monitoring and management method according to an embodiment of the present application, Figure 4 FIG. 1 is a flow chart of a method for monitoring and managing memory power consumption according to an embodiment of the present application. Figure 3 and Figure 4As shown, the present application provides a method for monitoring and managing memory power consumption, which can obtain the actual power consumption value of each memory in real time and calculate it when the server system is running. At the same time, the power consumption limit of the memory is set according to different capacities, the light load power consumption limit is set, and the PMIC working mode is set according to this limit; the full load power consumption limit is set, and when this limit is exceeded, heat dissipation, frequency reduction and other strategies are adopted to reduce the power consumption of DIMM. Specifically, the power consumption monitoring and management method of a DDR5 memory given in the present application includes the following steps:

[0091] Step S1, read the PMIC (i.e., power management device) register information during the server startup process, modify the register R30 value to 0x80 and write it (the default value is 0x00), and turn on the ADC (Analog to Digital Conversion) function. Modify the register R1B value to 0x40 and write it (the default value is 0x00), and the PMIC will record the power consumption information of each output module in the register.

[0092] Step S2: During the service operation, the BMC (baseboard management controller) sends relevant commands to the SPD (Serial Presence Detection) controller of the CPU through the PECI (Platform Environment Control Interface) bus. The SPD controller obtains the PMIC register information of each DDR5 memory through the I3C bus, and then returns it to the BMC by the CPU.

[0093] Step S3, extracting the values ​​(hexadecimal numbers) of the PMIC registers R0C, R0D, R0E, and R0F (ie, the target power supply registers) and converting them into binary values.

[0094] Step S4, converting the binary value into a power consumption value by digital-to-analog conversion, the conversion rule is shown in Table 2, and the power consumption value increases by 125 mW for every increase of 1 in the binary value.

[0095] Table 2

[0096] Binary Value Power consumption 000001 125mW 000010 250mW 000011 375mW 000100 500mW 000101 625mW … … 111011 7375mW 111100 7500mW 111101 7625mW 111110 7750mW 111111 7875mW

[0097] Step S5: After corresponding conversion, the power consumption values ​​recorded in R0C, R0D, R0E, and R0F can be obtained, which are recorded as Pa, Pb, Pc, and Pd, and the unit is mW.

[0098] Step S6, PMIC output power consumption (ie, initial power supply parameters) = (Pa+Pb+Pc+Pd) / 1000, in W.

[0099] Step S7, DIMM calculated power consumption (i.e., initial power consumption parameter) = PMIC output power consumption / conversion efficiency (i.e., conversion attribute information). When using a PMIC5000 DIMM, DIMM calculated power consumption = PMIC output power consumption / 0.89; when using a PMIC5010 DIMM, DIMM calculated power consumption = PMIC output power consumption / 0.87.

[0100] Step S8, due to the accuracy of the PMIC register value digital-to-analog conversion and the unrecorded module power consumption, there is a gap between the DIMM calculated power consumption and the actual power consumption, so the DIMM actual power consumption (ie, the target power consumption parameter) = DIMM calculated power consumption + δ (ie, the power deviation parameter).

[0101] Step S9, repeat steps S2 to S8 after an interval of time t.

[0102] Through the above steps, the PMIC register is set to enable the ADC function to record the power consumption when the server is powered on. During the operation of the server, the relevant PMIC register values ​​are obtained through the BMC, and the actual power consumption value of each DIMM can be obtained through conversion and calculation. That is, through the BIOS settings during the boot process, the memory-related PMIC register values ​​are obtained through the BMC during the operation process, and the power consumption value of each DIMM can be obtained through conversion and calculation.

[0103] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.

[0104] In this embodiment, a monitoring device for server memory is also provided, which is applied to the memory controller of the server, and the memory controller is used to connect to the memory system in the server to be monitored. The memory system in the server includes multiple memory units, and the memory units are used to provide memory space for the server. The device is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware for a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0105] Figure 5 is a structural block diagram of a server memory monitoring device according to an embodiment of the present application, such as Figure 5 As shown, the device comprises:

[0106] A first conversion module 502 is used to convert the initial power supply parameters of each target memory unit in the connected target memory system into initial power consumption parameters, wherein the target memory unit is a memory unit currently provided with power in the target memory system, the initial power supply parameter is used to indicate the power provided to the target memory unit, and the initial power consumption parameter is used to indicate the power used by the corresponding target memory unit;

[0107] A detection module 504 is used to detect the power deviation parameter of each of the target memory units according to the system power usage parameter, the reference power usage parameter and the initial power usage parameter, wherein the system power usage parameter is recorded on the target server where the target memory system is located, the system power usage parameter is used to indicate the total power used by the target memory system, the reference power usage parameter is the sum of the initial power usage parameter, and the power deviation parameter is used to indicate the deviation between the collected power used by the target memory unit and the actual power used by the target memory unit;

[0108] The second conversion module 506 is used to convert the initial power usage parameter into a target power usage parameter according to the power deviation parameter, wherein the target power usage parameter is used to indicate the actual power used by the target memory unit, and the target power usage parameter is used to control the power supply mode of the target memory unit.

[0109] Through the above steps, since the memory controller of the server will be connected to the memory system in the server to be monitored, multiple memory units in the memory system provide memory space for the server, and the initial power supply parameters for indicating the electric energy provided to the target memory unit that is currently provided with electric energy in the connected target memory system are converted into initial power consumption parameters for indicating the electric energy used by the corresponding target memory unit, the power deviation parameters for indicating the deviation between the collected electric energy used by the target memory unit and the electric energy actually used by the target memory unit are detected for each target memory unit according to the system power consumption parameters for indicating the total electric energy used by the target memory system recorded on the target server where the target memory system is located, the reference power consumption parameters representing the initial power consumption parameters, and the initial power consumption parameters, and the initial power consumption parameters are used to detect the electric energy deviation parameters of each target memory unit, and the initial power consumption parameters are converted into the initial power consumption parameters according to the electric energy deviation parameters. The target power usage parameter is used to indicate the actual power usage of the target memory unit. The target power usage parameter is used to control the power supply mode of the target memory unit, that is, by converting the initial power supply parameters of each memory unit into the initial power usage parameter, the power deviation parameter of the target memory unit is detected according to the system power usage parameter indicating the total power used by the target memory system, the reference power usage parameter characterizing the sum of the initial power usage parameter, and the initial power usage parameter. By means of the sum of the total power used by the memory system that can be determined and the initial power usage parameter and the initial power usage parameter, the deviation between the collected power usage and the actual power usage of each target memory unit can be calculated. Further, the actual power usage of each target memory unit can be accurately obtained. Therefore, the problem of low power consumption monitoring efficiency of the server memory can be solved, and the effect of improving the power consumption monitoring efficiency of the server memory can be achieved.

[0110] As an optional implementation, the detection module includes:

[0111] A first calculation unit, configured to calculate a difference between the system power consumption parameter and the reference power consumption parameter to obtain a reference power deviation parameter of the target memory system;

[0112] A detection unit is used to detect the power deviation parameter according to the initial power usage parameter, the reference power usage parameter and the reference power deviation parameter.

[0113] As an optional implementation manner, the detection unit is further used for:

[0114] Calculating the ratio of the initial power consumption parameter to the reference power consumption parameter to obtain a target deviation ratio parameter;

[0115] The reference electric energy deviation parameter is allocated according to the target deviation proportion parameter to obtain the electric energy deviation parameter.

[0116] As an optional implementation manner, the first conversion module includes:

[0117] An acquisition unit, used for acquiring the initial power supply parameters of each of the target memory units;

[0118] The first conversion unit is used to convert the initial power supply parameter into the initial power usage parameter according to conversion attribute information of each of the target memory units, wherein the conversion attribute information is used to indicate the efficiency of the target memory unit in using the electric energy provided to the target memory unit.

[0119] As an optional implementation, a plurality of target power supply registers are deployed in the target memory unit, and the plurality of target power supply registers are used to record a plurality of initial partial power supply parameters of the target memory unit, and the initial partial power supply parameters are used to indicate the power provided to the corresponding memory components in the target memory unit; the acquisition unit is further used to:

[0120] reading a plurality of the initial partial power supply parameters from a plurality of the target power supply registers;

[0121] The sum of a plurality of the initial partial power supply parameters is calculated to obtain the initial power supply parameter.

[0122] As an optional implementation manner, the first conversion unit is further used to:

[0123] Detecting a target model of the target memory unit;

[0124] Searching for a target power conversion efficiency corresponding to the target model from the models and power conversion efficiencies of the memory units having a corresponding relationship, wherein the conversion attribute information includes the target power conversion efficiency;

[0125] The initial power supply parameter is converted into the initial power consumption parameter based on the target power conversion efficiency.

[0126] As an optional implementation, the memory controller includes a baseboard management controller of the server to be monitored, a power management device is deployed on the target memory unit, the baseboard management controller is connected to a server mainboard of the server to be monitored, and the server mainboard is connected to the target memory unit;

[0127] The first conversion module includes: a first sending unit, used to send an initial power supply parameter acquisition request to the server mainboard, wherein the initial power supply parameter acquisition request is used to request the server mainboard to obtain the initial power supply parameter from the power management device and return the initial power supply parameter; a first receiving unit, used to receive the initial power supply parameter returned by the server mainboard in response to the initial power supply parameter acquisition request; a second conversion unit, used to convert the initial power supply parameter into the initial power consumption parameter;

[0128] The detection module includes: a second sending unit, used to send a system power parameter acquisition request to the server mainboard, wherein the system power parameter acquisition request is used to request to obtain the system power parameter; a second receiving unit, used to receive the system power parameter returned by the server mainboard in response to the system power parameter acquisition request and calculate the sum of the initial power parameters of the multiple target memory units of the target memory system to obtain the reference power parameter; a second calculating unit, used to calculate the power deviation parameter of each target memory unit according to the difference between the reference power parameter and the system power parameter, and the ratio of the initial power parameter to the reference power parameter;

[0129] The second conversion module includes: a third calculation unit, used to calculate the sum of the initial power consumption parameter and the electric energy deviation parameter to obtain the target power consumption parameter.

[0130] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.

[0131] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.

[0132] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.

[0133] An embodiment of the present application further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0134] In an exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.

[0135] An embodiment of the present application further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps in any one of the above method embodiments are implemented.

[0136] An embodiment of the present application further provides another computer program product, including a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.

[0137] An embodiment of the present application also provides a computer program, which includes computer instructions, which are stored in a computer-readable storage medium; a processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the steps in any one of the above method embodiments.

[0138] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.

[0139] Obviously, those skilled in the art should understand that the above modules or steps of the present application can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order from that herein, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present application is not limited to any specific combination of hardware and software.

[0140] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principles of the present application shall be included in the protection scope of the present application.

Claims

1. A method for monitoring server memory, characterized in that: A memory controller applied to a server, the memory controller being used to connect to a memory system in a server to be monitored, the memory system in the server including a plurality of memory units, each of which being used to provide memory space for the server, the method comprising: converting an initial power supply parameter of each target memory unit in the connected target memory system into an initial power usage parameter, wherein the target memory unit is a memory unit in the target memory system currently being supplied with power, the initial power supply parameter being used to indicate the power provided to the target memory unit, and the initial power usage parameter being used to indicate the power used by the corresponding target memory unit; Detecting an energy deviation parameter of each target memory unit according to a system energy usage parameter, a reference energy usage parameter, and the initial energy usage parameter, wherein the system energy usage parameter is recorded on the target server where the target memory system is located, the system energy usage parameter is used to indicate the total energy used by the target memory system, the reference energy usage parameter is the sum of the initial energy usage parameters, and the energy deviation parameter is used to indicate the deviation between the collected energy used by the target memory unit and the actual energy used by the target memory unit; The initial power usage parameter is converted into a target power usage parameter according to the power deviation parameter, wherein the target power usage parameter is used to indicate the actual power used by the target memory unit, and the target power usage parameter is used to control the power supply mode of the target memory unit.

2. The method according to claim 1, characterized in that The detecting of the power deviation parameter of each target memory unit according to the system power parameter, the reference power parameter and the initial power parameter includes: Calculating a difference between the system power parameter and the reference power parameter to obtain a reference power deviation parameter of the target memory system; The power deviation parameter is detected according to the initial power usage parameter, the reference power usage parameter and the reference power deviation parameter.

3. The method according to claim 2, characterized in that The detecting the electric energy deviation parameter according to the initial electric energy parameter, the reference electric energy parameter and the reference electric energy deviation parameter includes: Calculating the ratio of the initial power consumption parameter to the reference power consumption parameter to obtain a target deviation ratio parameter; The reference electric energy deviation parameter is allocated according to the target deviation proportion parameter to obtain the electric energy deviation parameter.

4. The method according to claim 1, wherein The converting the initial power supply parameters of each target memory unit in the connected target memory system into initial power consumption parameters includes: Obtaining the initial power supply parameters of each target memory unit; The initial power supply parameter is converted into the initial power usage parameter according to conversion attribute information of each target memory unit, wherein the conversion attribute information is used to indicate the efficiency of the target memory unit in using the electric energy provided to the target memory unit.

5. The method according to claim 4, characterized in that A plurality of target power supply registers are deployed in the target memory unit, and the plurality of target power supply registers are used to record a plurality of initial partial power supply parameters of the target memory unit, and the initial partial power supply parameters are used to indicate the power provided to the corresponding memory components in the target memory unit; The obtaining of the initial power supply parameters of each target memory unit includes: Reading a plurality of the initial partial power supply parameters from a plurality of the target power supply registers; The sum of the multiple initial partial power supply parameters is calculated to obtain the initial power supply parameter.

6. The method according to claim 4, characterized in that The converting the initial power supply parameter into the initial power usage parameter according to the conversion attribute information of each target memory unit includes: detecting a target model of the target memory unit; Searching for a target power conversion efficiency corresponding to the target model from the models and power conversion efficiencies of the memory units having a corresponding relationship, wherein the conversion attribute information includes the target power conversion efficiency; The initial power supply parameter is converted into the initial power consumption parameter based on the target power conversion efficiency.

7. The method according to claim 1, characterized in that The memory controller includes a baseboard management controller of the server to be monitored, a power management device is deployed on the target memory unit, the baseboard management controller is connected to the server mainboard of the server to be monitored, and the server mainboard is connected to the target memory unit; The converting the initial power supply parameters of each target memory unit in the connected target memory system into the initial power usage parameters includes: sending an initial power supply parameter acquisition request to the server mainboard, wherein the initial power supply parameter acquisition request is used to request the server mainboard to obtain the initial power supply parameters from the power management device and return the initial power supply parameters; receiving the initial power supply parameters returned by the server mainboard in response to the initial power supply parameter acquisition request; and converting the initial power supply parameters into the initial power usage parameters; The detecting the power deviation parameter of each target memory unit according to the system power usage parameter, the reference power usage parameter and the initial power usage parameter includes: sending a system power usage parameter acquisition request to the server mainboard, wherein the system power usage parameter acquisition request is used to request to acquire the system power usage parameter; receiving the system power usage parameter returned by the server mainboard in response to the system power usage parameter acquisition request and calculating the sum of the initial power usage parameters of multiple target memory units of the target memory system to obtain the reference power usage parameter; calculating the power deviation parameter of each target memory unit according to the difference between the reference power usage parameter and the system power usage parameter, and the ratio of the initial power usage parameter to the reference power usage parameter; The converting the initial power consumption parameter into a target power consumption parameter according to the power energy deviation parameter includes: calculating the sum of the initial power consumption parameter and the power energy deviation parameter to obtain the target power consumption parameter.

8. A server memory monitoring device, characterized in that: A memory controller applied to a server, the memory controller is used to connect to a memory system in the server to be monitored, the memory system in the server includes multiple memory units, and the memory units are used to provide memory space for the server. The device includes: a first conversion module, configured to convert an initial power supply parameter of each target memory unit in the connected target memory system into an initial power usage parameter, wherein the target memory unit is a memory unit currently supplied with power in the target memory system, the initial power supply parameter is used to indicate the power provided to the target memory unit, and the initial power usage parameter is used to indicate the power used by the corresponding target memory unit; a detection module, configured to detect an energy deviation parameter of each of the target memory units based on a system energy usage parameter, a reference energy usage parameter, and the initial energy usage parameter, wherein the system energy usage parameter is recorded on the target server where the target memory system is located, the system energy usage parameter is used to indicate the total energy used by the target memory system, the reference energy usage parameter is the sum of the initial energy usage parameters, and the energy deviation parameter is used to indicate the deviation between the collected energy used by the target memory unit and the energy actually used by the target memory unit; The second conversion module is used to convert the initial power usage parameter into a target power usage parameter according to the power deviation parameter, wherein the target power usage parameter is used to indicate the actual power used by the target memory unit, and the target power usage parameter is used to control the power supply mode of the target memory unit.

9. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, wherein when the computer program is executed by a processor, the steps of the method described in any one of claims 1 to 7 are implemented.

10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.