Access method and device of power supply unit, storage medium and electronic equipment

By collecting and comparing the voltage values ​​of the image processing unit, a mode switching command is triggered, and the power supply unit is connected to meet the target conditions. This solves the voltage fluctuation problem of the GPU server power module in Active-standby mode, and enables the server to operate efficiently and stably.

CN119806300BActive Publication Date: 2026-07-24INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
INSPUR SUZHOU INTELLIGENT TECH CO LTD
Filing Date
2024-11-29
Publication Date
2026-07-24

AI Technical Summary

Technical Problem

In existing technologies, when the power module of a GPU server switches to Active-standby mode, current fluctuations cause the voltage to exceed the GPU's SPEC specifications, leading to card drops or system crashes. Furthermore, the power supply strategy adjustment is ineffective and has low security.

Method used

The system acquires the current voltage value of the image processing unit in the acquisition server, compares it with the standard voltage value, triggers a mode switching command, connects the power supply unit in sleep mode to the power supply circuit, and continues until the circuit parameters meet the target conditions, thereby converting AC current into DC current for power supply.

Benefits of technology

By dynamically adjusting the working status of the power supply unit, insufficient or excessive power supply is avoided, which improves the server's operating efficiency and energy utilization efficiency, reduces the system failure rate, and ensures the stable operation of the server.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119806300B_ABST
    Figure CN119806300B_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide an access method and device of a power supply unit, a storage medium and an electronic device. The method comprises: collecting current voltage values of a plurality of image processing units in a server at a current time; determining a mode switching instruction in the case that the plurality of image processing units include a first processing unit according to a comparison result between a standard voltage value corresponding to each of the plurality of image processing units and the current voltage value; and sequentially connecting at least one power supply unit in a sleep mode to a power supply circuit for supplying power to the plurality of image processing units according to the mode switching instruction until at least one circuit parameter corresponding to each of the plurality of image processing units meets a target condition, wherein the power supply unit is used to convert alternating current into direct current for supplying power to the plurality of image processing units.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of server technology, and more specifically, to a power supply unit access method and apparatus, storage medium and electronic device. Background Technology

[0002] Existing GPU servers are consuming increasingly higher power, and the power consumption of the accompanying PSU modules is also increasing. The higher the power consumption, the greater the losses themselves. Therefore, most AI GPU servers will use more efficient power supplies to meet the requirements of high efficiency and low loss.

[0003] However, while switching the power module to Active-standby mode can improve overall efficiency, the dynamic current characteristics of the GPU mean that its current fluctuates significantly when processing workloads, a phenomenon commonly referred to as EDPp current. The greater the GPU current fluctuation, the greater the voltage variation. With the advancement of GPUs, voltage specifications are becoming increasingly stringent. Higher power consumption GPUs exhibit greater voltage fluctuations during operation. Switching the power module to Active-standby mode increases the current distributed across each PSU in Active mode, affecting the PSU's output voltage and potentially causing the GPU voltage to exceed its specifications. This can lead to GPU failure and, in severe cases, server crashes. In other words, adjusting power supply strategies in related technologies often results in poor effectiveness and low security.

[0004] There is currently no effective solution to the above problems. Summary of the Invention

[0005] This application provides a method and apparatus for connecting a power supply unit, a storage medium, and an electronic device to at least solve the technical problems of poor effect and low security in adjusting power supply strategies in related technologies.

[0006] According to one embodiment of this application, a method for connecting a power supply unit is provided, comprising: collecting the current voltage values ​​of multiple image processing units in a server at the current moment; triggering a mode switching command if, based on the comparison result between the standard voltage value corresponding to each of the multiple image processing units and the current voltage value, it is determined that a first processing unit is included among the multiple image processing units; and, according to the mode switching command, sequentially connecting at least one power supply unit in sleep mode to a power supply circuit for supplying power to 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 alternating current into direct current for supplying power to the multiple image processing units.

[0007] According to another aspect of the embodiments of this application, a power supply unit access device is also provided, comprising: a data acquisition unit, which acquires the current voltage values ​​of multiple image processing units in a server at the current moment; a determination unit, which, based on the comparison result between the standard voltage value corresponding to each of the multiple image processing units and the current voltage value, determines that a first processing unit is included among the multiple image processing units, and triggers a mode switching command; and an execution unit, which, according to the mode switching command, sequentially connects at least one power supply unit in sleep mode to a power supply circuit for supplying power to 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 alternating current into direct current for supplying power to the multiple image processing units.

[0008] Optionally, the aforementioned determining unit includes: a first determining module, configured to: acquire current description information matching the first processing unit when there is a first processing unit where the comparison result between the current voltage value and the matching standard voltage value is greater than a first threshold and the comparison result is less than or equal to a second threshold, wherein the first threshold is less than the second threshold; determine a trigger mode switching command when the current description information indicates that the current trend matching the first processing unit meets the mode switching conditions; and determine a trigger mode switching command when there is a first processing unit where the comparison result between the current voltage value and the matching standard voltage value is greater than the second threshold.

[0009] Optionally, the first determining module is further configured to: acquire multiple current values ​​that match the first processing unit within the target acquisition period, and determine the current trend that matches the first processing unit based on the multiple current values, wherein the last acquisition moment of the target acquisition period is the current moment; and determine that the mode switching condition is met and trigger the mode switching command when the current value acquired at the current moment is the standard maximum current value and the current trend is an upward or downward trend, provided that the current description information indicates that the current value is an upward or downward trend.

[0010] Optionally, the first determining module is further configured to: reverse-set the voltage of the detection port in the power supply circuit and send a second alarm message; sequentially connect at least one power supply unit in sleep mode to the power supply circuit according to the second alarm message until the comparison result between the current voltage value of each first processing unit and the matching standard voltage value is less than or equal to a second threshold; if the comparison result between the current voltage value of the first processing unit and the matching standard voltage value is greater than a first threshold, obtain current description information matching the first processing unit; if the current description information indicates that the current trend matching the first processing unit is an upward or downward trend, send a first alarm message; and sequentially connect at least one power supply unit in sleep mode to the power supply circuit according to the first alarm message 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 a first threshold.

