Search

CN-121541771-B - Multi-level stable power consumption control method and device, electronic equipment and storage medium

CN121541771BCN 121541771 BCN121541771 BCN 121541771BCN-121541771-B

Abstract

The invention provides a multi-level stable power consumption control method, a device, electronic equipment and a storage medium, which are characterized in that a power consumption convergence and stable output can be realized under a multi-discrete target power consumption gear by constructing and calibrating a load approaching combination in advance, establishing a mapping relation between target power consumption and load, generating a control signal by using a PID algorithm in a control period based on closed loop control of power consumption sensing feedback and driving a dynamic voltage frequency adjustment actuator to carry out fine phase adjustment matching, and power consumption disturbance caused by factors such as temperature change, voltage fluctuation and the like can be effectively restrained, so that the precision and stability of multi-level power consumption control are improved.

Inventors

  • CHEN SHIFENG
  • YE HONGZHANG
  • ZHOU CHENGJUN
  • DENG LINFENG
  • YANG ZHONGJUN
  • QIAN ZHONGJUN

Assignees

  • 此芯科技(苏州)有限公司

Dates

Publication Date
20260505
Application Date
20260121

Claims (10)

  1. 1. A multi-level stable power consumption control method, comprising: setting a multi-level target power consumption gear set which needs to be stably output, wherein the target power consumption gear set comprises target power consumption gears formed by a plurality of discrete target power consumption values; constructing a corresponding approximate load combination aiming at each target power consumption value, and establishing a mapping relation between the target power consumption value and the approximate load combination, wherein the initial actual power consumption generated by the approximate load combination when running under a preset initial working condition is higher than the corresponding target power consumption value; Responding to the selection of any target power consumption value, and calling and starting the approximate load combination mapped with the selected target power consumption value so as to enable the system power consumption to enter a target power consumption value neighborhood; And circularly executing the control method according to a preset control period, namely collecting a current power consumption value of a system, determining a power consumption error between the target power consumption value and the current power consumption value, converting the power consumption error into a control signal through a PID algorithm, and driving a DVFS executor to adjust the working state of at least one processing unit according to the control signal until the current power consumption value is converged and stabilized at the target power consumption value.
  2. 2. The method according to claim 1, wherein for each of said target power consumption values, constructing a corresponding approximated load combination, comprises in particular: Constructing a corresponding composite workload aiming at each target power consumption gear, wherein the composite workload is set as a load combination formed by combining a processor load and a graphic processor load; The method comprises the steps of selecting a computationally intensive benchmark test program as a processor load, adjusting the power consumption level of a processor by binding different numbers of processor cores, and selecting a graphic pressure test tool as the graphic processor load.
  3. 3. The method according to claim 2, wherein for each of said target power consumption values, constructing a corresponding approximated load combination, in particular further comprises: Trimming load parameters of the composite workload through an actual test, wherein the load parameters at least comprise the number of binding cores of the processor load and the rendering resolution of the graphics processor load; And operating the fine-tuned composite workload in an initial cold state of the system, so that the generated actual power consumption is close to and higher than the corresponding target power consumption gear, and forming the approximate load combination.
  4. 4. The method according to claim 2, wherein invoking and initiating the approximated load combination mapped with the selected target power consumption value in response to selection of any of the target power consumption values, in particular comprises: Establishing a pre-calibration library, and storing the mapping relation between the target power consumption value and the composite workload into the pre-calibration library; invoking the composite workload corresponding to the target power consumption value from the pre-calibrated library in response to the target power consumption value selected by a user's selection operation; And starting the composite workload, adjusting the system power consumption to quickly rise to the composite workload, and taking the composite workload as a power consumption ceiling so as to enable the system power consumption to enter the neighborhood of the target power consumption value with the power consumption adjustment allowance for DVFS down-regulation.
  5. 5. The method according to claim 1, wherein collecting a current power consumption value of a system, determining a power consumption error between the target power consumption value and the current power consumption value, and converting the power consumption error into a control signal through a PID algorithm, specifically comprising: Executing power consumption measurement under the preset control period, and measuring the actual total power consumption of the system as the current power consumption value by a power consumption sensor; Determining a difference value between the current power consumption value and the target power consumption value as the power consumption error, and receiving the power consumption error through a PID controller; and determining the control signal according to the sum of the proportional term, the integral term and the differential term of the PID controller.
  6. 6. The method of claim 1, wherein driving the DVFS executor to adjust the operational state of the at least one processing unit according to the control signal specifically includes: when the current power consumption value is higher than the target power consumption value, controlling the DVFS executor to reduce voltage or frequency so as to reduce power consumption; and when the current power consumption value is lower than the target power consumption gear, controlling the DVFS executor to increase voltage or frequency so as to increase power consumption.
  7. 7. The method of claim 1, wherein driving the DVFS executor to adjust the operational state of the at least one processing unit according to the control signal, further comprises: when the current power consumption value is higher than the target power consumption value, making the power consumption error negative and reducing the control signal; and when the current power consumption value is lower than the target power consumption gear, making the power consumption error positive and increasing the control signal.
  8. 8. A multi-level stable power consumption control apparatus, comprising: The power consumption gear definition module is used for setting a multi-level target power consumption gear set which needs to be stably output, wherein the target power consumption gear set comprises target power consumption gears formed by a plurality of discrete target power consumption values; The approaching load combination construction module is used for constructing a corresponding approaching load combination aiming at each target power consumption value, and establishing a mapping relation between the target power consumption value and the approaching load combination, wherein the initial actual power consumption generated by the approaching load combination when running under a preset initial working condition is higher than the corresponding target power consumption value; The coarse adjustment module is used for responding to the selection of any target power consumption value, calling and starting the approximate load combination mapped with the selected target power consumption value so as to enable the system power consumption to enter the neighborhood of the target power consumption value; The fine tuning module is used for circularly executing the current power consumption value of the acquisition system in a preset control period, determining the power consumption error between the target power consumption value and the current power consumption value, converting the power consumption error into a control signal through a PID algorithm, and driving a DVFS executor to adjust the working state of at least one processing unit according to the control signal until the current power consumption value is converged and stabilized at the target power consumption value.
  9. 9. An electronic device comprising a processor, a memory and a bus, the memory storing machine-readable instructions executable by the processor, the processor and the memory in communication over the bus when the electronic device is in operation, the machine-readable instructions when executed by the processor performing the steps of the multi-level regulated power consumption control method of any one of claims 1 to 7.
  10. 10. A computer readable storage medium, characterized in that the computer readable storage medium has stored thereon a computer program which, when executed by a processor, performs the steps of the multi-level stable power consumption control method according to any one of claims 1 to 7.

