Power consumption adjustment method and device, computing equipment and computer readable storage medium

By monitoring the power supply system of the computing device and the power supply parameters of the device, and combining the power supply system and load status, the power consumption of the device is adjusted, which solves the problem of unbalanced use of power resources in the existing technology and achieves more efficient power consumption adjustment. Effect.

CN118567463APending Publication Date: 2024-08-30HUAWEI TECH CO LTD
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202310230200.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-02-28
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

The existing power consumption adjustment method adjusts the device by detecting the output power consumption of the power module, resulting in uneven use of power resources and affecting the power consumption adjustment effect of the device.

Method used

By monitoring the power supply system of the computing equipment and the power supply parameters of the device, and combining the power supply system and load status, the power consumption of the device is adjusted to achieve balanced power consumption of the device.

Benefits of technology

It effectively balances the use of power resources, improves the power consumption adjustment accuracy and efficiency of the device, and ensures the normal operation of the equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118567463A
    Figure CN118567463A
Patent Text Reader

Abstract

The invention discloses a power consumption adjustment method and device, computing equipment and a computer readable storage medium, relates to the technical field of computers, and is used for balancing power resources. The method is applied to a power consumption control module in the computing equipment and comprises the steps that monitoring results of a power supply system and a device of the computing equipment are acquired, and the monitoring results comprise module voltage drop parameters in the device, bus voltage drop parameters of input bus voltage in the power supply system and first bus current parameters of input bus current; the load power supply parameters of the core current are provided for the device; determining a power supply control hierarchical strategy according to the monitoring result, the power supply control hierarchical strategy being used for adjusting the power consumption of the device according to the monitoring result of the power supply system and the device so as to remove the power supply peak in the power supply system and a dynamic power supply adjustment mode; and adjusting the power consumption of the device according to the power control hierarchy strategy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a power consumption adjustment method, apparatus, computing device, and computer-readable storage medium. Background Art

[0002] With the rapid development of computer technology, high-computing computing systems based on processors have been deployed on a large scale. The substantial improvement in chip performance and computing power has also brought challenges to the power supply system of the equipment. Therefore, how to detect changes in power consumption of equipment and respond to abnormal situations has become an urgent problem to be solved.

[0003] In the existing power consumption adjustment method, the power consumption of the device is adjusted by detecting the output power consumption of the power module. The output power consumption of the power module has a limited impact on the power consumption of the device, resulting in uneven use of power resources. Summary of the invention

[0004] The present application provides a power consumption adjustment method, device, computing device and computer-readable storage medium. In the power consumption adjustment method, not only the power consumption state of the power supply system is determined according to the output parameters of the power supply system, but also the load state of the device is determined according to the power supply parameters of the device in the computing device, and then the power consumption of the device is adjusted in combination with the power consumption state and the load state of the power supply system, so as to achieve the effect of balanced power consumption of the device. In other words, by detecting the primary power supply and the secondary power supply and adjusting the power consumption of the device, the power resources can be better balanced.

[0005] In the first aspect, a power consumption adjustment method is provided, which is executed by a power consumption control module in a computing device. The power consumption control module can obtain the monitoring results of the power supply system and devices of the computing device, and the monitoring results include the voltage drop parameters of the internal modules of the device, the bus voltage drop parameters of the input bus voltage in the power supply system, the first bus current parameters of the input bus current, and the load power supply parameters of the core current provided for the device. In other words, the types indicated by the monitoring results include the monitoring of voltage drops and the monitoring of current, and the monitoring objects corresponding to the monitoring results include the power supply system and the device. After the power consumption control module obtains the monitoring results, it will determine the power control hierarchy strategy according to the monitoring results. The power control hierarchy strategy is used to adjust the power consumption of the device according to the monitoring results of the power supply system and the device, so as to eliminate the power spikes and dynamic power adjustment methods in the power supply system. And adjust the power consumption of the device according to the power control hierarchy strategy.

[0006] In this application, not only the power consumption state of the power supply system is determined according to the output parameters of the power supply system, but also the load state of the device is determined according to the power supply parameters of the device in the computing device, and then the power consumption of the device is adjusted in combination with the power consumption state and the load state of the power supply system, so as to achieve the effect of balanced power consumption of the device. In other words, by detecting the primary power supply and the secondary power supply and adjusting the power consumption of the device, the power resources can be better balanced.

[0007] In one possible implementation, a computing device includes a power supply system and a device. The power supply system refers to a series of hardware including a power supply, a bus, a voltage comparator, etc. for powering the device. The device can also be called a power-consuming device or a power-receiving device, which can be understood as the load part of the computing device.

[0008] In a possible implementation, the device internal module voltage drop parameter is obtained by the device internal voltage monitoring module monitoring the device internal module voltage. In other words, the monitoring object corresponding to the device internal module voltage drop parameter is the device internal module voltage, and the monitoring subject is the device internal voltage monitoring module. When the device internal module voltage parameter indicates that the voltage of the device internal module is less than the first voltage threshold, the power consumption control module determines that the power supply control level strategy is to reduce the operating frequency of the device to the first preset percentage of the standard operating frequency of the device. Among them, the operating frequency of the device is positively correlated with the power consumption of the device, that is, the higher the operating frequency of the device, the higher the power consumption of the device; the lower the operating frequency of the device, the lower the power consumption of the device. At this time, the power consumption control module adjusts the power consumption of the device according to the power supply control level strategy, which means that the power consumption control module controls the operating frequency of the device to be reduced to the first preset percentage of the standard operating frequency of the device, thereby reducing the power consumption of the device. The first preset percentage can be determined based on experimental data and business performance, and will balance business performance to avoid a significant reduction in the operating frequency of the device and reduce business performance, so that the business can still proceed normally.

[0009] In a possible implementation, the bus voltage drop parameter is obtained by monitoring the voltage of the input bus in the power supply system by the bus voltage monitoring module on the input bus of the power supply system. That is to say, the monitoring object of the bus voltage drop parameter is the voltage of the input bus, and the monitoring subject is the bus voltage monitoring module on the input bus. When the bus voltage drop parameter indicates that the voltage of the input bus of the power supply system is less than the second voltage threshold, the power consumption control module will determine the power supply control level strategy to reduce the operating frequency of the device to the second preset percentage of the current operating frequency of the device. At this time, the power consumption control module adjusts the power consumption of the device according to the power supply control level strategy, which means that the power consumption control module controls the operating frequency of the device to be reduced to the second preset percentage of the standard operating frequency of the device, thereby reducing the power consumption of the device. The second preset percentage can be determined based on experimental data and business performance, and will balance business performance to avoid a significant reduction in the operating frequency of the device and reduce business performance, so that the business can still proceed normally.

[0010] In this application, the monitoring of voltage drop not only includes the monitoring of voltage drop of the internal module of the device, but also includes the monitoring of voltage drop of the input bus, realizing multi-level detection of voltage drop of computing equipment, making the detection more comprehensive and improving the practicality of the technical solution of this application. At the same time, the power consumption control according to the monitoring results of the indicating voltage drop parameters is implemented based on hardware, specifically reducing the operating frequency of the device to a preset percentage, which can achieve rapid peak shaving.

[0011] In a possible implementation, the load power supply parameter is obtained by detecting the core current of the device by the power control chip. That is to say, the monitoring object of the load power supply parameter is the core current of the device, and the monitoring subject is the power control chip. When the load power supply parameter indicates that the core current of the device is greater than the first current threshold, the power consumption control module determines the power control hierarchy strategy to reduce the operating frequency of the device to the third preset percentage of the standard operating frequency of the device. At this time, the power consumption control module adjusts the power consumption of the device according to the power control hierarchy strategy, which means that the power consumption control module controls the operating frequency of the device to be reduced to the third preset percentage of the standard operating frequency of the device, thereby reducing the power consumption of the device. The third preset percentage can be determined based on experimental data and business performance, and will balance business performance to avoid a significant reduction in the operating frequency of the device and reduce business performance, so that the business can still proceed normally.

[0012] In a possible implementation, the first bus current parameter is obtained by monitoring the current of the input bus by the bus current detection module on the input bus of the power supply system. That is to say, the monitoring object of the first bus current parameter is the current of the input bus, and the monitoring subject is the bus current detection module on the input bus. When the first bus current parameter indicates that the current of the input bus is greater than the second current threshold, the power consumption control module will determine that the power control level strategy includes a hardware control strategy, and the hardware control strategy indicates that the operating frequency of the device is reduced to the fourth preset percentage of the standard operating frequency of the device. At this time, the power consumption control module adjusts the power consumption of the device according to the power control level strategy, which means that the power consumption control module controls the operating frequency of the device to be reduced to the fourth preset percentage of the standard operating frequency of the device, thereby reducing the power consumption of the device. The fourth preset percentage can be determined based on experimental data and business performance, and will balance business performance to avoid a significant reduction in the operating frequency of the device and reduce business performance, so that the business can still proceed normally.