[0011] Optionally, the first determining module includes: a matching module configured to: obtain 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; when the ratio of the current fluctuation coefficient to the target adjustment coefficient is within a first reference range, 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 the average of multiple current fluctuation coefficients matching multiple power supply circuits in a target performance state; determine that the number of power supply units matching the slight fluctuation state that require mode switching operation 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 range, 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 matching the severe fluctuation state that require mode switching operation is a second number, and sequentially connect the second number of power supply units to the power supply circuit.

[0012] Optionally, the first determining module includes: a processing module configured 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 matching standard voltage value 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 matching standard voltage value is less than or equal to the first threshold, wherein the power consumption limiting operation is used to adjust the operating 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 this application, a computer-readable storage medium is also provided, wherein a computer program is stored in the computer-readable storage medium, and the computer program is configured to execute the above-described access method of the power supply unit when it is run.

[0014] According to another aspect of the embodiments of this application, a computer program product or computer program is provided, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the power supply unit access method as described above.

[0015] According to another aspect of the embodiments of this application, an electronic device is also provided, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to execute the above-described access method for the power supply unit through the computer program.

[0016] This application first collects the current voltage values ​​of multiple image processing units in the server at the current moment. Based on the comparison between the standard voltage value and the current voltage value of each image processing unit, if it is determined that a first processing unit whose current voltage value exceeds the target operating range is included, a mode switching command is triggered. Then, according to the mode switching command, at least one power supply unit in 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 image processing unit meets the target condition. Based on the aforementioned power supply adjustment strategy, the image processing units in the circuit are brought into normal operation, thus solving the technical problems of poor effectiveness and low safety in related technologies regarding power supply adjustment strategies. Attached Figure Description

[0017] The accompanying drawings, which are included to provide a further understanding of this application and form part of this application, illustrate exemplary embodiments and are used to explain this application, but do not constitute an undue limitation of this application. In the drawings:

[0018] Figure 1 This is a hardware structure block diagram of a server device for a power supply unit access method according to an embodiment of this application;

[0019] Figure 2 This is a flowchart of a power supply unit access method according to an embodiment of this application;

[0020] Figure 3 This is a flowchart of another power supply unit access method according to an embodiment of this application;

[0021] Figure 4 This is a flowchart of another power supply unit access method according to an embodiment of this application;

[0022] Figure 5This is a flowchart of another power supply unit access method according to an embodiment of this application;

[0023] Figure 6 This is a schematic diagram of a power supply unit access method according to an embodiment of this application;

[0024] Figure 7 This is a schematic diagram of the structure of a power supply unit access device according to an embodiment of this application;

[0025] Figure 8 This is a schematic diagram of the structure of a power supply unit connected to an electronic device according to an embodiment of this application. Detailed Implementation

[0026] The embodiments of this application will be described in detail below with reference to the accompanying drawings and examples.

[0027] It should be noted that the terms "first," "second," etc., in the specification, claims, and drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence.

