System power consumption determination method and server
The voltage regulator uses the load sharing bus voltage and the voltage-to-current ratio in the register to calculate the system power consumption, which solves the problems of complex design and high resource occupation in the existing technology, and achieves fast, real-time calculation and design simplification of the system power consumption.
Patent Information
- Application Number
- CN202410749682.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-11
- Publication Date
- 2024-10-15
AI Technical Summary
Existing server systems need to build complex hardware circuits and multiple complex programmable logic devices when calculating system power, resulting in complex design and high resource usage.
The voltage regulator calculates system power consumption based on the load-sharing bus voltage and the voltage-to-current ratio in the register, simplifying hardware circuit design and reducing design area and difficulty.
It achieves fast and real-time calculation of system power consumption, reduces design complexity and resource occupation, and is suitable for multi-model PSU and redundant application scenarios.
Smart Images

Figure CN118778787A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of power consumption management, and in particular to a method and a server for determining system power consumption. Background Art
[0002] As the power consumption of the server system increases, the system-level protection strategy for the server's power supply unit (Power Supply Unit, PSU) is also receiving more and more attention. Currently, the total load sharing current of the PSU of the common redundant power supply (Common Redundant Power Supply, CRPS) participating in the sharing is directly fed back to the voltage regulator (Voltage Regulator, VR), and VR obtains the system power consumption (System Power, PSYS) based on the system voltage and the total load sharing current. However, the existing hardware implementation scheme requires the construction of a large hardware circuit and occupies multiple complex programmable logic device (Complex Programmable Logic Device, CPLD) pins (PIN) for control in scenarios such as multiple PSU models and redundant applications, which is complex in design. Summary of the invention
[0003] The present application provides a method and a server for determining system power consumption.
[0004] The technical solution of this application is implemented as follows:
[0005] In a first aspect, a method for determining system power consumption is provided, comprising:
[0006] Obtaining, by a voltage regulator, a first system current of all the power supply units in the current state based on the load sharing bus voltage obtained and a first voltage-to-current ratio corresponding to current configuration information of all the power supply units in the current state obtained from a register;
[0007] The first system power consumption is obtained based on the system voltage provided by the power supply unit in the in-position state and the first system current.
[0008] In a second aspect, a server is provided, comprising: a plurality of power supply units and a voltage regulator; the plurality of power supply units are connected to the voltage regulator via a load sharing bus;
[0009] The voltage regulator is used to obtain a first system current of all the power supply units in the current state based on obtaining the load sharing bus voltage and obtaining a first voltage-to-current ratio corresponding to the current configuration information of all the power supply units in the current state from the register;
[0010] The voltage regulator is further used to obtain the first system power consumption based on the system voltage provided by the power supply unit in the in-position state and the first system current.
[0011] According to a third aspect, a computer-readable storage medium is provided, on which a computer program is stored, wherein the computer program implements the steps of the method according to the first aspect when executed by a processor.
[0012] According to a fourth aspect, a computer program product is provided, comprising a computer program, wherein the computer program implements the steps of the method according to the first aspect when executed by a processor.
[0013] The present application provides a method and server for determining system power consumption, including: obtaining a first system current of all power supply units in place based on a load sharing bus voltage obtained by a voltage regulator and obtaining a first voltage-current ratio corresponding to current configuration information of all power supply units in place from a register; obtaining a first system power consumption based on the system voltage provided by the power supply units in place and the first system current. The register of the voltage regulator stores the first voltage-current ratio corresponding to the current configuration information, so that when the voltage regulator obtains the load sharing bus voltage provided by the power supply units in place through the load sharing bus, the load sharing bus voltage is multiplied by the first voltage-current ratio to obtain the current first system power consumption. In this way, a large amount of hardware circuit design is saved, the design area is effectively reduced, and the design difficulty is reduced. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] Figure 1 The process diagram of the method for determining system power consumption in the embodiment of the present application is as follows: Figure 1 ;
[0015] Figure 2 The process diagram of the method for determining system power consumption in the embodiment of the present application is as follows: Figure 2 ;
[0016] Figure 3 The server structure in the embodiment of the present application is shown in FIG. Figure 1 ;
[0017] Figure 4 The server structure in the embodiment of the present application is shown in FIG. Figure 2 . DETAILED DESCRIPTION
[0018] In order to enable a more detailed understanding of the features and technical contents of the embodiments of the present application, the implementation of the embodiments of the present application is described in detail below in conjunction with the accompanying drawings. The attached drawings are for reference only and are not used to limit the embodiments of the present application.
[0019] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing this embodiment and are not intended to limit this application.
[0020] In the following description, references to “some embodiments,” “this embodiment,” “this embodiment,” and examples, etc., describe a subset of all possible embodiments, but it can be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments, and may be combined with each other without conflict.
[0021] If similar descriptions of "first / second" appear in the application documents, the following instructions are added. In the following description, the terms "first\second\third" involved are merely used to distinguish similar objects and do not represent a specific ordering of the objects. It can be understood that "first\second\third" can be interchanged in a specific order or sequence where permitted, so that the present embodiment described here can be implemented in an order other than that illustrated or described here.
[0022] In this embodiment, the term "and / or" is merely a description of the association relationship between associated objects, indicating that three relationships may exist. For example, object A and / or object B may represent three situations: object A exists alone, object A and object B exist at the same time, and object B exists alone.
[0023] The present application provides a method for determining system power consumption. Figure 1 The process diagram of the method for determining system power consumption in the embodiment of the present application is as follows: Figure 1 , applied to the server, such as Figure 1 As shown, the system power consumption determination method may include:
[0024] S101: obtaining a first system current of all power supply units in a state based on a load sharing bus voltage obtained by a voltage regulator and a first voltage-to-current ratio corresponding to current configuration information of all power supply units in a state currently obtained from a register.
[0025] In an embodiment of the present application, the server includes a voltage regulator and a plurality of power supply units, and the voltage regulator is connected to the plurality of power supply units via a load sharing bus. The specifications of each of the plurality of power supply units are the same. The voltage regulator obtains a voltage for characterizing the first system current of all power supply units in position through the load sharing bus, i.e., the load sharing bus voltage.
[0026] Here, the power supply unit being in the on-state may be understood as the power supply unit being in the working state.
[0027] In the embodiment of the present application, the voltage regulator multiplies the load sharing bus voltage by the first voltage-current ratio to obtain the first system current of all the power supply units in the in-position state.
[0028] S102: Obtaining a first system power consumption based on a system voltage provided by an in-position power supply unit and a first system current.
[0029] In an embodiment of the present application, the voltage regulator is connected to multiple power supply units through a power supply harness, each power supply unit provides an equal system voltage, and the voltage regulator obtains the system voltage provided by the power supply unit in place through the power supply harness.
[0030] In a feasible implementation, the system voltage and the first system current are transmitted to the central processing unit through the voltage regulator, and the central processing unit multiplies the system voltage and the first system current to obtain the first system power consumption.
[0031] In another feasible implementation, the system voltage and the first system current are multiplied by a voltage regulator to obtain the first system power consumption, and the first system power consumption is transmitted to the central processing unit.
[0032] In the embodiment of the present application, the register of the voltage regulator stores the first voltage-current ratio corresponding to the current configuration information, so that when the voltage regulator obtains the load-sharing bus voltage provided by the power supply unit in the in-position state through the load-sharing bus, the load-sharing bus voltage is multiplied by the first voltage-current ratio to obtain the current first system power consumption. In this way, a large amount of hardware circuit design is saved, the design area is effectively reduced, and the design difficulty is reduced.
[0033] In some embodiments, it also includes: obtaining current configuration information of all power supply units currently in place through a baseboard management controller, determining a first voltage-current ratio corresponding to the current configuration information when the current configuration information is inconsistent with preset configuration information, and writing the first voltage-current ratio into a register of the voltage regulator.
[0034] In an embodiment of the present application, a baseboard management controller (Baseboard Management Controller, BMC) is connected to a plurality of power supply units through an integrated circuit bus (Inter-Integrated Circuit, I2C), and is also connected to a voltage regulator through an integrated circuit bus. The voltage-current ratio corresponding to the preset configuration information is pre-stored in the register of the voltage regulator. When the baseboard management controller obtains the current configuration information of all the power supply units currently in place through the integrated circuit bus, it is compared with the pre-stored preset configuration information (or called standard configuration information). If the current configuration information is inconsistent with the preset configuration information, the first voltage-current ratio corresponding to the current configuration information is determined, and the first voltage-current ratio is written into the register of the voltage regulator through the integrated circuit bus, that is, the voltage-current ratio corresponding to the preset configuration information in the register is updated to the first voltage-current ratio corresponding to the current configuration information. In this way, the first voltage-current ratio obtained by the voltage regulator from the register is the voltage-current ratio corresponding to the current configuration information.
[0035] In some embodiments, determining the first voltage-to-current ratio corresponding to the current configuration information includes: determining the first voltage-to-current ratio corresponding to the current configuration information based on a correspondence between configuration information and the voltage-to-current ratio.
[0036] In the embodiment of the present application, the baseboard management controller pre-stores the correspondence between the configuration information and the voltage-current ratio. Therefore, when the baseboard management controller obtains the current configuration information, the corresponding first voltage-current ratio can be determined according to the correspondence between the configuration information and the voltage-current ratio.
[0037] In some embodiments, it also includes: obtaining current configuration information of all power supply units currently in place through a baseboard management controller, and determining that when the current configuration information is consistent with the preset configuration information, the first voltage-current ratio is the voltage-current ratio corresponding to the pre-stored preset configuration information.
[0038] In an embodiment of the present application, the baseboard management controller is connected to a plurality of power supply units through an integrated circuit bus, and is also connected to a voltage regulator through an integrated circuit bus. The voltage-current ratio corresponding to the preset configuration information is pre-stored in the register of the voltage regulator. When the baseboard management controller obtains the current configuration information of all the power supply units currently in place through the integrated circuit bus, it is compared with the pre-stored preset configuration information (or called standard configuration information). If the current configuration information is consistent with the preset configuration information, there is no need to update the voltage-current ratio corresponding to the preset configuration information stored in the register of the voltage regulator. In this way, the first voltage-current ratio obtained by the voltage regulator from the register is the voltage-current ratio corresponding to the preset configuration information.
[0039] In some embodiments, obtaining the current configuration information of all the power supply units currently in place includes: obtaining the first output power consumption of the power supply units in place through the baseboard management controller; obtaining the first in-place number of all the power supply units in place based on the in-place status of each of the multiple power supply units through a field programmable gate array, and transmitting the first in-place number to the baseboard management controller; wherein the first output power consumption and the first in-place number constitute the current configuration information.
[0040] In an embodiment of the present application, a plurality of power management units are connected to a baseboard management controller via an integrated circuit bus. In this way, the baseboard management controller can obtain the first output power consumption of the power supply unit in the in-place state. A plurality of power management units are connected to a field programmable gate array (FPGA) via a power harness, and the field programmable gate array is connected to the baseboard management controller via an integrated circuit bus. In this way, the field programmable gate array receives the in-place status of each power management unit, and the in-place status is used to characterize whether it is in the in-place state. For example, when the in-place status is 0, it indicates that the corresponding power management unit is not in the in-place state. When the in-place status is 1, it indicates that the corresponding power management unit is in the in-place state, thereby counting the first in-place number of all power supply units in the in-place state, and transmitting it to the baseboard management controller via the integrated circuit bus. In this way, the baseboard management controller obtains the first output power consumption and the first in-place number, that is, the current configuration information.
[0041] In some embodiments, the current configuration information includes a first output power consumption and a first in-place number; and further includes: transmitting the first system power consumption to a central processing unit through the voltage regulator; transmitting the current configuration information to the central processing unit through a baseboard management controller; obtaining a theoretical system power consumption based on the first output power consumption and the first in-place number through the central processing unit; and comparing the first system power consumption with the theoretical system power consumption through the central controller to obtain a comparison result.
[0042] In the embodiment of the present application, the baseboard management controller is connected to the central processing unit (CPU) through an integrated circuit bus, so that the central processing unit obtains the first output power consumption and the first in-place number transmitted from the baseboard management controller, and multiplies the first output power consumption and the first in-place number to obtain the theoretical system power consumption. The voltage regulator is connected to the central processing unit through a serial voltage identification bus (Serial Voltage Identification, SVID), so that the voltage regulator transmits the first system power consumption to the central processing unit through the serial voltage identification bus. Furthermore, when the comparison result of the central processing unit represents that the first system power consumption is less than or equal to the theoretical system power consumption, it means that the first system power consumption is within the carrying capacity range of all power management units in the in-place state, and the central processing unit works normally. On the contrary, when the comparison result of the central processing unit represents that the first system power consumption is greater than the theoretical system power consumption, it means that the first system power consumption has exceeded the carrying capacity range of all power management units in the in-place state, and the central processing unit performs an operation to reduce the system power consumption, or outputs an alarm message to the user at the same time.
[0043] Based on the above embodiments, the present application illustrates a method for determining system power consumption. Figure 2 The process diagram of the method for determining system power consumption in the embodiment of the present application is as follows: Figure 2 ,like Figure 2 As shown, the system power consumption determination method may include:
[0044] S201: A baseboard management controller obtains a first output power consumption of an in-position power supply unit and obtains a first in-position number of all in-position power supply units from a field programmable gate array.
[0045] S202: The baseboard management controller determines whether the first output power consumption and the first number of in-place users are consistent with the preset output power consumption and the preset number of in-place users.
[0046] The preset output power consumption and the preset number of in-positions constitute the preset configuration information.
[0047] When the first output power consumption is inconsistent with the preset output power consumption and / or the first in-place quantity is inconsistent with the preset in-place quantity, execute S203; when the first output power consumption is consistent with the preset output power consumption and the first in-place quantity is consistent with the preset in-place quantity, execute S205.
[0048] S203: The baseboard management controller determines a first voltage-to-current ratio corresponding to a first output power consumption and a first number of in-situ devices based on a correspondence between the output power consumption, the number of in-situ devices, and the voltage-to-current ratio.
[0049] S204: The baseboard management controller writes the first voltage-current ratio into a register of the voltage regulator.
[0050] S205: The voltage regulator multiplies the obtained load sharing bus voltage and the first voltage-current ratio to obtain a first system current.
[0051] It should be noted that, when the first output power consumption is consistent with the preset output power consumption, and the first number of in-position is consistent with the preset number of in-position, the first voltage-to-current ratio in S205 is the voltage-to-current ratio corresponding to the preset output power consumption and the preset number of in-position. The voltage regulator register stores the voltage-to-current ratio corresponding to the preset output power consumption and the preset number of in-position in advance.
[0052] S206: The voltage regulator multiplies the obtained system voltage and the first system current to obtain the first system power consumption.
[0053] S207: The central processing unit obtains the first system power consumption from the voltage regulator, and determines whether the first system power consumption is greater than the theoretical system power consumption.
[0054] When the central processing unit determines that the first system power consumption is greater than the theoretical system power consumption, S208 is executed; when the central processing unit determines that the first system power consumption is less than or equal to the theoretical system power consumption, S209 is executed.
[0055] It should be noted that the central processing unit may obtain the first output power consumption and the first number of in-place devices transmitted from the baseboard management controller, and multiply the first output power consumption and the first number of in-place devices to obtain the theoretical system power consumption.
[0056] S208: The central processing unit operates normally.
[0057] S209: The central processing unit executes an operation to reduce system power consumption.
[0058] In the embodiment of the present application, the first output power consumption of the power supply unit in the in-position state is obtained in real time through the baseboard management controller, and the first in-position number of all the power supply units in the in-position state from the field programmable gate array is obtained in real time, and compared with the preset output power consumption and the preset in-position number to see if they are consistent; if they are consistent, the voltage regulator is based on the preset output power consumption and the voltage-current ratio corresponding to the preset in-position number pre-stored in the register, and multiplied with the current load-sharing bus voltage to obtain the first system power consumption; if they are inconsistent, the first output power consumption of the baseboard management controller and the first voltage-current ratio corresponding to the first in-position number are written into the register of the voltage regulator, so that the voltage regulator is based on the first voltage-current ratio in the register, and multiplied with the current load-sharing bus voltage to obtain the first system power consumption. In this way, the current first system power consumption can be calculated quickly and in real time, and a large amount of hardware circuit design is saved, and the design area is effectively reduced, thereby reducing the design difficulty.
[0059] It should be noted that the specifications (or models) of the above-mentioned multiple power management units are the same. If a power management unit of a new specification is replaced, there is no need to change the existing line, and only software update and adaptation are required.
[0060] The present application also provides a server, Figure 3 The server structure in the embodiment of the present application is shown in FIG. Figure 1 ,like Figure 3 As shown, the server includes a plurality of power supply units 30 and a voltage regulator 31 , and the plurality of power supply units 30 are connected to the voltage regulator 31 via a load sharing bus.
[0061] A voltage regulator 31, configured to obtain a first system current of all the power supply units in a state based on obtaining a load sharing bus voltage and obtaining a first voltage-to-current ratio corresponding to current configuration information of all the power supply units in a state currently in a state from a register;
[0062] The voltage regulator 31 is further used to obtain the first system power consumption based on the system voltage provided by the power supply unit in the in-position state and the first system current.
[0063] In the embodiment of the present application, the register of the voltage regulator stores the first voltage-current ratio corresponding to the current configuration information, so that when the voltage regulator obtains the load-sharing bus voltage provided by the power supply unit in the in-position state through the load-sharing bus, the load-sharing bus voltage is multiplied by the first voltage-current ratio to obtain the current first system power consumption. In this way, a large amount of hardware circuit design is saved, the design area is effectively reduced, and the design difficulty is reduced.
[0064] In some embodiments, the server also includes a baseboard management controller, multiple power supply units are connected to the baseboard management controller through an integrated circuit bus, and the baseboard management controller is connected to the voltage regulator through the integrated circuit bus; the baseboard management controller is used to determine the first voltage-current ratio corresponding to the current configuration information when the current configuration information is obtained based on all power supply units currently in place and when the current configuration information is inconsistent with the preset configuration information, and write the first voltage-current ratio into the register of the voltage regulator.
[0065] In some embodiments, the baseboard management controller is further used to determine a first voltage-current ratio corresponding to the current configuration information based on a correspondence between the configuration information and the voltage-current ratio.
[0066] In some embodiments, the server also includes a baseboard management controller, multiple power supply units are connected to the baseboard management controller through an integrated circuit bus, and the baseboard management controller is connected to the voltage regulator through the integrated circuit bus; the baseboard management controller is used to obtain current configuration information of all power supply units currently in place, and determine that when the current configuration information is consistent with the preset configuration information, the first voltage-to-current ratio is the voltage-to-current ratio corresponding to the pre-stored preset configuration information.
[0067] In some embodiments, the server also includes a field programmable gate array, multiple power supply units are connected to the field programmable gate array through power supply harnesses, and the field programmable gate array is connected to a baseboard management controller through an integrated circuit bus; the baseboard management controller is also used to obtain a first output power consumption of an in-place power supply unit based on obtaining the output power consumption of each of the multiple power supply units; the field programmable gate array is used to obtain a first in-place number of all in-place power supply units based on obtaining the in-place state of each of the multiple power supply units, and transmit the first in-place number to the baseboard management controller; wherein the first output power consumption and the first in-place number constitute current configuration information.
[0068] Based on the above embodiment, this application illustrates a server, Figure 4 The server structure in the embodiment of the present application is shown in FIG. Figure 2 ,like Figure 4 As shown, the server includes: M power management units 30, a baseboard management controller 32, a field programmable gate array 33, a voltage regulator 31 and a central processing unit 34, and the M power management units include a power management unit 1, a power management unit 2, ..., a power management unit M. M≥2. The specifications of the M power management units are the same.
[0069] Among them, M power management units 30 are connected to the baseboard management controller 32 through the integrated circuit bus, the baseboard management controller 32 is connected to the voltage regulator 31 through the integrated circuit bus, the voltage regulator 31 is connected to the central processing unit 34 through the serial voltage identification bus, the M power management units 30 are also connected to the field programmable gate array 33 through the power harness, the field programmable gate array 33 is connected to the baseboard management controller 32 through the integrated circuit bus, and the M power management units 30 are also connected to the voltage regulator 31 through the load sharing bus.
[0070] When the baseboard management controller 32 is connected to the M power management units 30 via the integrated circuit bus, the first output power consumption of the power supply unit in the in-position state can be obtained via the integrated circuit bus.
[0071] When the field programmable gate array 33 is connected to M power management units 30 through a power harness, the presence status of each power management unit can be obtained through the power harness, the presence status including the in-place state and the out-of-place state, and the first in-place number of all power supply units in the in-place state can be determined.
[0072] The FPGA 33 transmits the first in-bit number to the BMC 32 via the IC bus.
[0073] The baseboard management controller 32 determines whether the first output power consumption and the first number of in-place devices are consistent with the preset output power consumption and the preset number of in-place devices.
[0074] When the baseboard management controller 32 determines that the first output power consumption is inconsistent with the preset output power consumption, and / or the first in-place number is inconsistent with the preset in-place number, based on the corresponding relationship between the output power consumption, the in-place number and the voltage-current ratio, it determines the first voltage-current ratio corresponding to the first output power consumption and the first in-place number, and writes the first voltage-current ratio into the register of the voltage regulator.
[0075] When the baseboard management controller 32 determines that the first output power consumption is consistent with the preset output power consumption and the first number of in-positions is consistent with the preset number of in-positions, the first voltage-to-current ratio in the register is the voltage-to-current ratio corresponding to the preset output power consumption and the preset number of in-positions. The voltage regulator register stores the voltage-to-current ratio corresponding to the preset output power consumption and the preset number of in-positions in advance.
[0076] The voltage regulator 31 multiplies the obtained load sharing bus voltage by the first voltage-current ratio to obtain a first system current.
[0077] The voltage regulator 31 multiplies the system voltage provided by the power supply unit in the on-state by the first system current to obtain the first system power consumption, and transmits the first system power consumption to the central processor 34 via the serial voltage identification bus.
[0078] The central processor 34 obtains the first system power consumption from the voltage regulator, and determines whether the first system power consumption is greater than the theoretical system power consumption. When the central processor determines that the first system power consumption is greater than the theoretical system power consumption, the central processor operates normally; when the central processor determines that the first system power consumption is less than or equal to the theoretical system power consumption, the central processor performs an operation to reduce the system power consumption, or outputs an alarm message to the user at the same time.
[0079] It should be noted that the baseboard management controller is connected to the central processing unit through an integrated circuit bus (not shown in Figure 4 The central processing unit obtains the first output power consumption and the first number of in-place transmissions from the baseboard management controller through the integrated circuit bus, and multiplies the first output power consumption and the first number of in-place transmissions to obtain the theoretical system power consumption.
[0080] In the embodiment of the present application, the first output power consumption of the power supply unit in the in-position state is obtained in real time through the baseboard management controller, and the first in-position number of all the power supply units in the in-position state from the field programmable gate array is obtained in real time, and compared with the preset output power consumption and the preset in-position number to see if they are consistent; if they are consistent, the voltage regulator is based on the preset output power consumption and the voltage-current ratio corresponding to the preset in-position number pre-stored in the register, and multiplied with the current load-sharing bus voltage to obtain the first system power consumption; if they are inconsistent, the first output power consumption of the baseboard management controller and the first voltage-current ratio corresponding to the first in-position number are written into the register of the voltage regulator, so that the voltage regulator is based on the first voltage-current ratio in the register, and multiplied with the current load-sharing bus voltage to obtain the first system power consumption. In this way, the current first system power consumption can be calculated quickly and in real time, and a large amount of hardware circuit design is saved, and the design area is effectively reduced, thereby reducing the design difficulty.
[0081] It should be noted that the specifications (or models) of the above-mentioned multiple power management units are the same. If a power management unit of a new specification is replaced, there is no need to change the existing line, only software update adaptation is required. In addition, the information transmission between the power management unit and the baseboard management controller, the baseboard management controller and the voltage regulator, and the field programmable gate array and the baseboard management controller is realized through the integrated circuit bus, reducing the occupation of system resources.
[0082] In an exemplary embodiment, the present application also provides a computer-readable storage medium for storing a computer program.
[0083] Optionally, the computer-readable storage medium can be applied to any one of the methods in the embodiments of the present application, and the computer program enables the computer to execute the corresponding processes implemented by the processor in each method in the embodiments of the present application. For the sake of brevity, they are not repeated here.
[0084] Illustratively, an embodiment of the present application further provides a computer program product, including a computer program, which can be executed by a processor of an electronic device to complete the steps of any of the aforementioned methods.
[0085] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.
[0086] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0087] In addition, all functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may be a separate unit, or two or more units may be integrated into one unit; the above integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units. A person of ordinary skill in the art may understand that all or part of the steps of implementing the above method embodiments may be completed by hardware related to program instructions, and the above program may be stored in a computer-readable storage medium, which, when executed, executes the steps of the above method embodiments; and the above storage medium includes various media that can store program codes, such as mobile storage devices, read-only memories (ROM), random access memories (RAM), magnetic disks or optical disks.
[0088] The methods disclosed in several method embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments.
[0089] The features disclosed in several product embodiments provided in this application can be arbitrarily combined without conflict to obtain new product embodiments.
[0090] The features disclosed in several method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.
[0091] The above description is only a specific implementation mode of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.
Claims
1. A method for determining system power consumption, include: Obtaining, by a voltage regulator, a first system current of all the power supply units in the current state based on the load sharing bus voltage obtained and a first voltage-to-current ratio corresponding to current configuration information of all the power supply units in the current state obtained from a register; The first system power consumption is obtained based on the system voltage provided by the power supply unit in the in-position state and the first system current.
2. The method according to claim 1, in, Also includes: The baseboard management controller obtains current configuration information of all power supply units currently in place, determines that when the current configuration information is inconsistent with the preset configuration information, determines a first voltage-current ratio corresponding to the current configuration information, and writes the first voltage-current ratio into the register of the voltage regulator.
3. The method according to claim 2, in, The determining a first voltage-current ratio corresponding to the current configuration information includes: Based on the corresponding relationship between the configuration information and the voltage-to-current ratio, a first voltage-to-current ratio corresponding to the current configuration information is determined.
4. The method according to claim 1, in, Also includes: When the baseboard management controller obtains current configuration information of all power supply units currently in place and determines that the current configuration information is consistent with the preset configuration information, the first voltage-current ratio is the voltage-current ratio corresponding to the pre-stored preset configuration information.
5. The method according to claim 2 or 4, in, The obtaining of current configuration information of all currently in-position power supply units includes: Obtaining, by means of the baseboard management controller, a first output power consumption of a power supply unit in an in-position state; Based on obtaining the respective on-site status of the multiple power supply units through a field programmable gate array, a first on-site number of all on-site power supply units is obtained and transmitted to the baseboard management controller; wherein the first output power consumption and the first on-site number constitute the current configuration information.
6. The method according to any one of claims 2 to 4, in, The current configuration information includes a first output power consumption and a first number of in-positions; and further includes: transmitting the first system power consumption to a central processing unit via the voltage regulator; Transmitting the current configuration information to the central processing unit via a baseboard management controller; Obtaining, by the central processor, a theoretical system power consumption based on the first output power consumption and the first number of in-positions; The first system power consumption is compared with the theoretical system power consumption by the central controller to obtain a comparison result.
7. A server, include: multiple power supply units and voltage regulators; The plurality of power supply units are connected to the voltage regulator via a load sharing bus; The voltage regulator is used to obtain a first system current of all the power supply units in the current state based on obtaining the load sharing bus voltage and obtaining a first voltage-to-current ratio corresponding to the current configuration information of all the power supply units in the current state from the register; The voltage regulator is further used to obtain the first system power consumption based on the system voltage provided by the power supply unit in the in-position state and the first system current.
8. The server according to claim 7, in, Also includes: a baseboard management controller, the plurality of power supply units being connected to the baseboard management controller via an integrated circuit bus, and the baseboard management controller being connected to the voltage regulator via the integrated circuit bus; The baseboard management controller is used to obtain current configuration information of all power supply units currently in place, determine the first voltage-current ratio corresponding to the current configuration information when the current configuration information is inconsistent with the preset configuration information, and write the first voltage-current ratio into the register of the voltage regulator.
9. The server according to claim 7, in, Also includes: a baseboard management controller, the plurality of power supply units being connected to the baseboard management controller via an integrated circuit bus, and the baseboard management controller being connected to the voltage regulator via the integrated circuit bus; The baseboard management controller is used to obtain current configuration information of all power supply units currently in place, and determine that when the current configuration information is consistent with preset configuration information, the first voltage-to-current ratio is the voltage-to-current ratio corresponding to the pre-stored preset configuration information.
10. The server according to claim 8 or 9, in, Also includes: A field programmable gate array, wherein the plurality of power supply units are connected to the field programmable gate array via a power harness, and the field programmable gate array is connected to the baseboard management controller via the integrated circuit bus; The baseboard management controller is further used to obtain the first output power consumption of the power supply unit in the in-position state based on obtaining the output power consumption of each of the multiple power supply units; The field programmable gate array is used to obtain the first in-place number of all power supply units in the in-place state based on obtaining the in-place status of each of the multiple power supply units, and transmit it to the baseboard management controller; wherein the first output power consumption and the first in-place number constitute the current configuration information.
Citation Information
Cited By
Server
CN119472974A