[0013] In this application, the current monitoring includes not only the current monitoring of the internal modules of the device, but also the current monitoring of the input bus, which realizes the multi-level detection of the current of the computing device, making the detection more comprehensive and improving the practicality of the technical solution of this application. At the same time, the current parameters are monitored by hardware, and the power consumption is controlled according to the monitoring results. It is based on hardware implementation, specifically reducing the operating frequency of the device to a preset percentage, which can achieve rapid peak shaving.

[0014] In a possible implementation, after adjusting the power consumption of the device according to the power control level strategy, the power consumption control module will continue to obtain the monitoring results of the input bus current for more refined processing. That is to say, the power consumption control module will obtain the second bus current parameter of the input bus current, and the second bus current parameter is obtained by the software module querying the current of the input bus. When the second bus current parameter indicates that the current of the input bus is greater than the third current threshold, and the power consumption control module enters the software control stage, the power consumption control module will determine the first frequency reduction amplitude and the first voltage reduction amplitude according to the second bus current parameter. Among them, the power consumption control module enters the software stage when the time when the current of the input bus is greater than the third current threshold reaches the response time of the software module. The first frequency reduction amplitude indicates that the operating frequency of the device is reduced to a percentage of the standard operating frequency of the device, and the first voltage reduction amplitude indicates that the voltage of the device is reduced to a percentage of the current voltage. And based on the first frequency reduction amplitude and the first voltage reduction amplitude, the operating frequency and voltage reduction of the device are controlled to reduce the power consumption of the device. The first frequency reduction amplitude and the first voltage reduction amplitude have a corresponding relationship, specifically, the operating frequency of the device adjusted according to the first frequency reduction amplitude corresponds to the voltage of the device adjusted according to the first voltage reduction amplitude, and this corresponding relationship is usually set by the device before leaving the factory.

[0015] In this application, after the power consumption of the device is quickly peak-cut, the current of the input bus is continuously monitored in real time to achieve refined processing. In general, the technical solution of this application not only reduces the operating frequency of the device based on a preset percentage when performing power consumption control, but also reduces it based on a percentage determined in real time. Not only can it achieve rapid peak cutting, but it can also achieve refined processing, which further enriches the application scenarios and implementation methods of the technical solution of this application and improves the feasibility of the technical solution.

[0016] In a possible implementation, the first bus current parameter is obtained by the software module querying the current of the input bus. When the first bus current parameter indicates that the current of the input bus is greater than the third current threshold, and the power consumption control module enters the software control stage, the power consumption control module determines the second frequency reduction amplitude and the second voltage reduction amplitude according to the first bus current parameter. Wherein, the power consumption control module enters the software stage means that the time when the current of the input bus is greater than the third current threshold reaches the response time of the software module. The second frequency reduction amplitude indicates that the operating frequency of the device is reduced to the percentage of the standard operating frequency of the device, and the second voltage reduction amplitude indicates that the voltage of the device is reduced to the percentage of the current voltage. And based on the second frequency reduction amplitude and the second voltage reduction amplitude, the operating frequency and voltage of the device are controlled to be reduced to reduce the power consumption of the device. Wherein, the second frequency reduction amplitude has a corresponding relationship with the second voltage reduction amplitude, which is specifically manifested in that the operating frequency of the device adjusted according to the second frequency reduction amplitude corresponds to the voltage of the device adjusted according to the second voltage reduction amplitude, and this corresponding relationship is usually set by the device before leaving the factory.

[0017] In the present application, the second frequency reduction range and the second voltage reduction range are determined based on the first bus current parameter monitored in real time, thereby reducing the current of the input bus to below the third threshold. The real-time determination method can achieve refined processing, further enriching the application scenarios and implementation methods of the technical solution of the present application.

[0018] In a possible implementation, after adjusting the power consumption of the device according to the power control hierarchy strategy, the method further includes: if the current of the input bus is continuously less than a fourth current threshold within a preset time period, the power consumption control module controls the power consumption of the device to be restored to the power consumption before the reduction. The fourth current threshold is less than or equal to the third current threshold.

[0019] In the present application, the regulation of the power consumption of the device includes not only power consumption reduction but also power consumption recovery, thereby ensuring the normal operation of the device in the computing device from multiple aspects and further improving the practicality of the technical solution.

[0020] In a second aspect, the present application provides a power consumption control device, which includes various modules for executing the data processing method in the first aspect or any possible implementation of the first aspect.

[0021] In a third aspect, a computing device is provided, including a power consumption monitoring circuit, a control module and a power supply circuit.

[0022] The power supply circuit supplies power to the power consumption monitoring circuit and the control module.

[0023] The power consumption monitoring circuit is used to monitor the power supply system and devices of the computing device; and transmit the monitoring results of the power supply system and devices to the control module, the monitoring results including the voltage drop parameters of the internal modules of the device, the bus voltage drop parameters of the input bus voltage in the power supply system, the first bus current parameters of the input bus current, and the load power supply parameters of the core current provided to the device.

[0024] A control module is used to determine a power control hierarchy strategy according to the monitoring results, and the power control hierarchy strategy is used to adjust the power consumption of the device according to the monitoring results of the power system and the device, so as to eliminate the power spike and dynamic power adjustment in the power supply system; the power consumption of the device is adjusted according to the power control hierarchy strategy. The method shown in the first aspect and any possible implementation of the first aspect can be implemented.

[0025] In a fourth aspect, a computer-readable storage medium is provided, wherein instructions are stored in the computer-readable storage medium, and when the instructions are executed on a processor, the method shown in the first aspect and any possible implementation of the first aspect is implemented.

[0026] According to a fifth aspect, a computer program product is provided. When the computer program product is executed on a processor, the method shown in the first aspect and any possible implementation manner of the first aspect is implemented.

[0027] The beneficial effects shown in the second to fifth aspects are similar to those achieved by the first aspect and any possible implementation method of the first aspect, and will not be repeated here.

[0028] Based on the implementations provided in the above aspects, this application can also be further combined to provide more implementations. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] Figure 1 A schematic diagram of the system architecture provided for this application;

[0030] Figure 2 A flowchart of the power consumption adjustment method provided in this application;

[0031] Figure 3A schematic diagram of the power consumption adjustment method provided in this application;

[0032] Figure 4 Another flowchart of the power consumption adjustment method provided by the present application;

[0033] Figure 5 Another schematic diagram of the power consumption adjustment method provided by the present application;

[0034] Figure 6 A schematic diagram of the structure of the power consumption control device provided by the present application;

[0035] Figure 7 A schematic diagram of the structure of a computing device provided for this application;

[0036] Figure 8 Another structural schematic diagram of a computing device provided by the present application;

[0037] Fig. 9 A schematic diagram of the structure of the chip provided in this application. DETAILED DESCRIPTION

[0038] To facilitate understanding, the specific terms and related concepts that may be involved in this application are first explained.

[0039] Primary power supply: Also known as the first-level power supply, it refers to the conversion of external AC power into DC power entering the board. It should be noted that, in an ideal state, the primary power supply, as a power conversion module, converts AC power into standard DC power. However, in actual applications, with the change of load power consumption and line loss and other reasons, the voltage of the DC power converted by the primary power supply will fluctuate, thus affecting the output of the power conversion module.

[0040] Secondary power supply: Also known as the second-stage power supply, it refers to the conversion of the DC power entering the board into the voltage required by the subsequent circuit.

[0041] In order to solve the problem of uneven use of power resources, the present application provides a power consumption adjustment method. The power consumption control module can determine the power control hierarchy strategy based on the monitoring results of the power supply system and the device. The power hierarchy strategy is used to adjust the power consumption of the device to eliminate the power spike in the power supply system and dynamically adjust the power supply, thereby achieving the effect of balanced power consumption. In other words, by monitoring the primary power supply and the secondary power supply to adjust the power consumption of the device, compared with the traditional solution of only monitoring the power supply system, it can better balance the power resources.

[0042] The power consumption adjustment method provided in the present application is described in detail below in conjunction with the accompanying drawings.

[0043] See also Figure 1 , Figure 1This is a schematic diagram of the system architecture provided for this application. Figure 1 As shown, the computing device 100 includes a power consumption control module 101, a device 102, and a power supply system 103. Among them, the device 102 and the power consumption control module 101 can also be understood as the load part of the computing device 100. The power supply system 103 is used to supply power to the device 102, including a power conversion module, a bus, a voltage controller, and a series of devices used to supply power to the device. For example, the power supply system 103 can realize the conversion process of external AC power to the DC power required by the computing device 100, and provide working power for the device 102 in the computing device 100.

[0044] In the present application, the power consumption control module 101 can obtain the power situation of the computing device 100 and timely adjust the power consumption of the device 102. Specifically, the power consumption control module 101 obtains the monitoring results of the device 102 and the monitoring results of the power supply system 103. The content of the specific monitoring results and the process of power consumption adjustment will be described later and will not be repeated here.