[0028] The methods and embodiments provided in this application can be executed on a server device or a similar computing device. Taking running on a server device as an example, Figure 1 This is a hardware structure block diagram of a server device for a power supply unit access method according to an embodiment of this application. For example... Figure 1 As shown, the server device may include one or more ( Figure 1 Only one is shown in the diagram. A processor 102 (which may include, but is not limited to, a microprocessor MCU or a programmable logic device FPGA, etc.) and a memory 104 for storing data are also shown. The server device may further include a transmission device 106 for communication functions and an input / output device 108. Those skilled in the art will understand that… Figure 1 The structure shown is for illustrative purposes only and does not limit the structure of the server equipment described above. For example, the server equipment may also include components that are more... Figure 1 The more or fewer components shown, or having the same Figure 1 The different configurations shown.

[0029] The memory 104 can be used to store computer programs, such as application software programs and modules, like the computer program corresponding to the power supply unit access method in this embodiment. The processor 102 executes various functional applications and accesses the power supply unit by running the computer program stored in the memory 104, thus implementing the above-described method. The memory 104 may include high-speed random access memory and may also include 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 104 may further include memory remotely located relative to the processor 102, and these remote memories can be connected to server devices via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.

[0030] The transmission device 106 is used to receive or send data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider for the server device. In one example, the transmission device 106 includes a Network Interface Controller (NIC), which can connect to other network devices via a base station to communicate with the Internet. In another example, the transmission device 106 may be a Radio Frequency (RF) module used for wireless communication with the Internet.

[0031] As an optional implementation method, such as Figure 2 As shown, the connection method of the above power supply unit includes:

[0032] S202, collect the current voltage values ​​of multiple image processing units in the server at the current moment;

[0033] S204, if it is determined that the first processing unit is included among the multiple image processing units based on the comparison result between the standard voltage value and the current voltage value corresponding to each of the multiple image processing units, a mode switching instruction is triggered.

[0034] S206, 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 the AC current into the DC current for powering the multiple image processing units.

[0035] In an optional implementation, it should be noted that in step S202 above, the current voltage values ​​of multiple image processing units in the server are collected at the current moment. It should be noted that a 12V voltage acquisition circuit can be added to the current power supply circuit. This 12V voltage acquisition circuit can continuously monitor the voltage on the PCIe CONN (PCI Express connection) or other critical interfaces to ensure that it remains within a specified range. The standard voltage value is determined according to the GPU's SPEC (specification) and the server's operating requirements, aiming to ensure that the GPU operates within a predetermined 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 step S204 above, if it is determined that the first processing unit is included among the multiple image processing units based on the comparison result between the standard voltage value corresponding to each of the multiple image processing units and the current voltage value, a mode switching command is triggered.

[0037] Specifically, the comparison result may be that the current voltage value exceeds the standard voltage value, thus determining the GPU as the first processing unit. The standard voltage value may be the operating voltage range of the GPU determined according to the GPU's SPEC specification or a specific value. The mode switching operation instruction may be a mode switching operation sent after the voltage on the GPIO port is reversed and the BMC detects the voltage reversal and determines that the GPU voltage exceeds the SPEC specification. This can be used to adjust the power supply state in the power supply circuit, for example, the BMC switching at least one PSU in Standby mode to Active mode.

[0038] In some optional implementations, 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. The power supply unit is used to convert the AC current into the DC current for powering the multiple image processing units.

[0039] The aforementioned sleep mode can be Standby mode, i.e., a standby state when not connected. The aforementioned circuit parameters can be the collected voltage, current, voltage fluctuation value, etc. The aforementioned target condition can be that the parameter value of a certain attribute of the collected circuit parameter is less than the corresponding standard value.

[0040] As an optional implementation method, such as Figure 3 As shown:

[0041] After powering on, first execute S302-1, where the BMC collects the GPU model and sets the PCIE voltage SPEC; simultaneously execute S302, where the BMC sets the PSU to enter Active-Standby mode.

[0042] Further execution of S304, PCIE CONN 12V circuit to acquire 12V voltage;

[0043] Based on the voltage value collected in step S304 and the standard voltage value determined according to the GPU model, determine in step S306 whether the set value is exceeded.

[0044] If the voltage does not exceed the standard voltage, continue executing S304 to collect the voltage.

[0045] If the voltage exceeds the standard voltage, execute S308 to switch one of the PSUs to Active mode;

[0046] Further check S310 to see if 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 whether S314 exceeds the set value. If it does not exceed the set value, end the control. If it does exceed the set value, return to execute S312.

[0049] This application first collects the current voltage values ​​of multiple image processing units in the server at the current moment. Based on the comparison between the standard voltage value and the current voltage value of each image processing unit, if a first processing unit is identified whose current voltage value exceeds the target operating range, a mode switching command is triggered. Then, according to the mode switching command, at least one power supply unit in 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 image processing unit meets the target conditions. Based on the aforementioned power supply adjustment strategy, the image processing units in the circuit are brought into normal operation. Through this method, the server can dynamically adjust the operating state of the power supply units according to the actual needs of the image processing units, effectively avoiding insufficient or excessive power supply, improving the server's operating efficiency and energy utilization efficiency, and solving the technical problems of poor effectiveness and low security in related technologies regarding power supply adjustment strategies.

[0050] In one optional implementation, if it is determined that the first processing unit is included among the multiple image processing units based on the comparison result between the standard voltage value corresponding to each of the multiple image processing units and the current voltage value, a mode switching instruction is triggered, including:

[0051] S1, if there is a first processing unit where the comparison result between the current voltage value and the matching standard voltage value is greater than a first threshold and the comparison result is less than or equal to a second threshold, obtain current description information matching the first processing unit, wherein the first threshold is less than the second threshold;

[0052] S2, if the current description information indicates that the current trend matching the first processing unit meets the mode switching conditions, determine to trigger the mode switching command.

[0053] s3, if there is a first processing unit where the comparison result between the current voltage value and the matching standard voltage value is greater than the second threshold, a trigger mode switching instruction is determined.

[0054] Optionally, in this embodiment, S1-S2 are executed first. If there is a first processing unit where the comparison result between the current voltage value and the matching standard voltage value is greater than a first threshold and the comparison result is less than or equal to a second threshold, current description information matching the first processing unit is obtained, wherein the first threshold is less than the second threshold. If the current description information indicates that the current trend matching the first processing unit meets the mode switching conditions, a mode switching command is determined to be triggered.

[0055] Optionally, the comparison result can specifically be the ratio of the current voltage value to the standard voltage value, or the ratio of the current voltage value to the standard voltage value, etc. The first threshold and the second threshold can be dynamically set according to the server's operating status. For example, the first threshold can be set to ±3% of the standard voltage value (SPEC voltage) range, and the second threshold can be set to ±6% of the standard voltage value (SPEC voltage) range. That is, if the current voltage value exceeds the standard voltage value range by ±3% and is within ±3% of the standard voltage value range, the current description information is obtained. The current description information can be, but is not limited to, current value, current trend, current fluctuation status, etc. The mode switching condition can be, but is not limited to, the current reaching the maximum current value of the GPU standard specification, and the current fluctuation trend being drastic in the recent time period, or the load change rate being greater than a preset value, etc., without specific restrictions. The mode switching instruction can be, but is not limited to, an instruction issued in the form of digital signals, network protocol signals, or PWM signals to switch the power supply in sleep mode to working mode, that is, to connect the power supply unit in standby mode to the power supply circuit.

[0056] It's important to note that when the GPU load changes, the BMC automatically adjusts the first threshold based on the current state and trend of the load. For example, if the load is low, the BMC may loosen the threshold, allowing for a larger voltage fluctuation range to reduce PSU switching and save energy. If the load is high and unstable, the BMC will tighten the threshold to ensure that voltage changes are within a smaller range, preventing the GPU voltage from exceeding the SPEC and ensuring 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 powers on, components such as the BMC and GPU begin operating, and the PCIe voltage acquisition circuit also starts working. The acquired 12V voltage is compared with the Level 1 alarm point. If the acquired 12V voltage is within the SPEC, the power module maintains the current BMC setting and does not activate. If the acquired 12V voltage exceeds the Level 1 alarm range, the system collects and feeds back the GPU current value to determine if the GPU current has reached its maximum value. If the GPU current has reached its maximum value, the system BMC does not issue an alarm, and the system processes services normally. If the GPU current has not reached its maximum value, the system BMC determines whether the GPU's operating current will increase or decrease based on the current trend fed back by the current sampling circuit. If it determines that the current will continue to increase or decrease, the BMC switches one of the PSUs in Standby mode to Active mode to reduce the overall PSU current fluctuation, thereby reducing the operating voltage fluctuation range of the entire system's 12V link. If the GPU current trend is determined to be flat and unchanged at this time, the system BMC will not issue an alarm, and the system will process the business normally.

[0058] Further in step S3 above, if there is a first processing unit where the comparison result between the current voltage value and the matching standard voltage value is greater than the second threshold, a trigger mode switching instruction is determined.

[0059] As an optional implementation, the Level 2 alarm is set when the voltage exceeds the upper or lower limits of the GPU voltage specification. When the 12V voltage collected by the PCIe voltage acquisition circuit triggers the Level 2 alarm, the voltage on the GPIO port is immediately reversed and set. The BMC detects the voltage reversal and determines that the GPU voltage exceeds the specification. The BMC then sends a command to one of the standby power modules to switch from Standby mode to Active mode. After a successful switch, the PCIe voltage acquisition circuit continues to collect the 12V voltage. If an alarm is still triggered, other standby power modules are switched to Active mode until the 12V voltage collected by the acquisition circuit is within the GPU specification. Once the GPU voltage meets the specification, the GPIO port voltage is reset. After successfully switching a power module from Standby mode to Active mode, the PCIe voltage acquisition circuit continues to collect the 12V voltage. If no alarm is triggered, the GPIO port voltage is reset. At this point, the Level 1 alarm determination process continues, entering the Level 1 alarm determination procedure. This continues until the GPU can operate stably while meeting the specifications. If the GPU voltage 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 or GPU operating frequency to limit the GPU's power consumption and current, ensuring that the GPU does not exceed the SPEC.

[0060] Through the above-described embodiments of this application, when a first processing unit exists where the comparison result between the current voltage value and its matching standard voltage value is greater than a first threshold and the comparison result is less than or equal to a second threshold, current description information matching the first processing unit is obtained; when the current description information indicates that the current trend matching the first processing unit meets the mode switching conditions, a mode switching command is determined; when a first processing unit exists where the comparison result between the current voltage value and its matching standard voltage value is greater than the second threshold, a mode switching command 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 precisely, effectively responding to changes in the voltage demand of the image processing unit under different loads, ensuring stable operation of the server under various working conditions. This improves the server's response speed and processing capacity while reducing the system failure rate caused by voltage fluctuations.

[0061] In one optional implementation, if the current description information indicates that the current trend matching the first processing unit satisfies the mode switching condition, a mode switching command is determined to be triggered, including:

[0062] S1, acquire multiple current values ​​that match the first processing unit within the target acquisition period, and determine the current trend that matches the first processing unit based on the multiple current values, wherein the last acquisition time of the target acquisition period is the current time;

[0063] S2, if the current value collected at the current moment indicates that the current value is the standard maximum current value and the current trend is upward or downward, determine that the mode switching condition is met and trigger the mode switching command.

[0064] In steps S1-s2 above, multiple current values ​​matching the first processing unit within the target acquisition period are acquired, and the current trend matching the first processing unit is determined based on these multiple current values. The last acquisition moment of the target acquisition period is the current moment. If the current value acquired at the current moment indicates that the current value is the standard maximum current value, and the current trend is either increasing or decreasing, the mode switching condition is met, and a mode switching command is triggered. The aforementioned target acquisition period is a preset time interval for acquiring data in the data acquisition system to meet specific monitoring, analysis, or control needs. The acquisition period can be optimized in real time based on factors such as the current load status, system operating environment, or the health status of the power module.

[0065] The following is Figure 4 The control flow shown is an example:

[0066] After powering on, S402 is executed, and the BMC collects information such as GPU model and power consumption; specifically, it reads key information such as GPU model, power consumption characteristics, and voltage specifications.

[0067] S404 sets the first-level alarm value; and further determines whether the currently collected voltage is equal to the standard voltage, and determines S406 whether to issue the first alarm value; for example, it can be near the upper or lower limit of the GPU voltage specification, such as a point between 11.4V and 12.6V.

[0068] If the first alarm value is issued, execute S408 to collect GPU current data; further determine S410 whether the GPU rated value has been reached; if the GPU rated value has not been reached, execute S412, the system will not issue an alarm; end control.

[0069] The 12V voltage acquisition circuit starts working, monitoring the voltage at the PCIe CONN pin in real time. The BMC receives this voltage data and compares it with the first-level alarm value. If the current voltage is within the alarm value, meaning the GPU has room to handle more load, the system will not send an alarm but will continue monitoring, and the BMC will not take any action.

[0070] If the GPU's rated value is reached, execute S414 to determine the GPU current trend;

[0071] Further analysis of S416 reveals an increase in current.

[0072] If the current increases, S418 is executed to switch one of the PSUs into Active mode; this is used to distribute the load, reduce voltage fluctuations, and prevent the GPU voltage from exceeding the SPEC.

[0073] If the current does not increase, that is, the current trend is flat and the circuit fluctuations within the power supply circuit are small, then the BMC maintains the current PSU state and executes S420, and the GPU voltage remains within the SPEC.

[0074] Through the above-described embodiments of this 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 acquired 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 a mode switching command 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. This avoids the problem of insufficient power supply caused by a sudden increase in power consumption, improves the power supply stability and predictive ability of the server, and thus solves the problems of low efficiency and low security of the existing power supply strategy.

[0075] In an optional implementation, if a first processing unit determines a trigger mode switching instruction when the comparison result between the current voltage value and a matching standard voltage value is greater than a second threshold, the method further includes:

[0076] S1, reverse the voltage of the detection port in the power supply circuit and send the second alarm message;

[0077] s2, according to the second alarm information, at least one power supply unit in the sleep mode is connected to the power supply circuit in sequence until the comparison result between the current voltage value of each first processing unit and the standard voltage value matched therewith is less than or equal to the second threshold.

[0078] S3, if the comparison result between the current voltage value of the first processing unit and the standard voltage value that matches it is greater than the first threshold, obtain the current description information that matches the first processing unit;

[0079] S4, if the current description information indicates that the current trend matching the first processing unit is an upward or downward trend, send the first alarm information;

[0080] s5, according to the first alarm information, connect at least one power supply unit in the sleep mode to the power supply circuit in sequence until the comparison result between the current voltage value of each image processing unit and the standard voltage value that matches it is less than or equal to the first threshold.

[0081] Optional, flowchart Figure 5 The following explanation is provided for steps s1-s5 above:

[0082] After powering on, execute S502, where the BMC collects information such as GPU model and power consumption; execute S504, where the secondary alarm value is set.

[0083] Further determine whether the second-level alarm value is triggered after the S506 GPU is pressured; if the second-level alarm value is not triggered, continue to determine the status at the next moment.

[0084] If the second-level alarm value is triggered and S508 is executed, the voltage of the GPIO port is immediately reversed and set, sending a mode switching signal to the BMC; further, the BMC executes S510 to switch one of the PSUs into Active mode.

[0085] After the mode switch, continue to check S512 to see if the second-level alarm value is triggered; if the second-level alarm value is triggered, execute S514 to switch one of the PSUs into Active mode; in S516, the voltage of the GPIO port is reset.

[0086] On the other hand, if the second-level alarm value is not triggered after the mode switch, the first-level alarm processing procedure is performed, executing S518 to restore the voltage of the GPIO port to the set position; further determining S520 to see if 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, execute S522 to jump to the first-level alarm handling process, such as... Figure 4 As shown; a schematic diagram of the overall switching process described above is shown below. Figure 6 As shown, the circuit samples the 12V voltage to determine if it is within the standard voltage range. Then, it further samples the 12V current. If, based on the above process, the GPU's collected voltage value exceeds the standard voltage value and the circuit state fluctuates, the GPIO port is reverse-set, and the BMC module controls the PSU unit to switch modes. Alternatively, if the collected voltage value does not exceed the standard voltage value, the GPIO port is reset.

[0088] By implementing the steps outlined in this application, a multi-level alarm mechanism is established, enabling timely response to power supply anomalies and preventing hardware damage caused by excessively high or low voltage, thereby improving the reliability and security of the server.

[0089] In one alternative implementation, after determining the trigger mode switching instruction, the process includes:

[0090] S1, obtain the 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;

[0091] S2, when the ratio of the current fluctuation coefficient to the target adjustment coefficient is within the first reference range, the current fluctuation of the power supply circuit at the current moment is determined to be a slight fluctuation state, wherein the target adjustment coefficient is the average value of multiple current fluctuation coefficients matched with multiple power supply circuits in the target performance state.

[0092] s3, determine the number of power supply units that need to perform mode switching operation to match the slight fluctuation state as the first number, and connect the first number of power supply units to the power supply circuit in sequence;

[0093] s4, when the ratio of the current fluctuation coefficient to the target adjustment coefficient is in the second reference range, the current fluctuation of the power supply circuit at the current moment is determined to be a severe fluctuation state.

[0094] s5, determine the number of power supply units that need to perform mode switching operations to match the violent fluctuation state as the second number, and connect the second number of power supply units to the power supply circuit in sequence.

[0095] In the above steps S1-S3, firstly, the 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 range, the current fluctuation degree of the power supply circuit at the current moment is determined to be a slight fluctuation state; further, the number of power supply units that need to perform mode switching operation matching the slight fluctuation state is determined to be a first number, and the first number of power supply units are connected to the power supply circuit in sequence.

[0096] Optionally, the aforementioned current fluctuation coefficient can be calculated by taking the difference between the highest and lowest current values ​​over the past 10 seconds and the average historical fluctuation coefficient, thereby quantifying the current current fluctuation level. For example, if the current variation range over 10 seconds is 10A and the average current is 100A, then the current fluctuation coefficient is 10%. The aforementioned target performance state can be the optimal or normal operating state expected by the server or power system during design, including the system's performance when handling a specific workload, or its operating state under certain power consumption and efficiency conditions.

[0097] The aforementioned target adjustment factor can be calculated by taking the average of the current fluctuation coefficients monitored under normal workload conditions at historical time points (e.g., 8%, 9%, 10%, 11%...18%), which can be used as the target adjustment factor. This means that the average amplitude of current fluctuation is approximately 13% during normal system operation.

[0098] In some alternative implementations, if the ratio of the current fluctuation coefficient to the target adjustment coefficient at the current moment is between 0.8 and 1.2, it is determined that the current circuit is in a state of slight fluctuation. The range of the number of PSUs that need to be connected to the power supply circuit in the state of slight fluctuation can be determined in advance by machine learning algorithm. For example, if 3 new PSUs need to be connected in the state of slight fluctuation, the 3 PSUs are switched from Standby mode to 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. No specific restrictions are made here.

[0099] In steps S4-S5 above, when the ratio of the current fluctuation coefficient to the target adjustment coefficient is in the second reference range, the current fluctuation level of the power supply circuit at the current moment is determined to be a severe fluctuation state; the number of power supply units that need to perform mode switching operation 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 describes an optional implementation. Assume a server system with 8 PSUs, 4 in Active state and 4 in Standby state. The system's target adjustment factor is 5%, meaning that during normal operation, the acceptable current fluctuation range is ±5% of the average current value. If the monitored current fluctuation factor is 3%, and the ratio to the target adjustment factor is within the first reference range, the system determines it to be a slight fluctuation state. In this case, the system decides to switch only 2 PSUs into Active state to increase redundancy without significantly increasing power consumption.

[0101] If the current fluctuation coefficient suddenly increases to 10%, and the ratio is within the second reference range, the system determines it to be in a state of severe fluctuation. In order to quickly stabilize the current, the system may decide to simultaneously switch all four PSUs into Active state to improve the stability and redundancy of the current supply.

[0102] The above-described embodiments described in this application, namely the intelligent algorithm based on the ratio of current fluctuation coefficient to target coefficient, can dynamically predict in advance the number of new PSU modules that need to be connected in the power supply strategy. This enables the server power management system to achieve more efficient, stable, and safer power supply in complex and ever-changing working environments, and improves the efficiency of the power supply strategy.

[0103] In one optional implementation, according to the first alarm information, at least one power supply unit in sleep mode is sequentially connected to the power supply circuit 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 a first threshold, 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 matching standard voltage value 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 matching standard voltage value is less than or equal to the first threshold. The power consumption limiting operation is used to adjust the operating frequency of the image processing unit to reduce the power consumption current of the image processing unit.

[0105] Optionally, if the GPU voltage still exceeds the SPEC operating voltage range after all power modules are switched to Active mode, the system can use the BMC to adjust the GPU operating frequency and limit the GPU's power consumption and current to ensure that the GPU does not exceed the SPEC. Specifically, this includes, but is not limited to, adjusting the GPU's clock speed, core voltage, or limiting its maximum power consumption, thereby reducing the GPU's power consumption and allowing the voltage to drop naturally until it reaches a safe range.

[0106] Through the above-described embodiments of this application, when all power supply units are in operating mode and the comparison result between the current voltage value of the first processing unit and its matching standard voltage value is greater than a 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 its matching standard voltage value is less than or equal to the first threshold. By limiting the power consumption of the image processing unit when the power supply units are operating at full load, system crashes caused by insufficient power supply are avoided, improving the server's fault tolerance and emergency response capabilities. This ensures that the server can maintain basic operation even under power constraints, 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 handling complex workloads by performing power limiting operations in a timely manner, while protecting critical hardware from damage caused by abnormal voltage, thereby improving the overall operating quality and lifespan of the server.

[0108] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, as some steps may be performed in other orders or simultaneously according to this application. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily essential to this application.

[0109] According to another aspect of the embodiments of this application, a power supply unit access device for implementing the above-described power supply unit access method is also provided. For example... Figure 7 As shown, the device includes:

[0110] The acquisition unit 702 acquires the current voltage values ​​of multiple image processing units in the server at the current moment.

[0111] The determining unit 704, upon determining that the first processing unit is included among the multiple image processing units based on the comparison results between the standard voltage values ​​corresponding to each of the multiple image processing units and the current voltage values, triggers a mode switching command.

[0112] The execution unit 706, according to the mode switching instruction, sequentially connects 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. The power supply unit is used to convert AC current into DC current for powering multiple image processing units.

[0113] Optionally, the determining unit 704 includes: a first determining module, configured to: acquire current description information matching the first processing unit when there is a first processing unit where the comparison result between the current voltage value and the matching standard voltage value is greater than a first threshold and the comparison result is less than or equal to a second threshold, wherein the first threshold is less than the second threshold; determine a trigger mode switching command when the current description information indicates that the current trend matching the first processing unit meets the mode switching conditions; and determine a trigger mode switching command when there is a first processing unit where the comparison result between the current voltage value and the matching standard voltage value is greater than the second threshold.

[0114] Optionally, the first determining module is further configured to: acquire multiple current values ​​that match the first processing unit within the target acquisition period, and determine the current trend that matches the first processing unit based on the multiple current values, wherein the last acquisition moment of the target acquisition period is the current moment; and determine that the mode switching condition is met and trigger the mode switching command when the current value acquired at the current moment is the standard maximum current value and the current trend is an upward or downward trend, provided that the current description information indicates that the current value is an upward or downward trend.

[0115] Optionally, the first determining module is further configured to: reverse-set the voltage of the detection port in the power supply circuit and send a second alarm message; sequentially connect at least one power supply unit in sleep mode to the power supply circuit according to the second alarm message until the comparison result between the current voltage value of each first processing unit and the matching standard voltage value is less than or equal to a second threshold; if the comparison result between the current voltage value of the first processing unit and the matching standard voltage value is greater than a first threshold, obtain current description information matching the first processing unit; if the current description information indicates that the current trend matching the first processing unit is an upward or downward trend, send a first alarm message; and sequentially connect at least one power supply unit in sleep mode to the power supply circuit according to the first alarm message 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 a first threshold.

[0116] Optionally, the first determining module includes: a matching module configured to: obtain 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; when the ratio of the current fluctuation coefficient to the target adjustment coefficient is within a first reference range, 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 the average of multiple current fluctuation coefficients matching multiple power supply circuits in a target performance state; determine that the number of power supply units matching the slight fluctuation state that require mode switching operation 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 range, 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 matching the severe fluctuation state that require mode switching operation is a second number, and sequentially connect the second number of power supply units to the power supply circuit.

[0117] Optionally, the first determining module includes: a processing module configured 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 matching standard voltage value 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 matching standard voltage value is less than or equal to the first threshold, wherein the power consumption limiting operation is used to adjust the operating frequency of the image processing unit to reduce the power consumption current of the image processing unit.

[0118] According to another aspect of the embodiments of this application, an electronic device for implementing the above-described access method for the power supply unit is also provided. This electronic device may be... Figure 1The terminal device or server shown. This embodiment uses a mobile phone or computer as an example for illustration. Figure 8 As shown, the electronic device includes a memory 802 and a processor 804. The memory 802 stores a computer program, and the processor 804 is configured to execute the steps in any of the above method embodiments via the computer program.

[0119] Optionally, in this embodiment, the aforementioned electronic device may be located in at least one of a plurality of network devices in a computer network.

[0120] Optionally, in this embodiment, the processor can be configured to perform the following steps via a computer program:

[0121] S1, collect the current voltage values ​​of multiple image processing units in the server at the current moment;

[0122] S2, if it is determined that the first processing unit is included among the multiple image processing units based on the comparison results between the standard voltage value and the current voltage value corresponding to each of the multiple image processing units, a mode switching command is triggered.

[0123] 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. The power supply unit is used to convert AC current into DC current for powering multiple image processing units.

[0124] Alternatively, as those skilled in the art will understand, Figure 8 The structure shown is for illustrative purposes only. Electronic devices can also be smartphones (such as Android phones, iOS phones, etc.), tablets, PDAs, mobile internet devices (MIDs), PADs, and other terminal devices. Figure 8 This does not limit the structure of the aforementioned electronic devices. For example, the electronic device may also include components that are more... Figure 8 The more or fewer components shown (such as network interfaces, etc.), or having the same Figure 8 The different configurations shown.

[0125] The memory 802 can be used to store software programs and modules, such as the program instructions / modules corresponding to the power supply unit access method and device in this embodiment. The processor 804 executes various functional applications and the access of the power supply unit by running the software programs and modules stored in the memory 802, thereby realizing the aforementioned power supply unit access method. The memory 802 may include high-speed random access memory, and may also include 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 memory remotely located relative to the processor 804, and these remote memories can be connected to the terminal via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof. Specifically, the memory 802 may be used, but is not limited to, 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. Furthermore, it may include, but is not limited to, other module units in the access device of the power supply unit, which will not be described further in this example.

[0126] Optionally, the transmission device 806 described above is used to receive or send data via a network. Specific examples of the network described above may include wired networks and wireless networks. In one example, the transmission device 806 includes a Network Interface Controller (NIC), which can be connected to other network devices and a router via a network cable to communicate with the Internet or a local area network. In another example, the transmission device 806 is a Radio Frequency (RF) module, used for wireless communication with the Internet.

[0127] In addition, the above-mentioned electronic device also includes: a display 808 for displaying the current circuit status; and a connection bus 810 for connecting the various module components in the above-mentioned electronic device.

[0128] In other embodiments, the aforementioned terminal device or server can be a node in a distributed system, wherein the distributed system can be a blockchain system, which is a distributed system formed by connecting multiple nodes through network communication. The nodes can form a point-to-point network, and any form of computing device, such as a server, terminal, or other electronic device, can become a node in the blockchain system by joining this point-to-point network.

[0129] According to one aspect of this application, a computer-readable storage medium is provided, wherein a processor of a computer device reads computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, causing the computer device to perform the methods provided in the various optional implementations described above;

[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, collect the current voltage values ​​of multiple image processing units in the server at the current moment;

[0132] S2, if it is determined that the first processing unit is included among the multiple image processing units based on the comparison results between the standard voltage value and the current voltage value corresponding to each of the multiple image processing units, a mode switching command is triggered.

[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. The power supply unit is used to convert AC current into DC current for powering multiple image processing units.

[0134] Optionally, in embodiments of this application, the terms "module" or "unit" refer to a computer program or part of a computer program with a predetermined function, which works together with other related parts to achieve a predetermined goal, and can be implemented wholly or partially using software, hardware (such as processing circuitry or memory), or a combination thereof. Similarly, a processor (or multiple processors or memory) can be used to implement one or more modules or units. Furthermore, each module or unit can be part of an overall module or unit that includes the functionality of that module or unit.

[0135] Optionally, in this embodiment, those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be implemented by a program instructing the hardware related to the terminal device. The program can be stored in a computer-readable storage medium, which may include: flash drive, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.

[0136] If the integrated units in the above embodiments are implemented as software functional units and sold or used as independent products, they can be stored in the aforementioned computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, 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. This computer software product is stored in a storage medium and includes several instructions to cause one or more computer devices (which may be personal computers, servers, or network devices, etc.) to execute all or part of the steps of the methods of the various embodiments of this application.

[0137] In the above embodiments of this application, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0138] In the several embodiments provided in this application, it should be understood that the disclosed client can be implemented in other ways. The device embodiments described above are merely illustrative; for example, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces, or the indirect coupling or communication connection of units or modules may be electrical or other forms.

[0139] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0140] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0141] The above are merely preferred embodiments of this application. It should be noted that those skilled in the art can make various improvements and modifications without departing from the principles of this application, and these improvements and modifications should also be considered within the scope of protection of this application.

