Memory module power consumption detection method, device, medium and program product

By reading the register values ​​of the mode selection register and power consumption register of the memory module, the total power consumption is periodically detected, which solves the problem of inaccurate power consumption detection in the prior art, and realizes accurate power consumption characteristic measurement in different working modes, meeting the needs of high-precision energy efficiency analysis.

CN120371655BActive Publication Date: 2025-08-22INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510878309.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-06-27
Publication Date
2025-08-22
Estimated Expiration
2045-06-27

AI Technical Summary

Technical Problem

The memory module power consumption detection method in the prior art is not accurate enough to cover the power consumption characteristics of multiple working modes, resulting in the measurement results that can only reflect the rough power consumption level under specific operating conditions and cannot meet the engineering requirements of high-precision energy efficiency analysis.

Method used

By reading the register values ​​of the mode selection register and power consumption register in the memory module, the current power consumption monitoring mode is determined, and operated in different operating modes in at least two detection cycles, periodically detecting the total power consumption to avoid the impact of voltage fluctuations on detection accuracy.

Benefits of technology

It improves the accuracy of the total power consumption of the memory module, can fully capture the power consumption characteristics in different working modes, and meets the engineering requirements of high-precision energy efficiency analysis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120371655B_ABST
    Figure CN120371655B_ABST
Patent Text Reader

Abstract

The present application discloses a method, device, medium, and program product for detecting power consumption of a memory module, relating to the field of memory technology. The memory module includes a mode selection register and multiple power consumption registers. The method includes: in a current detection cycle, if a preset condition is met, reading a register value in the mode selection register, and determining the current power consumption monitoring mode of the memory module based on the register value in the mode selection register; determining a target power consumption register from multiple power consumption registers based on the current power consumption monitoring mode, and reading the register value in the target power consumption register; determining the current total power consumption of the memory module based on the register value in the target power consumption register; wherein the memory module operates in different operating modes in at least two detection cycles. The present application solves the problem that the total power consumption of a memory module measured by related technologies is not accurate enough and cannot cover the power consumption characteristics of multiple operating modes.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of memory technology, and in particular to a method, device, medium, and program product for detecting power consumption of a memory module. Background Art

[0002] With the advancement of memory technology, Double Data Rate Synchronous Dynamic Random Access Memory (DDR SDRAM), with its double the data transfer rate, has become a widely used memory technology in electronic devices. In storage testing systems, power consumption testing of memory modules is a core requirement, directly impacting the energy efficiency assessment and stability design of electronic devices.

[0003] Currently, memory module power consumption is measured by connecting a current clamp in series to the memory power supply circuit and calculating the power consumption by multiplying the measured current by the rated voltage. However, this method lacks accuracy and fails to capture the power consumption characteristics of various operating modes. Consequently, the measured power consumption only reflects a rough estimate of power consumption in a specific operating mode, failing to meet the engineering requirements for high-precision energy efficiency analysis. Summary of the Invention

[0004] The present application provides a method, device, medium and program product for detecting power consumption of a memory module, so as to at least solve the problems of the method, device, medium and program product for detecting power consumption of a memory module in the related art.

[0005] The present application provides a method for detecting power consumption of a memory module, wherein the memory module includes a mode selection register and a plurality of power consumption registers, wherein the method includes:

[0006] In a current detection cycle, if a preset condition is met, a register value in a mode selection register is read, and a current power consumption monitoring mode of the memory module is determined based on the register value in the mode selection register;

[0007] determining a target power consumption register from a plurality of power consumption registers based on a current power consumption monitoring mode, and reading a register value in the target power consumption register;

[0008] determining a current total power consumption of the memory module based on a register value in a target power consumption register;

[0009] The memory module operates in different working modes in at least two detection cycles.

[0010] The present application also provides a power consumption detection device for a memory module, wherein the memory module includes a mode selection register and a plurality of power consumption registers, wherein the device includes:

[0011] A first reading module is configured to read a register value in a mode selection register in a current detection cycle if a preset condition is met, and determine a current power consumption monitoring mode of the memory module based on the register value in the mode selection register;

[0012] A second reading module is used to determine a target power consumption register from a plurality of power consumption registers based on a current power consumption monitoring mode, and read a register value in the target power consumption register;

[0013] A first determining module, configured to determine a current total power consumption of the memory module based on a register value in a target power consumption register value;

[0014] The memory module operates in different working modes in at least two detection cycles.

[0015] The present application also provides an electronic device, comprising: a memory for storing a computer program; and a processor for implementing the steps of any of the above-mentioned methods for detecting power consumption of a memory module when executing the computer program.

[0016] The present application also provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above-mentioned methods for detecting power consumption of a memory module are implemented.

[0017] The present application also provides a computer program product, including a computer program, which implements the steps of any of the above-mentioned methods for detecting power consumption of a memory module when the computer program is executed by a processor.