[0045] It should be noted that the power consumption control module 101 includes a hardware entity in the computing device 100 for adjusting the power consumption of the device 102, and also includes a software product that implements these functions, or a combination of a software product and a hardware entity, which is not specifically limited here. Among them, the power consumption control module 101 can be implemented by a variety of devices, such as a voltage comparator, a current comparator, an analog-to-digital converter (ADC) sampler, a control module, etc. In general, the present application can cover large load scenarios under various time specifications, and use a combination of software and hardware control methods to control the system power consumption within the power supply capacity. Large load scenarios include artificial intelligence (AI) business scenarios or other business scenarios with large instantaneous power consumption changes, which are not specifically limited here.

[0046] In addition, the computing device 100 also has many possibilities, which may include a host, a server or other terminal devices, wherein the terminal includes various handheld devices with wireless communication functions, vehicle-mounted devices, wearable devices, or other processing devices connected to a wireless modem, which are not specifically limited here.

[0047] The power consumption adjustment method provided in this application can be applied to the architecture described above, and is described in detail below in conjunction with the schematic diagram. Figure 2 , Figure 2 The flowchart of the power consumption adjustment method provided in this application includes at least the following steps:

[0048] Step 201. The power consumption control module obtains monitoring results of the power supply system and devices of the computing device, the monitoring results including voltage drop parameters of the internal modules of the device, bus voltage drop parameters of the input bus voltage in the power supply system, bus current parameters of the input bus current, and load power supply parameters of the core current provided to the device.

[0049] The monitoring results of the power supply system indicate the results of monitoring the power conditions of the power supply system. The power supply system here includes a series of hardware used to power devices, such as power supplies, busbars, and voltage controllers. The monitoring results of devices indicate the results of monitoring the power conditions of devices. Devices can also be understood as the load part of computing equipment and are the power supply objects of the power supply system. The monitoring results include different parameters, which are obtained by different monitoring subjects on different monitoring objects and then transmitted to the power consumption control module. The following is an explanation of the different parameters:

[0050] In simple terms, the monitoring type, monitoring object and monitoring subject corresponding to the monitoring results can be shown in Table 1 below:

[0051] Table 1

[0052]

[0053] As shown in Table 1, when monitoring the power conditions of the power supply system and devices, it can be divided into different types of monitoring, namely voltage drop monitoring and current monitoring. The monitoring objects corresponding to the voltage drop monitoring include the internal module voltage of the device and the voltage of the input bus, which are monitored by the internal voltage monitoring module of the device and the bus voltage monitoring module as the monitoring subjects. The monitoring objects corresponding to the current monitoring include the core current of the device and the current of the input bus. The former is monitored by the power control chip as the monitoring subject; the latter has multiple monitoring subjects, including the bus current detection module and the software module. The following is a detailed description of each parameter:

[0054] The device internal module voltage drop parameter is obtained by the device's internal voltage monitoring module monitoring the device's internal module voltage. The device internal module voltage drop parameter can indicate the change in the voltage of the device's internal module, that is, it not only includes the voltage of the device's internal module before and after the change, but also indicates the voltage drop of the device's internal module. The device's internal voltage monitoring module includes an ADC sampler, a critical path monitoring (CPM) module, etc., which are not specifically limited here. For example, assuming that the device is a chip, the chip's internal critical path voltage can be detected through the chip's built-in critical path monitoring module. Since the chip may have multiple access voltages, the critical path voltage mentioned here refers to the voltage provided to the chip by the power supply system.

[0055] The bus voltage drop parameter is obtained by monitoring the voltage of the input bus in the power supply system by the bus voltage monitoring module on the input bus of the power supply system. The bus voltage drop parameter can indicate the change of the voltage of the input bus, that is, it not only includes the voltage of the bus before and after the change, but also indicates the voltage drop of the input bus. The input bus voltage here refers to the voltage output of the power supply system before the direct current to direct current (DC / DC) conversion.

[0056] The load power supply parameter is obtained by the power control chip monitoring the core current of the device. The core current here refers to the current provided to the device by the power supply system. The power control chip includes a chip that can monitor the core current of the device, such as a multi-phase power controller, etc., which is not limited here. For example, assuming that the device is an artificial intelligence core (AIcore) type device, then the core current refers to the core current of the AIcore.

[0057] The first bus current parameter is obtained by monitoring the current of the input bus. The input bus current here refers to the current output by the power supply system before DC / DC conversion. However, there are many possible monitoring subjects, which are explained below:

[0058] In some optional embodiments, the first bus current parameter is obtained by monitoring the current of the input bus by a bus current detection module on the input bus of the power supply system. The bus current detection module includes hardware such as an ADC chip located on the input bus and having the ability to monitor the current of the input bus. Taking the ADC chip as an example, the first bus current parameter includes the bus current parameter sampled by the ADC chip.

[0059] In some optional implementations, the first bus current parameter is obtained by the software module querying the current of the input bus. It is understandable that querying the current of the input bus requires the software module to exchange information with the hardware that monitors the current of the input bus, so the time for the software module to obtain the first bus current parameter is longer than the time for the bus current detection module to obtain the first bus current parameter.

[0060] Step 202. The power consumption control module determines a power control hierarchy strategy based on the monitoring results. The power control hierarchy strategy is used to adjust the power consumption of the device based on the monitoring results of the power system and the device to eliminate power spikes and dynamic power adjustment in the power supply system.

[0061] As shown in the description of step 201, the monitoring results of the power supply system and the devices include parameters of multiple aspects. When the power consumption control module determines the power control level strategy according to the monitoring results, it determines strategies with different contents according to different parameters.

[0062] The following is a brief description of the strategy for determining the power control level based on the monitoring results in conjunction with Table 2:

[0063] Table 2

[0064]

[0065] As shown in Table 2, the monitoring results correspond to different monitoring objects. When the monitoring object reaches the corresponding threshold value, different levels of control stages will be triggered, that is, corresponding to different power level control strategies. It should also be noted that the threshold value example shown in Table 2 is only an example of the threshold value corresponding to each monitoring object, and does not constitute a limitation on the threshold value in actual application. Among them, V and Vbus are used to represent the internal module voltage of the device and the voltage of the input bus, respectively, and TDC represents the thermal design current.

[0066] Combined with Table 2, it can be seen that in this application, the monitoring of voltage drop not only includes the monitoring of voltage drop of the internal module of the device, but also includes the monitoring of voltage drop of the input bus, realizing multi-level detection of voltage drop of the computing device. The monitoring of current parameters not only includes the current monitoring of the internal module of the device, but also includes the current monitoring of the input bus, realizing multi-level detection of the current of the computing device. In other words, in this application, the detection is more comprehensive, which also improves the practicality of the technical solution of this application.

[0067] Next, the process of determining the power level control strategy is described in detail with reference to the attached figure. First, the corresponding scheme of voltage drop monitoring is described. The monitoring objects of voltage drop monitoring include the module voltage inside the device and the voltage of the input bus. The following are described separately:

[0068] In some optional embodiments, if the device internal module voltage parameter indicates that the voltage of the device internal module is less than the first voltage threshold, the device internal module control phase is triggered, that is, the power consumption control module determines the power control level strategy to reduce the operating frequency of the device to a first preset percentage of the standard operating frequency of the device. The operating frequency of the device is positively correlated with the power consumption of the device. In other words, the higher the operating frequency of the device, the higher the power consumption of the device; the lower the operating frequency of the device, the lower the power consumption of the device.

[0069] Among them, the first voltage threshold can be determined according to the normal working voltage of the device, and usually the first voltage threshold is less than or equal to the minimum voltage for normal operation of the device. Since the voltage of the device often fluctuates during operation, the voltage fluctuation range will also be considered when determining the minimum voltage for normal operation of the device. The first preset percentage can be determined based on experimental data and business performance, because the operating frequency of the device is also positively correlated with the performance of the device. A reduction in the operating frequency will lead to a reduction in device performance, thereby affecting business performance. Therefore, when setting the first preset percentage, business performance will be balanced to avoid a significant reduction in business performance due to a reduction in the operating frequency of the device, so that the business can still proceed normally. Optionally, in actual applications, the first preset percentage can usually be set to be greater than or equal to 80%.

[0070] In some optional embodiments, if the bus voltage drop parameter indicates that the voltage of the input bus of the power supply system is less than a second voltage threshold, the input bus drop voltage control stage is triggered, that is, the power consumption control module determines the power control level strategy to reduce the operating frequency of the device to a second preset percentage of the current operating frequency of the device.

[0071] Among them, the second voltage threshold can be determined according to the voltage of the normal operation of the power supply system. Usually, the second voltage threshold is less than or equal to the minimum voltage of the normal operation of the power supply system. During the operation of the computing device, the voltage of the load often fluctuates, which will also affect the voltage of the input bus of the power supply system. Therefore, when determining the minimum voltage for the normal operation of the power supply system, the voltage fluctuation range will also be considered. Similar to the first preset percentage, the setting of the second preset percentage can also be determined based on experimental data and business performance, taking into account the impact of the operating frequency of the device on business performance. In actual applications, the second preset percentage can usually be set to be greater than or equal to 80%.

