Server system power consumption test circuit, test method and medium
By designing M first voltage acquisition circuits and N second voltage acquisition circuits in the server system, and combining them with the system voltage acquisition circuit, the problems of low power consumption testing accuracy and poor applicability in server systems are solved, and high-precision power consumption monitoring and management are achieved.
Patent Information
- Application Number
- CN202411687757.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-22
- Publication Date
- 2025-03-11
- Estimated Expiration
- 2044-11-22
AI Technical Summary
Existing server system power consumption testing has low accuracy and poor applicability. In particular, the difficulty in obtaining system current information makes it impossible to monitor and manage the overall power consumption of the server with high precision.
A server system power consumption test circuit was designed, including M first voltage acquisition circuits, N second voltage acquisition circuits, and a system voltage acquisition circuit. By designing different voltage acquisition circuits for different power-consuming components and combining them with the control unit, high-precision power consumption testing can be achieved using existing circuit components on the board.
It achieves high-precision power consumption testing of server systems, has wide adaptability, low cost, small board area, does not affect layout and wiring, and is suitable for power consumption monitoring of different power-consuming components.
Smart Images

Figure CN119597558A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of server power consumption testing, and in particular to a server system power consumption testing circuit, testing method and medium. Background Art
[0002] As the performance of various components such as CPU, GPU, and smart network card increases, their power consumption is also increasing, and the system power consumption of servers is also increasing. Due to the increase in power consumption, especially instantaneous power consumption, a more accurate and faster power consumption reading method is needed to better monitor and manage the power consumption of the entire server and evaluate the overall performance of the server to prevent the system from powering off due to excessive instantaneous power consumption. The system power consumption can be determined by collecting system voltage information and system current information. The system current information can be obtained through the Ishare function pin of the server power supply. The voltage of the Ishare pin is proportional to the output current, but the accuracy is poor. The system current information can also be obtained through the current detection function pin of the server power supply, but only server power supplies that meet the new specifications will have current monitoring function pins. The current general server power supplies are not compatible and have poor applicability. Summary of the invention
[0003] The embodiments of the present application provide a server system power consumption test circuit, a test method and a medium, which are used to solve the problems of low accuracy and poor applicability of server system power consumption test.
[0004] In a first aspect, an embodiment of the present application provides a server system power consumption test circuit, including:
[0005] M first voltage acquisition circuits, for each first voltage acquisition circuit, the first voltage acquisition circuit is electrically connected to the server power supply, the power input terminal of the first electrical component and the first input terminal of the control unit respectively, the first voltage acquisition circuit is used to collect the branch current passing through the first electrical component, and output the first voltage of the power terminal of the first electrical component based on the branch current, wherein M is a positive integer greater than or equal to 1;
[0006] N second voltage acquisition circuits, for each second voltage acquisition circuit, the second voltage acquisition circuit is electrically connected to the server power supply, the power input terminal of the second electrical component and the first input terminal of the control unit respectively, and the second voltage acquisition circuit is used to collect the second voltage of the power input terminal of the second electrical component, wherein N is a positive integer greater than or equal to 1;
[0007] A system voltage acquisition circuit, electrically connected to the server power supply and the second input terminal of the control unit, for acquiring the system voltage of the server;
[0008] The control unit is used to determine the system power consumption of the server according to the input first voltage, the second voltage and the system voltage.
[0009] Based on the above scheme, the present application collects voltage by designing a first voltage collection circuit for the first power-consuming component and a second voltage collection circuit for the second power-consuming component, and further implements the test of the power consumption of the server system through the first voltage, the second voltage and the system voltage. The test circuit adopts different voltage collection circuits for different power-consuming components, which can realize high-precision measurement of system power consumption and has wide adaptability.
[0010] In a possible implementation, the first voltage acquisition circuit includes a first resistor and at least one electronic fuse;
[0011] For each electronic fuse, an input end of the electronic fuse is electrically connected to the server power supply, and an output end of the electronic fuse is electrically connected to a first end of the first resistor;
[0012] The second end of the first resistor is electrically connected to a power input end of the first electrical component and a first input end of the control unit.
[0013] Based on the above scheme, the test circuit uses the existing electronic fuse on the mainboard, and only needs to add a small amount of resistors and circuit elements to realize the voltage collection of the first electrical component. In addition, the electronic fuse has high accuracy, which can meet the accuracy requirements of the system power consumption test, and the test accuracy is high.
[0014] In a possible implementation, the second voltage acquisition circuit includes a second resistor, a voltage amplifier, and a third resistor;
[0015] A first end of the second resistor is electrically connected to the server power supply, and a second end of the second resistor is electrically connected to an input end of the voltage amplifier;
[0016] The output end of the voltage amplifier is electrically connected to the first end of the third resistor;
[0017] The second end of the third resistor is electrically connected to the power input end of the second electrical component and the first input end of the control unit.
[0018] Based on the above scheme, for the second electrical component without electronic fuse protection, only a small amount of resistors and circuit elements need to be added to realize the voltage collection of the second electrical component, which is low in cost. Secondly, the newly added device package in the test circuit is small, has low requirements for placement, occupies a small board area, and will not affect the overall layout and wiring of the board.
[0019] In a possible implementation, the system voltage acquisition circuit includes a fourth terminal resistor;
[0020] A first end of the fourth resistor is electrically connected to the server power supply, and a second end of the fourth resistor is electrically connected to the second input end of the control unit.
[0021] In a possible implementation, the test circuit further includes an operational amplifier unit;
[0022] The input end of the operational amplifier unit is electrically connected to the output end of each first voltage acquisition circuit and the output end of each second voltage acquisition circuit, and the output end of the operational amplifier unit is electrically connected to the first input end of the control unit;
[0023] The operational amplifier unit is used to amplify the first voltage and the second voltage, and output the amplified voltage to the first input terminal of the control unit.
[0024] Based on the above solution, by providing an operational amplifier unit before the power multi-phase controller, the first voltage and the second voltage can be amplified, so that the obtained voltage is easier to detect, thereby improving the detection accuracy.
[0025] In a possible implementation, the operational amplification unit includes a fifth resistor, a sixth resistor and an operational amplifier;
[0026] The first input terminal of the operational amplifier is electrically connected to the output terminal of each first voltage acquisition circuit and the output terminal of each second voltage acquisition circuit, the second input terminal of the operational amplifier is electrically connected to the first end of the fifth resistor and the first end of the sixth resistor, and the output terminal of the operational amplifier is electrically connected to the second end of the sixth resistor and the first input terminal of the control unit;
[0027] The second end of the fifth resistor is electrically connected to the power supply terminal of the operational amplifier.
[0028] In a possible implementation, a ratio of a first resistor in a first target voltage acquisition circuit to a first resistor in a second target voltage acquisition circuit is equal to a ratio of a number of electronic fuses in the second target voltage acquisition circuit to a number of electronic fuses in the first target voltage acquisition circuit;
[0029] The first target voltage acquisition circuit and the second target voltage acquisition circuit are any two of the M first voltage acquisition circuits.
[0030] Based on the above solution, the corresponding relationship between voltage and current in different first voltage acquisition circuits can be made the same, thereby facilitating calculation.
[0031] In a possible implementation, the resistance value of the third resistor is calculated in the following manner:
[0032] Calculating a first product of a resistance value of a target first resistor, a resistance value of the second resistor, a gain of the voltage amplifier, and a number of target electronic fuses, and calculating a second product of a resistance value of a grounding resistor of the target electronic fuse and a current scaling ratio of the target electronic fuse;
[0033] Using the ratio of the first product to the second product as the resistance value of the third resistor;
[0034] The target first resistor and the target electronic fuse are the first resistor and the electronic fuse in any one of the M first voltage acquisition circuits.
[0035] Based on the above scheme, when the third resistance value satisfies the above situation, the correspondence between the voltage and the current in the first voltage acquisition circuit and the second voltage acquisition circuit can be the same, and then after determining the first voltage and the second voltage, the system current is determined based on the correspondence between the voltage and the current, the first voltage and the second voltage, thereby realizing the test of the power consumption of the server system.
[0036] In a possible implementation, when determining the system power consumption of the server according to the input first voltage, the second voltage, and the system voltage, the control unit is specifically configured to:
[0037] Determine a sum of the first voltages acquired by the M first voltage acquisition circuits and a sum of the second voltages acquired by the N second voltage acquisition circuits;
[0038] Based on the configured correspondence between voltage and current, determine a first current corresponding to the sum of the first voltages and a second current corresponding to the sum of the second voltages;
[0039] The system power consumption of the server is determined according to the first current, the second current, and the system voltage.
[0040] In a second aspect, an embodiment of the present application provides a method for testing power consumption of a server system, which is applied to the test circuit described in the first aspect and different implementations of the first aspect, and the test method includes:
[0041] For the M first voltage acquisition circuits, a branch current between a server power supply and a power input terminal of a first electrical component acquired by the first voltage acquisition circuit is acquired, and a first voltage of a power terminal of the first electrical component is output based on the branch current;
[0042] For N second voltage acquisition circuits, obtaining a second voltage of a power input terminal of a second electrical component acquired by the second voltage acquisition circuit;
[0043] A system voltage acquisition circuit is electrically connected to the server power supply and the second input terminal of the control unit respectively, and is used to acquire the system voltage of the server;
[0044] The system power consumption of the server is determined according to the first voltages acquired by the M first voltage acquisition circuits, the second voltages acquired by the N second voltage acquisition circuits, and the system voltage.
[0045] In a possible implementation, determining the system power consumption of the server according to the acquired first voltages acquired by the M first voltage acquisition circuits, the second voltages acquired by the N second voltage acquisition circuits, and the system voltage includes:
[0046] Determine a sum of the first voltages acquired by the M first voltage acquisition circuits and a sum of the second voltages acquired by the N second voltage acquisition circuits;
[0047] Based on the configured correspondence between voltage and current, determine a first current corresponding to the sum of the first voltages and a second current corresponding to the sum of the second voltages;
[0048] The system power consumption of the server is determined according to the first current, the second current, and the system voltage.
[0049] In a possible implementation, the corresponding relationship between the configured voltage and current is determined in the following manner:
[0050] Determine a first voltage and current correspondence relationship of the first voltage acquisition circuit, and a second voltage and current correspondence relationship of the second voltage acquisition circuit;
[0051] The voltage-current correspondence relationship when the first voltage-current correspondence relationship and the second voltage-current correspondence relationship are equal is used as the configured voltage-current correspondence relationship.
[0052] In a third aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium includes computer instructions. When the computer instructions are executed by a computer, the method described in the first aspect and different implementation methods of the first aspect is implemented.
[0053] In addition, the technical effects brought about by any implementation method of the second to fourth aspects can refer to the technical effects brought about by the first aspect and different implementation methods of the first aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0055] Figure 1 A schematic diagram of a circuit for testing power consumption of a server system provided in an embodiment of the present application;
[0056] Figure 2 A schematic diagram of another circuit for testing power consumption of a server system provided in an embodiment of the present application;
[0057] Figure 3 A schematic diagram of a test circuit for power consumption of another server system provided in an embodiment of the present application;
[0058] Figure 4 A schematic diagram of a method for testing power consumption of a server system provided in an embodiment of the present application;
[0059] Figure 5 A schematic diagram of an execution device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0060] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various different configurations.
[0061] Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the present application for which protection is sought, but merely represents selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.
[0062] It should be noted that relational terms such as "first" and "second" are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" 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 includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0063] In order to facilitate understanding of the solution proposed in this application, the technical terms involved in this application are explained below.
[0064] Server system power consumption (Power System, PSYS) usually refers to the overall power consumption of the server, including the power consumption of each power-consuming component (such as processor, memory, storage, network interface, disk, etc.) and the loss during transmission. Server system power consumption can be used to monitor and manage the energy efficiency of the server to ensure the operation of the system.
[0065] Programmable electronic fuse (Efuse), also known as electronic fuse, is a programmable circuit protection device to prevent abnormal conditions such as excessive current and excessive voltage from damaging the circuit. When overcurrent or overvoltage occurs in the circuit, the eFuse will detect these abnormalities through internal sensors and trigger a disconnection action to quickly cut off the power supply to avoid overload damage. Unlike traditional fuses, electronic fuses can self-disconnect and repair through electronic control when a fault occurs, without the need to replace physical components.
[0066] Common Redundant Power Supply (CRPS) is a standardized server power supply that mainly serves servers, network equipment and other high-reliability equipment to improve system availability and fault tolerance. The introduction of CRPS helps avoid the risk of system downtime caused by a single power failure and is an important technical means to improve equipment reliability and stability.
[0067] As the performance of various components such as CPU, GPU, and smart network card improves, their power consumption is also increasing, and the system power consumption of servers is also getting higher and higher. Due to the increase in power consumption, especially instantaneous power consumption, a more accurate and faster power consumption reading method is needed to better monitor and manage the power consumption of the server, evaluate the overall performance of the server, and prevent the system from powering off due to excessive instantaneous power consumption.
[0068] In order to improve the power consumption monitoring accuracy and the power consumption reading rate, the power multi-phase controller that supplies power to the central processing unit (CPU) collects the system current signal and voltage signal. The system power consumption is equal to the product of the system voltage and the system current. Then, the system power consumption information is transmitted to the CPU through the serial voltage identification protocol (Serial Voltage Identification, SVID) protocol, so that the CPU can obtain PSYS information. The method of obtaining power consumption information through the SVID bus is faster than the traditional method of obtaining power consumption through the power management and monitoring protocol (Power Management Bus, PMBUS). The CPU can adjust its own power consumption at a faster speed to achieve the goal of controlling the system power consumption. If the PSYS power consumption is lower than the maximum output power consumption of the CRPS, the CPU can continue to increase the frequency, increase power consumption, and improve performance; if the PSYS power consumption exceeds the maximum output power consumption of the CRPS, the CPU reduces the frequency, reduces the CPU power consumption, and reduces performance, thereby avoiding the system power failure caused by the overcurrent protection triggered by the CRPS power supply.
[0069] PSYS power consumption can be determined by collecting system voltage information and system current information. Among them, system voltage information is relatively easy to obtain. Voltage acquisition is performed at the input end of the board, and the voltage signal is connected to the voltage acquisition pin of the power multi-phase controller. System current signals are more difficult to obtain. There are currently two main methods:
[0070] The first method is to use the Ishare function pin of the CRPS power supply. The Ishare pin is usually used as the current sharing bus of the CRPS. The voltage of the Ishare pin is proportional to the output current. The Ishare signal is converted into a voltage signal and transmitted to the power multi-phase controller, so that the CPU can obtain PSYS information. However, Ishare is a current sharing bus between multiple CRPSs. Its function is to share current signals between CRPSs to achieve current sharing. However, its own accuracy is poor and cannot meet the accuracy requirements of PSYS. In addition, the conversion ratio of the Ishare pin voltage and current is different for CRPSs of different powers. A server needs to support CRPS power supplies of different powers. This requires designing different parameters on the board to match different CRPSs, which brings great difficulty to design and testing, and will further reduce the accuracy of power consumption monitoring.
[0071] The second method is to use the current monitoring function pin of CRPS. The pin voltage is proportional to the output current. By connecting this pin to the power multi-phase controller, the CPU can obtain PSYS information. However, only CRPS that meet the new specifications will have a current monitoring function pin. The current common CRPS power supply is not compatible with the design and has poor applicability.
[0072] Based on the above problems, the embodiment of the present application provides a server system voltage test circuit, a test method and a medium, wherein the test circuit includes M first voltage acquisition circuits, N second voltage acquisition circuits, a system voltage acquisition circuit and a control unit. Each first voltage acquisition circuit is electrically connected to the server power supply, the power input terminal of the first electrical component and the first input terminal of the control unit respectively, and is used to collect the branch current between the server power supply and the power input terminal of the first electrical component, and output the first voltage of the power supply terminal of the first electrical component based on the branch current. Each second voltage acquisition circuit is electrically connected to the server power supply, the power input terminal of the second electrical component and the first input terminal of the control unit respectively, and is used to collect the second voltage of the power input terminal of the second electrical component. The first electrical component is an electrical component protected by an electronic fuse, and the second electrical component is an electrical component not protected by an electronic fuse. The system voltage acquisition circuit is electrically connected to the server power supply and the second input terminal of the control unit respectively, and is used to collect the system voltage of the server. Further, the control unit determines the system power consumption of the server according to the input first voltage, the second voltage and the system voltage. Specifically, the system current corresponding to the first voltage and the second voltage can be determined by the relationship between the voltage and the current, and then the system power consumption of the server can be determined by the system current and the system voltage. Through the above method, the voltage acquisition circuit collects the voltage by designing a first voltage acquisition circuit for the first power-consuming component and a second voltage acquisition circuit for the second power-consuming component, and then the system current is determined based on the corresponding relationship between the voltage and the circuit. The test circuit uses the existing circuit components on the board, with little modification to the board and high test accuracy.
[0073] The server system voltage test circuit proposed in the embodiment of the present application is described in detail below. The test circuit includes M first voltage acquisition circuits, N second voltage acquisition circuits, a system voltage acquisition circuit and a control unit. Figure 1 , Figure 1 A schematic diagram of a server system voltage test circuit provided in an embodiment of the present application. Taking M equal to 3 and N equal to 2 as an example, the test circuit includes a first voltage acquisition circuit 110, a first voltage acquisition circuit 120, a first voltage acquisition circuit 130, a second voltage acquisition circuit 210, a second voltage acquisition circuit 220, a system voltage acquisition circuit 300, and a control unit 400.
[0074] In some embodiments, for each first voltage acquisition circuit, the first voltage acquisition circuit is electrically connected to the server power supply, the power input terminal of the first electrical component, and the first input terminal of the control unit respectively. The first voltage acquisition circuit is used to acquire a branch current between the server power supply and the power input terminal of the first electrical component, and output a first voltage at the power terminal of the first electrical component based on the branch current.
[0075] As an example, the first voltage acquisition circuit 110 is electrically connected to the server power supply 500, the power input terminal of the first power component 11, and the first input terminal of the control unit 400, respectively. The first voltage acquisition circuit 110 is used to acquire the branch current passing through the first power component 11, and output the first voltage of the power terminal of the first power component 11 based on the branch current. The first voltage acquisition circuit 120 is electrically connected to the server power supply 500, the power input terminal of the first power component 12, and the first input terminal of the control unit 400, respectively. The first voltage acquisition circuit 120 is used to acquire the branch current between the server power supply 500 and the power input terminal of the first power component 12, and output the first voltage of the power terminal of the first power component 12 based on the branch current. The first voltage acquisition circuit 130 is electrically connected to the server power supply 500, the power input terminal of the first power component 13, and the first input terminal of the control unit 400, respectively. The first voltage acquisition circuit 130 is used to acquire a branch current between the server power supply 500 and the power input terminal of the first power-consuming component 13 , and output a first voltage of the power terminal of the first power-consuming component 13 based on the branch current.
[0076] In some embodiments, for each second voltage acquisition circuit, the second voltage acquisition circuit is electrically connected to the server power supply, the power input terminal of the second electrical component and the first input terminal of the control unit respectively, and the second voltage acquisition circuit is used to collect the second voltage at the power input terminal of the second electrical component.
[0077] As an example, the second voltage acquisition circuit 210 is electrically connected to the server power supply 500, the power input terminal of the second power component 21, and the first input terminal of the control unit 400, respectively, and the second voltage acquisition circuit 210 is used to acquire the second voltage of the power input terminal of the second power component 21. The second voltage acquisition circuit 220 is electrically connected to the server power supply 500, the power input terminal of the second power component 22, and the first input terminal of the control unit 400, respectively, and the second voltage acquisition circuit 220 is used to acquire the second voltage of the power input terminal of the second power component 22.
[0078] The system voltage acquisition circuit 300 is electrically connected to the server power supply 500 and the second input terminal of the control unit 400 respectively, and is used to acquire the system voltage of the server.
[0079] The control unit 400 is used to determine the system power consumption of the server according to the input first voltage, the second voltage and the system voltage.
[0080] In some embodiments, the first voltage acquisition circuit includes a first resistor and at least one electronic fuse. For each electronic fuse, the input end of the electronic fuse is electrically connected to the server power supply, the output end of the electronic fuse is electrically connected to the first end of the first resistor; the second end of the first resistor is electrically connected to the power input end of the first electrical component and the first input end of the control unit.
[0081] As an example, the first voltage acquisition circuit 110 includes a first resistor R111, an electronic fuse 112 and an electronic fuse 113. The electronic fuse 112 and the electronic fuse 113 are connected in parallel, and the grounding resistance and current monitoring pin current scaling ratio of the electronic fuse 112 and the electronic fuse 113 are the same. The input end of the electronic fuse 112 is electrically connected to the server power supply 500, and the output end of the electronic fuse 112 is electrically connected to the first end of the first resistor R111. The input end of the electronic fuse 113 is electrically connected to the server power supply 500, and the output end of the electronic fuse 113 is electrically connected to the first end of the first resistor R111. The second end of the first resistor R111 is electrically connected to the power input end of the first electrical component 11 and the first input end of the control unit 400.
[0082] Similarly, the number of electronic fuses in the first voltage acquisition circuit 120 and the first voltage acquisition circuit 130 may be the same as or different from the number of electronic fuses in the first voltage acquisition circuit 110. Take the first voltage acquisition circuit 120 including the first resistor R121, the electronic fuse 122 and the electronic fuse 123 as an example. Among them, the electronic fuse 122 and the electronic fuse 123 are connected in parallel. The input end of the electronic fuse 122 is electrically connected to the server power supply 500, and the output end of the electronic fuse 122 is electrically connected to the first end of the first resistor R121. The input end of the electronic fuse 123 is electrically connected to the server power supply 500, and the output end of the electronic fuse 123 is electrically connected to the first end of the first resistor R121. The second end of the first resistor R121 is electrically connected to the power input end of the first electrical component 12 and the first input end of the control unit 400.
[0083] Take the first voltage acquisition circuit 130 including the first resistor R131 and the electronic fuse 132 as an example. The input end of the electronic fuse 132 is electrically connected to the server power supply 500, and the output end of the electronic fuse 132 is electrically connected to the first end of the first resistor R131. The second end of the first resistor R131 is electrically connected to the power input end of the first power-consuming component 13 and the first input end of the control unit 400.
[0084] In some embodiments, the second voltage acquisition circuit includes a second resistor, a voltage amplifier, and a third resistor. The first end of the second resistor is electrically connected to the server power supply, the second end of the second resistor is electrically connected to the input end of the voltage amplifier; the output end of the voltage amplifier is electrically connected to the first end of the third resistor; the second end of the third resistor is electrically connected to the power input end of the second electrical component and the first input end of the control unit.
[0085] As an example, the second voltage acquisition circuit 210 includes a second resistor R211, a voltage amplifier 212, and a third resistor R213. The first end of the second resistor R211 is electrically connected to the server power supply 500, and the second end of the second resistor R211 is electrically connected to the input end of the voltage amplifier 212; the output end of the voltage amplifier 212 is electrically connected to the first end of the third resistor R213; the second end of the third resistor R213 is electrically connected to the power input end of the second electrical component 21 and the first input end of the control unit 400. The second voltage acquisition circuit 220 includes a second resistor R221, a voltage amplifier 222, and a third resistor R223. The first end of the second resistor R221 is electrically connected to the server power supply 500, and the second end of the second resistor R221 is electrically connected to the input end of the voltage amplifier 222; the output end of the voltage amplifier 222 is electrically connected to the first end of the third resistor R223; the second end of the third resistor R223 is electrically connected to the power input end of the second electrical component 22 and the first input end of the control unit 400.
[0086] In some embodiments, the system voltage acquisition circuit 300 includes a fourth resistor R301 , a first end of the fourth resistor R301 is electrically connected to the server power supply 500 , and a second end of the fourth resistor R301 is electrically connected to the second input end of the control unit 400 .
[0087] In some embodiments, the control unit 400 includes a power multi-phase controller 401 and a central processing unit CPU 402, wherein the first input terminal of the power multi-phase controller 401 is electrically connected to the output terminal of each first voltage acquisition circuit and the output terminal of each second voltage acquisition circuit, and the second input terminal of the power multi-phase controller 401 is electrically connected to the second end of the fourth resistor. The power multi-phase controller 401 and the central processing unit CPU 402 transmit data via the SVID protocol. The power multi-phase controller 401 is used to determine the power consumption of the server system according to the input first voltage, the second voltage and the system voltage. Further, the power multi-phase controller 401 transmits the power consumption of the server system to the central processing unit CPU 402 via the SVID protocol.
[0088] In some embodiments, the test circuit further includes an operational amplifier unit. An input end of the operational amplifier unit is electrically connected to an output end of each first voltage acquisition circuit and an output end of each second voltage acquisition circuit, and an output end of the operational amplifier unit is electrically connected to a first input end of the control unit. The operational amplifier unit is used to amplify the first voltage and the second voltage, and output the amplified voltage to the first input end of the control unit.
[0089] See also Figure 2 As shown, the test circuit includes an input end of the operational amplifier unit 600 electrically connected to the output end of the first voltage acquisition circuit 110, the output end of the first voltage acquisition circuit 120, the output end of the first voltage acquisition circuit 130, the output end of the second voltage acquisition circuit 210, and the output end of the second voltage acquisition circuit 220, and the output end of the operational amplifier unit 600 is electrically connected to the first input end of the control unit 400.
[0090] In some embodiments, the operational amplifier unit 600 includes a fifth resistor R601, a sixth resistor R602, and an operational amplifier 603; the first input terminal of the operational amplifier 603 is electrically connected to the output terminal of each first voltage acquisition circuit and the output terminal of each second voltage acquisition circuit. For example, the first input terminal of the operational amplifier 603 is electrically connected to the output terminal of the first voltage acquisition circuit 110, the output terminal of the first voltage acquisition circuit 120, the output terminal of the first voltage acquisition circuit 130, the output terminal of the second voltage acquisition circuit 210, and the output terminal of the second voltage acquisition circuit 220. The second input terminal of the operational amplifier 603 is electrically connected to the first terminal of the fifth resistor R601 and the first terminal of the sixth resistor R602, and the output terminal of the operational amplifier 603 is electrically connected to the second terminal of the sixth resistor R602 and the first input terminal of the control unit 400. The second terminal of the fifth resistor R601 is electrically connected to the power supply terminal of the operational amplifier 603.
[0091] In some embodiments, the ratio of the first resistor in the first target voltage acquisition circuit to the first resistor in the second target voltage acquisition circuit is equal to the ratio of the number of electronic fuses in the second target voltage acquisition circuit to the number of electronic fuses in the first target voltage acquisition circuit. The first target voltage acquisition circuit and the second target voltage acquisition circuit are any two of the M first voltage acquisition circuits.
[0092] As an example, taking the first target voltage acquisition circuit as the first voltage acquisition circuit 110 and the second target voltage acquisition circuit as the first voltage acquisition circuit 130 as an example, the ratio of the first resistor R111 in the first voltage acquisition circuit 110 to the first resistor R131 in the first voltage acquisition circuit 130 is equal to the ratio of the number of electronic fuses in the first voltage acquisition circuit 130 to the number of electronic fuses in the first voltage acquisition circuit 110. For example, R11 / R13=N3 / N1, wherein R11 represents the resistance value of the first resistor R111, R13 represents the resistance value of the first resistor R131, N3 represents the number of electronic fuses in the first voltage acquisition circuit 130, and N1 represents the number of electronic fuses in the first voltage acquisition circuit 110. According to the above example, the first voltage acquisition circuit 130 includes one electronic fuse 132, and the first voltage acquisition circuit 110 includes two electronic fuses (electronic fuse 112 and electronic fuse 113), then R11 / R13=1 / 2.
[0093] In some embodiments, the resistance of the third resistor is calculated by: calculating a first product of the resistance of the target first resistor, the resistance of the second resistor, the gain of the voltage amplifier, and the number of target electronic fuses, and calculating a second product of the resistance of the grounding resistor of the target electronic fuse and the current scaling ratio of the target electronic fuse; and taking the ratio of the first product to the second product as the resistance of the third resistor;
[0094] The target first resistor and the target electronic fuse are the first resistor and the electronic fuse in any one of the M first voltage acquisition circuits.
[0095] Taking the target first resistor and the target electronic fuse as the first resistor and the electronic fuse in the first voltage acquisition circuit 110 as an example, R3=(R11×R2×T 放 ×N1) / (R 地 ×T 缩 ), wherein R11 represents the resistance value of the first resistor R111 in the first voltage acquisition circuit 110, R2 represents the resistance value of the second resistor, T 放 represents the gain of the voltage amplifier, N1 represents the number of electronic fuses in the first voltage acquisition circuit 110, and R 地 Indicates the grounding resistance of the electronic fuse, T 缩 Indicates the current scaling ratio of the electronic fuse in the first voltage acquisition circuit 110 .
[0096] In some embodiments, the corresponding relationship between the configured voltage and current may be determined in the following manner:
[0097] Determine a first voltage and current correspondence relationship of a first voltage acquisition circuit, and a second voltage and current correspondence relationship of a second voltage acquisition circuit;
[0098] The voltage-current correspondence relationship when the first voltage-current correspondence relationship and the second voltage-current correspondence relationship are equal is used as the configured voltage-current correspondence relationship.
[0099] Specifically, for M first voltage acquisition circuits, it is assumed that the first first voltage acquisition circuit includes a Efuses, and the corresponding first resistor is R11; the second first voltage acquisition circuit includes b Efuses, and the corresponding first resistor is R12, and so on; then the corresponding relationship between voltage and current in the first voltage acquisition circuit is expressed as: X=(R12 / / R13 / / R14... / / Rm) / R11*K / a, wherein R12 / / R13 / / R14... / / Rm is used to represent the parallel value of the first resistors in other first voltage acquisition circuits except the first first voltage acquisition circuit; K is the current scaling ratio of the current monitoring pin of the Efuse chip, which is generally 10uA / A.
[0100] For N second voltage acquisition circuits, assuming that the second resistor in the first second voltage acquisition circuit is represented by Rd, and the corresponding resistor is RD; the second resistor in the second second voltage acquisition circuit is represented by Re, and the corresponding resistor is RE, and so on; then in the second voltage acquisition circuit, the corresponding relationship between voltage and current is expressed as Y=(RE / / RF...) / RD*B, where RE / / RF... represents the parallel value of the second resistors in other second voltage acquisition circuits except the first second voltage acquisition circuit, and B is the amplification factor of the voltage amplifier in the first second voltage acquisition circuit.
[0101] When X=Y, the corresponding relationship between voltage and current of the M first voltage acquisition circuits and the N second voltage acquisition circuits is the same. Further, the corresponding relationship between voltage and current configured in the power multi-phase controller can be expressed as: Z=X*C, where C is the gain of the operational amplifier.
[0102] The embodiment of the present application provides a test circuit for power consumption of a server system. A low-cost test circuit with high monitoring accuracy is designed without making major adjustments to the board layout. Figure 3 As shown, it is a circuit diagram of the test circuit. Taking the electronic fuse as Efuse, the second resistor as a precision resistor, and the control unit including a power multi-phase controller and a central processing unit as an example, the specific contents of the test circuit are described in detail below.
[0103] According to the types of electrical components in the server system and the system power supply topology, the electrical components in the server system are classified into two categories: one is the electrical components that require an Efuse to be placed at the input end. This part can directly use the existing circuits on the board without adding additional Efuse; the other part is the electrical components that do not require an Efuse to be placed at the input end. This part requires placing precision resistors at the power supply entrance of the electrical components to monitor power consumption through precision resistors.
[0104] Specifically, in the distributed Efuse protection solution used on the motherboard, the number of Efuses in each group may be 1 or more in parallel, and the number is determined by the load current. Figure 3 In the example, there are three groups of Efuse chips in the system, and the number of Efuse chips used in each group is a, b, and c respectively. The current scaling ratio of the current monitoring pin of each Efuse chip is the same, and the resistance of the current monitoring pin to ground is the same. As an example, the current scaling ratio of the current monitoring pin of the Efuse chip is 10uA / A, and the resistance of the current monitoring pin of each chip to ground is set to 2Kohm; after the three groups of Efuse chips are designed in parallel, the relationship between the voltage and current of the current monitoring pin is: 20 / a mV / A, 20 / b mV / A, 20 / c mV / A.
[0105] For electrical components on the motherboard that do not use the Efuse chip, a precision resistor can be placed at the input end of the power supply inlet to collect the voltage difference across the precision resistor. The current I flowing through the precision resistor = voltage difference V / precision resistor resistance Rd. In some scenarios, in order to reduce the loss on the precision resistor, a precision resistor with a small resistance can be selected. At this time, the signal collected on the resistor (current scaling ratio) is very small and needs to be amplified. The voltage difference on the precision resistor is transmitted to the voltage amplifier PU1. Among them, the voltage amplifier is a voltage amplifier with a fixed amplification ratio. As an example, a 50x chip can be selected. Therefore, the voltage and current relationship corresponding to the precision resistor is: Rd*50mV / A;
[0106] At the input end of the board, the voltage signal is collected and connected to the power multi-phase controller through R_7 to obtain the system voltage signal.
[0107] In some embodiments, the ratio of voltage and current of the signals output by each group of Efuse and precision resistor is different, so these signals cannot be directly connected together. A resistor with a large resistance value needs to be connected in series on each group of signals. According to the signal size, the resistance value is set in the opposite ratio, that is, R_1 / R_2 / R_3 needs to be set to: the ratio of the opposite relationship between the voltage and current of the current monitoring pin, and the setting ratio is: R_1*a=R_2*b=R_3*c; the resistance value of the series resistor R4 at the back end of PU1 is also set in the opposite ratio, that is: R_1 / (20 / a)=R_4 / (Rd*50); After the resistance value of R_1 / R_2 / R_3 / R_4 is selected, the matching of the voltage signals of each part (that is, the voltage expression form of the current signal when calculating the power) is completed, and the groups of signals are connected together to complete the voltage signal accumulation. At this time, the same current is applied to any part, and the output voltage is the same.
[0108] Furthermore, after each group of signals is connected together, the ratio of the voltage and current signals obtained, Gain, is very low. The more Efuse or precision resistor groups are grouped, the smaller the Gain. If the Gain is too small, the voltage delivered to the power controller will be relatively low. Too low a voltage signal will also affect the monitoring accuracy, so the Gain can be amplified. PU2 is an operational amplifier with an amplification factor of: R_6 / R_5+1. After the amplification, the Gain signal is output to the power multi-phase controller, and the power controller obtains the system voltage signal information used to describe the system current. Furthermore, the power controller determines the system current based on the corresponding relationship between voltage and current.
[0109] The power controller obtains system voltage and system current information. The power controller and the central controller CPU are connected through the serial voltage identification protocol SVID bus. Through the SVID protocol, the CPU obtains the system power consumption information of the current system and the system's CRPS output capability information. The CPU can adjust its own power consumption accordingly and perform dynamic CPU power consumption regulation.
[0110] Through the above test circuit, using the existing Efuse solution on the motherboard, only a small amount of precision resistors and circuit elements need to be added to realize the test of server system power consumption, and the cost is relatively low. Secondly, the newly added device package in the test circuit of this application is relatively small, with low requirements for placement, and occupies a small area of the board, which will not affect the overall layout and wiring of the board. In addition, the Efuse chip and precision resistors have high precision, coupled with the influence of wiring on precision, the accuracy of the power controller converting analog signals into digital signals, and the accuracy of reading system power consumption, can meet the accuracy requirements of system power consumption testing as a whole, and the test accuracy is relatively high.
[0111] Based on the same technical concept, the present application embodiment provides a test method, which is applied to the test circuit described above. Figure 4 As shown, the test method includes the following steps:
[0112] S401, for M first voltage acquisition circuits, obtaining a branch current between a server power supply and a power input terminal of a first electrical component acquired by the first voltage acquisition circuit, and outputting a first voltage of a power terminal of the first electrical component based on the branch current;
[0113] S402, for N second voltage acquisition circuits, obtaining a second voltage of a power input terminal of a second electrical component acquired by the second voltage acquisition circuit;
[0114] S403, obtaining a system voltage acquisition circuit, which is electrically connected to the server power supply and the second input terminal of the control unit respectively, for acquiring the system voltage of the server;
[0115] S404: Determine the system power consumption of the server according to the acquired first voltages acquired by the M first voltage acquisition circuits, the second voltages acquired by the N second voltage acquisition circuits, and the system voltage.
[0116] In some embodiments, when determining the system power consumption of a server based on the first voltages acquired by M first voltage acquisition circuits, the second voltages acquired by N second voltage acquisition circuits, and the system voltage, it is specifically implemented in the following manner: determining the sum of the first voltages acquired by the M first voltage acquisition circuits and the sum of the second voltages acquired by the N second voltage acquisition circuits; determining the first current corresponding to the sum of the first voltages and the second current corresponding to the sum of the second voltages based on the correspondence between the configured voltages and currents; and determining the system power consumption of the server based on the first current, the second current, and the system voltage.
[0117] In some scenarios, the sum of the first voltage and the sum of the second voltage may be added together to obtain a total voltage, and then based on the correspondence between voltage and current, the system current corresponding to the total voltage may be determined, and then the system power consumption of the server may be determined by the system current and the system voltage.
[0118] In some embodiments, the corresponding relationship between the configured voltage and current is determined by:
[0119] Determine a first voltage and current correspondence relationship of a first voltage acquisition circuit, and a second voltage and current correspondence relationship of a second voltage acquisition circuit;
[0120] The voltage-current correspondence relationship when the first voltage-current correspondence relationship and the second voltage-current correspondence relationship are equal is used as the configured voltage-current correspondence relationship.
[0121] Specifically, for M first voltage acquisition circuits, assuming that the first first voltage acquisition circuit includes a Efuses, the corresponding first resistor is R11; the second first voltage acquisition circuit includes b Efuses, the corresponding first resistor is R12, and so on; then the corresponding relationship between voltage and current in the first voltage acquisition circuit is expressed as: X=(R12 / / R13 / / R14... / / Rm) / R11*K / a, wherein R12 / / R13 / / R14... / / Rm is used to represent the parallel value of the first resistors in other first voltage acquisition circuits except the first first voltage acquisition circuit; K is the basic corresponding relationship between voltage and current of the Efuse chip, generally 10uA / A.
[0122] For N second voltage acquisition circuits, assuming that the second resistor in the first second voltage acquisition circuit is represented by Rd, and the corresponding resistor is RD; the second resistor in the second second voltage acquisition circuit is represented by Re, and the corresponding resistor is RE, and so on; then in the second voltage acquisition circuit, the corresponding relationship between voltage and current is expressed as Y=(RE / / RF...) / RD*B, where RE / / RF... represents the parallel value of the second resistors in other second voltage acquisition circuits except the first second voltage acquisition circuit, and B is the amplification factor of the voltage amplifier in the first second voltage acquisition circuit;
[0123] When X=Y, the corresponding relationship between voltage and current of the M first voltage acquisition circuits and the N second voltage acquisition circuits is the same. Further, the corresponding relationship between voltage and current configured in the power multi-phase controller can be expressed as: Z=X*C, where C is the gain of the operational amplifier.
[0124] Based on the same technical concept, the present application embodiment provides an execution device 500, please refer to Figure 5 The device 500 can implement any step of the server system power consumption test method discussed above, and will not be described again here to avoid repetition. The device 500 includes a memory 501 and a processor 502 .
[0125] The memory 501 is used to store program instructions;
[0126] The processor 502 is used to call the program instructions stored in the memory and execute the above-mentioned server system power consumption test method according to the obtained program.
[0127] In the embodiment of the present application, the processor 502 may be a general-purpose processor, a digital signal processor, an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component, and may implement or execute the methods, steps, and logic block diagrams disclosed in the embodiment of the present application. The general-purpose processor may be a microprocessor or any conventional processor, etc. The steps of the method disclosed in the embodiment of the present application may be directly embodied as being executed by a hardware processor, or may be executed by a combination of hardware and software modules in the processor.
[0128] Memory 501, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer executable programs and modules. Memory 501 may include at least one type of storage medium, such as flash memory, hard disk, multimedia card, card-type memory, random access memory (Random Access Memory, RAM), static random access memory (Static Random Access Memory, SRAM), programmable read-only memory (Programmable Read Only Memory, PROM), read-only memory (Read Only Memory, ROM), electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, EEPROM), magnetic storage, disk, optical disk, etc. Memory 501 is any other medium that can be used to carry or store a desired program code in the form of an instruction or data structure and can be accessed by a computer, but is not limited thereto. The memory 501 in the embodiment of the present application can also be a circuit or any other device that can realize a storage function, for storing program instructions and / or data.
[0129] Based on the same technical concept, an embodiment of the present application provides a computer-readable storage medium, including computer program instructions, which, when executed on a computer, causes the computer to execute the server system power consumption test method discussed above. Since the principle of solving the problem by the above-mentioned computer-readable storage medium is similar to that of the server system power consumption test method, the implementation of the above-mentioned computer-readable storage medium can refer to the implementation of the method, and the repeated parts will not be repeated.
[0130] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0131] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0132] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0133] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0134] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A server system power consumption test circuit, characterized in that: include: M first voltage acquisition circuits, for each first voltage acquisition circuit, the first voltage acquisition circuit is electrically connected to the server power supply, the power input terminal of the first electrical component and the first input terminal of the control unit respectively, the first voltage acquisition circuit is used to collect the branch current passing through the first electrical component, and output the first voltage of the power terminal of the first electrical component based on the branch current, wherein M is a positive integer greater than or equal to 1; N second voltage acquisition circuits, for each second voltage acquisition circuit, the second voltage acquisition circuit is electrically connected to the server power supply, the power input terminal of the second electrical component and the first input terminal of the control unit respectively, and the second voltage acquisition circuit is used to collect the second voltage of the power input terminal of the second electrical component, wherein N is a positive integer greater than or equal to 1; A system voltage acquisition circuit, electrically connected to the server power supply and the second input terminal of the control unit, for acquiring the system voltage of the server; The control unit is used to determine the system power consumption of the server according to the input first voltage, the second voltage and the system voltage.
2. The test circuit according to claim 1, characterized in that: The first voltage acquisition circuit includes a first resistor and at least one electronic fuse; For each electronic fuse, an input end of the electronic fuse is electrically connected to the server power supply, and an output end of the electronic fuse is electrically connected to a first end of the first resistor; The second end of the first resistor is electrically connected to a power input end of the first electrical component and a first input end of the control unit.
3. The test circuit according to claim 2, characterized in that: The second voltage acquisition circuit includes a second resistor, a voltage amplifier and a third resistor; A first end of the second resistor is electrically connected to the server power supply, and a second end of the second resistor is electrically connected to an input end of the voltage amplifier; The output end of the voltage amplifier is electrically connected to the first end of the third resistor; The second end of the third resistor is electrically connected to the power input end of the second electrical component and the first input end of the control unit.
4. The test circuit according to claim 1, characterized in that: The system voltage acquisition circuit includes a fourth terminal resistor; A first end of the fourth resistor is electrically connected to the server power supply, and a second end of the fourth resistor is electrically connected to the second input end of the control unit.
5. The test circuit according to claim 1, characterized in that: The test circuit also includes an operational amplifier unit; The input end of the operational amplifier unit is electrically connected to the output end of each first voltage acquisition circuit and the output end of each second voltage acquisition circuit, and the output end of the operational amplifier unit is electrically connected to the first input end of the control unit; The operational amplifier unit is used to amplify the first voltage and the second voltage, and output the amplified voltage to the first input terminal of the control unit.
6. The test circuit according to claim 5, characterized in that: The operational amplifier unit includes a fifth resistor, a sixth resistor and an operational amplifier; The first input terminal of the operational amplifier is electrically connected to the output terminal of each first voltage acquisition circuit and the output terminal of each second voltage acquisition circuit, the second input terminal of the operational amplifier is electrically connected to the first end of the fifth resistor and the first end of the sixth resistor, and the output terminal of the operational amplifier is electrically connected to the second end of the sixth resistor and the first input terminal of the control unit; The second end of the fifth resistor is electrically connected to the power supply terminal of the operational amplifier.
7. The test circuit according to claim 2, characterized in that: The ratio of the first resistor in the first target voltage acquisition circuit to the first resistor in the second target voltage acquisition circuit is equal to the ratio of the number of electronic fuses in the second target voltage acquisition circuit to the number of electronic fuses in the first target voltage acquisition circuit; The first target voltage acquisition circuit and the second target voltage acquisition circuit are any two of the M first voltage acquisition circuits.
8. The test circuit according to claim 3, characterized in that: The resistance of the third resistor is calculated in the following manner: Calculating a first product of a resistance value of a target first resistor, a resistance value of the second resistor, a gain of the voltage amplifier, and a number of target electronic fuses, and calculating a second product of a resistance value of a grounding resistor of the target electronic fuse and a current scaling ratio of the target electronic fuse; Using the ratio of the first product to the second product as the resistance value of the third resistor; The target first resistor and the target electronic fuse are the first resistor and the electronic fuse in any one of the M first voltage acquisition circuits.
9. The test circuit according to claim 1, characterized in that: The control unit, when determining the system power consumption of the server according to the input first voltage, the second voltage and the system voltage, is specifically used to: Determine a sum of the first voltages acquired by the M first voltage acquisition circuits and a sum of the second voltages acquired by the N second voltage acquisition circuits; Based on the configured correspondence between voltage and current, determine a first current corresponding to the sum of the first voltages and a second current corresponding to the sum of the second voltages; The system power consumption of the server is determined according to the first current, the second current, and the system voltage.
10. A method for testing power consumption of a server system, applied to the test circuit according to any one of claims 1 to 9, characterized in that: The test method includes: For the M first voltage acquisition circuits, a branch current between a server power supply and a power input terminal of a first electrical component acquired by the first voltage acquisition circuit is acquired, and a first voltage of a power terminal of the first electrical component is output based on the branch current; For N second voltage acquisition circuits, obtaining a second voltage of a power input terminal of a second electrical component acquired by the second voltage acquisition circuit; A system voltage acquisition circuit is electrically connected to the server power supply and the second input terminal of the control unit respectively, and is used to acquire the system voltage of the server; The system power consumption of the server is determined according to the first voltages acquired by the M first voltage acquisition circuits, the second voltages acquired by the N second voltage acquisition circuits, and the system voltage.
11. The method according to claim 10, characterized in that The determining the system power consumption of the server according to the first voltages acquired by the M first voltage acquisition circuits, the second voltages acquired by the N second voltage acquisition circuits, and the system voltage, comprises: Determine a sum of the first voltages acquired by the M first voltage acquisition circuits and a sum of the second voltages acquired by the N second voltage acquisition circuits; Based on the configured correspondence between voltage and current, determine a first current corresponding to the sum of the first voltages and a second current corresponding to the sum of the second voltages; The system power consumption of the server is determined according to the first current, the second current, and the system voltage.
12. The method according to claim 11, characterized in that The corresponding relationship between the configured voltage and current is determined as follows: Determine a first voltage and current correspondence relationship of the first voltage acquisition circuit, and a second voltage and current correspondence relationship of the second voltage acquisition circuit; The voltage-current correspondence relationship when the first voltage-current correspondence relationship and the second voltage-current correspondence relationship are equal is used as the configured voltage-current correspondence relationship.
13. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes computer instructions, and when the computer instructions are executed by a computer, the method according to any one of claims 10 to 12 is implemented.
Citation Information
Patent Citations
Method and system for monitoring power consumption of server component
CN111966563A
Current sampling and overcurrent protection circuit, system and method based on negative feedback regulation
CN116191348A
System and method for testing power efficiency of server mainboard
CN116699452A
Server power consumption monitoring method, device and system, electronic equipment and storage medium
CN117076261A
Power consumption monitoring system and method and server
CN117950948A