[0142] It should be noted that the above modules can be implemented by software or hardware. For the latter, they can be implemented in the following ways, but are not limited to: all the above modules are located in the same processor; or, the above modules are located in different processors in any combination.

[0143] Embodiments of this application also provide a computer-readable storage medium storing a computer program, wherein the computer program is configured to execute the steps in any of the above method embodiments when run.

[0144] In one exemplary embodiment, the aforementioned computer-readable storage medium may include, but is not limited to, various media capable of storing computer programs, such as a USB flash drive, read-only memory (ROM), random access memory (RAM), portable hard disk, magnetic disk, or optical disk.

[0145] Embodiments of this application also provide an electronic device, including a memory and a processor, wherein the memory stores a computer program and the processor is configured to run the computer program to perform the steps in any of the above method embodiments.

[0146] In one 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] Embodiments of this application also provide a computer program product, which includes a computer program that, when executed by a processor, implements the steps in any of the above method embodiments.

[0148] Embodiments of this application also provide another computer program product, including a non-volatile computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps in any of the above method embodiments.

[0149] The embodiments described herein also provide a computer program that includes computer instructions stored in a computer-readable storage medium; a processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the steps in any of the above method embodiments.

[0150] Specific examples in this embodiment can be found in the examples described in the above embodiments and exemplary implementations, and will not be repeated here.