[0018] According to the present application, in the current detection cycle, if a preset condition is met, the register value in the mode selection register is read, and the current power consumption monitoring mode of the memory module is determined based on the register value in the mode selection register; a target power consumption register is determined from multiple power consumption registers based on the current power consumption monitoring mode, and the register value in the target power consumption register is read; and the current total power consumption of the memory module is determined based on the register value in the target power consumption register; wherein the memory module operates in different operating modes in at least two detection cycles. It can be seen that the above technical solution can periodically detect the total power consumption of the memory module, thereby obtaining the power consumption characteristics of the memory module in at least two different operating modes. In addition, because the power supply line may be affected by factors such as power ripple and load mutations, resulting in voltage fluctuations, there is a deviation between the rated voltage value and the actual operating voltage. Therefore, the total power consumption of the memory module obtained by multiplying the current value by the rated voltage value is not accurate. However, the present application obtains the total power consumption of the memory module by reading the register value of the target register in the memory module, which can avoid the impact of voltage fluctuations on the accuracy of total power consumption detection, thereby improving the accuracy of the total power consumption of the memory module. Therefore, the problem of the total power consumption of the memory module being inaccurate and unable to cover the power consumption characteristics of multiple operating modes can be solved. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] In order to more clearly illustrate the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0020] Figure 1 A flowchart of a method for detecting power consumption of a memory module provided in an embodiment of the present application;

[0021] Figure 2 A circuit diagram of a power supply and power consumption detection circuit for a memory module provided in an embodiment of the present application;

[0022] Figure 3 A circuit diagram of a memory module provided in an embodiment of the present application;

[0023] Figure 4 A flowchart of an example of power consumption detection of a memory module provided in an embodiment of the present application;

[0024] Figure 5 A flowchart of another example of power consumption detection of a memory module provided in an embodiment of the present application;

[0025] Figure 6 A schematic structural diagram of a memory module power consumption detection device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0026] The following will be combined with the accompanying drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.

[0027] It should be noted that, in the description of this application, the terms "comprises," "includes," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or device. The terms "first," "second," etc., in this application are used to distinguish similar objects, and are not used to describe a particular order or sequence.

[0028] In order to enable those skilled in the art to better understand the present application, the present application is further described in detail below with reference to the accompanying drawings and specific implementation methods.

[0029] With the advancement of DDR SDRAM technology, DDR5 has become the core hardware support for next-generation storage arrays thanks to its innovative technical advantages, including a dual-channel sub-array architecture that effectively doubles bandwidth, a single-slot capacity of up to 128GB, energy efficiency improvements achieved through a 1.1V core voltage, and integrated on-die error correction (ECC). In server platform configurations, each storage controller supports 16 registered dual in-line memory modules (RDIMMs) via a four-channel bus architecture, forming a distributed cache pool of up to 2TB. Notably, the dynamic power consumption characteristics of memory modules vary significantly under different workloads. During data-intensive computing tasks, a single DDR5 RDIMM can consume up to 6-8W of instantaneous power, while in idle mode it can plummet to below 1.5W. This non-linear power consumption characteristic places stringent demands on measurement techniques. Memory module power consumption testing is a core requirement in storage array power consumption testing, directly impacting the energy efficiency assessment and stability design of server platforms. A commonly used testing method in related technologies involves connecting a current clamp in series with the memory module's power supply circuit to collect the power supply line's current signal in real time. The rated voltage of the power supply line is assumed to be constant and unfluctuating. The memory module's power consumption is then calculated using the formula "measured current value × rated voltage value." However, this indirect measurement method, based on the static voltage assumption, has significant technical drawbacks. Firstly, during server operation, the power supply line may experience voltage fluctuations due to factors such as power ripple and sudden load changes, resulting in a real-time deviation between the default rated voltage and the actual operating voltage. Secondly, the power consumption characteristics of memory modules are dynamic, with significant differences in current characteristics under different operating states (such as activation, pre-charge, and self-refresh). A single current sampling point cannot capture the power consumption characteristics of the entire operating cycle, resulting in measurement results that only reflect a rough power consumption level under specific operating conditions and fail to meet the engineering requirements for high-precision energy efficiency analysis. In light of this, the present application proposes a method, device, medium, and program product for detecting power consumption of memory modules.

[0030] An embodiment of the present application provides a method for detecting power consumption of a memory module, wherein the memory module can be exemplarily understood as a memory module in a storage array, a memory module in a notebook, a memory module in a server, a memory module in a military computer, etc., but is not limited thereto. Figure 1 A flowchart of a method for detecting power consumption of a memory module provided in an embodiment of the present application is shown in FIG. Figure 1 As shown, the method includes:

[0031] S110 . In a current detection cycle, if a preset condition is met, read a register value in a mode selection register, and determine a current power consumption monitoring mode of the memory module based on the register value in the mode selection register.

[0032] In this application, the memory module includes a mode selection register and a plurality of power consumption registers.

[0033] Specifically, the register value in the mode selection register includes a power consumption type selection bit. Based on the value of the power consumption type selection bit, the power consumption monitoring mode of the memory module is determined. The power consumption monitoring mode is the mode used by the memory module to monitor power consumption internally. The current power consumption monitoring mode is the power consumption monitoring mode of the memory module during the current detection cycle.

[0034] Specifically, the power consumption register is used to store the power consumption data monitored by the memory module, wherein the power consumption data monitored in different power consumption monitoring modes can be stored in different power consumption registers.

[0035] It should be noted that there are many specific implementation methods of "the power consumption monitoring mode of the memory module and the power consumption registers corresponding to each power consumption monitoring mode". Typical examples are described below, but they do not constitute a limitation on this application.

