CN113625862B - Power consumption control method and device, electronic equipment and readable storage medium - Google Patents

Power consumption control method and device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN113625862B
CN113625862B CN202110942627.9A CN202110942627A CN113625862B CN 113625862 B CN113625862 B CN 113625862B CN 202110942627 A CN202110942627 A CN 202110942627A CN 113625862 B CN113625862 B CN 113625862B
Authority
CN
China
Prior art keywords
power consumption
power
regulation
consumption control
deviation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110942627.9A
Other languages
Chinese (zh)
Other versions
CN113625862A (en
Inventor
王启勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Inspur Power Commercial Systems Co Ltd
Original Assignee
Inspur Power Commercial Systems Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Inspur Power Commercial Systems Co Ltd filed Critical Inspur Power Commercial Systems Co Ltd
Priority to CN202110942627.9A priority Critical patent/CN113625862B/en
Publication of CN113625862A publication Critical patent/CN113625862A/en
Application granted granted Critical
Publication of CN113625862B publication Critical patent/CN113625862B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/3293Power saving characterised by the action undertaken by switching to a less power-consuming processor, e.g. sub-CPU
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3058Monitoring arrangements for monitoring environmental properties or parameters of the computing system or of the computing system component, e.g. monitoring of power, currents, temperature, humidity, position, vibrations
    • G06F11/3062Monitoring arrangements for monitoring environmental properties or parameters of the computing system or of the computing system component, e.g. monitoring of power, currents, temperature, humidity, position, vibrations where the monitored property is the power consumption
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Quality & Reliability (AREA)
  • Power Sources (AREA)

Abstract

The application discloses a power consumption control method, a device, electronic equipment and a readable storage medium. The method comprises the steps of carrying out independent power consumption regulation and control calibration before leaving the factory of each device in advance so as to determine regulation and control deviation of each device; acquiring regulation deviation, a target power consumption value and a power consumption limit value of equipment to be regulated; according to the regulation deviation, the target power consumption value and the power consumption limit value, the power consumption of the equipment to be regulated is regulated, high-precision power consumption control can be realized, the influence of power failure caused by overhigh power can be prevented, the safety of the equipment is enhanced, the server can work under the optimal power consumption control, and the power supply use efficiency is improved.

Description

Power consumption control method and device, electronic equipment and readable storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and apparatus for controlling power consumption, an electronic device, and a readable storage medium.
Background
In view of security, a client server data center is provided with a breaker to protect the data center from surges, but long service interruptions caused by power outages can affect the user experience: in order to ensure the safety, a method of excessively supplying the data power is adopted, which often results in waste of power resources. To improve security and Power usage efficiency, power supply control (i.e., power consumption control) techniques are applied by setting a Power consumption limit. Therefore, the power consumption of the server can be kept at a certain limit value, so that the influence of power failure caused by overhigh power can be prevented, and the safety is enhanced; and the server can work under the optimal power consumption control, so that the service efficiency of the power supply is improved.
In the actual regulation process of Power supply, the regulated Power consumption of the BMC (Baseboard Management Controller ) sent to the PNOR (Parallel NOR Flash, parallel flash memory) and the Power consumption output after the PNOR regulation have a certain deviation. These deviations are due to hardware errors and errors of the power consumption regulation software existing in hardware devices such as servers themselves, wherein the sources of the hardware errors are mainly 1% of the power detection resistor and 3% of the power detection chip ADM 1278; the software error is reflected in PNOR adjustment logic, and adjustment is stopped when the detected power is [ target value-10, target value ]. That is, power Capping has errors that are not controllable by hardware and software when actually regulating. How to improve the accuracy of Power mapping for better application is a technical problem that needs to be solved by those skilled in the art.
Disclosure of Invention
The application provides a power consumption control method, a device, electronic equipment and a readable storage medium, which can realize high-precision power consumption control.
In order to solve the technical problems, the embodiment of the application provides the following technical scheme:
in one aspect, an embodiment of the present application provides a power consumption control method, including:
performing independent power consumption regulation and control calibration before leaving the factory of each device in advance to determine regulation and control deviation of each device;
acquiring regulation deviation, a target power consumption value and a power consumption limit value of equipment to be regulated;
and carrying out power consumption regulation on the equipment to be regulated according to the regulation deviation, the target power consumption value and the power consumption limit value.
Optionally, the performing individual power consumption regulation calibration before shipping the devices to determine a regulation deviation of each device includes:
acquiring preset calibration power of each device;
activating a power consumption control function of each device;
when the stability of the pressure test of each device is monitored, acquiring the power output power of the power supply at the current moment;
and determining the regulation deviation of each device according to the power output power and the calibration power.
Optionally, after determining the regulation deviation of each device according to the power output power and the calibration power, the method further includes:
and writing the regulation deviation of each device into the EEPROM.
Optionally, the obtaining the regulation deviation, the target power consumption value and the power consumption limit value of the device to be regulated includes:
synchronizing the power consumption limit value and the activation identifier to a memory in the process of setting and activating the power consumption control parameters in advance; the activation identifier is used for identifying whether the power consumption control function is activated or not;
reading the activation identification from the memory in response to an acquisition instruction of the power consumption control parameter;
and if the activation flag indicates that the power consumption control function is activated, reading the power consumption limit value from the memory.
Optionally, the synchronizing the power consumption limit value and the activation identifier to the memory during the setting and the activating of the power consumption control parameter includes:
when the power consumption control parameter setting instruction is received, judging whether an external sampling interface of the power consumption control function module exists or not;
if the external sampling interface of the power consumption control function module exists, writing legal power consumption control parameters into a configuration file of the baseboard management controller, and setting the attribute of each power consumption control parameter to be effective;
and writing the power consumption limit value set by the user into the memory.
Optionally, the synchronizing the power consumption limit value and the activation identifier to the memory during the setting and the activating of the power consumption control parameter includes:
activating the power consumption control function;
and if the external sampling interface of the power consumption control function module exists and each power consumption control parameter attribute is valid, writing the activation identification into the configuration file of the baseboard management controller and the memory.
Another aspect of the embodiment of the present application provides a power consumption control apparatus, including:
the regulation deviation calculation module is used for carrying out independent power consumption regulation calibration before the delivery of each device in advance so as to determine the regulation deviation of each device;
the information acquisition module is used for acquiring the regulation deviation, the target power consumption value and the power consumption limit value of the equipment to be regulated;
and the regulation and control module is used for regulating and controlling the power consumption of the equipment to be regulated and controlled according to the regulation and control deviation, the target power consumption value and the power consumption limit value.
Optionally, the device further comprises a parameter storage module, wherein the parameter storage module is used for synchronizing the power consumption limit value and the activation identifier to the memory in the process of setting and activating the power consumption control parameter in advance; the activation flag is used to identify whether the power consumption control function is activated.
The embodiment of the application also provides electronic equipment, which comprises a processor, wherein the processor is used for realizing the steps of the power consumption control method when executing the computer program stored in the memory.
Finally, an embodiment of the present application provides a readable storage medium, on which a computer program is stored, which when executed by a processor implements the steps of the power consumption control method according to any one of the preceding claims.
The technical scheme provided by the application has the advantages that before a user uses the equipment to regulate and control the power consumption, the power consumption regulation and control deviation of each equipment is obtained by carrying out power consumption regulation and control calibration calculation on each equipment, and because the regulation and control deviation of the equipment is obtained by calculation based on the power calibration error caused by the power detection chip and the power detection resistor, the regulation and control deviation is adaptive to the hardware difference of each machine, the neglect of the hardware difference on the power consumption control deviation in the conventional power consumption control is broken, and the power consumption control of the equipment can be more accurate. In the process of regulating and controlling the power consumption of the equipment, the regulation and control deviation is considered, so that the difference between the regulation and control result and the actual result is small enough, the error caused by the power consumption regulation and control algorithm software is calibrated, and the power consumption control is more accurate. On the basis of high-precision power consumption control, the safety and the power supply use efficiency of the server can be further improved by combining the power consumption limiting device, the power consumption of the server can be kept below a certain limiting value, the influence of power failure caused by overhigh power can be prevented, and the server can work under the optimal power consumption control.
In addition, the embodiment of the application also provides a corresponding implementation device, electronic equipment and a readable storage medium for the power consumption control method, so that the method is more practical, and the device, the electronic equipment and the readable storage medium have corresponding advantages.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions of the related art, the drawings that are required to be used in the embodiments or the description of the related art will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort to those of ordinary skill in the art.
Fig. 1 is a schematic flow chart of a power consumption control method according to an embodiment of the present application;
FIG. 2 is a schematic flow chart of a method for calculating a regulation deviation according to an embodiment of the present application;
FIG. 3 is a flowchart illustrating another power consumption control method according to an embodiment of the present application;
FIG. 4 is a flow chart of a method for reading power consumption control parameters in the prior art according to an embodiment of the present application;
FIG. 5 is a schematic diagram of a power consumption control parameter setting and parameter activation flow in the prior art according to an embodiment of the present application;
FIG. 6 is a flowchart illustrating a method for reading power consumption control parameters according to an embodiment of the present application;
FIG. 7 is a flowchart illustrating a power consumption control method according to an embodiment of the present application;
FIG. 8 is a schematic diagram of a power consumption control parameter obtaining result according to an embodiment of the present application;
FIG. 9 is a block diagram of a specific implementation of a power consumption control device according to an embodiment of the present application;
fig. 10 is a block diagram of an embodiment of an electronic device according to an embodiment of the present application.
Detailed Description
In order to better understand the aspects of the present application, the present application will be described in further detail with reference to the accompanying drawings and detailed description. It will be apparent that the described embodiments are only some, but not all, embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims and drawings are used for distinguishing between different objects and not necessarily for describing a particular sequential or chronological order. Furthermore, the terms "comprise" and "have," as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements but may include other steps or elements not expressly listed.
Having described the technical solutions of embodiments of the present application, various non-limiting embodiments of the present application are described in detail below.
Referring first to fig. 1, fig. 1 is a flow chart of a power consumption control method according to an embodiment of the present application, where the embodiment of the present application may include the following:
s101: and carrying out independent power consumption regulation and control calibration before the delivery of each device in advance so as to determine the regulation and control deviation of each device.
It can be understood that, in order to overcome the deviation of a certain degree between the regulated Power consumption and the Power consumption output after the regulation caused by the hardware error and the software error in the powercasting regulation process, the scheme of separately calibrating each machine before the shipment of the hardware equipment is adopted in the step, the Power consumption regulation calibration is performed on each equipment, the regulation deviation of the powercasting of each equipment is calculated, the regulation deviation can feed back the self error of the hardware such as the Power detection resistor and the Power detection chip of each equipment, and the error of the Power regulation software algorithm, and the hardware error and the software error in the powercasting can be calibrated.
S102: and obtaining the regulation deviation, the target power consumption value and the power consumption limit value of the equipment to be regulated.
The device to be regulated in the step is one of the devices in the step S101, the regulation error is obtained by calculation in the step S101, the target power consumption value is the power consumption value of the device to be regulated, which is intended to be regulated by a user, the power consumption limit value is the highest power value or the lowest power value set by the user for the device to be regulated, the target power consumption value and the power consumption limit value can be flexibly limited according to the current application scene, and the realization of the application is not affected.
S103: and carrying out power consumption regulation on the equipment to be regulated according to the regulation deviation, the target power consumption value and the power consumption limit value.
The application is based on two preconditions: one is that the power output by the PSU (Power supply unit, power supply) is calibrated, and the equipment manufacturer, such as a server manufacturer, guarantees, and actually regulates and confirms. Secondly, the current actual measurement conclusion shows that the difference of regulation deviation is not large when the regulation power consumption is changed. Based on the above, the present application calculates the current actual power consumption value according to the target power consumption value and the regulation deviation, regulates the power consumption of the device to be regulated according to the current actual power consumption value and the power consumption limit value, if the actual power consumption value is greater than the power consumption limit value (the power consumption limit value is the maximum power consumption value at this time) or less than the power consumption limit value (the power consumption limit value is the minimum power consumption value at this time), the current actual power consumption value can be set as the power consumption limit value, and if the actual power consumption value is less than the power consumption limit value (the power consumption limit value is the maximum power consumption value at this time) or greater than the power consumption limit value (the power consumption limit value at this time is the minimum power consumption value), the current actual power consumption value can be set as the actual power consumption value.
In the technical scheme provided by the embodiment of the application, before a user uses the equipment to regulate and control the power consumption, the power consumption regulation and control deviation of each equipment is obtained by carrying out power consumption regulation and control calibration calculation on each equipment, and because the regulation and control deviation of the equipment is obtained by calculation based on the power calibration error caused by the power detection chip and the power detection resistor, the regulation and control deviation is adaptive to the hardware difference of each machine, the problem that the hardware difference ignores the power consumption control deviation in the conventional power consumption control is solved, and the power consumption control of the equipment can be more accurate. In the process of regulating and controlling the power consumption of the equipment, the regulation and control deviation is considered, so that the difference between the regulation and control result and the actual result is small enough, the error caused by the power consumption regulation and control algorithm software is calibrated, and the power consumption control is more accurate. On the basis of high-precision power consumption control, the safety and the power supply use efficiency of the server can be further improved by combining the power consumption limiting device, the power consumption of the server can be kept below a certain limiting value, the influence of power failure caused by overhigh power can be prevented, and the server can work under the optimal power consumption control.
In the above embodiment, how to execute the step S101 is not limited, and one calculation method of the regulation deviation in the present embodiment, as shown in fig. 2 and 3, may include the following steps:
acquiring preset calibration power of each device; activating a power consumption control function of each device; when the stability of the pressure test of each device is monitored, acquiring the power output power of the power supply at the current moment;
and determining the regulation deviation of each device according to the power output power and the calibration power.
In this embodiment, when the production line performs a pressure test such as HTX, the computer program corresponding to the above steps may be packaged as an instruction, and the instruction is sent to calculate an offset, and the offset is written into the EEPROM. Correspondingly, as shown in fig. 3, on the basis of the original optimized powerweighting parameter setting flow chart, a calibration value offset is added, and the regulation deviation of each device is written into the EEPROM, so that the final implementation scheme is obtained. As an alternative embodiment, for each device, the device's regulation bias value is the difference between the power supply output power and the calibration power.
In order to make the technical solution provided by the present embodiment more clear to those skilled in the art, the present application further describes a corresponding implementation manner by using an actual schematic example, where offset is a regulation deviation, powerlnlimit is a power consumption limit, HTX is a pressure test, PSU out is a power output, and the following may be included:
setting a calibration power: p0=600W, powerInLimit: 600/0.92=653
ipmitool raw 0x2c 0x04 0xdc 0x0 0x0 0x0 0x11 0x8d 0x02 0x0 0x0 0x0 0x0 0x0 0x0 0x64 0x0
Set offset to 0x00
ipmitool raw 0x3c 0x58 0x00
Activating powersupporting
ipmitool raw 0x2c 0x05 0xdc 0x1 0x0 0x0
Running HTX
And acquiring PSU out power: p1
Calculate offset
offset=600-P1
Setting an offset value
offset is 1 byte, namely: 8BIT. BIT7 represents a sign (0 is positive; 1 is negative) and BITs 0-BIT6 represent sizes.
Such as:
+29:0x1D, corresponding instruction:
ipmitool raw 0x3c 0x58 0x1D
-29:0x9D (0x1d+0x80), corresponding instruction:
ipmitool raw 0x3c 0x58 0x9D
obtaining an offset value
ipmitool raw 0x3c 0x59
Setting the power consumption limit, assume 680W (0 x02a 8)
ipmitool raw 0x2c 0x04 0xdc 0x0 0x0 0x0 0x11 0xa8 0x02 0x0 0x0 0x0 0x0 0x0 0x0 0x64 0x0
Wherein, obtaining PSU out power may include two embodiments, which may include:
method one (time-consuming lengthening):
ipmitool sdr elist|grep POUT;
the output power consumption of PSU0 and PSU1 will be seen and added.
The second method is as follows:
the power consumption of the first power supply of the ipmitool raw 0x4 x2D 0xB4 is 16, and the return value is converted into 10;
00e0 00-0 x00 is converted to 10 scale, then 8, i.e.: 0x8 = 0*8 = 0W;
the power consumption of the second power supply of the ipmitool row 0x4 x2D 0xB5 is 16, and the return value is converted into 10;
23c0 00-convert 0x23 to 10, then x8, i.e.: 0x23 x8 = 35 x8 = 280W;
total power consumption: 0w+280w=280W.
As can be seen from the above, the power consumption control function of the server of the present embodiment provides a method for calibrating errors, and the calibration value can be permanently stored in each machine. Therefore, the power consumption of the server can be kept at a certain limit value, so that the influence of power failure caused by overhigh power can be prevented, and the safety is enhanced; and the server can work under the optimal power consumption control, so that the service efficiency of the power supply is improved.
In order to better apply the Power mapping technology in the server, besides correcting software and hardware errors by the above embodiment to improve the accuracy of Power mapping, the technical problem of parameter unreserved needs to be solved. Referring to fig. 4 and fig. 5, fig. 4 is a flow of powerweighting acquisition in the prior art, when acquiring powerweighting parameters, if the powerweighting parameters are currently in an activated state, the corresponding parameters are returned; if inactive, error code 0x80 is returned directly. As shown in fig. 5, if powersupporting needs to be implemented, two steps are needed: parameter setting and parameter activation, both of which are detecting hardware device APSS (analog power systems sweep, which can be understood as an external sampling interface of OCC (On-chip controller)) are present or not, and the parameter activation operation must be performed after the parameter setting. The OCC is a sub-module in the PNOR responsible for power consumption control. When setting parameters, the parameters are placed in a configuration file of the BMC, such as a dcmi.conf configuration file of a BMC file system; when the parameters are activated, the parameters are sent to the OCC for regulation and control. When the BMC version is directly updated without preserving the parameters, the set parameters are lost, and the user is required to reset for one time, namely: the parameters of the version default configuration will be used. Resetting the powersupporting parameter not only wastes time for the user, but also brings inconvenience to the user. Based on this, when the user upgrades the BMC version, the embodiment can compatibly store the parameters set by Power weighting, and in combination with fig. 6, fig. 7 and fig. 8, the embodiment may specifically include the following:
synchronizing a power consumption limit value and an activation identifier to a memory in the process of setting and activating the power consumption control parameters in advance; the activation identifier is used for identifying whether the power consumption control function is activated; and in response to the acquisition instruction of the power consumption control parameter, reading the activation identification from the memory.
When the user upgrades without preserving the parameters, the user's PowerCapping parameter configuration can be synchronously recorded in the EEPROM in order to save the user's PowerCapping parameter configuration. When the powersupporting parameter is acquired, the required parameter can be acquired from the EEPROM. When the powerweighting parameter is acquired, the current activation state is first acquired from the EEPROM. If the current state is in an activated state, the PowerLimit value is taken out of the EEPROM, and the rest parameters are taken out of the configuration file; if inactive, error code 0x80 is returned directly. When the powerweighting parameter is set, the PowerLimit, namely the power consumption limit value and the activation identifier ActiveFlag are synchronized to the EEPROM besides the original flow.
As an optional implementation manner of this embodiment, the setting process of the power consumption control parameter, that is, the powerweighting parameter in the drawing may include:
if the activation flag is that the power consumption control function has been activated, the power consumption limit is read from the memory.
When a power consumption control parameter setting instruction is received, judging whether an external sampling interface of the power consumption control function module exists or not;
if the external sampling interface of the power consumption control function module exists, writing legal power consumption control parameters into a configuration file of the baseboard management controller, and setting the attribute of each power consumption control parameter to be effective;
and writing the power consumption limit value set by the user into the memory.
As another alternative implementation manner of this embodiment, the activation process of the power consumption control parameter, i.e. the PowerCapping parameter in the figure, may include:
activating a power consumption control function;
if the external sampling interface of the power consumption control function module exists and the power consumption control parameter attribute is valid, the activation identification is written into the configuration file and the memory of the baseboard management controller.
As can be seen from the above, the embodiment of the application can ensure that the Power consumption regulation parameters can be stored after the user performs software upgrading, so that the Power consumption regulation parameters are set once and are permanently effective, thereby not only optimizing the precision of Power weighting, but also reducing unnecessary repeated operations of the user.
It should be noted that, in the present application, the steps are not strictly executed sequentially, so long as they conform to the logic sequence, and the steps may be executed simultaneously or according to a certain preset sequence, and fig. 1-7 are only schematic, and do not represent only such an execution sequence.
The embodiment of the application also provides a corresponding device for the power consumption control method, so that the method has higher practicability. Wherein the device may be described separately from the functional module and the hardware. The power consumption control device provided by the embodiment of the application is described below, and the power consumption control device described below and the power consumption control method described above can be referred to correspondingly.
Based on the angles of the functional modules, referring to fig. 9, fig. 9 is a block diagram of a power consumption control device according to an embodiment of the present application, where the device may include:
the regulation deviation calculation module 901 is used for carrying out independent power consumption regulation calibration before the delivery of each device in advance so as to determine the regulation deviation of each device;
the information acquisition module 902 is configured to acquire a regulation deviation, a target power consumption value and a power consumption limit value of a device to be regulated;
the regulation and control module 903 is configured to regulate and control power consumption of the device to be regulated and controlled according to the regulation and control deviation, the target power consumption value and the power consumption limit value.
Optionally, in some implementations of this embodiment, the apparatus may further include a parameter storage module, where the parameter storage module is configured to synchronize the power consumption limit value and the activation identifier to the memory in a set and activated process of the power consumption control parameter in advance; the activation flag is used to identify whether the power consumption control function is activated.
Accordingly, as an alternative implementation manner of this embodiment, the information obtaining module 902 may be further configured to:
reading an activation identification from a memory in response to an acquisition instruction of a power consumption control parameter;
if the activation flag is that the power consumption control function has been activated, the power consumption limit is read from the memory.
As another optional implementation manner of this embodiment, the apparatus further includes a parameter setting module and a parameter activating module;
the parameter setting module can be further used for judging whether an external sampling interface of the power consumption control function module exists or not when a power consumption control parameter setting instruction is received; if the external sampling interface of the power consumption control function module exists, writing legal power consumption control parameters into a configuration file of the baseboard management controller, and setting the attribute of each power consumption control parameter to be effective; and writing the power consumption limit value set by the user into the memory.
The parameter activation module may be further configured to: activating a power consumption control function; if the external sampling interface of the power consumption control function module exists and the power consumption control parameter attribute is valid, the activation identification is written into the configuration file and the memory of the baseboard management controller.
Optionally, in other implementations of this embodiment, the information obtaining module 902 may be further configured to: acquiring preset calibration power of each device; activating a power consumption control function of each device; when the stability of the pressure test of each device is monitored, acquiring the power output power of the power supply at the current moment; and determining the regulation deviation of each device according to the power output power and the calibration power.
As an alternative implementation manner of this embodiment, the apparatus may further include a regulation deviation writing module, for example, configured to write the regulation deviation of each device into the EEPROM.
The functions of each functional module of the power consumption control device according to the embodiment of the present application may be specifically implemented according to the method in the embodiment of the method, and the specific implementation process may refer to the related description of the embodiment of the method, which is not repeated herein.
From the above, the embodiment of the application can realize high-precision power consumption control.
The power consumption control device mentioned above is described from the viewpoint of functional modules, and further, the present application also provides an electronic device, which is described from the viewpoint of hardware. Fig. 10 is a schematic structural diagram of an electronic device according to an embodiment of the present application. As shown in fig. 10, the electronic device comprises a memory 100 for storing a computer program; a processor 101 for implementing the steps of the power consumption control method as mentioned in any of the embodiments above when executing a computer program.
Processor 101 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and processor 101 may also be a controller, microcontroller, microprocessor, or other data processing chip, among others. The processor 101 may be implemented in at least one hardware form of DSP (Digital Signal Processing ), FPGA (Field-Programmable Gate Array, field programmable gate array), PLA (Programmable Logic Array ). The processor 101 may also include a main processor, which is a processor for processing data in an awake state, also called a CPU (Central Processing Unit ), and a coprocessor; a coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 101 may be integrated with a GPU (Graphics Processing Unit, image processor) for taking care of rendering and drawing of content that the display screen is required to display. In some embodiments, the processor 101 may also include an AI (Artificial Intelligence ) processor for processing computing operations related to machine learning.
Memory 100 may include one or more computer-readable storage media, which may be non-transitory. Memory 100 may also include high-speed random access memory as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. Memory 100 may be an internal storage unit of an electronic device, such as a hard disk of a server, in some embodiments. The memory 100 may also be an external storage device of the electronic device, such as a plug-in hard disk provided on a server, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash Card (Flash Card), etc. in other embodiments. Further, the memory 100 may also include both internal storage units and external storage devices of the electronic device. The memory 100 may be used to store not only application software installed in an electronic device, but also various types of data, such as: code of a program that executes the vulnerability processing method, or the like, may also be used to temporarily store data that has been output or is to be output. In this embodiment, the memory 100 is at least used for storing a computer program 1001, which, when loaded and executed by the processor 101, is capable of implementing the relevant steps of the power consumption control method disclosed in any of the foregoing embodiments. In addition, the resources stored in the memory 100 may further include an operating system 1002, data 1003, and the like, and the storage manner may be transient storage or permanent storage. The operating system 1002 may include Windows, unix, linux, among other things. The data 1003 may include, but is not limited to, data corresponding to a power consumption control result, and the like.
In some embodiments, the electronic device may further include a display 102, an input/output interface 103, a communication interface 104, or referred to as a network interface, a power supply 105, and a communication bus 106. Among other things, the display 102, input output interface 103 such as a Keyboard (Keyboard) belong to a user interface, which may optionally also include standard wired interfaces, wireless interfaces, etc. Alternatively, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch, or the like. The display may also be referred to as a display screen or display unit, as appropriate, for displaying information processed in the electronic device and for displaying a visual user interface. The communication interface 104 may optionally include a wired interface and/or a wireless interface, such as a WI-FI interface, a bluetooth interface, etc., typically used to establish a communication connection between an electronic device and other electronic devices. The communication bus 106 may be a peripheral component interconnect standard (peripheral component interconnect, PCI) bus, or an extended industry standard architecture (extended industry standard architecture, EISA) bus, among others. The bus may be classified as an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in fig. 10, but not only one bus or one type of bus.
Those skilled in the art will appreciate that the configuration shown in fig. 10 is not limiting of the electronic device and may include more or fewer components than shown, for example, may also include sensors 107 to perform various functions.
The functions of each functional module of the electronic device according to the embodiment of the present application may be specifically implemented according to the method in the embodiment of the method, and the specific implementation process may refer to the related description of the embodiment of the method, which is not repeated herein.
From the above, the embodiment of the application can realize high-precision power consumption control.
It will be appreciated that if the power consumption control method in the above embodiments is implemented in the form of a software functional unit and sold or used as a separate product, it may be stored in a computer readable storage medium. Based on this understanding, the technical solution of the present application may be embodied essentially or in part or in whole or in part in the form of a software product stored in a storage medium for performing all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), an electrically erasable programmable ROM, registers, a hard disk, a multimedia card, a card-type Memory (e.g., SD or DX Memory, etc.), a magnetic Memory, a removable disk, a CD-ROM, a magnetic disk, or an optical disk, etc., that can store program code.
Based on this, an embodiment of the present application further provides a readable storage medium storing a computer program, which when executed by a processor, performs the steps of the power consumption control method according to any one of the embodiments above.
The functions of each functional module of the readable storage medium according to the embodiments of the present application may be specifically implemented according to the method in the embodiments of the method, and the specific implementation process may refer to the related description of the embodiments of the method, which is not repeated herein.
In this specification, each embodiment is described in a progressive manner, and each embodiment is mainly described in a different point from other embodiments, so that the same or similar parts between the embodiments are referred to each other. For the hardware including the device and the electronic equipment disclosed in the embodiments, the description is relatively simple because the hardware includes the device and the electronic equipment corresponding to the method disclosed in the embodiments, and relevant places refer to the description of the method.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative elements and steps are described above generally in terms of functionality in order to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The power consumption control method, the power consumption control device, the electronic equipment and the readable storage medium provided by the application are described in detail. The principles and embodiments of the present application have been described herein with reference to specific examples, the description of which is intended only to facilitate an understanding of the method of the present application and its core ideas. It should be noted that it will be apparent to those skilled in the art that various modifications and adaptations of the application can be made without departing from the principles of the application and these modifications and adaptations are intended to be within the scope of the application as defined in the following claims.