[0151] Obviously, those skilled in the art should understand that the modules or steps of this application described above can be implemented using general-purpose computing devices. They can be centralized on a single computing device or distributed across a network of multiple computing devices. They can be implemented using computer-executable program code, and thus can be stored in a storage device for execution by a computing device. In some cases, the steps shown or described can be performed in a different order than those presented here, or they can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, this application is not limited to any particular combination of hardware and software.

[0152] The above are merely preferred embodiments of this application and are not intended to limit this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the principles of this application should be included within the protection scope of this application.

Claims

1. A method for connecting a power supply unit, characterized in that, include: Collect the current voltage values ​​of multiple image processing units in the server at the current moment; Based on the comparison results between each of the plurality of image processing units and the standard voltage value of the corresponding model, a first processing unit is determined and a mode switching instruction is triggered, including: determining the image processing unit as the first processing unit when the comparison result matching the image processing unit meets a first threshold condition, and triggering the mode switching instruction when the current load state matching the first processing unit meets a target load condition; or, determining the image processing unit as the first processing unit and triggering the mode switching instruction when the comparison result matching the image processing unit meets a second threshold condition, wherein the first threshold condition is that the comparison result is greater than a first threshold and the comparison result is less than or equal to a second threshold, the current load state includes at least one of the following: current fluctuation trend, current value, load change rate, the second threshold condition is that the comparison result is greater than a second threshold, increasing the first threshold when the first processing unit is in a low load state, and decreasing the first threshold when the first processing unit is in a high load state; 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. When all the power supply units are in working mode and there is a comparison result matching the first processing unit that is greater than the first threshold, the power consumption current of the first processing unit is reduced until at least one circuit parameter corresponding to each of the multiple image processing units meets the target condition. The power supply unit is used to convert AC current into DC current for powering multiple image processing units. 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 within the first reference range, the current fluctuation of the power supply circuit at the current moment is determined to be a slight fluctuation state, wherein the target adjustment coefficient is the average value of multiple current fluctuation coefficients matched with multiple power supply circuits in the target performance state; The number of power supply units that need to perform mode switching operations and match the slight fluctuation state is determined to be a first number, and the first number of power supply units are connected to the power supply circuit in sequence; If the ratio of the current fluctuation coefficient to the target adjustment coefficient is within the second reference range, the current fluctuation of the power supply circuit at the current moment is determined to be a severe fluctuation state. The number of power supply units that need to perform the mode switching operation to match the severe fluctuation state is determined as a second number, and the second number of power supply units are connected to the power supply circuit in sequence.