[0036] In some embodiments, the power consumption monitoring mode includes a total power consumption direct read mode and a rail power consumption analysis mode. Accordingly, the multiple power consumption registers include a total power consumption register and multiple rail power consumption registers. In the total power consumption direct read mode, the memory module automatically calculates the power consumption of all power rails and stores it in the total power consumption register; in the rail power consumption analysis mode, the memory module outputs the independent power consumption of each power rail and stores it in multiple rail power consumption registers.

[0037] To clearly explain the total power consumption direct reading mode and the track power consumption analysis mode, the following first describes the memory module power supply and detection circuits, as well as the internal circuits of the memory module.

[0038] In some embodiments, the memory module is powered by an independent power module, thereby eliminating the power coupling interference of other circuits on the motherboard where the memory module is located.

[0039] In some embodiments, the power module includes a first power unit and a second power unit, and the memory module includes a storage unit, a power management integrated unit, and an auxiliary unit;

[0040] The first power supply unit supplies power to the storage unit and the power management integrated unit;

[0041] The second power supply unit supplies power to the auxiliary unit and the power management integrated unit.

[0042] Specifically, the power management integrated unit is used to provide the necessary voltage regulation and distribution for the storage unit and auxiliary units. In other words, the power management integrated unit is used to convert the power supply voltage output by the power module into the power supply voltage required by the storage unit and auxiliary units. Exemplarily, the power management integrated unit includes a power management integrated circuit (PMIC), etc., but is not limited to this.

[0043] Specifically, the storage unit is a part of the memory module that implements the data storage function. Exemplarily, the storage unit includes: Dynamic Random Access Memory (DRAMs) and Data Buffers (DBs), etc., but is not limited thereto.

[0044] Specifically, the auxiliary unit is the portion of the memory module other than the memory unit. Exemplarily, the auxiliary unit includes a serial presence detect chip (SPD), a temperature sensor (TS), and a register clock driver (RCD). Of course, in other examples, the first power supply unit may also power some auxiliary units (such as the RCD). However, this is not limited to this.

[0045] In some embodiments, the first power supply unit includes an electrical protection unit, the electrical protection unit is used to perform electrical protection on the first power supply voltage output by the power supply unit and then transmit it to the power management integrated unit, the power management integrated unit is used to perform first voltage regulation on the first power supply voltage after electrical protection and then transmit it to the storage unit;

[0046] The second power supply unit includes a step-down unit, which is used to reduce the first power supply voltage after electrical protection to obtain a second power supply voltage. The second power supply voltage is then transmitted to the power management integrated unit, which regulates the second power supply voltage before transmitting it to the auxiliary unit. This allows the memory module to transfer power management from the motherboard to the memory module itself, enabling more precise control of power supply and supporting functions such as dynamic voltage adjustment to optimize performance and energy consumption, thereby helping to improve efficiency and reduce noise.

[0047] Specifically, the power supply unit refers to a part on the motherboard where the memory module is located that is used to provide power. Exemplarily, the power supply unit may include a power supply unit (PSU), etc., but is not limited thereto.

[0048] Specifically, the electrical protection unit may include a programmable fuse (Electronic Fuse, EFUSE) and the like, but is not limited thereto.

[0049] In some examples, the first power supply voltage after electrical protection can be directly transmitted to the power management integrated unit. Of course, in other examples, the first power supply voltage after electrical protection can flow through a first sampling resistor before being transmitted to the power management integrated unit. The purpose of providing the first sampling resistor is to use Ohm's law to convert the current signal into a measurable voltage signal, which is then converted into the power consumption of the first power supply unit input to the memory module.

[0050] Specifically, the step-down unit can be any DC-to-DC step-down voltage, which is not limited in this application.

[0051] In some examples, the second power supply voltage can be directly transmitted to the power management integrated unit. Of course, in other examples, the second power supply voltage can flow through a second sampling resistor before being transmitted to the power management integrated unit. The purpose of providing the second sampling resistor is to use Ohm's law to convert the current signal into a measurable voltage signal, which is then converted into the power consumption of the second power supply unit input to the memory module.

[0052] For example, Figure 2 A circuit diagram of a power supply and power consumption detection circuit for a memory module provided in an embodiment of the present application, Figure 2 exemplarily shows that the storage array includes 16 memory modules, and the 16 memory modules are represented by A0, A1, B0, B1, C0, C1, D0, D1, E0, E1, F0, F1, G0, G1, H0 and H1 respectively. Figure 2 As shown, the power supply unit outputs a first power supply voltage P12V_PSU. The electrical protection unit 111 provides electrical protection for the first power supply voltage P12V_PSU, such as overcurrent and overvoltage. The electrical protection unit 111 may be, for example, an EFUSE, which has a built-in intelligent protection mechanism. Upon detecting abnormal current or voltage, the EFUSE can quickly shut down the circuit, effectively preventing damage to the motherboard caused by power fluctuations. After the electrical protection, the first power supply voltage P12V_PSU flows through the first sampling resistor R1 and becomes a third power supply voltage P12V_BULK, which is then input into the memory module. The third power supply voltage P12V_BULK is converted to a second power supply voltage by the step-down unit 112, which includes a first transistor Q1, a second transistor Q2, a capacitor C, and an inductor L. The second power supply voltage flows through the second sampling resistor R2 and becomes a fourth power supply voltage P3V3_MGMT, which is then input into the memory module.