[0072] In the above optional implementation, the scheme corresponding to voltage drop monitoring is described. The scheme corresponding to current monitoring is described below. The monitoring objects corresponding to current monitoring include the core current of the device and the current of the input bus. The following are described separately:

[0073] In some optional embodiments, if the load power supply parameter indicates that the core current of the device is greater than the first current threshold, the device power control stage is triggered, that is, the power consumption control module determines the power control level strategy to reduce the operating frequency of the device to a third preset percentage of the standard operating frequency of the device. Among them, the first current threshold can be determined based on the normal operating current of the device, and usually the first current threshold is greater than or equal to the maximum current of the normal operation of the device. Since the current of the device often fluctuates during operation, the voltage fluctuation range is also considered when determining the maximum current of the normal operation of the device. Similar to the first preset percentage, the setting of the third preset percentage can also be determined based on experimental data and business performance, taking into account the impact of the operating frequency of the device on business performance. In practical applications, the third preset percentage can usually be set to be greater than or equal to 80%.

[0074] In some optional embodiments, if the first bus current parameter indicates that the current of the input bus is greater than the second current threshold, the input bus hardware control stage is triggered, that is, the power consumption control module determines that the power control level strategy includes a hardware control strategy, which indicates that the operating frequency of the device is reduced to a fourth preset percentage of the standard operating frequency of the device. Among them, the second current threshold can be determined based on the current of the normal operation of the power supply system, and the second current threshold is usually greater than or equal to the maximum current of the normal operation of the power supply system. During the operation of the computing device, the current of the load often fluctuates, which will also affect the current of the input bus of the power supply system. Therefore, when determining the maximum current for the normal operation of the power supply system, the fluctuation range of the current will also be considered. Similar to the first preset percentage, setting the fourth preset percentage can also be determined based on experimental data and business performance, taking into account the impact of the operating frequency of the device on business performance. In practical applications, the fourth preset percentage can usually be set to be greater than or equal to 80%.

[0075] In some optional embodiments, if the first bus current parameter indicates that the current of the input bus is greater than the third current threshold, and the power consumption control module enters the software control stage, the power consumption control module determines that the power control hierarchy strategy includes the software control strategy. That is, the power consumption control module determines the second frequency reduction amplitude and the second voltage reduction amplitude according to the first bus current parameter. Among them, the power consumption control module enters the software control stage when the time when the current of the input bus indicated by the first bus current parameter is greater than the third current threshold reaches the time when the software module responds. The response time of the software module is usually greater than or equal to 50ms, which is not specifically limited here.

[0076] The second frequency reduction amplitude indicates the percentage of the device's operating frequency reduced to the device's standard operating frequency, and the second voltage reduction amplitude indicates the percentage of the device's voltage reduced to the current voltage. In addition, the second frequency reduction amplitude and the second voltage reduction amplitude have a corresponding relationship, specifically, the operating frequency of the device adjusted according to the second frequency reduction amplitude corresponds to the voltage of the device adjusted according to the second voltage reduction amplitude, and this corresponding relationship is usually set for the device before leaving the factory. For example, assuming that the device defines that the voltage corresponding to a device with an operating frequency of 1GHz is about 0.9V, its fluctuation range can be ±2% to ±5%. If the operating frequency of the device adjusted according to the second frequency reduction amplitude is 1GHz, the voltage of the device adjusted according to the second voltage reduction amplitude needs to be around 0.9V.

[0077] The third current threshold can be determined according to the current of the power supply system during normal operation, and usually the third current threshold is greater than or equal to the maximum current of the power supply system during normal operation. Meanwhile, the third current threshold is less than the second current threshold.

[0078] The percentage indicated by the second frequency reduction amplitude is determined based on the first bus current parameter based on ensuring that the current of the input bus can be reduced to the third current threshold, thereby ensuring that the load power consumption is controlled within the power supply capacity of the power supply system.

[0079] It should be noted that the aforementioned implementation methods are all based on how to determine the power level control strategy when a certain monitoring object in voltage drop monitoring or current monitoring reaches the threshold value. In practical applications, there may be a situation where multiple monitoring objects reach their corresponding threshold values ​​at the same time at the current moment, that is, multiple power level control strategies are triggered by power spikes. In this case, the power level control strategy determined by the power consumption control module needs to be able to eliminate the power spike. In other words, the operating frequency of the device indicated by the power level control strategy determined by the power consumption control module should be reduced to the lowest operating frequency among the multiple operating frequencies corresponding to the multiple monitoring objects that reach their corresponding threshold values. In addition, if there is a situation where the voltage of the device needs to be reduced, the power level control strategy determined by the power consumption control module should also include reducing the voltage.

[0080] Exemplarily, assuming that at the current moment, the device internal module voltage parameter indicates that the voltage of the device internal module is less than the first voltage threshold, and the bus voltage drop parameter indicates that the voltage of the input bus of the power supply system is less than the second voltage threshold. At this time, the power level control strategy determined by the power consumption control module should indicate that the operating frequency of the device should be reduced by the lowest preset percentage of the first preset percentage and the second preset percentage of the current operating frequency.

[0081] Exemplarily, assuming that at the current moment, the voltage parameter of the internal module of the device indicates that the voltage of the internal module of the device is less than the first voltage threshold, and the first bus current parameter indicates that the current of the input bus is greater than the third current threshold, the power consumption control module enters the software control stage. At this time, the power level control strategy determined by the power consumption control module indicates that the operating frequency of the device should be reduced to the lowest percentage of the first preset percentage of the standard operating frequency and the percentage corresponding to the second frequency reduction amplitude determined according to the first bus current parameter. At the same time, the power level control strategy also needs to indicate the voltage reduction amplitude determined according to the first bus current parameter.

[0082] Step 203: The power consumption control module adjusts the power consumption of the device according to the power control hierarchy strategy.

[0083] As shown in the description of step 202, when the power consumption control module determines the power control hierarchy strategy according to the monitoring results, it will determine the power control hierarchy strategy with different contents according to the different parameters included in the monitoring results. Therefore, when the power consumption control module adjusts the power consumption of the device according to the power control hierarchy strategy, it will also be different. The following is a brief description in conjunction with Table 3:

[0084] Table 3

[0085]

[0086] It should be noted that the meaning of "reducing the frequency to XX preset percentage" in the "power control hierarchy strategy" shown in Table 3 is to reduce the operating frequency of the device to XX preset percentage of the standard operating frequency of the device. In addition, as shown in Table 3, the frequency reduction range of the device corresponding to different power control hierarchy strategies is different, so correspondingly, the power consumption of the device adjusted based on the power control hierarchy strategy is also different. The following are explained separately:

[0087] In some optional implementations, taking the scenario in the first row of Table 3 as an example, the power control hierarchy strategy is to reduce the operating frequency of the device to the first preset percentage of the standard operating frequency of the device, then the power consumption control module adjusts the power consumption of the device according to the power control hierarchy strategy, that is, controls the operating frequency of the device to be reduced to the first preset percentage of the standard operating frequency of the device, thereby reducing the power consumption of the device. The reason why the power consumption of the device can be reduced by reducing the operating frequency of the device is that the operating frequency of the device is positively correlated with the power consumption of the device. In other words, the lower the operating frequency of the device, the lower the power consumption of the device.

[0088] Similarly, the process of adjusting the power consumption of the device according to the power control hierarchy strategy represented by the second to fourth rows in Table 3 is similar to the scenario represented by the first row in Table 3, except that the magnitude of the reduction in the operating frequency of the control device is not the first preset percentage, but the second preset percentage, the third preset percentage, and the fourth preset percentage, respectively. Therefore, it will not be repeated here.

[0089] In some optional implementations, taking the scenario in the fifth row in Table 3 as an example, if the power control hierarchy strategy is to determine the second frequency reduction amplitude and the second voltage reduction amplitude according to the computing power and business performance of the device, then the power consumption control module adjusts the power consumption of the device according to the power control hierarchy strategy, that is, controls the operating frequency of the device to be reduced according to the second frequency reduction amplitude, and controls the voltage of the device to be reduced according to the second voltage reduction amplitude, thereby reducing the power consumption of the device.

[0090] From the above description, it can be seen that the scenario shown in the fifth row of Table 3 is slightly different from the previous scenarios in which the power consumption of the device is adjusted according to the power control hierarchy strategy: 1) In the scenario shown in the fifth row of Table 3, not only the operating frequency of the device is controlled to be reduced, but also the voltage of the device is controlled to be reduced; while in the previous scenarios, the power consumption control module only controls the operating frequency of the device to be reduced. 2) In the scenario shown in the fifth row of Table 3, the second frequency reduction amplitude is determined based on the first bus current parameter obtained in real time, and the operating frequency of the device is not reduced according to a preset percentage; while in the previous scenarios, the operating frequency of the device is reduced according to a preset percentage.