2. The method according to claim 1, characterized in that, If, based on a comparison between the standard voltage value corresponding to each of the plurality of image processing units and the current voltage value, it is determined that the plurality of image processing units includes the first processing unit, a mode switching instruction is triggered, including: In the case of a first processing unit where the comparison result between the current voltage value and the matching standard voltage value is greater than a first threshold and the comparison result is less than or equal to a second threshold, current description information matching the first processing unit is obtained, wherein the first threshold is less than the second threshold; If the current description information indicates that the current trend matching the first processing unit meets the mode switching conditions, it is determined to trigger the mode switching command. If a first processing unit determines that the mode switching instruction is triggered when the comparison result between the current voltage value and the matching standard voltage value is greater than the second threshold.

3. The method according to claim 2, characterized in that, The step of determining to trigger the mode switching command when the current description information indicates that the current trend matching the first processing unit meets the mode switching conditions includes: Multiple current values ​​matching the first processing unit within the target acquisition period are acquired, and the current trend matching the first processing unit is determined based on the multiple current values, wherein the last acquisition time of the target acquisition period is the current time; If 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, then the mode switching condition is determined to be met and the mode switching command is triggered.

4. The method according to claim 2, characterized in that, The step of determining to trigger the mode switching instruction when the first processing unit finds that the comparison result between the current voltage value and the matching standard voltage value is greater than the second threshold further includes: The voltage at the detection port in the power supply circuit is reversed and a second alarm message is sent. According to the second alarm information, at least one of the power supply units in the sleep mode is sequentially connected to the power supply circuit until the comparison result between the current voltage value of each first processing unit and the matching standard voltage value is less than or equal to the second threshold. If the comparison result between the current voltage value of the first processing unit and the standard voltage value that matches it is greater than the first threshold, the current description information that matches the first processing unit is obtained. If the current description information indicates that the current trend matching the first processing unit is an upward or downward trend, a first alarm message is sent. Based on the first alarm information, at least one of the power supply units in the sleep mode is sequentially connected to the power supply circuit 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 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 image processing unit and the matching standard voltage value is less than or equal to the first threshold, includes: When all the power supply units are in operating mode, and the comparison result between the current voltage value of the first processing unit and the matching standard voltage value 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 matching standard voltage value is less than or equal to the first threshold, wherein the power consumption limiting operation is used to adjust the operating frequency of the image processing unit to reduce the power consumption current of the image processing unit.