Claims (8)

1. A power consumption control method, characterized by comprising:
performing independent power consumption regulation and control calibration before leaving the factory of each device in advance to determine regulation and control deviation of each device;
acquiring regulation deviation, a target power consumption value and a power consumption limit value of equipment to be regulated;
performing power consumption regulation on the equipment to be regulated according to the regulation deviation, the target power consumption value and the power consumption limit value;
the method for calibrating the power consumption regulation and control of each device before the delivery of the device to determine the regulation and control deviation of each device comprises the following steps:
acquiring preset calibration power of each device;
activating a power consumption control function of each device;
when the stability of the pressure test of each device is monitored, acquiring the power output power of the power supply at the current moment;
determining the regulation deviation of each device according to the power supply output power and the calibration power;
wherein after determining the regulation deviation of each device according to the power output power and the calibration power, the method further comprises:
and writing the regulation deviation of each device into the EEPROM.
2. The power consumption control method according to claim 1, wherein the obtaining the regulation deviation, the target power consumption value, and the power consumption limit value of the device to be regulated includes:
synchronizing the power consumption limit value and the activation identifier to a memory in the process of setting and activating the power consumption control parameters in advance; the activation identifier is used for identifying whether the power consumption control function is activated or not;
reading the activation identification from the memory in response to an acquisition instruction of the power consumption control parameter;
and if the activation flag indicates that the power consumption control function is activated, reading the power consumption limit value from the memory.
3. The method for controlling power consumption according to claim 2, wherein synchronizing the power consumption limit value and the activation flag to the memory during the setting and the activation of the power consumption control parameter comprises:
when the power consumption control parameter setting instruction is received, judging whether an external sampling interface of the power consumption control function module exists or not;
if the external sampling interface of the power consumption control function module exists, writing legal power consumption control parameters into a configuration file of the baseboard management controller, and setting the attribute of each power consumption control parameter to be effective;
and writing the power consumption limit value set by the user into the memory.
4. The method of claim 3, wherein synchronizing the power consumption limit and the activation flag to the memory during the setting and activation of the power consumption control parameter comprises:
activating the power consumption control function;
and if the external sampling interface of the power consumption control function module exists and each power consumption control parameter attribute is valid, writing the activation identification into the configuration file of the baseboard management controller and the memory.
5. A power consumption control apparatus, characterized by comprising:
the regulation deviation calculation module is used for carrying out independent power consumption regulation calibration before the delivery of each device in advance so as to determine the regulation deviation of each device;
the information acquisition module is used for acquiring the regulation deviation, the target power consumption value and the power consumption limit value of the equipment to be regulated;
the regulation and control module is used for regulating and controlling the power consumption of the equipment to be regulated and controlled according to the regulation and control deviation, the target power consumption value and the power consumption limit value;
the information acquisition module is used for:
acquiring preset calibration power of each device;
activating a power consumption control function of each device;
when the stability of the pressure test of each device is monitored, acquiring the power output power of the power supply at the current moment;
determining the regulation deviation of each device according to the power supply output power and the calibration power;
wherein, the power consumption control device further includes:
and the regulation deviation writing module is used for writing the regulation deviation of each device into the EEPROM.
6. The power consumption control apparatus according to claim 5, further comprising a parameter storage module for synchronizing the power consumption limit value and the activation flag to a memory in advance in the setting and activation of the power consumption control parameter; the activation flag is used to identify whether the power consumption control function is activated.
7. An electronic device comprising a processor and a memory, the processor being adapted to implement the steps of the power consumption control method according to any one of claims 1 to 4 when executing a computer program stored in the memory.
8. A readable storage medium, characterized in that the readable storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of the power consumption control method according to any one of claims 1 to 4.
CN202110942627.9A 2021-08-17 2021-08-17 Power consumption control method and device, electronic equipment and readable storage medium Active CN113625862B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110942627.9A CN113625862B (en) 2021-08-17 2021-08-17 Power consumption control method and device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110942627.9A CN113625862B (en) 2021-08-17 2021-08-17 Power consumption control method and device, electronic equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN113625862A CN113625862A (en) 2021-11-09
CN113625862B true CN113625862B (en) 2023-09-01