[0091] It should be noted that the control stage shown in the first four rows of Table 3 can be understood as being implemented based on hardware monitoring, specifically reducing the operating frequency of the device to a preset percentage, which can achieve rapid peak clipping. The hardware mentioned here includes voltage comparators, current comparators, ADC samplers, CPM modules, etc., which are not specifically limited here. Among them, the ADC sampler or CPM module is used to collect voltage or current, the voltage comparator is used to compare the monitored voltage with the corresponding voltage threshold, and the current comparator is used to compare the monitored current with the corresponding current threshold. The control stage shown in the fifth row can be understood as being implemented based on software, and the software module obtains the current of the input bus from the ADC sampler multiple times in a row. The second frequency reduction amplitude and the second voltage reduction amplitude determined based on the software are determined based on the first bus current parameters obtained in real time, which can achieve refined processing, and further enrich the application scenarios and implementation methods of the technical solution of the present application.

[0092] In this application, the power consumption control module can determine the power control level strategy based on the monitoring results of the power supply system and the device. The power level strategy is used to adjust the power consumption of the device to eliminate the power spikes in the power supply system and dynamically adjust the power supply, thereby achieving the effect of balanced power consumption. In other words, by monitoring the primary power supply and the secondary power supply to adjust the power consumption of the device, compared with the traditional solution of only monitoring the power supply system, it can better balance the power resources.

[0093] In some optional embodiments, after step 203, the power consumption control module can also obtain a second bus current parameter of the input bus current, and the second bus current parameter is obtained by the software module monitoring the current of the input bus. In other words, the software module will continue to monitor the current of the input bus. If after the hardware control stage is executed, the second bus current parameter indicates that the current of the input bus is greater than the third current threshold, and the power consumption control module enters the software control stage (that is, the time when the current of the input bus is greater than the third current threshold reaches the response time of the software module). It means that after the power consumption control module controls the operating frequency of the device to be reduced to the fourth preset percentage of the standard operating frequency of the device, although it plays a role in eliminating power spikes, it still does not reach the ideal state. In other words, it is necessary to further control the power consumption of the device.

[0094] In this case, the power consumption control module determines the first frequency reduction amplitude and the first voltage amplitude according to the second bus current parameter, the first frequency reduction amplitude indicates the percentage of reducing the operating frequency of the device to the standard operating frequency of the device, and the first voltage reduction amplitude indicates the percentage of reducing the voltage of the device to the current voltage. Afterwards, the power consumption control module controls the operating frequency and voltage reduction of the device based on the first frequency reduction amplitude and the first voltage reduction amplitude to reduce the power consumption of the device.

[0095] It should be noted that the first frequency reduction amplitude and the first voltage reduction amplitude also have a corresponding relationship, which is specifically manifested in that the operating frequency of the device adjusted according to the first frequency reduction amplitude corresponds to the voltage of the device adjusted according to the first voltage reduction amplitude, and this corresponding relationship is usually set by the device before leaving the factory. Specifically, it is similar to the above description of "the second frequency reduction amplitude and the second voltage reduction amplitude have a corresponding relationship", which will not be repeated here.

[0096] In this application, after the power consumption of the device is quickly peak-cut, the current of the input bus is continuously monitored in real time to achieve refined processing. In general, the technical solution of this application not only reduces the operating frequency of the device based on a preset percentage when performing power consumption control, but also reduces it based on a percentage determined in real time. Not only can it achieve rapid peak cutting, but it can also achieve refined processing, which further enriches the application scenarios and implementation methods of the technical solution of this application and improves the feasibility of the technical solution.

[0097] It should also be noted that in the present application, when the current parameter is a transient high threshold (that is, it reaches the corresponding first current threshold or the second current threshold in a short time), the hardware control stage will be triggered to achieve rapid response. When the current parameter indicates that it exceeds the third current threshold for a long time, the software control stage is entered. The short time mentioned here refers to the response time of the hardware, which is usually in microseconds or milliseconds, and is not specifically limited here. The long time refers to the response time of the software module, which will be greater than the response time of the hardware, usually in milliseconds, and is not specifically limited here. In other words, the power consumption adjustment method provided in the present application can achieve multi-level time specification response.

[0098] Combining the above content Figure 2 Explain the power consumption adjustment method provided by the present application, and then Figures 3 to 5 , further illustrating the power consumption adjustment method provided in this application.

[0099] First, combine Figure 3 The levels in the power control level strategy mentioned in the above power consumption adjustment method are explained.

[0100] like Figure 3 As shown, the power consumption adjustment method provided by the present application can be divided into five levels, including: device internal voltage drop control, input bus voltage drop control, device core current control, input bus current hardware control and input bus current software control.

[0101] Among them, the internal voltage drop control of the device corresponds to the scenario in the first row of the aforementioned Tables 1 to 3, the input bus voltage drop control corresponds to the scenario in the second row of the aforementioned Tables 1 to 3, the device core current control corresponds to the scenario in the third row of the aforementioned Tables 1 to 3, the input bus current hardware control corresponds to the scenario in the fourth row of the aforementioned Tables 1 to 3, and the input bus current software control corresponds to the scenario in the fifth row of the aforementioned Tables 1 to 3.

[0102] As described in step 203 above, the first four scenarios can be understood as being implemented based on hardware monitoring, and the trigger will trigger the preset level of frequency reduction and peak shaving, that is, the operating frequency of the device is reduced based on a preset percentage. The fifth scenario is implemented based on software, including a software module that obtains the input bus current from the ADC sampler multiple times in succession, and then calculates based on the input bus current. At this time, when there is a need to reduce the power consumption of the device (that is, the number of times the power supply current of the device exceeds the third current threshold within the first preset time period is greater than the preset number of times), the frequency reduction amplitude and voltage reduction amplitude of the device are determined by a software algorithm.

[0103] In general, the process based on hardware implementation can trigger the reduction of the operating frequency of the device when the power consumption of the device is reduced, thereby reducing the power consumption of the device. Generally, the time to execute the above process is in milliseconds, and the response speed is fast. The process based on software implementation requires a certain amount of calculation time, so the response time is longer because it needs to obtain the specific value of the input bus current multiple times and then calculate the frequency reduction and voltage reduction of the device.

[0104] Next, taking the device as a chip as an example, combined with Figure 4 ,right Figure 3 The multiple levels shown and the power consumption adjustment method based on the levels are further explained.

[0105] It should be noted that Figure 3 The five levels from left to right in the embodiment shown correspond to Figure 4 In the embodiment shown, they can be respectively referred to as chip critical path voltage monitoring, input bus voltage drop monitoring, chip core current monitoring, and input bus current monitoring. Among them, input bus current monitoring includes input bus current hardware monitoring and input bus current software monitoring (such as Figure 4 The rightmost process shown in the figure) corresponds to Figure 3 The input bus current hardware control and input bus current software control in the illustrated embodiment. That is, Figure 4 In the illustrated embodiment, there are five levels of control methods from left to right: device internal voltage drop control, input bus voltage drop control, device core current control, input bus current hardware control, and input bus current software control.

[0106] Specifically, in Figure 4 In the illustrated embodiment, in the device internal voltage drop control mode, the chip critical path voltage is monitored. The CPM module is a key path voltage monitoring module built into the chip. When the voltage drop (IR-drop) on the monitoring path is too large, causing the chip critical path voltage to drop below the first voltage threshold (that is, when the chip critical path voltage is less than the first voltage threshold), the CPM module immediately sends a drop indication (drop flag) to the FFS module to achieve rapid frequency reduction, thereby reducing the power consumption of the chip to ensure that the chip will not fail due to the signal timing not being met due to the voltage being too low. Among them, the signal timing includes: the timing of the waveform, including the setup time, the hold time, etc., such as the rise setup time, the hold time of the high level value, etc.

[0107] In the input bus voltage drop control mode, the input bus voltage is monitored, that is, the external input bus voltage of the control chip is monitored in real time, and the voltage value is monitored and compared with the second voltage threshold by a comparator. When the load is too large and the voltage drops below the second voltage threshold, the power supply voltage drop alarm is sensed, triggering the FFS module to quickly change frequency to reduce chip power consumption.

[0108] In the device core current control mode, the chip core current is monitored. The overcurrent alarm interrupt of the multi-phase power controller can be used. When the chip core current exceeds the first current threshold, the controller responds in microseconds to issue an overcurrent warning (Iout_warn) interrupt, which will be received by the FFS module. The FFS module reduces the frequency, allowing the xPU to respond quickly to reduce chip power consumption. Among them, the multi-phase power controller can be a core power multi-phase power controller of a certain processor, which is not limited here.

[0109] In the input bus current hardware control mode, the input bus current is monitored. The current sampling time and the second current threshold can be written into the current sensor in advance. When the actual sampled current exceeds the second current threshold, an overcurrent warning interrupt is immediately triggered to the FFS module to achieve rapid frequency reduction and power consumption reduction.