[0053] For example, Figure 3 This is a circuit diagram of a memory module provided in an embodiment of the present application. Figure 3 As shown, the memory module includes a PMIC, an SPD, a TS, an RCD, DBs, and DRAMs. The PMIC performs voltage conversion on the third power supply voltage P12V_BULK to generate three node voltages: SWAB, SWC, and SWD. The node voltage of SWAB is 1.1 volts VDD, the node voltage of SWC is 1.1 volts VDDQ, and the node voltage of SWD is 1.8 volts VPP. The 1.1 volt VDD supplies power to the DRAMs, the 1.1 volt VDDQ supplies power to the RCD, DBs, and DRAMs, and the 1.8 volt VPP supplies power to the DRAMs. At this time, the three node voltages of SWAB, SWC, and SWD correspond to four power rails. The SWA power rail corresponds to a part of the 1.1 volt VDD, the SWB power rail corresponds to another part of the 1.1 volt VDD, the SWC power rail corresponds to the 1.1 volt VDDQ, and the SWD power rail corresponds to the 1.8 volt VPP. In addition, the PMIC converts the fourth power voltage P3V3_MGMT into 1.0V and 1.8V through an internal low-dropout linear regulator. 1.0V is provided to the SPD, TS, and RCD, and 1.8V is provided to the SPD and TS.

[0054] It should be noted that there are many specific implementation methods of the preset conditions. Typical examples are described below, but they do not constitute a limitation on this application.

[0055] In some embodiments, the preset condition is empty, that is, after entering the current detection cycle, the register value in the mode selection register is immediately read, and the current power consumption monitoring mode of the memory module is determined based on the register value in the mode selection register.

[0056] In other embodiments, the preset condition includes: the memory module further includes a control register, and the current operating state of the memory module is a power consumption data mode. Accordingly, S110 includes: reading a register value in the control register, and determining the current operating state of the memory module based on the register value in the control register; if the current operating state is the power consumption data mode, reading a register value in a mode selection register.

[0057] Specifically, the register value in the control register includes a data type flag. The value of the data type flag can be used to determine the operating state of the memory module. The operating state refers to the data type of data detected when the memory module monitors energy consumption. The current operating state refers to the operating state of the memory module during the current detection cycle.

[0058] It should be noted that there are many specific implementations of the "working status of the memory module". Typical examples are described below, but they do not constitute a limitation on this application.

[0059] Optionally, the working state includes a power consumption data mode and a current data mode. In the power consumption data mode, the data type monitored when the memory module monitors energy consumption is power consumption; in the current data mode, the data type monitored when the memory module monitors energy consumption is current.

[0060] It can be understood that when the current working state is the power consumption data mode, the data type monitored when the memory module monitors energy consumption is power consumption. At this time, the current total power consumption of the memory module in the current detection cycle can be obtained by reading the power consumption register (ie, the target register) corresponding to the current power consumption monitoring mode. In this process, it involves reading the control register, the mode selection register and the target power consumption register, that is, only the read operation is involved and no write operation is involved. In this way, the total power consumption of the memory module can be accurately obtained, and since there is no write operation, the risk of causing memory timing disorder can be reduced (the write operation will cause the bit error rate to increase).

[0061] Optionally, after determining the current working state of the memory module based on the register value in the control register, it also includes: if the current working state is the current data mode, using the first sampling module to collect the current input power of the first power supply unit, and using it as the current total power consumption of the memory module, wherein the first power supply unit supplies power to the storage unit in the memory module.

[0062] Specifically, the first sampling module is used to collect input power input from the first power supply unit to the memory module, wherein the current input power of the first sampling module is the input power input from the first power supply unit to the memory module in the current detection cycle.

[0063] It should be noted that there are many specific implementations of the first sampling module. Typical examples are described below, but do not constitute a limitation to this application.

[0064] For example, see Figure 2 The first sampling module 120 includes a first sampling resistor R1 and a first sampling chip U1. The first sampling chip U1 can collect the voltage and current across the first sampling resistor R1 to obtain the input power from the first power supply unit to the memory module. Alternatively, the first sampling module 120 can directly collect the input power from the first power supply unit to the memory module.

[0065] It is understandable that when the current operating state is in current data mode, if the power consumption is calculated internally by the memory module, a corresponding write instruction must be issued to the memory module, which involves a write operation. As mentioned above, the write operation will cause the bit error rate to increase (approximately 0.05%), affecting the normal operation of the memory module. In view of this, when the current operating state is in current data mode, the present application directly collects the input power of the first power supply unit through the first sampling module and uses it as the total power consumption of the memory module to reduce the risk of causing memory timing disorder.

[0066] S120 : Determine a target power consumption register from a plurality of power consumption registers based on a current power consumption monitoring mode, and read a register value in the target power consumption register.

[0067] Specifically, the target power consumption register is the power consumption register corresponding to the current power consumption monitoring mode. In other words, the target power consumption register is the power consumption register used to store power consumption data in the current power consumption monitoring mode.

