Access method and device of power supply unit, storage medium and electronic equipment
By collecting and comparing the voltage values of the image processing units in the server and dynamically adjusting the access status of the power supply unit, the problems of poor power supply policy and low security in the prior art are solved, and the operation efficiency and stability of the server are improved.
Patent Information
- Application Number
- CN202411755219.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-29
- Publication Date
- 2025-04-11
- Estimated Expiration
- 2044-11-29
AI Technical Summary
In the prior art, the adjustment of power supply policy has poor effect and low security, which leads to the GPU server's voltage exceeding the SPEC specification under high power consumption, causing GPU card drop and server downtime.
By collecting the current voltage values of multiple image processing units in the server, comparing them with their standard voltage values, triggering a mode switching command, connecting the power supply units in the sleep mode to the power supply circuit in turn until the circuit parameters meet the target conditions, and dynamically adjusting the power supply policy.
It effectively avoids the problem of insufficient or excessive power supply, improves the server's operating efficiency and energy utilization efficiency, ensures that the server operates stably under various working conditions, and reduces the system failure rate.
Smart Images

Figure CN119806300A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of server technology, and in particular to a method and device for accessing a power supply unit, a storage medium, and an electronic device. Background Art
[0002] The power consumption of existing GPU servers is getting higher and higher, and the power consumption of the matching PSU modules is also getting higher and higher. The greater the power consumption, the greater the loss itself. Therefore, most AI GPU servers will use more efficient power supplies to meet the requirements of high efficiency and low loss.
[0003] However, although the server system switches the power module to Active-standby mode, the overall work efficiency can be improved. However, due to the dynamic current characteristics of the GPU itself, the current of the GPU itself will fluctuate greatly when processing business needs, which is usually called EDPp current. The greater the fluctuation of the GPU current, the greater the voltage fluctuation of its operation will be. With the development of GPUs, the voltage specifications of GPUs are currently required to be higher and higher. The higher the power consumption of the GPU, the higher the voltage fluctuation during operation. When the system switches the power module to Active-standby mode, the PSU current shared in each Active mode will increase, which will also affect the output voltage of the PSU, thereby causing the voltage on the GPU side to exceed the SPEC specification of the GPU, causing the GPU to drop the card, and in severe cases, it may cause the server to crash. In other words, the adjustment of the power supply strategy in the related technology is ineffective and has low security.
[0004] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention
[0005] The embodiments of the present application provide a method and device for accessing a power supply unit, a storage medium, and an electronic device, so as to at least solve the technical problems in the related art of poor effect of adjusting the power supply strategy and low safety.
[0006] According to an embodiment of the present application, a method for connecting a power supply unit is provided, comprising: respectively collecting current voltage values of multiple image processing units in a server at the current moment; triggering a mode switching instruction when it is determined that the multiple image processing units include a first processing unit based on a comparison result between the standard voltage values corresponding to each of the multiple image processing units and the current voltage values; according to the mode switching instruction, sequentially connecting at least one power supply unit in a sleep mode to a power supply circuit for powering the multiple image processing units until at least one circuit parameter corresponding to each of the multiple image processing units meets a target condition, wherein the power supply unit is used to convert an alternating current into a direct current for powering the multiple image processing units.
[0007] According to another aspect of an embodiment of the present application, a power supply unit access device is also provided, including: an acquisition unit, which respectively acquires current voltage values of multiple image processing units in a server at the current moment; a determination unit, which triggers a mode switching instruction when it is determined that the multiple image processing units include a first processing unit based on a comparison result between the standard voltage values corresponding to each of the multiple image processing units and the current voltage values; an execution unit, which, according to the mode switching instruction, sequentially connects at least one power supply unit in sleep mode to a power supply circuit for powering multiple image processing units until at least one circuit parameter corresponding to each of the multiple image processing units meets the target condition, wherein the power supply unit is used to convert alternating current into direct current for powering multiple image processing units.
[0008] Optionally, the above-mentioned determination unit includes: a first determination module, used to obtain current description information matching the first processing unit when there is a first processing unit whose comparison result between the current voltage value and the standard voltage value matching it is greater than the first threshold, and the comparison result is less than or equal to the second threshold, wherein the first threshold is less than the second threshold; determine a trigger mode switching instruction when the current description information indicates that the current trend matching the first processing unit meets the mode switching condition; determine a trigger mode switching instruction when there is a first processing unit whose comparison result between the current voltage value and the standard voltage value matching it is greater than the second threshold.
[0009] Optionally, the above-mentioned first determination module is also used to: obtain multiple current values matching the first processing unit within the target acquisition cycle, and determine the current trend matching the first processing unit based on the multiple current values, wherein the last acquisition moment of the target acquisition cycle is the current moment; when the current description information indicates that the current value collected at the current moment is the standard maximum current value, and the current trend is an upward or downward trend, determine that the mode switching condition is met and trigger the mode switching instruction.
[0010] Optionally, the above-mentioned first determination module is also used to: reverse the voltage of the detection port in the power supply circuit and send a second alarm message; connect at least one power supply unit in the sleep mode to the power supply circuit in turn according to the second alarm message, until the comparison result between the current voltage value of each first processing unit and the standard voltage value matching it is less than or equal to the second threshold; when the comparison result between the current voltage value of the first processing unit and the standard voltage value matching it is greater than the first threshold, obtain the current description information matching the first processing unit; when the current description information indicates that the current trend matching the first processing unit is an upward or downward trend, send the first alarm message; connect at least one power supply unit in the sleep mode to the power supply circuit in turn according to the first alarm message, until the comparison result between the current voltage value of each image processing unit and the standard voltage value matching it is less than or equal to the first threshold.
[0011] Optionally, the above-mentioned first determination module includes: a matching module used to: obtain a current fluctuation coefficient that matches the power supply circuit at the current moment, wherein the current fluctuation coefficient is used to indicate the degree of current fluctuation, and the degree of current fluctuation is negatively correlated with the number of power supply units; when the ratio of the current fluctuation coefficient to the target adjustment coefficient is in the first reference interval, determine that the current fluctuation degree of the power supply circuit at the current moment is a slight fluctuation state, wherein the target adjustment coefficient is an average value of multiple current fluctuation coefficients that match multiple power supply circuits in the target performance state; determine that the number of power supply units that need to perform mode switching operations that match the slight fluctuation state is a first number, and connect the first number of power supply units to the power supply circuit in sequence; when the ratio of the current fluctuation coefficient to the target adjustment coefficient is in the second reference interval, determine that the current fluctuation degree of the power supply circuit at the current moment is a severe fluctuation state; determine that the number of power supply units that need to perform mode switching operations that match the severe fluctuation state is a second number, and connect the second number of power supply units to the power supply circuit in sequence.
[0012] Optionally, the above-mentioned first determination module includes: a processing module used to: when all power supply units are in working mode and the comparison result between the current voltage value of the first processing unit and the standard voltage value matching it is greater than a first threshold, perform a power consumption limiting operation on the first processing unit until the comparison result between the current voltage value of each image processing unit in the server and the standard voltage value matching it is less than or equal to the first threshold, wherein the power consumption limiting operation is used to adjust the working frequency of the image processing unit to reduce the power consumption current of the image processing unit.
[0013] According to another aspect of the embodiments of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the above-mentioned power supply unit access method when running.
[0014] According to another aspect of the embodiments of the present application, a computer program product or a computer program is provided, the computer program product or the computer program including computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the above power supply unit access method.
[0015] According to another aspect of the embodiments of the present application, there is also provided an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to execute the power supply unit access method through the computer program.
[0016] Through the present application, first, the current voltage values of multiple image processing units in the server at the current moment are collected respectively; when it is determined that the multiple image processing units include a first processing unit whose current voltage value exceeds the target working range based on the comparison results between the standard voltage values corresponding to each of the multiple image processing units and the current voltage values, a mode switching instruction is triggered; thereby, according to the mode switching instruction, at least one power supply unit in the sleep mode is sequentially connected to the power supply circuit for powering the multiple image processing units until at least one circuit parameter corresponding to each of the multiple image processing units meets the target conditions, and the image processing units in the circuit are put into a normal working state according to the above-mentioned power supply adjustment strategy, thereby solving the technical problems of poor effect and low safety of adjusting the power supply strategy in the related art. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0018] Figure 1 It is a hardware structure block diagram of a server device of a method for accessing a power supply unit according to an embodiment of the present application;
[0019] Figure 2 is a flow chart of a method for accessing a power supply unit according to an embodiment of the present application;
[0020] Figure 3 is a flow chart of another method for accessing a power supply unit according to an embodiment of the present application;
[0021] Figure 4 is a flow chart of another method for accessing a power supply unit according to an embodiment of the present application;
[0022] Figure 5is a flow chart of another method for accessing a power supply unit according to an embodiment of the present application;
[0023] Figure 6 is a schematic diagram of a method for accessing a power supply unit according to an embodiment of the present application;
[0024] Figure 7 is a structural schematic diagram of an access device for a power supply unit according to an embodiment of the present application;
[0025] Figure 8 It is a structural schematic diagram of a power supply unit connected to an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0026] The embodiments of the present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0027] It should be noted that the terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.
[0028] The method embodiments provided in the embodiments of the present application can be executed in a server device or a similar computing device. Taking running on a server device as an example, Figure 1 1 is a hardware structure block diagram of a server device of a method for accessing a power supply unit according to an embodiment of the present application. Figure 1 As shown, the server device may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the above-mentioned server device may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above server device. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.
[0029] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the access method of the power supply unit in the embodiment of the present application. The processor 102 executes various functional applications and access to the power supply unit by running the computer program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the server device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0030] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the server device. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0031] As an optional implementation, Figure 2 As shown, the access method of the power supply unit includes:
[0032] S202, respectively collecting current voltage values of multiple image processing units in the server at the current moment;
[0033] S204, triggering a mode switching instruction when it is determined that the plurality of image processing units include the first processing unit according to a comparison result between the standard voltage values corresponding to the plurality of image processing units and the current voltage value;
[0034] S206, according to the mode switching instruction, sequentially connect at least one power supply unit in the sleep mode to the power supply circuit for powering multiple image processing units until at least one circuit parameter corresponding to each of the multiple image processing units meets the target condition, wherein the power supply unit is used to convert AC current into DC current for powering multiple image processing units.
[0035] In an optional implementation, it should be noted that in the above step S202, the current voltage values of multiple image processing units in the server at the current moment are respectively collected. It should be noted that a 12V voltage acquisition circuit can be added to the current power supply circuit, and the 12V voltage acquisition circuit can continuously monitor the voltage on the PCIE CONN (PCI Express connection) or other key interfaces to ensure that it remains within the specified range. The standard voltage value is determined based on the SPEC (specification) of the GPU and the operating requirements of the server, and is intended to ensure that the GPU operates within the established safety and performance range. In this implementation, the current voltage value of each GPU is collected, and the collected 12V voltage is compared with the SPEC specification. If the collected 12V voltage is within the SPEC, the power module maintains the current BMC setting and does not operate.
[0036] Furthermore, in the above step S204, when it is determined that the plurality of image processing units include the first processing unit according to the comparison result between the standard voltage values corresponding to the plurality of image processing units and the current voltage value, the mode switching instruction is triggered.
[0037] Specifically, the comparison result may be that the current voltage value collected exceeds the standard voltage value, and the GPU is determined to be the first processing unit. The standard voltage value may be a voltage range or a specific value of the GPU operation determined according to the SPEC specification of the GPU. The mode switching operation instruction may be a mode switching operation sent after the voltage of the GPIO port is reversed, the BMC detects the voltage reversal, and determines that the GPU voltage exceeds the SPEC specification, which can be used to adjust the power supply state in the power supply circuit, such as switching at least one PSU in the Standby mode in the BMC switching circuit to the Active mode.
[0038] In some optional embodiments, such as step S206 above, according to the mode switching instruction, at least one power supply unit in the sleep mode is sequentially connected to the power supply circuit for powering multiple image processing units until at least one circuit parameter corresponding to each of the multiple image processing units meets the target condition, wherein the power supply unit is used to convert AC current into DC current for powering multiple image processing units.
[0039] The sleep mode may be a Standby mode, i.e., a standby state without being connected. The circuit parameters may be collected voltage, current, voltage fluctuation value, voltage fluctuation value, etc. The target condition may be that the parameter value of a circuit parameter of a certain attribute collected is less than the corresponding standard value.
[0040] As an optional implementation, Figure 3 As shown:
[0041] After booting up, first execute S302-1, the BMC collects the GPU model and sets the PCIE voltage SPEC; at the same time, execute S302, the BMC sets the PSU to enter Active-Standby mode.
[0042] Further executing S304, the PCIE CONN 12V circuit collects the 12V voltage;
[0043] According to the voltage value collected in step S304 and the standard voltage value determined according to the GPU model, it is determined in step S306 whether it exceeds the set value;
[0044] If the voltage does not exceed the standard voltage, continue to execute S304 to collect the voltage;
[0045] If the voltage exceeds the standard voltage, S308 is executed to switch one of the PSUs to the Active mode;
[0046] Further determine S310 whether it exceeds the set value; if it does not exceed the set value, end the control;
[0047] If the set value is exceeded, execute s312 to switch one of the PSUs to Active mode;
[0048] Further determine S314 whether it exceeds the set value, if not, end the control, if exceeded, return to execute S312.
[0049] Through the present application, first, the current voltage values of multiple image processing units in the server at the current moment are collected respectively; when it is determined that the multiple image processing units include a first processing unit whose current voltage value exceeds the target working range based on the comparison results between the standard voltage values corresponding to each of the multiple image processing units and the current voltage values, a mode switching instruction is triggered; thereby, according to the mode switching instruction, at least one power supply unit in the sleep mode is sequentially connected to the power supply circuit for powering the multiple image processing units until at least one circuit parameter corresponding to each of the multiple image processing units meets the target condition, and the image processing units in the circuit are put into a normal working state according to the above-mentioned power supply adjustment strategy. Through this method, the server can dynamically adjust the working state of the power supply unit according to the actual needs of the image processing unit, effectively avoiding the problem of insufficient or excessive power supply, improving the operating efficiency and energy utilization efficiency of the server, and solving the technical problems of poor effect of adjusting the power supply strategy and low safety in the related technology.
[0050] In an optional implementation, when it is determined that the plurality of image processing units include the first processing unit according to the comparison results between the standard voltage values corresponding to the plurality of image processing units and the current voltage values, the triggering mode switching instruction includes:
[0051] S1, in the case where there is a first processing unit whose comparison result between the current voltage value and the standard voltage value matching the current voltage value is greater than a first threshold value and whose comparison result is less than or equal to a second threshold value, obtaining current description information matching the first processing unit, wherein the first threshold value is less than the second threshold value;
[0052] S2, determining a trigger mode switching instruction when the current description information indicates that the current trend matching the first processing unit satisfies the mode switching condition;
[0053] s3, in the case where there is a first processing unit whose comparison result between the current voltage value and the standard voltage value matching it is greater than the second threshold, determining a trigger mode switching instruction.
[0054] Optionally, in this embodiment, S1-S2 are first executed. When there is a first processing unit in which the comparison result between the current voltage value and the standard voltage value matching it is greater than a first threshold and the comparison result is less than or equal to a second threshold, the current description information matching the first processing unit is obtained, wherein the first threshold is less than the second threshold; when the current description information indicates that the current trend matching the first processing unit satisfies the mode switching condition, a trigger mode switching instruction is determined.
[0055] Optionally, the comparison result may specifically be a ratio of the current voltage value to the standard voltage value, or a ratio of the current voltage value to the standard voltage value, etc. The first threshold value and the second threshold value may be dynamically set according to the running state of the server, for example, the first threshold value may be set to ±3% of the standard voltage value (SPEC voltage) range, and the second threshold value may be set to ±6% of the standard voltage value (SPEC voltage) range, that is, the current value exceeds ±3% of the standard voltage value range, and the current description information is obtained when the current value is within ±3% of the standard voltage value range; the current description information may be, but is not limited to, information such as the current value, the current trend, and the current fluctuation state; the mode switching condition may be, but is not limited to, the current reaching the maximum value of the GPU standard specification current, and the current fluctuation trend in the recent time period is drastic, or the load change rate is greater than a preset value, etc., and no specific restrictions are made here; the mode switching instruction may be, but is not limited to, an instruction issued in the form of a digital signal, a network protocol signal, or a PWM signal to switch the power supply in the sleep mode to the working mode, that is, to connect the power supply unit in the standby state to the power supply circuit.
[0056] It should be noted that when the GPU load changes, the BMC will automatically adjust the first threshold according to the current state and trend of the load. For example, if the load is low, the BMC may relax the threshold and allow a larger voltage fluctuation range to reduce the switching of the PSU and save energy. If the load is high and unstable, the BMC will tighten the threshold to ensure that the voltage changes within a smaller range, avoid the GPU voltage exceeding the SPEC, and ensure system stability.
[0057] As an optional implementation, the level 1 alarm setting voltage is set close to the upper and lower limits of the GPU voltage SPEC. After the server is turned on, the BMC, GPU, and other components start working, and the PCIE voltage acquisition circuit also starts working. The collected 12V voltage is compared with the level 1 alarm point. If the collected 12V voltage is within the SPEC, the power module maintains the current BMC setting and does not act. If the collected 12V voltage exceeds the level 1 alarm range, the system collects and feeds back the current value of the GPU to determine whether the current of the GPU reaches the maximum value at this time. If the current of the GPU reaches the maximum value at this time, the system BMC does not issue an alarm, and the system processes the business normally. If the current of the GPU does not reach the maximum value at this time, the system BMC determines whether the next working current of the GPU will rise or fall based on the current trend fed back by the current sampling circuit. If it is determined that the current continues to rise or fall, the BMC switches one of the PSUs in the Standby mode to the Active mode to reduce the current fluctuation of the entire PSU, thereby reducing the working voltage fluctuation range of the 1 2V link of the entire system. If it is determined that the GPU current trend is stable and remains unchanged at this time, the system BMC will not issue an alarm and the system will process business normally.
[0058] Further in the above step S3, in the case that there is a first processing unit whose comparison result between the current voltage value and the standard voltage value matching it is greater than the second threshold, a trigger mode switching instruction is determined.
[0059] As an optional implementation, the voltage of the second-level alarm setting exceeds the upper and lower limits of the GPU voltage SPEC. When the 12V voltage collected and fed back by the PCIE voltage acquisition circuit triggers the second-level alarm, the voltage of the GPIO port is immediately reversed. After the BMC detects the voltage reversal, it determines that the GPU voltage exceeds the SPEC specification. The BMC sends an instruction to one of the standby power modules to switch the Standby mode to the Active mode. After the switch is successful, the PCIE voltage acquisition circuit continues to feedback 12V voltage. If the alarm is still triggered, the other Standby mode power modules continue to switch to the Active mode until the 12V voltage fed back by the acquisition circuit is within the GPU SPEC specification. After the GPU voltage meets the SPEC, the voltage of the GPIO port is restored. After the power module in the Standby mode is successfully switched to the Active mode, the PCIE voltage acquisition circuit continues to feedback 12V voltage. If the alarm is not triggered, the voltage of the GPIO port is restored. At this time, the first-level alarm judgment continues to be performed, and the first-level alarm judgment process is entered. Until the GPU meets the specifications, it can work stably. If the voltage at the GPU end still exceeds the SPEC operating voltage range after all power modules are switched to Active, the system can use the BMC to adjust the CPU operating frequency or GPU operating frequency to limit the power consumption current of the GPU to ensure that the GPU does not exceed the SPEC.
[0060] Through the above implementation of the present application, in the case of a first processing unit where the comparison result between the current voltage value and the standard voltage value matching it is greater than the first threshold value, and the comparison result is less than or equal to the second threshold value, the current description information matching the first processing unit is obtained; in the case where the current description information indicates that the current trend matching the first processing unit meets the mode switching condition, the trigger mode switching instruction is determined; in the case of a first processing unit where the comparison result between the current voltage value and the standard voltage value matching it is greater than the second threshold value, the trigger mode switching instruction is determined; by setting different thresholds to distinguish the access timing of the power supply unit, the working state of the power supply unit can be controlled more finely, and the voltage demand changes of the image processing unit under different loads can be effectively responded to, ensuring that the server can operate stably under various working conditions. The response speed and processing capacity of the server are improved, while reducing the system failure rate caused by voltage fluctuations.
[0061] In an optional implementation, when the current description information indicates that the current trend matching the first processing unit satisfies the mode switching condition, determining a trigger mode switching instruction includes:
[0062] S1, acquiring multiple current values matching the first processing unit within a target acquisition cycle, and determining a current trend matching the first processing unit according to the multiple current values, wherein the last acquisition moment of the target acquisition cycle is the current moment;
[0063] S2, when the current description information indicates that the current value collected at the current moment is the standard maximum current value and the current trend is an upward or downward trend, determine that the mode switching condition is met and trigger a mode switching instruction.
[0064] In the above steps S1-s2, multiple current values matching the first processing unit within the target acquisition cycle are obtained, and the current trend matching the first processing unit is determined based on the multiple current values, wherein the last acquisition moment of the target acquisition cycle is the current moment; when the current description information indicates that the current value collected at the current moment is the standard maximum current value, and the current trend is an upward or downward trend, it is determined that the mode switching condition is met and the mode switching instruction is triggered. The above target acquisition cycle is a preset time interval for collecting data in a data acquisition system in order to meet specific monitoring, analysis or control requirements. The acquisition cycle can be optimized in real time according to factors such as the current load state, system operating environment or health status of the power module.
[0065] The following Figure 4 The control flow is shown as an example:
[0066] After the computer is turned on, S402 is executed, and the BMC collects information such as the GPU model and power consumption; specifically, it reads key information such as the GPU model, power consumption characteristics, and voltage specifications.
[0067] S404, set a first-level alarm value; and further determine the current collected voltage and the standard voltage, determine S406, whether to issue a first alarm value; for example, it can be near the upper and lower limits of the GPU voltage specification, such as a point between 11.4V and 12.6V.
[0068] If the first alarm value is issued, S408 is executed to collect GPU current data; further judgment is made in S410 to determine whether the GPU rated value is reached; if the GPU rated value is not reached, S412 is executed and the system does not issue an alarm; and control ends.
[0069] That is, the 12V voltage acquisition circuit starts working and monitors the voltage of the PCIE CONN terminal in real time. The BMC receives these voltage data and compares them with the first-level alarm value. If the current voltage is within the alarm value, that is, the GPU has room to handle more load, the system will not send an alarm, but continue to monitor, and the BMC will not take any action.
[0070] If the GPU rated value is reached, S414 is executed to determine the GPU current trend;
[0071] Further judgement of S416, current rise?
[0072] If the current increases, S418 is executed to switch one of the PSUs into Active mode, which is used to distribute the load, reduce voltage fluctuations, and prevent the GPU voltage from exceeding SPEC.
[0073] If the current does not increase, that is, the current trend is gentle and the circuit fluctuation in the power supply circuit is small, the BMC maintains the current PSU state to execute S420, and the GPU voltage is maintained within SPEC.
[0074] Through the above-mentioned implementation mode of the present application, multiple current values matching the first processing unit within the target acquisition period are obtained, and the current trend matching the first processing unit is determined based on the multiple current values; when the current description information indicates that the current value collected at the current moment is the standard maximum current value, and the current trend is an upward or downward trend, it is determined that the mode switching condition is met and the mode switching instruction is triggered. By analyzing the current trend, the power consumption change of the image processing unit is predicted, and the working state of the power supply unit is adjusted, thereby avoiding the problem of insufficient power supply due to a sudden increase in power consumption, improving the power supply stability and prediction ability of the server, and solving the problems of low efficiency and low safety of the power supply strategy in the prior art.
[0075] In an optional implementation, when there is a first processing unit whose comparison result between the current voltage value and the standard voltage value matching the current voltage value is greater than the second threshold, determining the trigger mode switching instruction further includes:
[0076] S1, reverse the voltage of the detection port in the power supply circuit and send a second alarm message;
[0077] s2, connecting at least one power supply unit in the sleep mode to the power supply circuit in sequence according to the second alarm information, until the comparison result between the current voltage value of each first processing unit and the standard voltage value matching it is less than or equal to the second threshold;
[0078] S3, when a comparison result between the current voltage value of the first processing unit and the standard voltage value matching the first processing unit is greater than a first threshold, obtaining current description information matching the first processing unit;
[0079] S4, sending a first alarm message when the current description information indicates that the current trend matching the first processing unit is an upward or downward trend;
[0080] s5. Connect at least one power supply unit in the sleep mode to the power supply circuit in sequence according to the first alarm information until the comparison result between the current voltage value of each image processing unit and the standard voltage value matching it is less than or equal to the first threshold.
[0081] Optional, with flow chart Figure 5 The above steps s1-s5 are explained as follows:
[0082] After booting, execute S502, and the BMC collects information such as GPU model and power consumption; S504 sets the second-level alarm value;
[0083] Further determine S506 whether the GPU is pressurized to trigger the second level alarm value; if the second level alarm value is not triggered, continue to determine the state at the next moment.
[0084] If the second level alarm value is triggered, S508 is executed, the voltage of the GPIO port is immediately reversed, and a mode switching signal is sent to the BMC; further, the BMC executes S510 to switch one of the PSUs into the Active mode.
[0085] After the mode is switched, it is continued to determine in S512 whether the second level alarm value is triggered; if the second level alarm value is triggered, S514 is executed to continue switching one of the PSUs to enter the Active mode; S516, the voltage of the GPIO port is restored to the reset position.
[0086] On the other hand, if the second-level alarm value is not triggered after the mode switching, the first-level alarm processing flow is performed, S518 is executed, and the voltage of the GPIO port is restored to the reset position; further judgment S520 is made to see whether the first-level alarm value is triggered; if the first-level alarm value is not triggered, the process ends.
[0087] If the first level alarm value is triggered, S522 is executed to jump to the first level alarm processing flow, such as Figure 4 As shown; the schematic diagram of the above overall switching process is as shown Figure 6 As shown, the 12V voltage sampling in the circuit determines whether it is within the standard voltage value range, and further increases the 12V current sampling. If the acquisition voltage value of the GPU in the circuit is determined to exceed the standard voltage value according to the above process, and the circuit state fluctuates, the GPIO port is reversed, and the BMC module controls the PSU unit to switch the mode, or when the acquisition voltage value does not exceed the standard voltage value, the GPIO port is restored.
[0088] Through the above-mentioned implementation steps of the present application, a multi-level alarm mechanism is set up, which can respond to power supply abnormalities in a timely manner, avoid hardware damage caused by excessively high or low voltage, and improve the reliability and safety of the server.
[0089] In an optional implementation, after determining the trigger mode switching instruction, the method includes:
[0090] S1, obtaining a current fluctuation coefficient matching the power supply circuit at the current moment, wherein the current fluctuation coefficient is used to indicate the degree of current fluctuation, and the degree of current fluctuation is negatively correlated with the number of power supply units;
[0091] S2, when the ratio of the current fluctuation coefficient to the target adjustment coefficient is in the first reference interval, determining that the current fluctuation degree of the power supply circuit at the current moment is in a slight fluctuation state, wherein the target adjustment coefficient is an average value of multiple current fluctuation coefficients matching multiple power supply circuits in the target performance state;
[0092] s3, determining that the number of power supply units that need to perform mode switching operations matching the slight fluctuation state is a first number, and sequentially connecting the first number of power supply units to the power supply circuit;
[0093] s4, when the ratio of the current fluctuation coefficient to the target adjustment coefficient is within the second reference interval, determining that the current fluctuation degree of the power supply circuit at the current moment is in a severe fluctuation state;
[0094] s5, determining that the number of power supply units that need to perform mode switching operations matching the violent fluctuation state is a second number, and sequentially connecting the second number of power supply units to the power supply circuit.
[0095] In the above steps S1-S3, first, a current fluctuation coefficient matching the power supply circuit at the current moment is obtained; then, when the ratio of the current fluctuation coefficient to the target adjustment coefficient is in the first reference interval, it is determined that the current fluctuation degree of the power supply circuit at the current moment is a slight fluctuation state; it is further determined that the number of power supply units that need to perform mode switching operations matching the slight fluctuation state is a first number, and the first number of power supply units are connected to the power supply circuit in sequence.
[0096] Optionally, the current fluctuation coefficient can be calculated based on the highest and lowest current values in the past 10 seconds, and the ratio of the difference between the two to the average value of the historical fluctuation coefficient, so as to quantify the current current fluctuation degree. For example, if the current variation range in 10 seconds is 10A and the average current is 100A, then the current fluctuation coefficient is 10%. The target performance state can be the optimal or normal working state expected by the server or power system when it is designed, including the performance of the system when processing a specific workload, or the state of operation under a certain power consumption and efficiency, etc.;
[0097] The above target adjustment coefficient can be that the current fluctuation coefficients monitored under normal processing of workload at historical moments are 8%, 9%, 10%, 11%...18%, and the average value of these coefficients (for example, 13%) can be used as the target adjustment coefficient. This means that when the system is operating normally, the average amplitude of the current fluctuation is about 13%.
[0098] In some optional embodiments, when the ratio of the current current fluctuation coefficient to the target adjustment coefficient is between 0.8-1.2, it is determined that the current circuit is in a slight fluctuation state, and the range of the number of PSUs that need to be connected to the power supply circuit in the slight fluctuation state can be determined in advance through a machine learning algorithm. For example, in the slight fluctuation state, three new PSUs need to be connected, that is, the modes of the three PSUs are switched, and the Standby mode is switched to the Active mode. It can be understood that the modes can be switched sequentially while checking the fluctuation state of the circuit, or all of them can be connected at once, and no specific restrictions are made here.
[0099] In the above steps S4-S5, when the ratio of the current fluctuation coefficient to the target adjustment coefficient is in the second reference interval, it is determined that the current fluctuation degree of the power supply circuit at the current moment is a severe fluctuation state; the number of power supply units that need to perform mode switching operations to match the severe fluctuation state is determined to be the second number, and the second number of power supply units are connected to the power supply circuit in sequence.
[0100] The following is an explanation of an optional implementation method, assuming that a server system has 8 PSUs, 4 of which are in Active state and 4 in Standby state. The target adjustment coefficient of the system design is 5%, which means that during normal operation, the acceptable current fluctuation range is ±5% of the average current value. If the monitored current fluctuation coefficient is 3%, and the ratio to the target adjustment coefficient is in the first reference interval, the system determines that it is in a slight fluctuation state. In this case, the system decides to switch only 2 PSUs into Active state to increase redundancy, but will not significantly increase power consumption.
[0101] If the current fluctuation coefficient suddenly increases to 10% and the ratio is in the second reference interval, the system determines that it is in a violent fluctuation state. In order to quickly stabilize the current, the system may decide to switch 4 PSUs into the Active state at the same time to improve the stability and redundancy of the current supply.
[0102] Through the above-mentioned implementation method recorded in this application, that is, the intelligent algorithm based on the ratio of the current fluctuation coefficient to the target coefficient, the number of new PSU modules that need to be connected in the power supply strategy can be dynamically predicted in advance, so that the server power management system can achieve more efficient, more stable and safer power supply in a complex and changeable working environment, and improve the efficiency of the power supply strategy.
[0103] In an optional implementation, at least one power supply unit in the sleep mode is sequentially connected to the power supply circuit according to the first alarm information until a comparison result between a current voltage value of each image processing unit and a standard voltage value matched therewith is less than or equal to a first threshold value, including:
[0104] s 1, when all power supply units are in working mode and the comparison result between the current voltage value of the first processing unit and the standard voltage value matching it is greater than the first threshold value, perform a power consumption limiting operation on the first processing unit until the comparison result between the current voltage value of each image processing unit in the server and the standard voltage value matching it is less than or equal to the first threshold value, wherein the power consumption limiting operation is used to adjust the working frequency of the image processing unit to reduce the power consumption current of the image processing unit.
[0105] Optionally, if the voltage at the GPU end still exceeds the SPEC operating voltage range after all power modules are switched to Active, the system can use BMC to adjust the GPU operating frequency and limit the power consumption current of the GPU to ensure that the GPU does not exceed SPEC. Specifically, it includes but is not limited to adjusting the clock speed and core voltage of the GPU or limiting its maximum power consumption, thereby reducing the power consumption of the GPU and allowing the voltage to drop naturally until it reaches a safe range.
[0106] Through the above implementation of the present application, when all power supply units are in working mode and the comparison result between the current voltage value of the first processing unit and the standard voltage value matching it is greater than the first threshold value, the power consumption limiting operation is performed on the first processing unit until the comparison result between the current voltage value of each image processing unit in the server and the standard voltage value matching it is less than or equal to the first threshold value; by limiting the power consumption of the image processing unit when the power supply unit is working at full load, the system crash caused by insufficient power supply capacity is avoided, and the fault tolerance and emergency response capabilities of the server are improved. It can ensure that the server can still maintain basic operation under limited power supply conditions, reducing the risk of business interruption.
[0107] Through this dynamic adjustment mechanism, the server's power management system can intelligently respond to voltage fluctuations caused by high-power components (such as GPUs) and ensure the stability and efficiency of the system when processing complex workloads by performing power consumption limitation operations in a timely manner. At the same time, it protects key hardware from damage caused by voltage anomalies, thereby improving the overall operation quality and service life of the server.
[0108] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
[0109] According to another aspect of the embodiments of the present application, there is also provided a power supply unit access device for implementing the above power supply unit access method. Figure 7 As shown, the device comprises:
[0110] The collecting unit 702 collects the current voltage values of the multiple image processing units in the server at the current moment respectively;
[0111] The determining unit 704 triggers a mode switching instruction when it is determined that the plurality of image processing units include the first processing unit according to a comparison result between the standard voltage values corresponding to the plurality of image processing units and the current voltage value;
[0112] The execution unit 706 connects at least one power supply unit in the sleep mode to the power supply circuit for powering the multiple image processing units in sequence according to the mode switching instruction, until at least one circuit parameter corresponding to each of the multiple image processing units meets the target condition, wherein the power supply unit is used to convert AC current into DC current for powering the multiple image processing units.
[0113] Optionally, the above-mentioned determination unit 704 includes: a first determination module, used to obtain current description information matching the first processing unit when there is a first processing unit whose comparison result between the current voltage value and the standard voltage value matching it is greater than the first threshold, and the comparison result is less than or equal to the second threshold, wherein the first threshold is less than the second threshold; determine a trigger mode switching instruction when the current description information indicates that the current trend matching the first processing unit meets the mode switching condition; determine a trigger mode switching instruction when there is a first processing unit whose comparison result between the current voltage value and the standard voltage value matching it is greater than the second threshold.
[0114] Optionally, the above-mentioned first determination module is also used to: obtain multiple current values matching the first processing unit within the target acquisition cycle, and determine the current trend matching the first processing unit based on the multiple current values, wherein the last acquisition moment of the target acquisition cycle is the current moment; when the current description information indicates that the current value collected at the current moment is the standard maximum current value, and the current trend is an upward or downward trend, determine that the mode switching condition is met and trigger the mode switching instruction.
[0115] Optionally, the above-mentioned first determination module is also used to: reverse the voltage of the detection port in the power supply circuit and send a second alarm message; connect at least one power supply unit in the sleep mode to the power supply circuit in turn according to the second alarm message, until the comparison result between the current voltage value of each first processing unit and the standard voltage value matching it is less than or equal to the second threshold; when the comparison result between the current voltage value of the first processing unit and the standard voltage value matching it is greater than the first threshold, obtain the current description information matching the first processing unit; when the current description information indicates that the current trend matching the first processing unit is an upward or downward trend, send the first alarm message; connect at least one power supply unit in the sleep mode to the power supply circuit in turn according to the first alarm message, until the comparison result between the current voltage value of each image processing unit and the standard voltage value matching it is less than or equal to the first threshold.
[0116] Optionally, the above-mentioned first determination module includes: a matching module used to: obtain a current fluctuation coefficient that matches the power supply circuit at the current moment, wherein the current fluctuation coefficient is used to indicate the degree of current fluctuation, and the degree of current fluctuation is negatively correlated with the number of power supply units; when the ratio of the current fluctuation coefficient to the target adjustment coefficient is in the first reference interval, determine that the current fluctuation degree of the power supply circuit at the current moment is a slight fluctuation state, wherein the target adjustment coefficient is an average value of multiple current fluctuation coefficients that match multiple power supply circuits in the target performance state; determine that the number of power supply units that need to perform mode switching operations that match the slight fluctuation state is a first number, and connect the first number of power supply units to the power supply circuit in sequence; when the ratio of the current fluctuation coefficient to the target adjustment coefficient is in the second reference interval, determine that the current fluctuation degree of the power supply circuit at the current moment is a severe fluctuation state; determine that the number of power supply units that need to perform mode switching operations that match the severe fluctuation state is a second number, and connect the second number of power supply units to the power supply circuit in sequence.
[0117] Optionally, the above-mentioned first determination module includes: a processing module used to: when all power supply units are in working mode and the comparison result between the current voltage value of the first processing unit and the standard voltage value matching it is greater than a first threshold, perform a power consumption limiting operation on the first processing unit until the comparison result between the current voltage value of each image processing unit in the server and the standard voltage value matching it is less than or equal to the first threshold, wherein the power consumption limiting operation is used to adjust the working frequency of the image processing unit to reduce the power consumption current of the image processing unit.
[0118] According to another aspect of the embodiment of the present application, an electronic device for implementing the above-mentioned power supply unit access method is also provided. The electronic device may be Figure 1The terminal device or server shown in the figure. This embodiment is described by taking the electronic device as a mobile phone or a computer as an example. Figure 8 As shown, the electronic device includes a memory 802 and a processor 804. The memory 802 stores a computer program. The processor 804 is configured to execute the steps in any of the above method embodiments through the computer program.
[0119] Optionally, in this embodiment, the electronic device may be located in at least one network device among a plurality of network devices of a computer network.
[0120] Optionally, in this embodiment, the processor may be configured to perform the following steps through a computer program:
[0121] S1, respectively collecting current voltage values of multiple image processing units in the server at the current moment;
[0122] S2, triggering a mode switching instruction when it is determined that the plurality of image processing units include the first processing unit according to a comparison result between the standard voltage values corresponding to the plurality of image processing units and the current voltage value;
[0123] S3, according to the mode switching instruction, sequentially connect at least one power supply unit in the sleep mode to the power supply circuit for powering multiple image processing units until at least one circuit parameter corresponding to each of the multiple image processing units meets the target condition, wherein the power supply unit is used to convert AC current into DC current for powering multiple image processing units.
[0124] Alternatively, a person skilled in the art may understand that: Figure 8 The structure shown is for illustration only, and the electronic device may also be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a PDA, a mobile Internet device (Mobile Internet Devices, MID), a PAD, or other terminal devices. Figure 8 The structure of the electronic device is not limited. Figure 8 More or fewer components (such as network interfaces, etc.) as shown in, or with Figure 8 Different configurations are shown.
[0125] Among them, the memory 802 can be used to store software programs and modules, such as the program instructions / modules corresponding to the access method and device of the power supply unit in the embodiment of the present application. The processor 804 executes various functional applications and access to the power supply unit by running the software programs and modules stored in the memory 802, that is, realizing the access method of the power supply unit mentioned above. The memory 802 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 802 may further include a memory remotely arranged relative to the processor 804, and these remote memories may be connected to the terminal via a network. Examples of the above-mentioned networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof. Among them, the memory 802 can be specifically, but not limited to, used to store information such as GPU specifications. As an example, such as Figure 8 As shown, the memory 802 may include, but is not limited to, the acquisition unit 702, the determination unit 704, and the execution unit 706 in the access device of the power supply unit. In addition, other module units in the access device of the power supply unit may also be included but are not limited to, which will not be repeated in this example.
[0126] Optionally, the transmission device 806 is used to receive or send data via a network. Specific examples of the network may include wired networks and wireless networks. In one example, the transmission device 806 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices and routers via a network cable so as to communicate with the Internet or a local area network. In one example, the transmission device 806 is a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0127] In addition, the electronic device further comprises: a display 808 for displaying the current circuit state; and a connection bus 810 for connecting various module components in the electronic device.
[0128] In other embodiments, the terminal device or server may be a node in a distributed system, wherein the distributed system may be a blockchain system, and the blockchain system may be a distributed system formed by connecting the multiple nodes through network communication. The nodes may form a point-to-point network, and any form of computing device, such as a server, terminal or other electronic device, may become a node in the blockchain system by joining the point-to-point network.
[0129] According to one aspect of the present application, a computer-readable storage medium is provided, and a processor of a computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the method provided in the above various optional implementations;
[0130] Optionally, in this embodiment, the computer-readable storage medium may be configured to store a computer program for performing the following steps:
[0131] s 1, respectively collecting the current voltage values of multiple image processing units in the server at the current moment;
[0132] S2, triggering a mode switching instruction when it is determined that the plurality of image processing units include the first processing unit according to a comparison result between the standard voltage values corresponding to the plurality of image processing units and the current voltage value;
[0133] s3. According to the mode switching instruction, at least one power supply unit in the sleep mode is sequentially connected to the power supply circuit for powering multiple image processing units until at least one circuit parameter corresponding to each of the multiple image processing units meets the target condition, wherein the power supply unit is used to convert AC current into DC current for powering multiple image processing units.
[0134] Optionally, in the embodiments of the present application, the term "module" or "unit" refers to a computer program or a part of a computer program that has a predetermined function, and works together with other related parts to achieve a predetermined goal, and can be implemented in whole or in part by using software, hardware (such as processing circuits or memories), or a combination thereof. Similarly, a processor (or multiple processors or memories) can be used to implement one or more modules or units. In addition, each module or unit can be part of an overall module or unit that includes the function of the module or unit.
[0135] Optionally, in this embodiment, a person of ordinary skill in the art may understand that all or part of the steps in the various methods of the above embodiments may be completed by instructing hardware related to the terminal device through a program, and the program may be stored in a computer-readable storage medium, and the storage medium may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc.
[0136] If the integrated units in the above embodiments are implemented in the form of software functional units and sold or used as independent products, they can be stored in the above computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling one or more computer devices (which can be personal computers, servers or network devices, etc.) to execute all or part of the steps of the methods of each embodiment of the present application.
[0137] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.
[0138] In the several embodiments provided in the present application, it should be understood that the disclosed client can be implemented in other ways. Among them, the device embodiments described above are only schematic, for example, the division of units is only a logical function division, and there may be other division methods in actual implementation, for example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0139] The units described as separate components may or may not be physically separated, and the components shown 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 solution of this embodiment.
[0140] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0141] The above are only preferred implementations of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
[0142] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.
[0143] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.
[0144] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.
[0145] An embodiment of the present application further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0146] In an exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.
[0147] An embodiment of the present application further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.
[0148] An embodiment of the present application further provides another computer program product, including a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.
[0149] The embodiments of the present application also provide a computer program, which includes computer instructions, which are stored in a computer-readable storage medium; a processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the steps in any one of the above method embodiments.
[0150] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.
[0151] Obviously, those skilled in the art should understand that the above modules or steps of the present application can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order from that herein, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present application is not limited to any specific combination of hardware and software.
[0152] The above are only preferred embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principles of the present application shall be included in the protection scope of the present application.
Claims
1. A method for accessing a power supply unit, characterized in that: include: respectively collecting current voltage values of multiple image processing units in the server at the current moment; When it is determined that the multiple image processing units include the first processing unit based on the comparison results between the standard voltage values corresponding to each of the multiple image processing units and the current voltage value, a mode switching instruction is triggered; according to the mode switching instruction, at least one power supply unit in the sleep mode is sequentially connected to the power supply circuit for powering the multiple image processing units until at least one circuit parameter corresponding to each of the multiple image processing units meets the target condition, wherein the power supply unit is used to convert AC current into DC current for powering the multiple image processing units.
2. The method according to claim 1, characterized in that The triggering mode switching instruction, when it is determined that the plurality of image processing units include the first processing unit according to the comparison result between the standard voltage values corresponding to the plurality of image processing units and the current voltage value, comprises: In the case where there is a first processing unit in which the comparison result between the current voltage value and the standard voltage value matching the current voltage value is greater than a first threshold value, and the comparison result is less than or equal to a second threshold value, obtaining current description information matching the first processing unit, wherein the first threshold value is less than the second threshold value; In a case where the current description information indicates that the current trend matching the first processing unit satisfies a mode switching condition, determining to trigger the mode switching instruction; In the case where there is the first processing unit in which the comparison result between the current voltage value and the standard voltage value matching therewith is greater than the second threshold, it is determined to trigger the mode switching instruction.
3. The method according to claim 2, characterized in that The determining to trigger the mode switching instruction when the current description information indicates that the current trend matching the first processing unit satisfies the mode switching condition includes: Acquire multiple current values matching the first processing unit within a target acquisition cycle, and determine the current trend matching the first processing unit according to the multiple current values, wherein the last acquisition moment of the target acquisition cycle is the current moment; When the current description information indicates that the current value collected at the current moment is a standard maximum current value, and the current trend is an upward or downward trend, it is determined that the mode switching condition is met and the mode switching instruction is triggered.
4. The method according to claim 2, characterized in that: The determining to trigger the mode switching instruction when there is the first processing unit whose comparison result between the current voltage value and the standard voltage value matching the current voltage value is greater than the second threshold value further includes: Reversely setting the voltage of the detection port in the power supply circuit and sending a second alarm information; connecting at least one of the power supply units in the sleep mode to the power supply circuit in sequence according to the second alarm information until the comparison result between the current voltage value of each of the first processing units and the standard voltage value matching the current voltage value is less than or equal to the second threshold; When the comparison result between the current voltage value of the first processing unit and the standard voltage value matching the current voltage value is greater than the first threshold, acquiring the current description information matching the first processing unit; When the current description information indicates that the current trend matching the first processing unit is an upward or downward trend, sending a first alarm information; According to the first alarm information, at least one of the power supply units in the sleep mode is connected to the power supply circuit in sequence until the comparison result between the current voltage value of each image processing unit and the matching standard voltage value is less than or equal to the first threshold.
5. The method according to claim 3, characterized in that: After the determining triggers the mode switching instruction, the method further comprises: Acquire a current fluctuation coefficient that matches the power supply circuit at the current moment, wherein the current fluctuation coefficient is used to indicate a degree of current fluctuation, and the degree of current fluctuation is negatively correlated with the number of the power supply units; In the case where the ratio of the current fluctuation coefficient to the target adjustment coefficient is in the first reference interval, determining that the current fluctuation degree of the power supply circuit at the current moment is in a slight fluctuation state, wherein the target adjustment coefficient is an average value of a plurality of the current fluctuation coefficients matching the plurality of power supply circuits in the target performance state; Determine that the number of the power supply units that need to perform a mode switching operation matching the slight fluctuation state is a first number, and sequentially connect the first number of power supply units to the power supply circuit; When the ratio of the current fluctuation coefficient to the target adjustment coefficient is within a second reference interval, determining that the current fluctuation degree of the power supply circuit at the current moment is in a severe fluctuation state; The number of the power supply units that need to perform the mode switching operation and match the violent fluctuation state is determined to be a second number, and the second number of power supply units are connected to the power supply circuit in sequence.
6. The method according to claim 4, characterized in that The step of sequentially connecting at least one of the power supply units in the sleep mode to the power supply circuit according to the first alarm information until the comparison result between the current voltage value of each of the image processing units and the standard voltage value matched therewith is less than or equal to the first threshold value includes: When all the power supply units are in working mode and the comparison result between the current voltage value of the first processing unit and the standard voltage value matching it is greater than the first threshold, a power consumption limiting operation is performed on the first processing unit until the comparison result between the current voltage value of each image processing unit in the server and the standard voltage value matching it is less than or equal to the first threshold, wherein the power consumption limiting operation is used to adjust the working frequency of the image processing unit to reduce the power consumption current of the image processing unit.
7. A power supply unit access device, characterized in that: include: An acquisition unit is configured to respectively acquire current voltage values of multiple image processing units in the server at the current moment; a determination unit is configured to trigger a mode switching instruction when it is determined that the multiple image processing units include a first processing unit based on a comparison result between the standard voltage values corresponding to each of the multiple image processing units and the current voltage value; an execution unit is configured to sequentially connect at least one power supply unit in a sleep mode to a power supply circuit for supplying power to the multiple image processing units according to the mode switching instruction until at least one circuit parameter corresponding to each of the multiple image processing units meets a target condition, wherein the power supply unit is configured to convert an alternating current into a direct current for supplying power to the multiple image processing units.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program implements the steps of the method described in any one of claims 1 to 6 when executed by a processor.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method described in any one of claims 1 to 6 are implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method described in any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Design method of intelligent redundant framework of server power supply
CN104267796A
Equipment control method, device and system, intelligent equipment and storage medium
CN114518706A
Server power supply method and device, electronic equipment and storage medium
CN117111711A
Power supply control method and device, computer equipment and storage medium
CN117406846A
Distributed power supply bearing capacity and grid connection analysis method
CN118659448A