[0110] In the input bus current software control mode, the software queries the input bus current by polling, and sets the polling cycle as an adjustable parameter. The number of times the chip's power supply current exceeds the specification within a cycle is counted. The chip's power supply current exceeds the specification when the input bus current is greater than the third current threshold). By setting the threshold value of the statistical number of times, the algorithm is used to determine the frequency reduction amplitude and voltage reduction amplitude of the device to adjust the chip power consumption. Thereby achieving the purpose of the chip current not exceeding the specification within the set time interval. Among them, the threshold value of the number of times is determined according to the specifications of the computing device and the needs of the actual application, and is not specifically limited here. Generally, the lower the power consumption requirements of the device specifications for the device, the lower the threshold value of the number of times; the higher the power consumption requirements of the device specifications for the device, the higher the threshold value of the number of times.

[0111] In some optional embodiments, such as Figure 4 As shown, when it is detected that the input bus current is greater than the third current threshold, the operating frequency of the chip will be reduced. Then the power supply current of the chip is monitored again, and when the power supply current of the chip is greater than the third current threshold again, the operating frequency of the chip is reduced again by reducing the clock base frequency and / or reducing the voltage. Through the software algorithm, the operating frequency of the chip is repeatedly adjusted until the control target is achieved (that is, the input bus current is reduced to less than the third current threshold).

[0112] In some optional embodiments, if the input bus current is stable for a long time and does not exceed the specification, the chip can be restored to the power consumption state before the adjustment, that is, the operating frequency of the chip is restored to the initial operating frequency. Among them, the input bus current is stable for a long time and does not exceed the specification, which means that the input bus current is continuously less than the fourth current threshold within a preset time, and the fourth current threshold is less than or equal to the third current threshold. The preset time needs to be determined according to the needs of the actual application. Exemplarily, the preset time can be a time of ten seconds, a hundred seconds or a minute, which is not limited here. In addition, an algorithm can be used to restore the operating frequency of the chip, such as an artificial intelligence core (AI CORE) frequency recovery algorithm, which is not limited here.

[0113] In the present application, the regulation of the power consumption of the device includes not only power consumption reduction but also power consumption recovery, thereby ensuring the normal operation of the device in the computing device from multiple aspects and further improving the practicality of the technical solution.

[0114] Next, still taking the device as a chip as an example, the circuit structure of the power consumption adjustment method of the present application is further described. Figure 5 , Figure 5 A schematic diagram of the power consumption adjustment method provided in this application.

[0115] exist Figure 5 In the embodiment shown, Figure 5 (a) is an example of a circuit structure for realizing the above functions. Figure 5 (b) reflects the response time under different current thresholds in the input bus current hardware control and software control modes.

[0116] exist Figure 5 In the example of (a), the power supply system is represented by a power supply unit (PSU), and the current detector and the dynamic frequency and voltage regulation unit both monitor the input bus current, but the former corresponds to the input bus current hardware control, and the latter corresponds to the input bus current software control. The multi-phase power supply controller is used to monitor the chip core current, the comparator connected to the reference voltage is used to monitor the input bus voltage, and the voltage detection unit is used to monitor the chip critical path voltage.

[0117] In the above embodiments, the software control of the input bus current is based on a third current threshold (e.g., 1.2×TDC). In practical applications, multiple third current thresholds may be set, and the threshold values ​​corresponding to the multiple third current thresholds gradually decrease. Figure 5In the embodiment shown in (b), two third current thresholds are set, namely 1.2×TDC and 1×TDC. Compared with setting one third current threshold, setting multiple third current thresholds can adjust the power consumption of the device more smoothly, further reducing the impact of adjusting the power consumption of the device on service performance.

[0118] In some optional implementations, if multiple third current thresholds are set, the threshold value corresponding to the third current threshold is gradually reduced. Accordingly, in the input bus current software control, the frequency reduction amplitude and / or voltage reduction amplitude corresponding to the determined device can also be gradually increased. The frequency reduction amplitude indicates the percentage of the device's operating frequency reduced to the device's standard operating frequency, and the voltage reduction amplitude indicates the percentage of the device's voltage reduced to the current voltage.

[0119] For example, Figure 5 (b) shows that the second current threshold is 1.5×TDC, and the third current threshold is 1.2×TDC and 1×TDC, respectively. When the monitoring result obtained by the power consumption control module indicates that the current of the input bus is less than 1.5×TDC and greater than 1.2×TDC, the device determined by the power consumption control module corresponds to the frequency reduction amplitude 1 and the voltage reduction amplitude 1. When the monitoring result obtained by the power consumption control module indicates that the current of the input bus is less than 1.2×TDC and greater than 1×TDC, the device determined by the power consumption control module corresponds to the frequency reduction amplitude 2 and the voltage reduction amplitude 2.

[0120] Optionally, the relationship between the two groups of amplitudes may be that the frequency reduction amplitude 2 is greater than the frequency reduction amplitude 1, and the voltage reduction amplitude 2 is greater than the voltage reduction amplitude 1. That is, the degree of reduction in the operating frequency of the device controlled based on the frequency reduction amplitude 1 is higher than the degree of reduction in the operating frequency of the device controlled based on the frequency reduction amplitude 2, and the degree of reduction in the voltage of the device controlled based on the voltage reduction amplitude 1 is higher than the degree of reduction in the voltage of the device controlled based on the voltage reduction amplitude 2. Optionally, the relationship between the two groups of amplitudes may be that the frequency reduction amplitude 2 is greater than the frequency reduction amplitude 1, and the voltage reduction amplitude 2 is less than or equal to the voltage reduction amplitude 1. That is, the degree of reduction in the operating frequency of the device controlled based on the frequency reduction amplitude 1 is higher than the degree of reduction in the operating frequency of the device controlled based on the frequency reduction amplitude 2, and the degree of reduction in the voltage of the device controlled based on the voltage reduction amplitude 1 is slightly greater than or equal to the degree of reduction in the voltage of the device controlled based on the voltage reduction amplitude 2.

[0121] Optionally, the relationship between the two groups of amplitudes may be that frequency reduction amplitude 2 is less than or equal to frequency reduction amplitude 1, and voltage reduction amplitude 2 is greater than voltage reduction amplitude 1. That is, the degree of reduction in the operating frequency of the device controlled based on frequency reduction amplitude 1 is slightly greater than or equal to the degree of reduction in the operating frequency of the device controlled based on frequency reduction amplitude 2, and the degree of voltage reduction of the device controlled based on voltage reduction amplitude 1 is greater than the degree of voltage reduction of the device controlled based on voltage reduction amplitude 2.

[0122] It should also be noted that there is a corresponding relationship between the frequency reduction amplitude and the voltage reduction amplitude. Specifically, the operating frequency of the device adjusted according to the frequency reduction amplitude corresponds to the voltage of the device adjusted according to the voltage reduction amplitude, and this corresponding relationship is usually set by the device before leaving the factory.

[0123] In this application, the control of the input bus current not only realizes the aforementioned multi-level control (including hardware control and software control), but also realizes the control of multiple time specifications. Figure 5 As shown in (b), the response time of software control is greater than the response time of hardware control. Therefore, when the current is greater than the higher current threshold (the second current threshold), it means that the power spike of the power supply system in the computing device is more serious and requires a quick response, so hardware control is selected. When the current is less than the higher current threshold but greater than the lower current threshold (less than the second current threshold and greater than the third current threshold), it means that the power spike of the power supply system in the computing device is not serious and fine adjustment can be achieved through software control.

[0124] It should also be noted that in the previous Figure 4 In the scenario of "the input bus current is stable for a long time and does not exceed the specification, and the chip is restored to the power consumption state before adjustment" introduced in the illustrated implementation, it is defined that the input bus current is continuously less than the fourth current threshold within a preset time, and the fourth current threshold is less than or equal to the third current threshold. In the case where multiple third current thresholds are set, the fourth current threshold should be less than or equal to the third current threshold with the lowest threshold value among the multiple third current thresholds.

[0125] In the above description, for current monitoring, the power consumption control module compares the acquired current with the corresponding current threshold. In actual applications, the power consumption control module can also determine the power control hierarchy strategy based on the measured power consumption and the corresponding power consumption threshold, and adjust the power consumption of the device according to the power control hierarchy strategy.

[0126] That is to say, the power consumption control module will obtain the corresponding current and voltage, and then determine the power consumption based on the current and voltage. Then, it will be compared with the corresponding power consumption threshold. Accordingly, the current and voltage obtained by the power consumption control module include the monitoring objects shown in Table 2 above, and the process of determining the power control hierarchy strategy and adjusting the power consumption of the device according to the power control hierarchy strategy is also the same as that described above. Figures 2 to 5 The process described in the illustrated embodiment is similar, except that after the power consumption control module obtains the voltage parameters and current parameters of the power supply system and / or the device, it will further determine the corresponding power consumption, so it will not be described in detail here.