[0068] In some embodiments, the plurality of power consumption registers include a total power consumption register and a plurality of rail power consumption registers, wherein determining a target power consumption register from the plurality of power consumption registers based on a current power consumption monitoring mode includes:

[0069] If the current power consumption monitoring mode is the total power consumption direct reading mode, the total power consumption register is used as the target power consumption register;

[0070] If the current power consumption monitoring mode is the rail power consumption analysis mode, multiple rail power consumption registers are used as target power consumption registers.

[0071] For example, if the current power consumption monitoring mode is the total power consumption direct read mode, read the register value in the total power consumption register (address 0x0C). If the current power consumption monitoring mode is the rail power consumption parsing mode, read the register value in the register at address 0x0C (SWA power rail power consumption data), the register value in the register at address 0x0D (SWB power rail power consumption data), the register value in the register at address 0x0E (SWC power rail power consumption data), and the register value in the register at address 0x0F (SWD power rail power consumption data).

[0072] It is understandable that the power consumption monitoring mode settings of memory modules from different manufacturers may differ. By reading the register value in the corresponding target power consumption register based on the current power consumption monitoring mode, the total power consumption of the memory module is determined, so that this application can be compatible with memory modules with different power consumption monitoring mode configurations.

[0073] S130. Determine the current total power consumption of the memory module based on the register value in the target power consumption register, wherein the memory module operates in different working modes in at least two detection cycles.

[0074] Specifically, the working mode of the memory module is used to characterize the operating behavior of the memory module. Exemplarily, the working modes of the memory module include activation, pre-charge, self-refresh, etc., but are not limited thereto.

[0075] Specifically, the total power consumption of the memory module is determined based on the fixed conversion coefficient and the register value in the target power consumption register, wherein the current total power consumption of the memory module is the total power consumption of the memory module in the current detection cycle.

[0076] For example, if the current power consumption monitoring mode is the total power consumption direct reading mode, read the register value in the 0x0C register, the total power consumption = the register value in the register with address 0x0C * 125mW / LSB, where 125mW is a fixed conversion coefficient defined by the JEDEC specification, and each LSB represents 125mW of power consumption.

[0077] For example, if the current power consumption monitoring mode is the rail power consumption analysis mode, the register value in the register with address 0x0C, the register value in the register with address 0x0D, the register value in the register with address 0x0E, and the register value in the register with address 0x0F are read, and the total power consumption = (register value in the register with address 0x0C + register value in the register with address 0x0D + register value in the register with address 0x0E + register value in the register with address 0x0F) * 125mW / LSB.

[0078] The following describes in detail the method for detecting the power consumption of the memory module provided by the present application with reference to a specific example. Figure 4 This is a flowchart of an example of power consumption detection of a memory module provided in an embodiment of the present application. Figure 4As shown, first, when the PWRGD signal is high, bit 6 (data type identifier) ​​of the control register (address 0x1B) is read via the I2C bus. If bit 6 = 0 (current data mode), the risk avoidance mechanism is triggered, and the first sampling module is used to collect the total power consumption of the memory module. In other words, when the memory module is detected to be in current data output mode (bit 6 = 0), voltage reads are disabled. This requires first writing the target power rail address via the bus, which can cause memory timing disruptions. The first sampling module collects the total power consumption of the memory module in real time. This hardware-level independent sampling method avoids software intervention in PMIC configuration while ensuring stable memory module operation. If bit 6 = 1 (power data mode), bit 1 (power type selection bit) of the mode select register (address 0x1A) is further read. If bit 1 = 1 (total power direct read mode), the total power register (address 0x0C) is read. Total power consumption = the register value at address 0x0C * 125mW / LSB. If bit 1 = 0 (rail power analysis mode), read the register values ​​in the four rail power registers (the register with address 0x0C, the register with address 0x0D, the register with address 0x0E, and the register with address 0x0F) in sequence. The total power consumption = (register value in the register with address 0x0C + register value in the register with address 0x0D + register value in the register with address 0x0E + register value in the register with address 0x0F) * 125mW / LSB.

[0079] Optionally, the number of detection cycles is multiple, and the method further includes: determining total power consumption change information of the memory module based on the total power consumption of the memory module in the multiple detection cycles.

[0080] Specifically, the total power consumption change information may be represented by a total power consumption change curve (with time on the horizontal axis and total power consumption on the vertical axis), but is not limited thereto. This can intuitively reflect the power consumption characteristics of the memory module in multiple operating modes.

[0081] The embodiment of the present application can periodically detect the total power consumption of the memory module, thereby obtaining the power consumption characteristics of the memory module in at least two different operating modes. In addition, since the power supply line may be affected by factors such as power ripple and load mutation to produce voltage fluctuations, there is a deviation between the rated voltage value and the actual operating voltage. Therefore, the total power consumption of the memory module obtained by multiplying the current value by the rated voltage value is not accurate enough. The present application obtains the total power consumption of the memory module by reading the register value of the target register in the memory module, which can avoid the influence of voltage fluctuations on the accuracy of the total power consumption detection, thereby improving the accuracy of the total power consumption of the memory module. Therefore, it can solve the problem that the total power consumption of the memory module is not accurate enough and cannot cover the power consumption characteristics of multiple operating modes.

