Power consumption detection method and device for memory module, medium and program product
By setting the mode selection register and power consumption register in the memory module, the power consumption of the memory module in different working modes is periodically detected, which solves the problem of inaccurate power consumption detection in the prior art, and realizes high-precision power consumption characteristic analysis.
Patent Information
- Application Number
- CN202510878309.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-27
- Publication Date
- 2025-07-25
- Estimated Expiration
- 2045-06-27
AI Technical Summary
The power consumption detection method of memory modules 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.
By setting the mode selection register and multiple power registers in the memory module, the register value is periodically read to determine the current power consumption monitoring mode, and operated in different operating modes under different detection cycles, the register value in the target power consumption register is read to determine the total power consumption.
It improves the accuracy of the total power consumption of the memory module, can accurately detect power consumption characteristics in different working modes, avoids the impact of voltage fluctuations on detection accuracy, and meets the needs of high-precision energy efficiency analysis.
Smart Images

Figure CN120371655A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of memory technologies, and in particular, to a method, device, medium, and program product for power consumption detection of a memory module. Background Art
[0002] With the development of memory technologies, Double DataRate Synchronous Dynamic Random Access Memory (DDR SDRAM) has become a widely used memory technology in electronic devices with twice the data transfer rate. In a storage test system, the power consumption detection of a memory module, as a core mandatory item, directly affects the energy efficiency evaluation and stability design of electronic devices.
[0003] Currently, the power consumption detection method for a memory module is as follows: A current clamp is serially connected to the memory power supply circuit, and the power consumption of the memory module is obtained by calculating the measured current value × the rated voltage value. However, the power consumption measured by this detection method is not accurate enough, and it cannot cover the power consumption characteristics of multiple working modes, resulting in the measured power consumption only reflecting the rough power consumption level under a specific working mode and unable to meet the engineering requirements of high-precision energy efficiency analysis. Summary of the Invention
[0004] This application provides a method, device, medium, and program product for power consumption detection of a memory module, so as to at least solve the problems of the method, device, medium, and program product for power consumption detection of a memory module in related technologies.
[0005] This application provides a method for power consumption detection of a memory module. The memory module includes a mode selection register and multiple power consumption registers. The method includes: In a current detection period, if a preset condition is satisfied, read the register value in the mode selection register, and determine the current power consumption monitoring mode of the memory module based on the register value in the mode selection register; Determine a target power consumption register from the multiple power consumption registers based on the current power consumption monitoring mode, and read the register value in the target power consumption register; Determine the current total power consumption of the memory module based on the register value in the target power consumption register; Among them, the memory module operates in different working modes in at least two detection periods.
[0006] This application also provides a device for power consumption detection of a memory module. The memory module includes a mode selection register and multiple power consumption registers. The device includes: The first reading module is configured to, in the current detection period, if a preset condition is satisfied, read the register value in the mode selection register, and determine the current power consumption monitoring mode of the memory module based on the register value in the mode selection register; The second reading module is configured to determine a target power consumption register from multiple power consumption registers based on the current power consumption monitoring mode, and read the register value in the target power consumption register; The first determination module is configured to determine the current total power consumption of the memory module based on the register value in the target power consumption register value; Wherein, the memory module operates in different working modes in at least two detection periods.
[0007] This application also provides an electronic device, including: a memory for storing a computer program; a processor for implementing the steps of any of the above power consumption detection methods of the memory module when executing the computer program.
[0008] This application also provides a computer-readable storage medium storing a computer program, wherein the computer program implements the steps of any of the above power consumption detection methods of the memory module when executed by a processor.
[0009] This application also provides a computer program product including a computer program that implements the steps of any of the above power consumption detection methods of the memory module when executed by a processor.
[0010] Through this application, in the current detection period, if a preset condition is satisfied, 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; the current total power consumption of the memory module is determined based on the register value in the target power consumption register value; wherein, the memory module operates in different working modes in at least two detection periods. It can be seen that by adopting the above technical solution, the total power consumption of the memory module can be periodically detected, so as to obtain the power consumption characteristics of the memory module in at least two different working modes. And, since the power supply line may be affected by factors such as power ripple and load mutation, resulting in voltage fluctuations, there is a deviation between the rated voltage value and the actual working 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. However, in this application, the total power consumption of the memory module is obtained 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 total power consumption detection, thereby improving the accuracy of the total power consumption of the memory module. Therefore, the problem that the total power consumption of the memory module is not accurate enough and cannot cover the power consumption characteristics of multiple working modes can be solved. Description of the Drawings
[0011] To more clearly illustrate the embodiments of the present application, the following will briefly introduce the accompanying drawings required for the embodiments. Obviously, the accompanying drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other accompanying drawings can be obtained based on these drawings.
[0012] Figure 1 Flowchart of a power consumption detection method for a memory module provided by an embodiment of the present application; Figure 2 Circuit diagram of a power supply and power consumption detection circuit for a memory module provided by an embodiment of the present application; Figure 3 Circuit diagram of a memory module provided by an embodiment of the present application; Figure 4 Flowchart of a power consumption detection example for a memory module provided by an embodiment of the present application; Figure 5 Flowchart of another power consumption detection example for a memory module provided by an embodiment of the present application; Figure 6 Structural schematic diagram of a power consumption detection device for a memory module provided by an embodiment of the present application. Detailed implementation manners
[0013] The following will clearly and completely describe the technical solutions in the embodiments of the present application in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the protection scope of the present application.
[0014] It should be noted that in the description of the present application, the terms "including", "comprising" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements but also includes other elements not explicitly listed, or further includes elements inherent to such a process, method, article or device. The terms "first", "second", etc. in the present application are used to distinguish similar objects and not to describe a specific order or sequence.
[0015] To enable those skilled in the art of the present technology to better understand the solution of the present application, the following will further elaborate on the present application in conjunction with the accompanying drawings and specific implementation manners.
[0016] With the development of DDR SDRAM technology, DDR5 has become the core hardware support for the new generation of storage arrays due to its innovative technical advantages, such as the doubling of effective bandwidth achieved by the dual-channel sub-array architecture, the capacity breakthrough of up to 128GB per single strip, the energy efficiency optimization brought by the 1.1V core voltage, and the integrated on-die error correction code (On-die ECC). In the server platform configuration, each storage controller can support 16 registered dual in-line memory modules (Registered DIMMs) through a four-channel bus architecture, forming a distributed high-speed cache pool of up to 2TB. It is worth noting that in different business load scenarios, there are significant differences in the dynamic power consumption characteristics of memory modules: in data-intensive computing tasks, the instantaneous power consumption of a single DDR5 RDIMM can reach 6 - 8W, while in the idle state, it may drop sharply to below 1.5W. This non-linear power consumption characteristic poses strict requirements on measurement technologies. In the power consumption test system of the storage array, the power consumption test of memory modules, as a core mandatory item, directly affects the energy efficiency evaluation and stability design of the server platform. The commonly used test scheme in related technologies is as follows: by connecting a current clamp in series to the power supply circuit of the memory module, the current signal of the power supply line is collected in real time, and at the same time, it is assumed that the rated voltage of the power supply line remains constant without fluctuation. Finally, the power consumption of the memory module is obtained by the calculation method of "measured current value × rated voltage value". However, this indirect measurement method based on the assumption of static voltage has significant technical defects: on the one hand, the power supply line of the server may be affected by factors such as power supply ripple and load mutation during operation, resulting in voltage fluctuations, and there is a real-time deviation between the default rated voltage and the actual working voltage; on the other hand, the power consumption characteristics of memory modules have dynamic change characteristics, and the current characteristics in different working states (activation, pre-charge, self-refresh, etc.) are significantly different. A single current sampling point cannot cover the power consumption characteristics of the entire working cycle, resulting in the measurement result only reflecting the rough power consumption level under specific working conditions and unable to meet the engineering requirements of high-precision energy efficiency analysis. In view of this, the present application proposes a power consumption detection method, device, medium and program product for memory modules.
[0017] An embodiment of the present application provides a power consumption detection method for memory modules. Among them, 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 The flowchart of a power consumption detection method for memory modules provided by an embodiment of the present application is as Figure 1 shown, and the method includes: S110. In the current detection period, if the preset conditions are met, read the register value in the mode selection register, and determine the current power consumption monitoring mode of the memory module based on the register value in the mode selection register.
[0018] In this application, the memory module includes a mode selection register and multiple power consumption registers.
[0019] 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 can be determined. Among them, the power consumption monitoring mode is the mode adopted when the memory module internally monitors power consumption. The current power consumption monitoring mode is the power consumption monitoring mode of the memory module in the current detection period.
[0020] Specifically, the power consumption register is used to store the power consumption data monitored by the memory module. Among them, the power consumption data monitored in different power consumption monitoring modes can be stored in different power consumption registers.
[0021] It should be noted that there are various specific implementation manners of "the power consumption monitoring mode of the memory module and the power consumption registers corresponding to each power consumption monitoring mode". The following will illustrate with typical examples, but this does not constitute a limitation to this application.
[0022] In some embodiments, the power consumption monitoring modes include a total power consumption direct reading mode and a split-rail power consumption analysis mode. Correspondingly, the multiple power consumption registers include a total power consumption register and multiple split-rail power consumption registers. In the total power consumption direct reading mode, the memory module internally automatically aggregates and calculates the power consumption of all power rails and stores it in the total power consumption register; in the split-rail power consumption analysis mode, the memory module internally outputs the independent power consumption of each power rail separately and stores it in multiple split-rail power consumption registers.
[0023] To clearly introduce the total power consumption direct reading mode and the split-rail power consumption analysis mode, the power supply and detection circuit of the memory module and the internal circuit of the memory module will be described below.
[0024] In some embodiments, the memory module is powered by an independent power module. In this way, the power coupling interference of other circuits on the motherboard where the memory module is located to the memory module can be stripped.
[0025] 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 integration unit, and an auxiliary unit; The first power unit supplies power to the storage unit and the power management integration unit; The second power unit supplies power to the auxiliary unit and the power management integration unit.
[0026] Specifically, the power management integration unit is used to provide necessary voltage regulation and distribution for the storage unit and the auxiliary unit. In other words, the power management integration unit is used to convert the power voltage output by the power module into the power voltages required by the storage unit and the auxiliary unit. Exemplarily, the power management integration unit includes a Power Management Integrated Circuit (PMIC), etc., but is not limited thereto.
[0027] Specifically, the storage unit is the part in the memory module that implements the data storage function. Exemplarily, the storage unit includes: Dynamic Random Access Memories (DRAMs), Data Buffers (DBs), etc., but is not limited thereto.
[0028] Specifically, the auxiliary unit is the part in the memory module other than the storage unit. Exemplarily, the auxiliary unit includes: Serial Presence Detect (SPD) chips, Temperature Sensors (TS), Register Clock Drivers (RCD), etc. Of course, in some other examples, the first power unit can also supply power to some auxiliary units (such as RCD). But it is not limited thereto.
[0029] In some embodiments, the first power unit includes an electrical protection unit. The electrical protection unit is used to perform electrical protection on the first power voltage output by the power supply unit and then transmit it to the power management integration unit. The power management integration unit is used to perform a first voltage regulation on the electrically protected first power voltage and then transmit it to the storage unit; The second power unit includes a buck unit. The buck unit is used to perform a buck processing on the electrically protected first power voltage to obtain a second power voltage and transmit the second power voltage to the power management integration unit. The power management integration unit is used to perform a second voltage regulation on the second power voltage and then transmit it to the auxiliary unit. In this way, the memory module can transfer the power management from the motherboard to the memory module itself, and thus can control the power supply more precisely, support functions such as dynamic voltage adjustment, thereby optimizing performance and energy consumption, which helps to improve efficiency and reduce noise.
[0030] Specifically, the power supply unit refers to the part on the motherboard where the memory module is located that provides power. Exemplarily, the power supply unit can include a Power Supply Unit (PSU), etc., but is not limited thereto.
[0031] Specifically, the electrical protection unit may include a programmable fuse (Electronic Fuse, EFUSE), etc., but is not limited thereto.
[0032] 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 the first sampling resistor and then be transmitted to the power management integrated unit. The purpose of setting the first sampling resistor is that, using Ohm's law, the current signal can be converted into a measurable voltage signal, and then converted into the power consumption of the first power supply unit input to the memory module.
[0033] Specifically, the buck unit can be any DC-to-DC buck voltage, and this application does not limit this.
[0034] 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 the second sampling resistor and then be transmitted to the power management integrated unit. The purpose of setting the second sampling resistor is that, using Ohm's law, the current signal can be converted into a measurable voltage signal, and then converted into the power consumption of the second power supply unit input to the memory module.
[0035] Exemplarily, Figure 2 is a circuit diagram of a power supply and power consumption detection circuit for a memory module provided by an embodiment of this application. Figure 2 Exemplarily shown in it, the storage array includes 16 memory modules, and the 16 memory modules are respectively represented by A0, A1, B0, B1, C0, C1, D0, D1, E0, E1, F0, F1, G0, G1, H0, and H1. As Figure 2 shown, the power supply unit outputs the first power supply voltage P12V_PSU, and the electrical protection unit 111 performs electrical protection such as overcurrent and overvoltage on the first power supply voltage P12V_PSU. Among them, the electrical protection unit 111 can be, for example, an EFUSE. The EFUSE has a built-in intelligent protection mechanism. When an abnormal current or voltage is detected, it can quickly cut off the circuit, effectively avoiding damage to the motherboard caused by power fluctuations. The first power supply voltage P12V_PSU after electrical protection becomes the third power supply voltage P12V_BULK after flowing through the first sampling resistor R1, and the third power supply voltage P12V_BULK is input into the memory module. The third power supply voltage P12V_BULK power supply is processed by the buck unit 112 and converted into the second power supply voltage. Among them, the buck unit 112 includes a first transistor Q1, a second transistor Q2, a capacitor C, and an inductor L. The second power supply voltage becomes the fourth power supply voltage P3V3_MGMT after flowing through the second sampling resistor R2, and the fourth power supply voltage P3V3_MGMT is input into the memory module.
[0036] Exemplarily, Figure 3 is a circuit diagram of a memory module provided by an embodiment of the present application. As Figure 3 shown, the memory module includes a PMIC, an SPD, a TS, an RCD, DBs, and DRAMs. The PMIC converts the third power supply voltage P12V_BULK to generate three node voltages of 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. 1.1 volts VDD powers the DRAMs, 1.1 volts VDDQ powers the RCD, DBs, and DRAMs, and 1.8 volts VPP powers 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 1.1 volts VDD, the SWB power rail corresponds to another part of 1.1 volts VDD, the SWC power rail corresponds to 1.1 volts VDDQ, and the SWD power rail corresponds to 1.8 volts VPP. In addition, the PMIC converts the fourth power supply voltage P3V3_MGMT to 1.0 volts and 1.8 volts through an internal low-dropout linear regulator. 1.0 volts is provided to the SPD, TS, and RCD, and 1.8 volts is provided to the SPD and TS.
[0037] It should be noted that there are multiple specific implementation manners of the preset conditions. Typical examples will be described below, but this does not constitute a limitation to the present application.
[0038] In some embodiments, the preset condition is empty, that is, after entering the current detection period, 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.
[0039] In other embodiments, the preset condition includes: the memory module further includes a control register, and the current working state of the memory module is the power consumption data mode. Correspondingly, S110 includes: reading the register value in the control register and 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 power consumption data mode, reading the register value in the mode selection register.
[0040] Specifically, the register value in the control register includes a data type identification bit. Based on the value of the data type identification bit, the working state of the memory module can be determined, where the working state is the data type of the data monitored when the memory module internally monitors the energy consumption. The current working state is the working state of the memory module in the current detection period.
[0041] It should be noted that there are multiple specific implementation manners of "the working state of the memory module". Typical examples will be described below, but this does not constitute a limitation to the present application.
[0042] Optionally, the working state includes a power consumption data mode and a current data mode. In the power consumption data mode, the data type of the data monitored when the memory module internally monitors the energy consumption is power consumption; in the current data mode, the data type of the data monitored when the memory module internally monitors the energy consumption is current.
[0043] It can be understood that when the current working state is the power consumption data mode, the data type of the data monitored when the memory module internally monitors the energy consumption is power consumption. At this time, the current total power consumption of the memory module in the current detection period can be obtained by reading the power consumption register (i.e., the target register) corresponding to the current power consumption monitoring mode. In this process, reading the control register, the mode selection register, and the target power consumption register is involved, that is, only reading operations are involved and no writing operations are involved. In this way, the total power consumption of the memory module can be accurately obtained, and since there is no writing operation, the risk of causing memory timing disorders (writing operations will increase the error rate) can be reduced.
[0044] Optionally, after determining the current working state of the memory module based on the register value in the control register, it further 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 taking it as the current total power consumption of the memory module, where the first power supply unit supplies power to the storage unit in the memory module.
[0045] Specifically, the first sampling module is used to collect the input power input by the first power supply unit to the memory module. Among them, the current input power of the first sampling module is the input power input by the first power supply unit to the memory module in the current detection period.
[0046] It should be noted that there are various specific implementation manners of the first sampling module. The following will illustrate with typical examples, but it does not constitute a limitation to the present application.
[0047] Exemplarily, continue to refer to 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, so as to obtain the input power input by the first power supply unit to the memory module. Of course, the first sampling module 120 can also directly collect the input power input by the first power supply unit to the memory module.
[0048] It can be understood that when the current working state is the current data mode, if the power consumption is calculated internally by the memory module, a corresponding write instruction needs to be sent to the memory module, which involves a write operation. As described above, the write operation will increase the bit error rate (about 0.05%), affecting the normal operation of the memory module. In view of this, when the current working state is the 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 disorders.
[0049] S120. Determine a target power consumption register from multiple power consumption registers based on the current power consumption monitoring mode, and read the register value in the target power consumption register.
[0050] 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.
[0051] In some embodiments, the multiple power consumption registers include a total power consumption register and multiple sub-rail power consumption registers. Among them, determining a target power consumption register from 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, use the total power consumption register as the target power consumption register; If the current power consumption monitoring mode is the sub-rail power consumption analysis mode, use the multiple sub-rail power consumption registers as the target power consumption registers.
[0052] Exemplarily, if the current power consumption monitoring mode is the total power consumption direct reading mode, read the register value in the total power consumption register (address: 0x0C). If the current power consumption monitoring mode is the sub-rail power consumption analysis 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).
[0053] It can be understood that there may be differences in the settings of the power consumption monitoring mode for memory modules of different manufacturers. Reading the register value in the corresponding target power consumption register based on the current power consumption monitoring mode and then determining the total power consumption of the memory module enables the present application to be compatible with memory modules having different power consumption monitoring mode configurations.
[0054] S130. Determine the current total power consumption of the memory module based on the register value in the target power consumption register, where the memory module operates in different working modes in at least two detection cycles.
[0055] Specifically, the working mode of the memory module is used to characterize the operation behavior of the memory module. Exemplarily, the working modes of the memory module include activation, precharge, self-refresh, etc., but are not limited thereto.
[0056] 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. Among them, the current total power consumption of the memory module is the total power consumption of the memory module in the current detection cycle.
[0057] Exemplarily, if the current power consumption monitoring mode is the total power consumption direct reading mode, read the register value in the 0x0C register, and the total power consumption = the register value in the register at address 0x0C * 125 mW / LSB. Among them, 125 mW is the fixed conversion coefficient defined by the JEDEC specification, and each LSB represents 125 mW of power consumption.
[0058] Exemplarily, if the current power consumption monitoring mode is the split-rail power consumption analysis mode, read the register value in the register at address 0x0C, the register value in the register at address 0x0D, the register value in the register at address 0x0E, and the register value in the register at address 0x0F. The total power consumption = (the register value in the register at address 0x0C + the register value in the register at address 0x0D + the register value in the register at address 0x0E + the register value in the register at address 0x0F) * 125 mW / LSB.
[0059] The following combines a specific example to detail the power consumption detection method of the memory module provided in this application. Exemplarily, Figure 4 is a flowchart of a power consumption detection example of a memory module provided by an embodiment of this application. As Figure 4As shown in the figure, first, when the PWRGD signal is high, read bit 6 (data type identification bit) of the control register (address 0x1B) through the I2C bus. If bit 6 = 0 (current data mode), trigger the risk avoidance mechanism and use the first sampling module to collect the total power consumption of the memory module. In other words, when it is detected that the memory module is in the current data output mode (bit 6 = 0), disable the voltage reading operation because reading the voltage requires writing the target power rail address through the bus first, and this writing operation may cause the risk of memory timing disorder. The total power consumption of the memory module is collected in real time through the first sampling module. This hardware layer independent sampling method ensures the stable operation of the memory module while avoiding software intervention in the PMIC configuration. If bit 6 = 1 (power consumption data mode), further read bit 1 (power consumption type selection bit) of the mode selection register (address 0x1A). If bit 1 = 1 (total power consumption direct reading mode), read the total power consumption register (address 0x0C), and the total power consumption = the register value at address 0x0C * 125mW / LSB. If bit 1 = 0 (split rail power consumption analysis mode), sequentially read the register values in the four split rail power consumption registers (the register at address 0x0C, the register at address 0x0D, the register at address 0x0E, and the register at address 0x0F), and the total power consumption = (the register value in the register at address 0x0C + the register value in the register at address 0x0D + the register value in the register at address 0x0E + the register value in the register at address 0x0F) * 125mW / LSB.
[0060] Optionally, the number of detection cycles is multiple, and the method further includes: determining the total power consumption change information of the memory module based on the total power consumption of the memory module in multiple detection cycles.
[0061] Specifically, the specific manifestation form of the total power consumption change information may include a total power consumption change curve (abscissa time, ordinate total power consumption), etc., but is not limited thereto. In this way, the power consumption characteristics of the memory module in multiple working modes can be intuitively reflected.
[0062] In the embodiments of the present application, the total power consumption of the memory module can be periodically detected, so as to obtain the power consumption characteristics of the memory module in at least two different working modes. And because the power supply line may be affected by factors such as power ripple and load mutation, resulting in voltage fluctuations, there is a deviation between the rated voltage value and the actual working 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. In the present application, the total power consumption of the memory module is obtained 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 total power consumption detection, thereby improving the accuracy of the total power consumption of the memory module. Therefore, the problem that the total power consumption of the memory module is not accurate enough and cannot cover the power consumption characteristics of multiple working modes can be solved.
[0063] 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 supply module; Determining the current output power of the power supply module based on the current power consumption monitoring mode and the register value in the target power consumption register; Calculating the current power supply efficiency of the power supply module based on the current input power and the current output power of the power supply module.
[0064] Specifically, the input power of the power supply module refers to the input power that the power supply module inputs to the memory module. Among them, the current input power of the power supply module is the input power that the power supply module inputs to the memory module during the current detection period.
[0065] In some embodiments, obtaining the current input power of the power supply module includes: using the first sampling module to collect the current input power of the first power supply unit and taking it as the current input power of the power supply module.
[0066] It can be understood that the power supply 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 supply module.
[0067] Specifically, the output power of the power supply module refers to the power consumed by the memory module. Among them, the current output power of the power supply module is the power consumed by the memory module during the current detection period.
[0068] In some embodiments, determining the current output power of the power supply 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 split-rail power consumption analysis mode, taking the current total power consumption of the memory module as the current output power of the power supply module; if the current power consumption monitoring mode is the total power consumption direct reading mode, using the second sampling module to collect the current input power of the second power supply unit; taking the sum of the current input power of the second power supply unit and the current total power consumption of the memory module as the current output power of the power supply module. In this way, the current output power of the power supply module can be measured quickly and accurately.
[0069] Specifically, the input power of the second power supply unit refers to the input power that the second power supply unit inputs to the memory module. Among them, the current input power of the second power supply unit is the input power that the second power supply unit inputs to the memory module during the current detection period.
[0070] Exemplarily, continue to refer to Figure 2, the 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, so as to obtain the input power input by the second power supply unit to the memory module. Of course, the second sampling module 130 can also directly collect the input power input by the second power supply unit to the memory module.
[0071] Of course, in some embodiments, determining the current output power of the power supply 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 total power consumption direct reading mode, taking the current total power consumption of the memory module as the current output power of the power supply module; if the current power consumption monitoring mode is the split-rail power consumption analysis mode, using the second sampling module to collect the current input power of the second power supply unit; taking the sum of the current input power of the second power supply unit and the current total power consumption of the memory module as the current output power of the power supply module. In this way, the current output power of the power supply module can be measured quickly and accurately.
[0072] The following will detail the power consumption detection method for the memory module provided in this application with a specific example. Exemplarily, Figure 5Flowchart of another power consumption detection example of the memory module provided by the embodiment of the present application. The first sampling module, the second sampling module, and the memory module are all connected to the display module (such as an I2C serial 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 the interface. First, when the display module detects that the PWRGD signal sent by the PMIC is high, it waits for 50 ms and then sends a command to the PMIC to read the register with the address of 0x1B. Parse bit6 of the register with the address of 0x1B. If bit6 = 0, jump to Interface 1, and send a command to the first sampling module to read voltage, current, and power, and display the read-back data in the corresponding area of Interface 1. Interface 1 can display the total power consumption of the memory module. If bit6 = 1, continue to send a command to the PMIC to read the register with the address of 0x1A. Parse bit1 of the register with the address of 0x1A. If bit1 = 0, jump to Interface 2, and send a command to the PMIC to read the four split-rail power consumption registers with the addresses of 0x0C, 0x0D, 0x0E, and 0x0F. Then calculate the total power consumption of the memory module based on the read-back register values and display the total power consumption of the memory module on Interface 2. Of course, Interface 2 can also display the power consumption of each power rail. If bit1 = 1, jump to Interface 3, send a command to the PMIC to read the register with the address of 0x0C, and then calculate the total power consumption of the memory module based on the read-back register values and display the total power consumption of the memory module on Interface 3. Of course, Interface 3 can also display the power consumption information of the first power supply unit and the second power supply unit. Under Interface 2 and Interface 3, the power efficiency of the power supply module can also be displayed. In response to receiving an efficiency trigger operation, the display module sends a command to the first sampling module to read power, and uses the power collected by the first sampling module as the input power. Under Interface 2, the "total power of the memory module calculated based on the register values of the four split-rail power consumption registers" is used as the output power of the power supply module. Under Interface 3, the sum of the "total power of the memory module calculated based on the register with the address of 0x0C" and the power collected by the second sampling module is used as the output power of the power supply module. The power efficiency is equal to the output power of the power supply module divided by the input power of the power supply module, and then displayed on the display module.
[0073] In summary, in the present application, a dedicated power supply circuit for the memory module is designed on the main board to provide an independent power supply channel for the memory module, which can completely eliminate the power coupling interference of other circuits on the main board to the memory module. And 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 completely capture the transient power consumption change information of the memory module under different working modes. This technical solution breaks through the limitations of static assumptions in related technologies, and performs real-time power consumption monitoring on the entire power supply path of the memory module (from external input to internal functional power rails), providing a full-condition and 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 power consumption abnormal fluctuation detection, significantly improving the reliability and energy management efficiency of high-density storage systems.
[0074] Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by means of software plus a 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.
[0075] The embodiment of the present application also provides a power consumption detection device for a memory module, Figure 6 which is a schematic structural diagram of a power consumption detection device for a memory module provided by an embodiment of the present application. As Figure 6 shown, the device includes: A first reading module 610, configured to read the register value in the mode selection register if a preset condition is met in the current detection cycle, and determine the current power consumption monitoring mode of the memory module based on the register value in the mode selection register; A second reading module 620, configured to determine a target power consumption register from multiple power consumption registers based on the current power consumption monitoring mode, and read the register value in the target power consumption register; A first determining module 630, configured to 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.
[0076] Optionally, the multiple power consumption registers include a total power consumption register and multiple sub-rail power consumption registers. Among them, the second reading module 620 includes a first determining unit, configured to determine a target power consumption register from multiple power consumption registers based on the current power consumption monitoring mode. Specifically, the first determining unit is configured 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; If the current power consumption monitoring mode is the sub-rail power consumption analysis mode, use the multiple sub-rail power consumption registers as the target power consumption registers.
[0077] Optionally, the memory module further includes a control register, wherein the first reading module 610 includes a first reading unit, which is used to read the register value in the mode selection register if a preset condition is satisfied. Specifically, the first reading unit is used 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; If the current working state is the power consumption data mode, read the register value in the mode selection register.
[0078] Optionally, the first reading module 610 further 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, where the first power supply unit supplies power to the storage unit in the memory module.
[0079] Optionally, the memory module is powered by an independent power supply module.
[0080] Optionally, the power supply module includes a first power supply unit and a second power supply unit, and the memory module includes a storage unit, a power management integration unit, and an auxiliary unit; The first power supply unit supplies power to the storage unit and the power management integration unit; The second power supply unit supplies power to the auxiliary unit and the power management integration unit.
[0081] Optionally, 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 integration unit, and the power management integration unit is used to perform a first voltage regulation on the electrically protected first power supply voltage and then transmit it to the storage unit; The second power supply unit includes a buck unit, which is used to perform a buck processing on the electrically protected first power supply voltage to obtain a second power supply voltage and transmit the second power supply voltage to the power management integration unit, and the power management integration unit is used to perform a second voltage regulation on the second power supply voltage and then transmit it to the auxiliary unit.
[0082] Optionally, the device further includes a first acquisition module, which is used to acquire the current input power of the power supply module after determining the current total power consumption of the memory module; A second determination module, which is used to determine the current output power of the power supply module based on the current power consumption monitoring mode and the register value in the target power consumption register; A first calculation module, which is used to calculate the current power supply efficiency of the power supply module based on the current input power and the current output power of the power supply module.
[0083] A first acquisition module, configured to, after determining the current total power consumption of a memory module, collect the current input power of a first power supply unit by using a first sampling module, and use the current input power as the current input power of the power supply module.
[0084] Optionally, a second determination module, specifically configured to, if the current power consumption monitoring mode is a split-rail power consumption analysis mode, use the current total power consumption of the memory module as the current output power of the power supply module.
[0085] Optionally, a second determination module, specifically configured to, if the current power consumption monitoring mode is a total power consumption direct reading mode, collect the current input power of a second power supply unit by using a second sampling module; Use the sum of the current input power of the second power supply unit and the current total power consumption of the memory module as the current output power of the power supply module.
[0086] Optionally, the number of detection periods is multiple, and the device further includes a third determination module, configured to determine the total power consumption change information of the memory module based on the total power consumption of the memory module in multiple detection periods. For the description of the features in the corresponding embodiments of the power consumption detection device of the memory module, reference can be made to the relevant descriptions in the corresponding embodiments of the power consumption detection method of the memory module, which will not be elaborated here one by one.
[0087] An embodiment of the present application further provides an electronic device, including a memory and a processor, where 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 embodiments of the power consumption detection method of the memory module.
[0088] An embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and the computer program is configured to execute the steps in any one of the above embodiments of the power consumption detection method of the memory module when running.
[0089] In an exemplary embodiment, the above computer-readable storage medium may include, but is not limited to: USB flash drives, read-only memories (ROM for short), random access memories (RAM for short), mobile hard disks, magnetic disks, or optical disks, and other various media that can store computer programs.
[0090] An embodiment of the present application further provides a computer program product, where the computer program product includes a computer program, and the computer program, when executed by a processor, implements the steps in any one of the above embodiments of the power consumption detection method of the memory module.
[0091] Embodiments of the present application also provide another computer program product, including a non-volatile computer-readable storage medium storing a computer program, and when the computer program is executed by a processor, the steps in any of the above embodiments of the power consumption detection method for a memory module are implemented.
[0092] Those skilled in the art can further realize that the units and algorithm steps of each example described in combination with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of each example have been generally described according to functions in the above description. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. Skilled professionals can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present application.
[0093] The above has introduced in detail a method, device, medium, and program product for detecting the power consumption of a memory module provided by the present application. Specific examples are used herein to elaborate on the principle and implementation manner of the present application. The description of the above embodiments is only used to help understand the method and its core idea of the present application. It should be noted that for those of ordinary skill in the art in the technical field, without departing from the principle of the present application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the protection scope of the claims of the present application.
Claims
1. A method for detecting the power consumption of a memory module, characterized in that, The memory module includes a mode selection register and a plurality of power consumption registers. Among them, the method includes: In the current detection period, if a preset condition is satisfied, read the register value in the mode selection register, and determine the current power consumption monitoring mode of the memory module based on the register value in the mode selection register; Determine a target power consumption register from the plurality of power consumption registers based on the current power consumption monitoring mode, and read the register value in the target power consumption register; Determine the current total power consumption of the memory module based on the register value in the target power consumption register; Among them, the memory module operates in different working modes in at least two detection periods.
2. The power consumption detection method of the memory module according to claim 1, wherein The plurality of power consumption registers includes a total power consumption register and a plurality of split-rail power consumption registers. Among them, determining a target power consumption register from the plurality of 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, use the total power consumption register as the target power consumption register; If the current power consumption monitoring mode is the split-rail power consumption analysis mode, use the plurality of split-rail power consumption registers as the target power consumption registers.
3. The power consumption detection method of the memory module according to claim 1, characterized in that The memory module further includes a control register. Among them, if a preset condition is satisfied, reading the register value in the mode selection register includes: 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; If the current working state is the power consumption data mode, read the register value in the mode selection register.
4. The power consumption detection method of the memory module according to claim 3, characterized in that After determining the current working state of the memory module based on the register value in the control register, it further includes: 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, where the first power supply unit supplies power to the storage unit in the memory module.
5. The power consumption detection method of the memory module according to claim 1, wherein The memory module is powered by an independent power supply module.
6. The power consumption detection method of the memory module according to claim 5, wherein The power supply module includes a first power supply unit and a second power supply unit. 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.
7. The power consumption detection method of the memory module according to claim 6, characterized in that The first power supply unit includes an electrical protection unit, and 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 regulation on the electrically protected first power supply voltage and then transmit it to the storage unit; The second power supply unit includes a buck unit, and the buck unit is used to perform a buck processing on the electrically protected first power supply voltage 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 regulation on the second power supply voltage and then transmit it to the auxiliary unit.
8. The power consumption detection method of the memory module according to claim 7, characterized in that, After determining the current total power consumption of the memory module, it further includes: Obtaining the current input power of the power supply module; Determining the current output power of the power supply module based on the current power consumption monitoring mode and the register value in the target power consumption register; Calculating the current power supply efficiency of the power supply module based on the current input power and the current output power of the power supply module.
9. The power consumption detection method of the memory module according to claim 8, wherein The obtaining the current input power of the power supply module includes: Collecting the current input power of the first power supply unit by using the first sampling module and taking it as the current input power of the power supply module.
10. The power consumption detection method of the memory module according to claim 8, wherein The determining the current output power of the power supply 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 split-rail power consumption analysis mode, taking the current total power consumption of the memory module as the current output power of the power supply module.
11. The power consumption detection method of the memory module according to claim 8, characterized in that, The determining the current output power of the power supply 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 total power consumption direct reading mode, collecting the current input power of the second power supply unit by using the second sampling module; Taking the sum of the current input power of the second power supply unit and the current total power consumption of the memory module as the current output power of the power supply module.
12. The power consumption detection method of the memory module according to any one of claims 1-11, characterized in that, The number of the detection periods is multiple, and the method further includes: Determining the total power consumption change information of the memory module based on the total power consumption of the memory module in multiple detection periods.
13. An electronic device, characterized in that, It includes: A memory for storing a computer program; A processor for implementing the steps of the power consumption detection method of the memory module as described in any one of claims 1 to 12 when executing the computer program.
14. A computer-readable storage medium, characterized in that, A computer program is stored in the computer-readable storage medium, wherein the computer program implements the steps of the power consumption detection method of the memory module as described in any one of claims 1 to 12 when being executed by a processor.
15. A computer program product, comprising a computer program, characterized in that, The computer program implements the steps of the power consumption detection method of the memory module as described in any one of claims 1 to 12 when being executed by a processor.
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
Memory particle power consumption monitoring device
CN222762482U
Server power consumption monitoring method, apparatus and system, electronic device, and storage medium
WO2025081880A1