[0127] Combination of the above Figures 1 to 5 The power consumption adjustment method provided by the present application is described in detail. Figures 6 to 9, describing the power consumption control device, computing device and chip provided in this application.

[0128] Figure 6 This is a schematic diagram of the structure of the power consumption control device provided by this application. Figure 6 As shown, the power consumption control device 600 includes an acquisition unit 601 , an analysis unit 602 and a frequency modulation unit 603 .

[0129] The acquisition unit 601 is used to obtain the monitoring results of the power supply system and devices of the computing device, the monitoring results including the voltage drop parameters of the internal modules of the device, the bus voltage drop parameters of the input bus voltage in the power supply system, the first bus current parameters of the input bus current, and the load power supply parameters of the core current provided for the device.

[0130] The analysis unit 602 is used to determine a power control hierarchy strategy based on the monitoring results. The power control hierarchy strategy is used to adjust the power consumption of the device based on the monitoring results of the power system and the device to eliminate power spikes in the power supply system and dynamic power adjustment.

[0131] The frequency modulation unit 603 is used to adjust the power consumption of the device according to the power control hierarchy strategy.

[0132] It should be understood that the power consumption control device 600 of the embodiment of the present application can be implemented by a central processing unit (CPU), or by an application-specific integrated circuit (ASIC), or a programmable logic device (PLD). The above-mentioned PLD can be a complex programmable logical device (CPLD), a field programmable gate array (FPGA), a generic array logic (GAL), a power control unit (data processing unit, DPU), a system on chip (SoC), an artificial intelligence chip, and other chips with computing capabilities or any combination thereof. It can also be implemented by software Figures 1 to 4 When the power consumption adjustment method is shown, the power consumption control device 600 and its various modules may also be software modules.

[0133] In some optional implementations, the device internal module voltage drop parameter is obtained by the device internal voltage monitoring module monitoring the device internal module voltage. The analysis unit 602 is specifically configured to determine that the power control hierarchy strategy is to reduce the device operating frequency to a first preset percentage of the device's standard operating frequency if the device internal module voltage parameter indicates that the device internal module voltage is less than a first voltage threshold, and the device operating frequency is positively correlated with the device power consumption.

[0134] In some optional implementations, the bus voltage drop parameter is obtained by monitoring the voltage of the input bus in the power supply system by a bus voltage monitoring module on the input bus of the power supply system. The analysis unit 602 is specifically configured to determine that the power supply control hierarchy strategy is to reduce the operating frequency of the device to a second preset percentage of the current operating frequency of the device if the bus voltage drop parameter indicates that the voltage of the input bus of the power supply system is less than the second voltage threshold.

[0135] In some optional implementations, the load power supply parameter is obtained by detecting the core current of the device by the power control chip. The analysis unit 602 is specifically configured to determine that the power control hierarchy strategy is to reduce the operating frequency of the device to a third preset percentage of the standard operating frequency of the device if the load power supply parameter indicates that the core current of the device is greater than the first current threshold.

[0136] In some optional embodiments, the first bus current parameter is obtained by monitoring the current of the input bus by a bus current detection module on the input bus of the power supply system. The analysis unit 602 is specifically configured to determine that the power supply control hierarchy strategy includes a hardware control strategy if the first bus current parameter indicates that the current of the input bus is greater than the second current threshold, and the hardware control strategy indicates that the operating frequency of the device is reduced to a fourth preset percentage of the standard operating frequency of the device.

[0137] In some optional implementations, the acquisition unit 601 is further used to acquire a second bus current parameter of the input bus current, where the second bus current parameter is obtained by the software module querying the current of the input bus.

[0138] The analysis unit 602 is further configured to determine a first frequency reduction amplitude and a first voltage reduction amplitude according to the second bus current parameter if the second bus current parameter indicates that the current of the input bus is greater than a third current threshold and the power consumption control device 600 enters the software control stage. The third current threshold is less than the second current threshold, the first frequency reduction amplitude indicates the percentage of reducing the operating frequency of the device to the standard operating frequency of the device, and the first voltage reduction amplitude indicates the percentage of reducing the voltage of the device to the current voltage.

[0139] The frequency modulation unit 603 is further used to control the operating frequency and voltage reduction of the device based on the first frequency reduction amplitude and the first voltage reduction amplitude to reduce the power consumption of the device.

[0140] In some optional implementations, the first bus current parameter is obtained by the software module querying the current of the input bus. The analysis unit 602 is specifically configured to determine a second frequency reduction amplitude and a second voltage reduction amplitude according to the first bus current parameter if the first bus current parameter indicates that the current of the input bus is greater than a third current threshold and the power consumption control device 600 enters the software control stage, wherein the second frequency reduction amplitude indicates a percentage of reducing the operating frequency of the device to the standard operating frequency of the device, and the second voltage reduction amplitude indicates a percentage of reducing the voltage of the device to the current voltage.

[0141] The frequency modulation unit 603 is specifically configured to control the operating frequency and voltage reduction of the device based on the second frequency reduction amplitude and the second voltage reduction amplitude, so as to reduce the power consumption of the device.

[0142] In some optional implementations, the frequency modulation unit 603 is further configured to restore the power consumption of the control device to the power consumption before the reduction if the current of the input bus is continuously less than the fourth current threshold within a preset time period, and the fourth current threshold is less than or equal to the third current threshold. The power consumption control device 600 of the embodiment of the present application may correspond to the method described in the embodiment of the present application of the present invention, and the above and other operations and / or functions of each unit in the power consumption control device 600 are respectively to achieve Figures 1 to 4 The corresponding processes of the power consumption control module in each method are not described here for the sake of brevity.

[0143] The present application also provides a computing device, such as Figure 7 As shown, Figure 7 A schematic diagram of the structure of the computing device provided in this application.

[0144] like Figure 7 As shown, the computing device 700 includes: a power consumption monitoring circuit 701 , a control module 702 , and a power supply circuit 703 . The power supply circuit 703 supplies power to the power consumption monitoring circuit 701 and the control module 702 .

[0145] The power consumption monitoring circuit 701 is used to monitor the power supply system and components of the computing device, and transmit the monitoring results of the power supply system and components to the control module 702, the monitoring results including the voltage drop parameters of the internal modules of the components, the bus voltage drop parameters of the input bus voltage in the power supply system, the first bus current parameters and / or the second bus current parameters of the input bus current, and the load power supply parameters of the core current provided for the components.

[0146] The control module 702 is used to determine the power control hierarchy strategy according to the monitoring results. The power control hierarchy strategy is used to adjust the power consumption of the device according to the monitoring results of the power system and the device, so as to eliminate the power peak and dynamic power adjustment in the power supply system. And the power consumption of the device is adjusted according to the power control hierarchy strategy.

[0147] That is, the control module 702 is used to execute the aforementioned Figures 1 to 4 In the illustrated embodiment, the operations performed by the power consumption control module will not be described in detail here.

[0148] In addition, it should be noted that Figure 5 In the embodiment shown in (a), the power consumption monitoring circuit 701 corresponds to Figure 5 (a) shows a current detector, a multi-phase power supply controller, a voltage comparator and a voltage detection unit. The control module 702 corresponds to Figure 5 (a) shows the dynamic frequency modulation and voltage modulation unit and the fast frequency modulation unit. The power supply circuit 703 corresponds to Figure 5 (a) The power supply shown.

[0149] The computing device provided in this application may also have other forms, please refer to Figure 8 , Figure 8 A schematic diagram of the structure of the computing device provided in this application.

[0150] like Figure 8 As shown, the computing device 800 includes a memory 801 and a processor 802, and the memory 801 and the processor 802 communicate via a bus 803. The memory 801 is used to store instructions or program codes, and the processor 802 can call the instructions or program codes stored in the memory 801 to perform the following operations:

[0151] Obtain monitoring results of the power supply system and devices of the computing device, including voltage drop parameters of the module inside the device, bus voltage drop parameters of the input bus voltage in the power supply system, first bus current parameters of the input bus current, and load power parameters of the core current provided to the device. Determine the power control hierarchy strategy based on the monitoring results. The power control hierarchy strategy is used to adjust the power consumption of the device based on the monitoring results of the power supply system and devices to eliminate power spikes and dynamic power adjustment methods in the power supply system. Adjust the power consumption of the device according to the power control hierarchy strategy.