[0082] In another embodiment of the present disclosure, after determining the current total power consumption of the memory module, the method further includes: obtaining the current input power of the power module;

[0083] determining a current output power of the power module based on a current power consumption monitoring mode and a register value in a target power consumption register;

[0084] The current power efficiency of the power module is calculated based on the current input power and the current output power of the power module.

[0085] Specifically, the input power of the power module refers to the input power inputted by the power module to the memory module. The current input power of the power module refers to the input power inputted by the power module to the memory module in the current detection cycle.

[0086] In some embodiments, obtaining the current input power of the power module includes: using a first sampling module to collect the current input power of the first power unit, and using the current input power as the current input power of the power module.

[0087] It is understandable that the power voltage output by the first power supply unit is the source of all voltages input to the memory module. Therefore, the current input power of the first power supply unit can be regarded as the current input power of the power module.

[0088] Specifically, the output power of the power module refers to the power consumed by the memory module. The current output power of the power module refers to the power consumed by the memory module in the current detection cycle.

[0089] In some embodiments, the current output power of the power module is determined based on the current power consumption monitoring mode and the register value in the target power consumption register, including: if the current power consumption monitoring mode is the track power consumption parsing mode, the current total power consumption of the memory module is used as the current output power of the power module; if the current power consumption monitoring mode is the total power consumption direct reading mode, the current input power of the second power supply unit is collected using a second sampling module; and the sum of the current input power of the second power supply unit and the current total power consumption of the memory module is used as the current output power of the power module. In this way, the current output power of the power module can be measured quickly and accurately.

[0090] Specifically, the input power of the second power supply unit refers to the input power input by the second power supply unit to the memory module. The current input power of the second power supply unit refers to the input power input by the second power supply unit to the memory module in the current detection cycle.

[0091] For example, see Figure 2The second sampling module 130 includes a second sampling resistor R2 and a second sampling chip U2. The second sampling chip U2 can collect the voltage and current across the second sampling resistor R2 to determine the input power from the second power supply unit to the memory module. Alternatively, the second sampling module 130 can directly collect the input power from the second power supply unit to the memory module.

[0092] Of course, in some embodiments, the current output power of the power module is determined based on the current power consumption monitoring mode and the register value in the target power consumption register, including: if the current power consumption monitoring mode is the total power consumption direct reading mode, the current total power consumption of the memory module is used as the current output power of the power module; if the current power consumption monitoring mode is the rail power consumption analysis mode, the current input power of the second power supply unit is collected by the second sampling module; the sum of the current input power of the second power supply unit and the current total power consumption of the memory module is used as the current output power of the power module. In this way, the current output power of the power module can be measured quickly and accurately.

[0093] The following describes in detail the method for detecting the power consumption of the memory module provided by the present application with reference to a specific example. Figure 5A flowchart of another example of power consumption detection of a memory module provided in an embodiment of the present application. The first sampling module, the second sampling module and the memory module are all connected to a display module (such as an I2C serial port screen). The display module can display the third power supply voltage, the fourth power supply voltage and the power consumption information of the memory module in a clear and intuitive manner, and the display module will automatically switch interfaces. First, when the display module detects that the PWRGD signal sent by the PMIC is high, it waits for 50ms and then sends a command to the PMIC to read the register with the address 0x1B, parses the bit6 of the register with the address 0x1B, and if bit6=0, jumps to interface one, and sends a command to read the voltage, current and power to the first sampling module, and displays the read-back data in real time in the corresponding area of ​​interface one. Interface one can display the total power consumption of the memory module. If bit6=1, continue to send a command to PMIC to read the register with address 0x1A, parse bit1 of the register with address 0x1A, if bit1=0, jump to interface two, and send a command to PMIC to read the four rail power registers, namely the register with address 0x0C, the register with address 0x0D, the register with address 0x0E, and the register with address 0x0F, and then calculate the total power consumption of the memory module based on the register value read back, and display the total power consumption of the memory module on interface two. Of course, interface two can also display the power consumption of each power rail. If bit1=1, jump to interface three, send a command to PMIC to read the register with address 0x0C, and then calculate the total power consumption of the memory module based on the register value read back, and display the total power consumption of the memory module on interface three. Of course, interface three can also display the power consumption information of the first power supply unit and the second power supply unit. The power efficiency of the power module can also be displayed on Interface 2 and Interface 3. In response to receiving the efficiency trigger operation, the display module sends a power reading command to the first sampling module, and uses the power collected by the first sampling module as the input power. On Interface 2, the "total power of the memory module calculated based on the register values ​​of the four rail power consumption registers" is used as the output power of the power module. On Interface 3, the sum of the "total power of the memory module calculated based on the register with address 0x0C" and the power collected by the second sampling module is used as the output power of the power module. The power efficiency is equal to the output power of the power module divided by the input power of the power module, which is then displayed on the display module.

[0094] In summary, this application provides an independent power supply channel for the memory module by designing a dedicated power supply circuit for the memory module on the motherboard, which can completely eliminate the power coupling interference of other circuits on the motherboard to the memory module. In addition, the supporting power consumption detection system integrates a high-precision voltage and current synchronous sampling module, combined with a periodic power consumption detection mode, which can fully capture the transient power consumption change information of the memory module under different working modes. This technical solution breaks through the static assumption limitations of related technologies, and performs real-time power consumption monitoring of the entire power path of the memory module (from external input to internal functional power rails), providing a full-condition, high-precision measurement solution for memory power consumption testing. This not only provides accurate underlying data support for server energy efficiency optimization, but also can achieve early fault warning through abnormal power consumption fluctuation detection, significantly improving the reliability and energy management efficiency of high-density storage systems.

[0095] 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 the necessary general hardware platform, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method.

[0096] The embodiment of the present application also provides a memory module power consumption detection device, Figure 6 A schematic diagram of a memory module power consumption detection device provided in an embodiment of the present application is shown in FIG. Figure 6 As shown, the device includes:

[0097] A first reading module 610 is configured to read a register value in a mode selection register in a current detection cycle if a preset condition is met, and determine a current power consumption monitoring mode of the memory module based on the register value in the mode selection register;

[0098] A second reading module 620 is configured to determine a target power consumption register from a plurality of power consumption registers based on a current power consumption monitoring mode, and read a register value in the target power consumption register;

[0099] A first determining module 630 is configured to determine a current total power consumption of the memory module based on a register value in a target power consumption register;

[0100] The memory module operates in different working modes in at least two detection cycles.

[0101] Optionally, the multiple power consumption registers include a total power consumption register and multiple track power consumption registers, wherein the second reading module 620 includes a first determination unit, which is used to determine a target power consumption register from the multiple power consumption registers based on the current power consumption monitoring mode, wherein the first determination unit is specifically used to use the total power consumption register as the target power consumption register if the current power consumption monitoring mode is the total power consumption direct reading mode;

[0102] If the current power consumption monitoring mode is the rail power consumption analysis mode, multiple rail power consumption registers are used as target power consumption registers.

[0103] Optionally, the memory module further includes a control register, wherein the first reading module 610 includes a first reading unit, configured to read a register value in the mode selection register if a preset condition is met, wherein the first reading unit is specifically configured to read the register value in the control register and determine the current working state of the memory module based on the register value in the control register;

[0104] If the current working state is the power consumption data mode, read the register value in the mode selection register.

[0105] Optionally, the first reading module 610 also includes a second reading unit, which is used to, after determining the current working state of the memory module based on the register value in the control register, if the current working state is the current data mode, use the first sampling module to collect the current input power of the first power supply unit and use it as the current total power consumption of the memory module, wherein the first power supply unit supplies power to the storage unit in the memory module.

[0106] Optionally, the memory modules are powered by independent power modules.

[0107] Optionally, the power module includes a first power unit and a second power unit, and the memory module includes a storage unit, a power management integrated unit, and an auxiliary unit;

[0108] The first power supply unit supplies power to the storage unit and the power management integrated unit;

[0109] The second power supply unit supplies power to the auxiliary unit and the power management integrated unit.

[0110] Optionally, the first power supply unit includes an electrical protection unit, the electrical protection unit is used to perform electrical protection on the first power supply voltage output by the power supply unit and then transmit it to the power management integrated unit, the power management integrated unit is used to perform a first voltage adjustment on the first power supply voltage after electrical protection and then transmit it to the storage unit;

[0111] The second power supply unit includes a step-down unit, which is used to step down the first power supply voltage after electrical protection to obtain a second power supply voltage, and transmit the second power supply voltage to the power management integrated unit. The power management integrated unit is used to perform a second voltage adjustment on the second power supply voltage and then transmit it to the auxiliary unit.

[0112] Optionally, the device further includes a first acquisition module, configured to acquire the current input power of the power module after determining the current total power consumption of the memory module;

[0113] A second determining module is used to determine the current output power of the power module based on the current power consumption monitoring mode and the register value in the target power consumption register;

[0114] The first calculation module is configured to calculate a current power efficiency of the power module based on a current input power of the power module and a current output power of the power module.

[0115] The first acquisition module is configured to, after determining the current total power consumption of the memory module, use the first sampling module to collect the current input power of the first power supply unit and use the collected data as the current input power of the power supply module.

[0116] Optionally, the second determination module is specifically configured to use the current total power consumption of the memory module as the current output power of the power module if the current power consumption monitoring mode is the track power consumption analysis mode.

[0117] Optionally, the second determining module is specifically configured to collect the current input power of the second power supply unit using the second sampling module if the current power consumption monitoring mode is the total power consumption direct reading mode;

[0118] The sum of the current input power of the second power supply unit and the current total power consumption of the memory module is used as the current output power of the power supply module.

[0119] Optionally, the number of detection cycles is multiple, and the device further includes a third determination module for determining total power consumption change information of the memory module based on the total power consumption of the memory module during the multiple detection cycles. For a description of the features of the embodiment corresponding to the power consumption detection apparatus for a memory module, refer to the description of the embodiment corresponding to the power consumption detection method for a memory module, and will not be repeated here.

[0120] An embodiment of the present application also provides an electronic device, 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 of the above-mentioned memory module power consumption detection method embodiments.

[0121] An embodiment of the present application further provides a computer-readable storage medium storing a computer program, wherein the computer program is configured to execute the steps of any of the above-mentioned memory module power consumption detection method embodiments when running.