Family

ID=78386003

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110942627.9A Active CN113625862B (en) 2021-08-17 2021-08-17 Power consumption control method and device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN113625862B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114326609A (en) * 2021-12-02 2022-04-12 成都工业学院 Multi-energy-flow SCADA energy real-time monitoring and collecting system based on Internet of things technology
CN114138098B (en) * 2022-02-07 2022-04-29 苏州浪潮智能科技有限公司 Power consumption adjusting method and device, storage device and readable storage medium
CN114924637B (en) * 2022-04-02 2024-02-27 联想(北京)有限公司 Control method and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104155024A (en) * 2014-08-14 2014-11-19 厦门市计量检定测试院 Ultra-low-power high-precision standard digital thermometer stabilizing circuit and error correcting method
CN110147155A (en) * 2019-05-21 2019-08-20 苏州浪潮智能科技有限公司 Server power supply cold redundancy control method, device and BMC based on BMC
CN112083226A (en) * 2019-06-13 2020-12-15 Oppo广东移动通信有限公司 Frequency calibration method and device for electronic equipment, medium and electronic equipment
CN112558748A (en) * 2020-11-26 2021-03-26 山东云海国创云计算装备产业创新中心有限公司 Server power consumption limiting method, device, equipment and readable storage medium
CN113098402A (en) * 2021-03-11 2021-07-09 广芯微电子(广州)股份有限公司 Low-power-consumption band-pass amplifying circuit with self-calibration center frequency

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9915989B2 (en) * 2016-03-01 2018-03-13 Lenovo Enterprise Solutions (Singapore) Pte. Ltd. Energy efficient workload placement management using predetermined server efficiency data

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104155024A (en) * 2014-08-14 2014-11-19 厦门市计量检定测试院 Ultra-low-power high-precision standard digital thermometer stabilizing circuit and error correcting method
CN110147155A (en) * 2019-05-21 2019-08-20 苏州浪潮智能科技有限公司 Server power supply cold redundancy control method, device and BMC based on BMC
CN112083226A (en) * 2019-06-13 2020-12-15 Oppo广东移动通信有限公司 Frequency calibration method and device for electronic equipment, medium and electronic equipment
CN112558748A (en) * 2020-11-26 2021-03-26 山东云海国创云计算装备产业创新中心有限公司 Server power consumption limiting method, device, equipment and readable storage medium
CN113098402A (en) * 2021-03-11 2021-07-09 广芯微电子(广州)股份有限公司 Low-power-consumption band-pass amplifying circuit with self-calibration center frequency