Description

Multi-level stable power consumption control method and device, electronic equipment and storage medium Technical Field The disclosure relates to the technical field of computer system power consumption control, in particular to a multi-level stable power consumption control method, a device, electronic equipment and a storage medium. Background In the power consumption debugging and power consumption target approaching scene of the computer system, the prior art generally adopts a fixed load mode to realize the approximate output of target power consumption, namely, the power consumption of the system is approximately near the expected target power consumption by continuously running certain pressure test software or fixed combination thereof, and when the deviation is larger, repeated tests are carried out by changing the load or adjusting the load parameters and the like until an approximate result is obtained. However, the above-mentioned fixed load approximation method essentially belongs to open loop control, the intensity is fixed after the load is started, and the actual power consumption of the system is affected by dynamic factors such as temperature variation, power supply voltage fluctuation, manufacturing process difference, etc., so that the power consumption under the same load fluctuates along with the change of the operation state, and it is difficult to accurately stabilize the power consumption at a specific target value. Disclosure of Invention The embodiment of the disclosure provides at least a multi-level stable power consumption control method, a device, an electronic device and a storage medium, which are characterized in that a power consumption convergence and stable output can be realized under a multi-discrete target power consumption gear by constructing and calibrating a combination of approaching loads in advance, establishing a mapping relation between target power consumption and loads, generating a control signal by using a PID algorithm and driving a dynamic voltage frequency adjustment actuator to carry out fine phase matching based on closed loop control of power consumption sensing feedback, and power consumption disturbance caused by factors such as temperature change and voltage fluctuation can be effectively restrained, so that the precision and stability of multi-level power consumption control are improved. The embodiment of the disclosure provides a multi-level stable power consumption control method, which comprises the following steps: setting a multi-level target power consumption gear set which needs to be stably output, wherein the target power consumption gear set comprises target power consumption gears formed by a plurality of discrete target power consumption values; constructing a corresponding approximate load combination aiming at each target power consumption value, and establishing a mapping relation between the target power consumption value and the approximate load combination, wherein the initial actual power consumption generated by the approximate load combination when running under a preset initial working condition is higher than the corresponding target power consumption value; Responding to the selection of any target power consumption value, and calling and starting the approximate load combination mapped with the selected target power consumption value so as to enable the system power consumption to enter a target power consumption value neighborhood; And circularly executing the control method according to a preset control period, namely collecting a current power consumption value of a system, determining a power consumption error between the target power consumption value and the current power consumption value, converting the power consumption error into a control signal through a PID algorithm, and driving a DVFS executor to adjust the working state of at least one processing unit according to the control signal until the current power consumption value is converged and stabilized at the target power consumption value. In an alternative embodiment, for each target power consumption value, a corresponding approximated load combination is constructed, which specifically includes: Constructing a corresponding composite workload aiming at each target power consumption gear, wherein the composite workload is set as a load combination formed by combining a processor load and a graphic processor load; The method comprises the steps of selecting a computationally intensive benchmark test program as a processor load, adjusting the power consumption level of a processor by binding different numbers of processor cores, and selecting a graphic pressure test tool as the graphic processor load. In an optional implementation manner, for each target power consumption value, a corresponding approximated load combination is constructed, and specifically further includes: Trimming load parameters of the composite workload through an actual test, wherei