[0122] 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.

[0123] 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 of the above-mentioned memory module power consumption detection method embodiments are implemented.

[0124] An embodiment of the present application also provides another computer program product, including a non-volatile computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it implements the steps in any of the above-mentioned memory module power consumption detection method embodiments.

[0125] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the above description has generally described the components and steps of each example according to their functions. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0126] The above is a detailed introduction to the power consumption detection method, device, medium and program product of a memory module provided by the present application. This article uses specific examples to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and core ideas of the present application. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the scope of protection of the claims of the present application.

Claims

1. A method for detecting power consumption of a memory module, characterized in that: The memory module includes a mode selection register and a plurality of power consumption registers, wherein the method includes: In a current detection cycle, if a preset condition is met, reading a register value in the mode selection register, and determining a current power consumption monitoring mode of the memory module based on the register value in the mode selection register; determining a target power consumption register from the plurality of power consumption registers based on the current power consumption monitoring mode, and reading a register value in the target power consumption register; determining a current total power consumption of the memory module based on a register value in the target power consumption register; wherein the memory module operates in different working modes in at least two detection cycles; The multiple power consumption registers include a total power consumption register and multiple track power consumption registers, wherein determining a target power consumption register from the multiple power consumption registers based on the current power consumption monitoring mode includes: If the current power consumption monitoring mode is the total power consumption direct reading mode, the total power consumption register is used as the target power consumption register; If the current power consumption monitoring mode is the rail power consumption analysis mode, the plurality of rail power consumption registers are used as the target power consumption registers; The memory module further includes a control register, wherein if a preset condition is met, reading the register value in the mode selection register includes: Reading a register value in the control register, and determining a current working state of the memory module based on the register value in the control register; If the current working state is the power consumption data mode, read the register value in the mode selection register; If the current working state is the current data mode, the first sampling module is used to collect the current input power of the first power supply unit and use it as the current total power consumption of the memory module, wherein the first power supply unit supplies power to the storage unit in the memory module.

2. The method for detecting power consumption of a memory module according to claim 1, wherein: The memory module is powered by an independent power supply module.

3. The method for detecting power consumption of a memory module according to claim 2, wherein: The power module includes a first power unit and a second power unit, and the memory module includes a storage unit, a power management integrated unit and an auxiliary unit; The first power supply unit supplies power to the storage unit and the power management integrated unit; The second power supply unit supplies power to the auxiliary unit and the power management integrated unit.

4. The method for detecting power consumption of a memory module according to claim 3, wherein: The first power supply unit includes an electrical protection unit, which is used to perform electrical protection on the first power supply voltage output by the power supply unit and then transmit it to the power management integrated unit, and the power management integrated unit is used to perform first voltage regulation on the first power supply voltage after electrical protection and then transmit it to the storage unit; The second power supply unit includes a step-down unit, which is used to step down the first power supply voltage after electrical protection to obtain a second power supply voltage, and transmit the second power supply voltage to the power management integrated unit. The power management integrated unit is used to perform a second voltage adjustment on the second power supply voltage and then transmit it to the auxiliary unit.

5. The method for detecting power consumption of a memory module according to claim 4, wherein: After determining the current total power consumption of the memory module, the method further includes: Obtaining the current input power of the power module; Determining a current output power of the power module based on the current power consumption monitoring mode and a register value in the target power consumption register; The current power efficiency of the power module is calculated based on the current input power of the power module and the current output power of the power module.

6. The method for detecting power consumption of a memory module according to claim 5, wherein: The obtaining of the current input power of the power module includes: The current input power of the first power supply unit is collected by using a first sampling module, and the current input power of the first sampling module is used as the current input power of the power supply module.

7. The method for detecting power consumption of a memory module according to claim 5, wherein: The determining the current output power of the power module based on the current power consumption monitoring mode and the register value in the target power consumption register includes: If the current power consumption monitoring mode is the track power consumption analysis mode, the current total power consumption of the memory module is used as the current output power of the power module.

8. The method for detecting power consumption of a memory module according to claim 5, wherein: Determining a current output power of the power module based on the current power consumption monitoring mode and a register value in the target power consumption register includes: If the current power consumption monitoring mode is the total power consumption direct reading mode, using a second sampling module to collect the current input power of the second power supply unit; The sum of the current input power of the second power supply unit and the current total power consumption of the memory module is used as the current output power of the power supply module.

9. The method for detecting power consumption of a memory module according to any one of claims 1 to 8, wherein: The number of the detection cycles is multiple, and the method further includes: Based on the total power consumption of the memory module in a plurality of the detection cycles, total power consumption change information of the memory module is determined.

10. An electronic device, characterized in that: include: memory for storing computer programs; A processor, configured to implement the steps of the method for detecting power consumption of a memory module according to any one of claims 1 to 9 when executing the computer program.

11. 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 for detecting power consumption of a memory module according to any one of claims 1 to 9 are implemented.

12. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method for detecting power consumption of a memory module according to any one of claims 1 to 9 are implemented.

Citation Information

Patent Citations

  • Memory power consumption test method, system and equipment and storage medium

    CN114461470A

  • Server power consumption detection system, method, device and equipment and storage medium

    CN117055718A