[0152] It should be understood that in the embodiment of the present application, the processor 802 can be a CPU, and the processor 802 can also be other digital signal processors (digital signal processing, DSP), application-specific integrated circuits (ASICs), field programmable gate arrays (FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.

[0153] The memory 801 may be a disk or a hard disk, and provides instructions and data to the SCM controller 801. The memory 801 may also include a non-volatile random access memory. For example, the processor 802 may also store information about the device type. The memory 801 may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. It may also be a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDR SDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous connection dynamic random access memory (SLDRAM), etc., which are not specifically limited here.

[0154] In addition to the data bus, the bus 803 may also include a power bus, a control bus, a status signal bus, etc. However, for the sake of clarity, various buses are labeled as bus 803 in the figure.

[0155] The bus 803 may be a Peripheral Component Interconnect Express (PCIe) bus, an extended industry standard architecture (EISA) bus, a unified bus (Ubus or UB), a compute express link (CXL), a cache coherent interconnect for accelerators (CCIX), etc. The bus 803 may be divided into an address bus, a data bus, a control bus, etc.

[0156] It should be understood that the processor 801 of the embodiment of the present application may correspond to the power consumption control device 600 in the embodiment of the present application, and may correspond to the corresponding subject in the method of executing the embodiment of the present application, and the above and other operations and / or functions of each module in the power consumption control device 600 are respectively to implement Figures 1 to 4 For the sake of brevity, the corresponding processes of each method in are not repeated here.

[0157] See also Fig. 9 , Fig. 9 A schematic diagram of the structure of the chip provided in this application.

[0158] like Fig. 9 As shown, the chip 900 includes a power supply circuit 901 and a processing unit 902. The power supply circuit 901 supplies power to the processing unit 902, and the processing unit 902 is used to implement the aforementioned Figures 1 to 4 The method shown will not be described in detail here.

[0159] The present application also provides a method comprising Fig. 9 The computing device of the chip shown in the figure, wherein the power supply circuit 901 in the chip 900 supplies power to the processing unit 902, and the processing unit 902 is used to implement the above Figures 1 to 4 The method shown will not be described in detail here.

[0160] The above embodiments can be implemented in whole or in part by software, hardware, firmware or any other combination. When implemented by software, the above embodiments can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded or executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that contains one or more available media sets. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium. The semiconductor medium can be a solid state drive (SSD).

[0161] The above is only a specific embodiment of the present invention. Those skilled in the art may conceive of changes or substitutions based on the specific embodiments provided by the present invention, which should be included in the protection scope of the present invention.

Claims

1. A power consumption adjustment method, characterized in that: The method is executed by a power consumption control module in a computing device, and includes: Acquire monitoring results of the power supply system and devices of the computing device, the monitoring results including voltage drop parameters of modules inside the device, bus voltage drop parameters of input bus voltage in the power supply system, first bus current parameters of input bus current, and load power supply parameters of core current provided for the device; Determine a power control hierarchy strategy according to the monitoring result, wherein the power control hierarchy strategy is used to adjust the power consumption of the device according to the monitoring result of the power system and the device, so as to eliminate power spikes and dynamic power adjustment in the power supply system; The power consumption of the device is adjusted according to the power control hierarchy strategy.

2. The method according to claim 1, characterized in that The device internal module voltage drop parameter is obtained by the internal voltage monitoring module of the device monitoring the internal module voltage of the device; Determining the power control level strategy according to the monitoring result includes: If the voltage parameter of the internal module of the device indicates that the voltage of the internal module of the device is less than a first voltage threshold, the power control level strategy is determined to reduce the operating frequency of the device to a first preset percentage of the standard operating frequency of the device, and the operating frequency of the device is positively correlated with the power consumption of the device.

3. The method according to claim 1 or 2, characterized in that: The bus voltage drop parameter is obtained by monitoring the voltage of the input bus in the power supply system by a bus voltage monitoring module on the input bus of the power supply system; Determining the power control level strategy according to the monitoring result includes: If the bus voltage drop parameter indicates that the voltage of the input bus of the power supply system is less than a second voltage threshold, the power control level strategy is determined to reduce the operating frequency of the device to a second preset percentage of the current operating frequency of the device.

4. The method according to any one of claims 1 to 3, characterized in that The load power supply parameter is obtained by detecting the core current of the device by the power control chip; Determining the power control level strategy according to the monitoring result includes: If the load power parameter indicates that the core current of the device is greater than a first current threshold, the power control hierarchy strategy is determined to reduce the operating frequency of the device to a third preset percentage of the standard operating frequency of the device.

5. The method according to any one of claims 1 to 4, characterized in that The first bus current parameter is obtained by monitoring the current of the input bus by a bus current detection module on the input bus of the power supply system; Determining the power control level strategy according to the monitoring result includes: If the first bus current parameter indicates that the current of the input bus is greater than a second current threshold, it is determined that the power control hierarchy strategy includes a hardware control strategy, and the hardware control strategy indicates that the operating frequency of the device is reduced to a fourth preset percentage of the standard operating frequency of the device.

6. The method according to claim 5, characterized in that After adjusting the power consumption of the device according to the power control hierarchy strategy, the method further includes: Acquire a second bus current parameter of the input bus current, where the second bus current parameter is obtained by a software module querying the current of the input bus; If the second bus current parameter indicates that the current of the input bus is greater than the third current threshold, and the power consumption control module enters the software control stage, a first frequency reduction amplitude and a first voltage reduction amplitude are determined according to the second bus current parameter, the third current threshold is less than the second current threshold, the first frequency reduction amplitude indicates a percentage of reducing the operating frequency of the device to the standard operating frequency of the device, and the first voltage reduction amplitude indicates a percentage of reducing the voltage of the device to the current voltage; The operating frequency and voltage of the device are controlled to be reduced based on the first frequency reduction amplitude and the first voltage reduction amplitude, so as to reduce the power consumption of the device.

7. The method according to any one of claims 1 to 4, characterized in that The first bus current parameter is obtained by the software module querying the current of the input bus; Determining the power control level strategy according to the monitoring result includes: If the first bus current parameter indicates that the current of the input bus is greater than the third current threshold, and the power consumption control module enters the software control stage, a second frequency reduction amplitude and a second voltage reduction amplitude are determined according to the first bus current parameter, wherein the second frequency reduction amplitude indicates a percentage of reducing the operating frequency of the device to the standard operating frequency of the device, and the second voltage reduction amplitude indicates a percentage of reducing the voltage of the device to the current voltage; The adjusting the power consumption of the device according to the power control hierarchy strategy includes: The operating frequency and voltage of the device are controlled to be reduced based on the second frequency reduction amplitude and the second voltage reduction amplitude, so as to reduce the power consumption of the device.

8. The method according to claim 6 or 7, characterized in that: After reducing the power consumption of the device, the method further includes: If the current of the input bus is continuously less than a fourth current threshold within a preset time period, the power consumption of the device is controlled to be restored to the power consumption before reduction, and the fourth current threshold is less than or equal to the third current threshold.

9. A power consumption control device, characterized in that: include: an acquisition unit, configured to acquire monitoring results of the power supply system and devices of the computing device, wherein the monitoring results include voltage drop parameters of modules inside the device, bus voltage drop parameters of input bus voltage in the power supply system, first bus current parameters of input bus current, and load power supply parameters of core current provided for the device; an analysis unit, configured to determine a power control hierarchy strategy according to the monitoring result, wherein the power control hierarchy strategy is configured to adjust the power consumption of the device according to the monitoring result of the power system and the device, so as to eliminate power spikes and dynamic power adjustment in the power supply system; A frequency modulation unit is used to adjust the power consumption of the device according to the power control hierarchy strategy.

10. The device according to claim 9, characterized in that The voltage drop parameter of the internal module of the device is obtained by monitoring the internal module voltage of the device by the internal voltage monitoring module of the device. The analysis unit is specifically used to determine that the power control hierarchy strategy is to reduce the operating frequency of the device to a first preset percentage of the standard operating frequency of the device if the voltage parameter of the internal module of the device indicates that the voltage of the internal module of the device is less than a first voltage threshold, and the operating frequency of the device is positively correlated with the power consumption of the device.

11. The device according to claim 9 or 10, characterized in that The load power supply parameter is obtained by detecting the core current of the device by the power control chip; The analysis unit is specifically used to determine the power control hierarchy strategy to reduce the operating frequency of the device to a third preset percentage of the standard operating frequency of the device if the load power parameter indicates that the core current of the device is greater than a first current threshold.

12. A computing device, characterized in that: include: Power consumption monitoring circuit, control module and power supply circuit; The power supply circuit supplies power to the power consumption monitoring circuit and the control module; The power consumption monitoring circuit is used to monitor the power supply system and devices of the computing device; and transmit the monitoring results of the power supply system and devices to the control module, wherein the monitoring results include voltage drop parameters of the internal modules of the device, bus voltage drop parameters of the input bus voltage in the power supply system, first bus current parameters of the input bus current, and load power supply parameters of the core current provided for the device; The control module is used for: Determine a power control hierarchy strategy according to the monitoring result, wherein the power control hierarchy strategy is used to adjust the power consumption of the device according to the monitoring result of the power system and the device, so as to eliminate power spikes and dynamic power adjustment in the power supply system; The power consumption of the device is adjusted according to the power control hierarchy strategy.

Citation Information

Cited By

  • Power-saving control system based on computer power supply

    CN119024949A

  • Power consumption adjusting method and apparatus, computing device, and computer-readable storage medium

    EP4664763A1

  • Power consumption adjusting method and apparatus, computing device, and computer-readable storage medium

    WO2024178942A1