6. A power supply unit access device, characterized in that, include: The acquisition unit acquires the current voltage values ​​of multiple image processing units in the server at the current moment. The determining unit determines a first processing unit based on the comparison result between each of the plurality of image processing units and the standard voltage value of the corresponding model, and triggers a mode switching instruction, including: determining the image processing unit as the first processing unit when the comparison result matching the image processing unit meets a first threshold condition, and triggering the mode switching instruction when the current load state matching the first processing unit meets a target load condition; or, determining the image processing unit as the first processing unit and triggering the mode switching instruction when the comparison result matching the image processing unit meets a second threshold condition, wherein the first threshold condition is that the comparison result is greater than a first threshold and the comparison result is less than or equal to a second threshold, the current load state includes at least one of the following: current fluctuation trend, current value, load change rate, the second threshold condition is that the comparison result is greater than a second threshold, increasing the first threshold when the first processing unit is in a low load state, and decreasing the first threshold when the first processing unit is in a high load state; The execution unit, according to the mode switching instruction, sequentially connects at least one power supply unit in sleep mode to the power supply circuit for powering multiple image processing units. When all power supply units are in working mode and there is a matching result for the first processing unit greater than the first threshold, the power consumption current of the first processing unit is reduced until at least one circuit parameter corresponding to each of the multiple image processing units meets the target condition. The power supply unit is used to convert AC current into DC current to power the multiple image processing units. The execution unit obtains a current fluctuation coefficient matching the power supply circuit at the current moment, where the current fluctuation coefficient indicates the degree of current fluctuation, and the degree of current fluctuation is negatively correlated with the number of power supply units. The execution unit then calculates the ratio of the current fluctuation coefficient to the target adjustment coefficient. In the case of a first reference interval, the current fluctuation level of the power supply circuit at the current moment is determined to be a slight fluctuation state, wherein the target adjustment coefficient is the average of multiple current fluctuation coefficients that match multiple power supply circuits in a target performance state; the number of power supply units that need to perform mode switching operation matching the slight fluctuation state is determined to be a first number, and the first number of power supply units are sequentially connected to the power supply circuit; when the ratio of the current fluctuation coefficient to the target adjustment coefficient is in a second reference interval, the current fluctuation level of the power supply circuit at the current moment is determined to be a severe fluctuation state; the number of power supply units that need to perform mode switching operation matching the severe fluctuation state is determined to be a second number, and the second number of power supply units are sequentially connected to the power supply circuit.

7. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, wherein the computer program, when executed by a processor, implements the steps of the method described in any one of claims 1 to 5.

8. 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, it implements the steps of the method described in any one of claims 1 to 5.

9. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method described in any one of claims 1 to 5.