Also Published As

Publication number Publication date
CN113625862A (en) 2021-11-09

Similar Documents

Publication Publication Date Title
CN113625862B (en) Power consumption control method and device, electronic equipment and readable storage medium
US8661306B2 (en) Baseboard management controller and memory error detection method of computing device utilized thereby
US10255060B2 (en) Method for extending an embedded software component of a field device
EP2687928B1 (en) Controller support device, controller support program to be executed in said device, and recording medium storing said program
US8635484B2 (en) Event based correlation of power events
US20060155415A1 (en) Attributing energy consumption to individual code threads in a data processing system
US20090217023A1 (en) Method for upgrading a microprocessor-controlled device with a new software code via a communication network
US8762695B2 (en) Computing device and method for registering identification information of network interface card in operating system
US9558382B2 (en) Method for an acquisition of data from external digital sensors with an RFID smart tag and a tag integrated circuit for carrying out said method
EP2660713A1 (en) Patch mechanism in embedded controller for memory access
US20090248384A1 (en) Process control system in an automation installation
CN111290802B (en) Information analysis method and device for BMC internal device and readable storage medium
CN113703781B (en) Storage system interface generation method and device, electronic equipment and readable storage medium
CN103440146A (en) BIOS updating method based on cloud storage
CN113190395B (en) State monitoring method and device
CN113204384A (en) Equipment starting method and device and computer readable storage medium
CN117077221A (en) Hard disk screen printing distribution method and device, computer equipment and medium
AU2014202571B2 (en) Utility meter with utility configurable sealed data
JP2008293076A (en) Error decision program, error decision method, and electronic equipment
US20190163380A1 (en) Rewriting checking device, rewriting checking method, and non-transitory computer readable medium for rewriting checking
CN107045606B (en) Method and apparatus for monitoring execution of program code
US20180342042A1 (en) Multiple frame buffers for windowless embedded environment
CN115438713A (en) Winding group number identification method for electrical module, and storage medium
CN103956129A (en) Automatic identification system for electronic product display screen
US20230334156A1 (en) Secure boot up of computing devices

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant