CN110569165B - Method and device for detecting power consumption of server - Google Patents

Method and device for detecting power consumption of server Download PDF

Info

Publication number
CN110569165B
CN110569165B CN201910758268.4A CN201910758268A CN110569165B CN 110569165 B CN110569165 B CN 110569165B CN 201910758268 A CN201910758268 A CN 201910758268A CN 110569165 B CN110569165 B CN 110569165B
Authority
CN
China
Prior art keywords
current
value
input
detection resistance
resistance value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910758268.4A
Other languages
Chinese (zh)
Other versions
CN110569165A (en
Inventor
黄冠陇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN201910758268.4A priority Critical patent/CN110569165B/en
Publication of CN110569165A publication Critical patent/CN110569165A/en
Application granted granted Critical
Publication of CN110569165B publication Critical patent/CN110569165B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3058Monitoring arrangements for monitoring environmental properties or parameters of the computing system or of the computing system component, e.g. monitoring of power, currents, temperature, humidity, position, vibrations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3058Monitoring arrangements for monitoring environmental properties or parameters of the computing system or of the computing system component, e.g. monitoring of power, currents, temperature, humidity, position, vibrations
    • G06F11/3062Monitoring arrangements for monitoring environmental properties or parameters of the computing system or of the computing system component, e.g. monitoring of power, currents, temperature, humidity, position, vibrations where the monitored property is the power consumption
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computing Systems (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Power Sources (AREA)

Abstract

The invention discloses a method for detecting power consumption of a server. The method comprises the following steps: reading a current detection resistance value of the power panel stored in a memory of the power panel when the server mainboard is started through a substrate management controller on the server mainboard, and sending the current detection resistance value to a hot plug protection circuit of the power panel; and determining the detected input current value according to the determined current detection resistance value through the hot plug protection circuit. The current detection resistance value of the power panel stored in the memory of the power panel is read, so that the current detection resistance value is more accurate, and the input current value and the power consumption of the server can be calculated more accurately. A corresponding apparatus for detecting power consumption of a server is also disclosed.

Description

Method and device for detecting power consumption of server
Technical Field
The present invention relates to a server detection technology, and more particularly, to a method and an apparatus for detecting power consumption of a server.
Background
In the existing server architecture, the introduction of the hot-plug protection circuit is a function that the power supply design must have, and the first reason is to discuss the third reason, the input current of the server system is usually quite high, often tens of amperes to hundreds of amperes, so that a mechanism of introducing the protection circuit is needed to avoid the occurrence of unrecoverable disasters when the power supply fails. The second is that some blade servers need to support hot plugging of nodes when repairing or replacing their internal components, otherwise, turning off the power of the entire cabinet is an operation that violates the requirements of data center for data protection and continuity for some failed nodes in a cabinet. Thirdly, since the data center has strict requirements for monitoring power supply, the power supply amount required by the whole data center in one year is considerable, so that a system capable of self-detecting the whole power consumption can be generated accordingly, and the power distribution system of the data center can know the load condition of the whole server in a remote monitoring mode, and further properly adjust the configuration of power to achieve the consideration of the whole energy saving and safety.
The current detection method used by the existing hot plug protection Circuit mostly directly depends on a hot plug chip to provide current flowing through a current detection resistor to a substrate management controller on a mainboard through an I2C (Inter-Integrated Circuit) bus interface, but the internal calculation mode of the hot plug chip for the current has a very high dependency relationship with the accuracy of the resistance value of the current detection resistor placed outside the hot plug chip, and because the resistance values of the current detection resistors are all in the micro-ohm grade, the difference in the layout design (layout) of the selected resistor manufacturer, the hot plug protection Circuit and a Printed Circuit Board (PCB) manufacturing process can affect the accuracy of the hot plug chip on the current detection, thereby causing the deviation of the power consumption detection result of a server system.
Disclosure of Invention
In order to solve the above technical problems, the present invention provides a method and apparatus for detecting power consumption of a server, which can determine an input current value and power consumption of the server with a more accurate current detection resistance value.
In order to achieve the object of the present invention, the present invention provides a method for detecting power consumption of a server, the method comprising:
reading a current detection resistance value of the power panel stored in a memory of the power panel when the server mainboard is started through a substrate management controller on the server mainboard, and sending the current detection resistance value to a hot plug protection circuit of the power panel;
and determining the detected input current value according to the determined current detection resistance value through the hot plug protection circuit.
In an optional embodiment, before the step of determining, by the baseboard management controller on the server motherboard, a current detection resistance value that best meets a current requirement of the power board by reading data stored in the memory of the power board, the method further includes:
when the current with the preset value is input on the power panel, determining the current value of the output current acquired at the output end of the power panel;
adjusting a current detection resistance value according to the obtained output current value until the current detection resistance value is adjusted to be approximate to the obtained input current value and a preset value of the input current;
the predetermined value of the input current and the corresponding current detection resistance value are stored in a memory of the power panel.
In an alternative embodiment, the step of determining the current value of the output current obtained at the output terminal of the power strip when the input is made at the current of the predetermined value on the power strip includes:
determining a current value of an output current obtained at an output terminal of the power supply board when input is performed on the power supply board with a current at each of a plurality of predetermined values, respectively;
the step of storing the predetermined value of the input current and the corresponding current detection resistance value into the memory of the power supply board includes:
a current value section in which a predetermined value of each of a plurality of predetermined values of input current is present is stored in a memory of a power panel in association with a current detection resistance value corresponding to the predetermined value of the input current.
In an alternative embodiment, the step of storing the predetermined value of the input current and the corresponding current detection resistance value in the memory of the power supply board includes:
storing a current value interval in which a predetermined value of each input current in a plurality of predetermined values is respectively corresponding to the predetermined value, a current detection resistance value corresponding to the predetermined value, and an original value of an output current corresponding to the predetermined value in a memory of the power panel;
the step of reading the current detection resistance value of the power panel stored in the memory of the power panel when the server mainboard is started through the baseboard management controller on the server mainboard comprises the following steps:
the method comprises the steps that when the server mainboard is started, a baseboard management controller on the server mainboard reads an output current value and a preset value of input current stored in a memory of a power panel, the original value of the output current corresponding to the preset value of the input current and a current value interval in which the preset value of the input current is located, so that the range of the value of the input current is determined, and the corresponding current detection resistance value is determined.
In another aspect, an embodiment of the present invention provides an apparatus for detecting power consumption of a server, where the apparatus includes a memory and a processor;
the memory is to store computer readable instructions;
the processor is configured to execute the computer-readable instructions to perform operations comprising:
reading a current detection resistance value of the power panel stored in a memory of the power panel when the server mainboard is started through a substrate management controller on the server mainboard, and sending the current detection resistance value to a hot plug protection circuit of the power panel;
and determining the detected input current value according to the determined current detection resistance value through the hot plug protection circuit.
In an alternative embodiment, before the operation of reading the data stored in the memory of the power board by the baseboard management controller on the server mainboard and determining the current detection resistance value best meeting the current requirement of the power board, the processor further performs the following operation:
determining a current value of an output current obtained at an output terminal of the power panel when a current of a predetermined value is input on the power panel;
adjusting a current detection resistance value according to the obtained output current value until the current detection resistance value is adjusted to be approximate to the obtained input current value and a preset value of the input current;
the predetermined value of the input current and the corresponding current detection resistance value are stored in a memory of the power supply board.
In an alternative embodiment, the operation of determining the current value of the output current obtained at the output terminal of the power strip when the input is made at the current of the predetermined value on the power strip includes:
determining a current value of an output current obtained at an output terminal of the power supply board when input is performed on the power supply board with a current at each of a plurality of predetermined values, respectively;
the step of storing the predetermined value of the input current and the corresponding current detection resistance value in the memory of the power supply board includes:
a current value section in which a predetermined value of each of a plurality of predetermined values of input current is present is stored in a memory of a power panel in correspondence with a current detection resistance value corresponding to the predetermined value of the input current.
In an alternative embodiment, the operation of storing the predetermined value of the input current and the corresponding current detection resistance value in the memory of the power supply board includes:
storing a current value interval in which a predetermined value of each input current in a plurality of predetermined values is respectively corresponding to the predetermined value, a current detection resistance value corresponding to the predetermined value, and an original value of an output current corresponding to the predetermined value in a memory of the power panel;
the step of reading the current detection resistance value of the power panel stored in the memory of the power panel when the server mainboard is started through the baseboard management controller on the server mainboard comprises the following steps:
the method comprises the steps that when the server mainboard is started, a baseboard management controller on the server mainboard reads an output current value and a preset value of input current stored in a memory of a power panel, the original value of the output current corresponding to the preset value of the input current and a current value interval in which the preset value of the input current is located, so that the range of the value of the input current is determined, and the corresponding current detection resistance value is determined.
The embodiment of the invention has the advantages that the current detection resistance value is more accurate by reading the current detection resistance value of the power panel stored in the memory of the power panel, so that the input current value and the power consumption of the server can be more accurately calculated.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
The accompanying drawings are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the example serve to explain the principles of the invention and not to limit the invention.
Fig. 1 is a flowchart of a method for detecting power consumption of a server according to an embodiment of the present invention;
fig. 2 is a block diagram of an apparatus for detecting power consumption of a server according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that the embodiments and features of the embodiments in the present application may be arbitrarily combined with each other without conflict.
The steps illustrated in the flow charts of the figures may be performed in a computer system such as a set of computer-executable instructions. Also, while a logical order is shown in the flow diagrams, in some cases, the steps shown or described may be performed in an order different than here.
In the existing server architecture, the introduction of the hot-plug protection circuit is a function that the power supply design must have, and the first reason is to discuss the third reason, the input current of the server system is usually quite high, often tens of amperes to hundreds of amperes, so that a mechanism of introducing the protection circuit is needed to avoid the occurrence of unrecoverable disasters when the power supply fails. And secondly, when some blade servers are used for maintaining or replacing internal components thereof, the blade servers need to be capable of supporting hot plug of nodes, otherwise, for some failed nodes in one cabinet, the operation of turning off the power supply of the whole cabinet is an operation against the protection and continuity requirements of the data center on data. Thirdly, the data center has strict requirements for monitoring power supply, and after all, the power supply amount required by the whole data center for one year is considerable, so that a system capable of self-detecting the whole power consumption is generated accordingly, and the power distribution system of the data center can know the load condition of the whole server in a remote monitoring mode, and further properly adjust the configuration of power, so as to achieve the consideration of the whole energy saving and safety.
In the existing hot plug protection circuit, the hot plug protection circuit is generally combined with an external low-impedance thin film resistor and a transistor capable of resisting high current to form the hot plug protection circuit, the hot plug protection circuit detects the voltage difference at two ends of the thin film resistor, and then the voltage difference is converted into an actual current value to be sent to a substrate management controller on a mainboard through the internal calculation logic of an integrated circuit, so that a data center manager can read power consumption data of each node through a network remote monitoring mode, and the power configuration of the whole data center is allocated.
The current detection method used by the existing hot plug protection circuit mostly directly depends on a hot plug chip to provide current flowing through a current detection resistor to a substrate management controller on a mainboard through an I2C bus interface, but the internal part of the hot plug chip has a very high dependency relationship with the accuracy of the resistance value of the current detection resistor arranged outside the hot plug chip in a current calculation mode, and the resistance value of the current detection resistor is in a micro-ohm grade, so the current detection method affects the accuracy of the hot plug chip on current detection with the differences of the selected resistor manufacturer and the layout design of the hot plug protection circuit on the manufacturing process of a printed circuit board, and the self power consumption detection deviation of the system is caused.
In order to solve the above technical problem, in one aspect, an embodiment of the present invention provides a method for detecting power consumption of a server, as shown in fig. 1, the method includes steps S101 to S103.
Step S101, reading a current detection resistance value of the power panel stored in a memory of the power panel when the server mainboard is started through a baseboard management controller on the server mainboard, and sending the current detection resistance value to a hot plug protection circuit of the power panel.
And step S103, determining the detected input current value according to the determined current detection resistance value through the hot plug protection circuit.
Here, the server board and the power board are independent from each other, and the server board communicates with the power board through a System Management Bus (SMBus). A Baseboard Management Controller (BMC) is arranged on the mainboard, and the BMC can be used for detecting power supply, temperature, fan rotating speed, VGA output and recording a multifunctional chip of a system error log on the server; in the embodiment of the invention, the baseboard management controller is used for acquiring current value data on the power panel from the power panel through the system management bus and determining the power consumption of the server according to the current value data on the power panel; the power panel is provided with a Hot plug protection circuit, and the Hot plug protection circuit comprises a Hot plug chip (Hot plug IC), a thin film resistor and a memory (for example, an electrically erasable programmable read-only memory (EEPROM)). The hot-plug chip is used for protecting the power input of the whole server system, detecting the power of the server and the like; since the power of the server is mainly determined by the current flowing through the thin film resistor, the power of the server can be known by detecting the current of the thin film resistor. The current detection method used by the existing hot plug protection Circuit mostly directly depends on a hot plug chip to provide current flowing through a current detection resistor to a substrate management controller on a mainboard through an I2C interface, but the internal part of the hot plug chip has a very high dependency relationship with the accuracy of the resistance value of the current detection resistor arranged outside the hot plug chip in a current calculation mode, and the resistance value of the current detection resistor is in a micro-ohm grade, so the current detection accuracy of the hot plug chip on current detection can be influenced by the difference in the manufacturing process of a Printed Circuit Board (PCB) and the layout design of the selected resistor manufacturer and the hot plug protection Circuit, and the deviation of self power consumption detection of the system is caused.
In step S101, a board management controller on the server motherboard reads a current detection resistance value (Rsense) of the power board stored in a memory of the power board at the time of startup of the server motherboard, and sends the current detection resistance value to a hot plug protection circuit of the power board. Because the current detection resistance value of the power panel where the memory is located is stored in the memory, even if the hot-plug protection circuit is applied to other servers, the substrate management controller on each server mainboard can call the current detection resistance value of the hot-plug protection circuit stored in the memory, so that the proper current detection resistance value is sent to the hot-plug chip to calculate the current flowing in the hot-plug protection circuit and the power consumption of the server. Therefore, the current detection resistance value of the hot plug protection circuit is stored in the memory and is applied when the power consumption of the server is calculated, so that the accuracy of detecting the power consumption of the server can be improved, the application range of the single hot plug protection circuit can be expanded, and the hot plug protection circuit can be applied to measuring the power consumption of the server with wider models.
The embodiment of the invention has the advantages that the current detection resistance value is more accurate by reading the current detection resistance value of the power panel stored in the memory of the power panel, so that the input current value and the power consumption of the server can be more accurately calculated.
In a first optional embodiment, before step S101, the method further comprises:
determining a current value of an output current obtained at an output terminal of the power panel when a current of a predetermined value is input on the power panel;
adjusting a current detection resistance value according to the obtained output current value until the current detection resistance value is adjusted to be approximate to the obtained input current value and a preset value of the input current;
the predetermined value of the input current and the corresponding current detection resistance value are stored in a memory of the power supply board.
In order to be able to apply the current detection resistance value stored in the memory in step S101, therefore, in this alternative embodiment, the current detection resistance value is obtained first. In order to obtain the current detection resistance value, firstly, the current of a preset value is obtained from the input end of the hot plug protection circuit on the power panel, and since the current value of the input current is known, when the current output by the output end of the hot plug protection circuit is obtained, the preset value of the current input by the input end is compared with the current value of the current output by the output end: if the input current value of the hot plug protection circuit is very similar to the current output by the output end, the correction amplitude of the current detection resistance value is smaller; if the input current value of the hot plug protection circuit is not similar to the current output by the output end, the correction amplitude of the current detection resistance value is large. Theoretically, the current value of the input current of the hot swap protection circuit and the current value of the current output by the output terminal should be the same or very similar. Therefore, when the current detection resistance value is adjusted, the current value of the output current is finally adjusted to be very similar or even the same as the current value of the input current, and the resistance value of the hot swap protection circuit obtained after the adjustment is the current detection resistance value. The debugging process can be manually debugged or a program is adopted to debug. The current detection resistance value obtained in the debugging process is the resistance value of the hot plug protection circuit according with the actual situation of the power panel.
In order to measure and calculate the current value flowing through the hot plug protection circuit and the power consumption of the server by using the current detection resistance value in the subsequent application, the current detection resistance value of the hot plug protection circuit is acquired and then stored into a memory on a circuit board where the hot plug protection circuit is located, so that the correction value can be used in more application environments in the future.
Based on the first optional embodiment, in a second optional embodiment, the step of determining the current value of the output current obtained at the output end of the power supply board when the input is performed at the current of the predetermined value on the power supply board includes:
determining a current value of an output current obtained at an output terminal of the power supply board when a current at each of a plurality of predetermined values is input on the power supply board, respectively;
the step of storing the predetermined value of the input current and the corresponding current detection resistance value in the memory of the power panel includes:
each of the plurality of input currents of predetermined values is stored in a memory of the power panel with a corresponding current detection resistance value, respectively.
Under different current loads, the current detection resistance value is affected by the difference of the resistance of the hot plug protection circuit, the layout design and the manufacturing process on the PCB, so that the current detection resistance value of the same hot plug protection circuit may be different under different current loads. In order to cope with different current load conditions, currents of different values are respectively taken as input currents, and when the current of each of a plurality of preset values is respectively input on the power supply board, the current value of the output current acquired at the output end of the power supply board is determined; that is, the current detection resistance value of the hot swap protection circuit in the case of an input current (load current) of a different value is acquired. In practical applications, the current value of the input current is not necessarily equal to the predetermined value, and therefore, the current detection resistance value adjusted by the predetermined value can be fully utilized by associating the current values in a certain range around the predetermined value (the current values in this range may all be smaller than the predetermined value, may all be larger than the predetermined value, or may be around the predetermined value) with the current detection resistance values corresponding to the predetermined value as a whole. The principle of dividing the current value of the input current is: in the current value section where the predetermined value is located, the variation of the current detection resistance value is small, and the current detection resistance value corresponding to the current value section can be directly used for calculation without affecting the measurement of the current value. That is, after the step of adjusting the current detection resistance value according to the acquired output current value until the current detection resistance value is adjusted until the acquired input current value approximates a predetermined value of the input current, the method includes: and storing the current value section in which the preset value is positioned in the memory of the power panel in a way of corresponding to the current detection resistance value corresponding to the preset value.
After the current detection resistance values of the hot plug protection circuit under the condition of the input currents with different values are obtained, the current detection resistance values corresponding to the current value intervals of the input currents and the current value intervals of the input currents are stored in the memory, so that when the application condition that the load current difference is large is faced, different current detection resistance values can be called to calculate the current values and calculate (detect) the power consumption of the server, and the power consumption of the server can be always kept to have a certain degree of accuracy, so that the application range of the single hot plug protection circuit is further widened.
Based on the first optional embodiment, in a third optional embodiment, the step of storing the predetermined value of the input current and the corresponding current detection resistance value in the memory of the power panel includes:
storing a current value interval in which a predetermined value of each input current in a plurality of predetermined values is respectively corresponding to the predetermined value, a current detection resistance value corresponding to the predetermined value, and an original value of an output current corresponding to the predetermined value in a memory of the power panel;
the step of reading the current detection resistance value of the power panel stored in the memory of the power panel when the server motherboard is started by the baseboard management controller on the server motherboard includes:
the method comprises the steps that when the server mainboard is started, a baseboard management controller on the server mainboard reads an output current value and a preset value of input current stored in a memory of a power panel, the original value of the output current corresponding to the preset value of the input current and a current value interval in which the preset value of the input current is located, so that the range of the value of the input current is determined, and the corresponding current detection resistance value is determined.
Since the interval in which the current detection resistance value is adjusted in different current loads is not so large, the deviation between the original value of the detected input current and the true value of the input current is not so large in different current loads, and the deviation value should be close to linear. Therefore, in the third optional embodiment, the memory stores the original value of the input current when the current is obtained without correction, divides the original value of the input current into different current sections, and corresponds each current section to the current detection resistance value adapted to the current section, that is, the memory stores the section in which the original value of the input current is located when the current detection resistance value is detected, the output current value, and the corresponding relationship between each current section and the adapted current detection resistance value. When the current detection resistor works actually, a preset value of an input current is used as a reference value of the input current, an output current value corresponding to the preset value of the input current is used as a reference value of the output current, a current value interval in which the preset value of the input current is most suitable for the corresponding initial output current value is determined according to the difference value between the output current value corresponding to the preset value of the two input currents and the actual initial output current value, and a current detection resistor value corresponding to the original value of the input current is determined according to which interval the preset value of the input current belongs.
In order to solve the above technical problem, in another aspect, an embodiment of the present invention provides an apparatus for detecting power consumption of a server, as shown in fig. 2, the apparatus including a memory 10 and a processor 20;
memory 10 is used to store computer readable instructions;
the processor 20 is configured to execute the computer-readable instructions to perform the following operations:
reading a current detection resistance value of the power panel stored in a memory of the power panel when the server mainboard is started through a substrate management controller on the server mainboard, and sending the current detection resistance value to a hot plug protection circuit of the power panel;
and determining the detected input current value according to the determined current detection resistance value through the hot plug protection circuit.
In an alternative embodiment, before the operation of reading the data stored in the memory of the power board by the baseboard management controller on the server motherboard to determine the current detection resistance value best meeting the current requirement of the power board, the processor 20 further performs the following operations:
determining a current value of an output current obtained at an output terminal of the power panel when a current of a predetermined value is input on the power panel;
adjusting a current detection resistance value according to the obtained output current value until the current detection resistance value is adjusted to be approximate to the obtained input current value and a preset value of the input current;
the predetermined value of the input current and the corresponding current detection resistance value are stored in a memory of the power panel.
In an alternative embodiment, the operation of determining the current value of the output current obtained at the output terminal of the power supply board when the input is made at the current of the predetermined value on the power supply board includes:
determining a current value of an output current obtained at an output terminal of the power supply board when a current at each of a plurality of predetermined values is input on the power supply board, respectively;
the step of storing the predetermined value of the input current and the corresponding current detection resistance value in the memory of the power supply board includes:
a current value section in which a predetermined value of each of a plurality of predetermined values of input current is present is stored in a memory of a power panel in correspondence with a current detection resistance value corresponding to the predetermined value of the input current.
In an alternative embodiment, the operation of storing the predetermined value of the input current and the corresponding current detection resistance value in the memory of the power supply board includes:
storing a current value interval in which a predetermined value of each input current in a plurality of predetermined values is respectively corresponding to the predetermined value, a current detection resistance value corresponding to the predetermined value, and an original value of an output current corresponding to the predetermined value in a memory of the power panel;
the step of reading the current detection resistance value of the power panel stored in the memory of the power panel when the server mainboard is started through the baseboard management controller on the server mainboard comprises the following steps:
the method comprises the steps that when the server mainboard is started, a baseboard management controller on the server mainboard reads an output current value and a preset value of input current stored in a memory of a power panel, the original value of the output current corresponding to the preset value of the input current and a current value interval in which the preset value of the input current is located, so that the range of the value of the input current is determined, and the corresponding current detection resistance value is determined.
Although the embodiments of the present invention have been described above, the above description is only for the convenience of understanding the present invention, and is not intended to limit the present invention. It will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (6)

1. A method for detecting power consumption of a server, comprising:
determining a current value of an output current obtained at an output terminal of the power panel when a current of a predetermined value is input on the power panel;
adjusting a current detection resistance value according to the obtained output current value until the current detection resistance value is adjusted to be approximate to the obtained input current value and a preset value of the input current;
storing a predetermined value of an input current and a corresponding current detection resistance value into a memory of the power panel;
reading a current detection resistance value of the power panel stored in a memory of the power panel when the server mainboard is started through a substrate management controller on the server mainboard, and sending the current detection resistance value to a hot plug protection circuit of the power panel;
and determining the detected input current value according to the determined current detection resistance value through the hot plug protection circuit.
2. The method of claim 1, wherein the determining of the current value of the output current obtained at the output terminal of the power strip when the input is made at the current of the predetermined value on the power strip comprises:
determining a current value of an output current obtained at an output terminal of the power supply board when input is performed on the power supply board with a current at each of a plurality of predetermined values, respectively;
the step of storing a predetermined value of the input current and a corresponding current detection resistance value into a memory of the power supply board includes:
and storing a current value section in which a predetermined value of each input current among the plurality of predetermined values of input current is located in a memory of the power panel in correspondence with a current detection resistance value corresponding to the predetermined value of the input current.
3. The method of claim 1, wherein the step of storing a predetermined value of input current and a corresponding current sense resistance value into a memory of the power strip comprises:
storing a current value interval in which a predetermined value of each input current in a plurality of predetermined values is respectively corresponding to the predetermined value, a current detection resistance value corresponding to the predetermined value, and an original value of an output current corresponding to the predetermined value in a memory of the power panel;
the step of reading the current detection resistance value of the power panel stored in the memory of the power panel when the server mainboard is started through the baseboard management controller on the server mainboard comprises the following steps:
the method comprises the steps that when the server mainboard is started, a baseboard management controller on the server mainboard reads an output current value and a preset value of input current stored in a memory of a power panel, the original value of the output current corresponding to the preset value of the input current and a current value interval in which the preset value of the input current is located, so that the range of the value of the input current is determined, and the corresponding current detection resistance value is determined.
4. An apparatus for detecting power consumption of a server, comprising a memory and a processor;
the memory is to store computer readable instructions;
the processor is configured to execute the computer-readable instructions to perform operations comprising:
when the current with the preset value is input on the power panel, determining the current value of the output current acquired at the output end of the power panel;
adjusting a current detection resistance value according to the obtained output current value until the current detection resistance value is adjusted to be approximate to the obtained input current value and a preset value of the input current;
storing a predetermined value of an input current and a corresponding current detection resistance value into a memory of the power panel;
reading a current detection resistance value of the power panel stored in a memory of the power panel when the server mainboard is started through a substrate management controller on the server mainboard, and sending the current detection resistance value to a hot plug protection circuit of the power panel;
and determining the detected input current value according to the determined current detection resistance value through the hot plug protection circuit.
5. The apparatus of claim 4, wherein the operation of determining a current value of the output current obtained at the output terminal of the power strip when the input is made at a current of a predetermined value on the power strip comprises:
determining a current value of an output current obtained at an output terminal of the power supply board when input is performed on the power supply board with a current at each of a plurality of predetermined values, respectively;
the step of storing a predetermined value of the input current and a corresponding current detection resistance value into a memory of the power supply board includes:
and storing the current value interval in which the preset value of each input current in the plurality of preset values of input currents is located in a memory of the power panel in a way of corresponding to the current detection resistance value corresponding to the preset value of the input current.
6. The apparatus of claim 4, wherein the operation of storing a predetermined value of input current and a corresponding current sense resistance value into a memory of the power strip comprises:
storing a current value interval in which a predetermined value of each input current in a plurality of input currents with predetermined values is respectively located, a current detection resistance value corresponding to the predetermined value, and an original value of an output current corresponding to the predetermined value in a memory of the power panel;
the step of reading the current detection resistance value of the power panel stored in the memory of the power panel when the server mainboard is started through the baseboard management controller on the server mainboard comprises the following steps:
the method comprises the steps that when the server mainboard is started, a baseboard management controller on the server mainboard reads an output current value and a preset value of input current stored in a memory of a power panel, the original value of the output current corresponding to the preset value of the input current and a current value interval in which the preset value of the input current is located, so that the range of the value of the input current is determined, and the corresponding current detection resistance value is determined.
CN201910758268.4A 2019-08-16 2019-08-16 Method and device for detecting power consumption of server Active CN110569165B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910758268.4A CN110569165B (en) 2019-08-16 2019-08-16 Method and device for detecting power consumption of server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910758268.4A CN110569165B (en) 2019-08-16 2019-08-16 Method and device for detecting power consumption of server

Publications (2)

Publication Number Publication Date
CN110569165A CN110569165A (en) 2019-12-13
CN110569165B true CN110569165B (en) 2022-07-12

Family

ID=68775653

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910758268.4A Active CN110569165B (en) 2019-08-16 2019-08-16 Method and device for detecting power consumption of server

Country Status (1)

Country Link
CN (1) CN110569165B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111639002B (en) * 2020-04-29 2024-03-15 西安广和通无线软件有限公司 Sleep power consumption testing method, system, computer equipment and storage medium
CN113094230B (en) * 2021-03-31 2024-03-12 宁畅信息产业(北京)有限公司 Power consumption monitoring method and power consumption monitoring main board

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103268144A (en) * 2013-06-07 2013-08-28 张宁 Power monitoring device and overcurrent protection method
CN106886479A (en) * 2017-02-22 2017-06-23 郑州云海信息技术有限公司 A kind of server total power consumption real time monitoring apparatus and monitoring method
CN107357707A (en) * 2017-07-18 2017-11-17 郑州云海信息技术有限公司 A kind of hot plug framework, storage server and method for reducing switching power loss

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103268144A (en) * 2013-06-07 2013-08-28 张宁 Power monitoring device and overcurrent protection method
CN106886479A (en) * 2017-02-22 2017-06-23 郑州云海信息技术有限公司 A kind of server total power consumption real time monitoring apparatus and monitoring method
CN107357707A (en) * 2017-07-18 2017-11-17 郑州云海信息技术有限公司 A kind of hot plug framework, storage server and method for reducing switching power loss

Also Published As

Publication number Publication date
CN110569165A (en) 2019-12-13

Similar Documents

Publication Publication Date Title
EP2847562B1 (en) Methods and apparatus to detect leakage current in a resistance temperature detector
CN110569165B (en) Method and device for detecting power consumption of server
US20070186128A1 (en) MIPS recovery technique
CN103268144A (en) Power monitoring device and overcurrent protection method
WO2018058999A1 (en) Overcurrent point configuration method and apparatus, and overcurrent protection apparatus
CN112799493B (en) Current automatic calibration circuit and calibration method for power supply VR chip
CN116994633A (en) Easy-maintenance and regeneration design system, method and equipment for memory bank
CN111521952A (en) Synchronous rectification circuit, charger and synchronous rectification circuit control method and system
CN116185777A (en) Method, device and system for monitoring power consumption of server and server
US20200117254A1 (en) Thermal environment evaluation and compensation for computer components
CN114325315B (en) Chip aging compensation method and device, SOC chip and electronic equipment
US11637443B2 (en) Backup power supply for electronic system and operation method thereof
TWI721532B (en) Device and method for diagnosing fault of circuit board
US11846682B2 (en) Method and device for avoiding abnormal signal oscillation in UVLO test
CN110377477B (en) Electronic equipment, functional module, main board of electronic equipment and detection method
CN109863410B (en) Method and system for measuring power-on reset time
JP2001091571A (en) Apparatus and method for testing reliability
CN112732498A (en) Test method, device, equipment and storage medium for simulating single-point power-on and power-off of equipment
CN113125938A (en) Aging test monitoring method and system
JP2002174674A (en) Semiconductor testing apparatus and method of preventive maintenance therefor
CN114279482B (en) Verification method and system for transmission sensor
CN112180150B (en) Multi-point voltage detection method and system of server and related components
CN112446181B (en) Method, system and test board for detecting failure rate of single-board component
CN107577552A (en) A kind of server power supply model detection method, system, device and storage medium
CN118377508B (en) Processing method and device for software configuration and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant