CN112558747B - Power capping method, system and related components of server - Google Patents

Power capping method, system and related components of server Download PDF

Info

Publication number
CN112558747B
CN112558747B CN202011311135.1A CN202011311135A CN112558747B CN 112558747 B CN112558747 B CN 112558747B CN 202011311135 A CN202011311135 A CN 202011311135A CN 112558747 B CN112558747 B CN 112558747B
Authority
CN
China
Prior art keywords
current
level
power
power consumption
value
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
CN202011311135.1A
Other languages
Chinese (zh)
Other versions
CN112558747A (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.)
Shandong Yunhai Guochuang Cloud Computing Equipment Industry Innovation Center Co Ltd
Original Assignee
Shandong Yunhai Guochuang Cloud Computing Equipment Industry Innovation Center 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 Shandong Yunhai Guochuang Cloud Computing Equipment Industry Innovation Center Co Ltd filed Critical Shandong Yunhai Guochuang Cloud Computing Equipment Industry Innovation Center Co Ltd
Priority to CN202011311135.1A priority Critical patent/CN112558747B/en
Publication of CN112558747A publication Critical patent/CN112558747A/en
Application granted granted Critical
Publication of CN112558747B publication Critical patent/CN112558747B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/3243Power saving in microcontroller unit
    • 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)
  • Computing Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Power Sources (AREA)

Abstract

The application discloses a power capping method of a server, comprising the following steps: acquiring a power capping target value through a client instruction; acquiring a current overall power consumption value of a server; and comparing the power capping target value with the current overall power consumption value, and determining the current target level in the p-state table so that the operating system OS adjusts the current overall power consumption value according to the current target level. According to the method and the device, the current target level is determined through the comparison relation between the power capping target value and the current power consumption value of the whole machine, and the effect of adjusting the power consumption value of the whole machine is achieved by utilizing the characteristic that an Operating System (OS) operates according to the target level. According to the scheme, the power capping of the server is realized through dynamic adjustment, the method is simple and quick, and the adjusting efficiency is high. Correspondingly, the application also discloses a power capping system, a device and a readable storage medium of the server.

Description

Power capping method, system and related components of server
Technical Field
The present invention relates to the field of server power control, and in particular, to a method, a system, and related components for power capping of a server.
Background
At present, the development of domestic CPUs is increasingly emphasized, and the domestic CPUs reach the industry leading level and are widely applied to various industries such as storage, internet and the like. For example, the latest mega-core KX-37800D 8 core processor based on the X86 stage is pushed out by the mega-core, the dual-channel DDR4 memory can be supported, the PCIE X16 controller is integrated, and the operation performance is also greatly improved. However, the public design of the domestic CPU is still simpler, no specific algorithm related to power control exists, and the problem of power capping function deficiency exists.
Therefore, how to provide a solution to the above technical problem is a problem that needs to be solved by those skilled in the art.
Disclosure of Invention
Accordingly, the present invention is directed to a method, system and related components for power capping of a server. The specific scheme is as follows:
a power capping method for a server, comprising:
acquiring a power capping target value through a client instruction;
acquiring a current overall power consumption value of a server;
and comparing the power capping target value with the current overall power consumption value, and determining the current target level in the p-state table so that the operating system OS adjusts the current overall power consumption value according to the current target level.
Preferably, the process of comparing the power capping target value with the current power consumption value of the whole machine to determine the current target level in the p-state table includes:
comparing the power capping target value with a current power consumption value of the whole machine;
if the current power consumption value of the whole machine is smaller than the power capping target value, the current target level in the p-state table is increased by one level;
if the current power consumption value of the whole machine is larger than the power capping target value, reducing the current target level by one level;
the higher the power level in the p-state table, the larger the power value corresponding to the two ends of the power level.
Preferably, the step of increasing the current target level in the p-state table by one level if the current overall power consumption value is smaller than the power capping target value includes:
if the current power consumption value of the whole machine is smaller than the power capping target value, a first level adjusting signal is sent to the CPU through a first signal end so as to adjust the current target level in the p-state table by one level;
correspondingly, if the current power consumption value of the whole machine is greater than the power capping target value, the process of reducing the current target level by one level comprises the following steps:
and if the current power consumption value of the whole machine is larger than the power capping target value, sending a second level adjusting signal to the CPU through a second signal end so as to lower the current target level by one level.
Preferably, the first signal terminal and the second signal terminal are GPIO signal terminals.
Preferably, the process of comparing the power capping target value with the current power consumption value of the whole machine to determine the current target level in the p-state table includes:
solving a difference between the power capping target value and a current power consumption value of the whole machine;
determining the number of stages to be adjusted and the direction to be adjusted according to the difference value;
and according to the to-be-adjusted stage number and the to-be-adjusted direction, adjusting the current target stage in the p-state table.
Preferably, the process of comparing the power capping target value with the current power consumption value of the whole machine to determine the current target level in the p-state table includes:
and comparing the power capping target value with the current power consumption value of the whole machine by the CPU to determine the current target level in the p-state table.
Preferably, the process of obtaining the current power consumption value of the whole machine of the server includes:
and obtaining the current power consumption value of the whole machine of the server according to the preset frequency.
Correspondingly, the application also discloses a power capping system of the server, which comprises:
the first data module is used for acquiring a power capping target value through a client instruction;
the second data module is used for acquiring the current power consumption value of the whole machine of the server;
and the action module is used for comparing the power capping target value with the current power consumption value of the whole machine and determining the current target level in the p-state table so as to enable the operating system OS to adjust the current power consumption value of the whole machine according to the current target level.
Correspondingly, the application also discloses a power capping device of the server, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the power capping method of the server as claimed in any one of the preceding claims when executing the computer program.
Accordingly, the present application also discloses a readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the power capping method of a server as described in any of the above.
The application discloses a power capping method of a server, comprising the following steps: acquiring a power capping target value through a client instruction; acquiring a current overall power consumption value of a server; and comparing the power capping target value with the current overall power consumption value, and determining the current target level in the p-state table so that the operating system OS adjusts the current overall power consumption value according to the current target level. According to the method and the device, the current target level is determined through the comparison relation between the power capping target value and the current power consumption value of the whole machine, and the effect of adjusting the power consumption value of the whole machine is achieved by utilizing the characteristic that an Operating System (OS) operates according to the target level. According to the scheme, the power capping of the server is realized through dynamic adjustment, the method is simple and quick, and the adjusting efficiency is high.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only embodiments of the present invention, and that other drawings can be obtained according to the provided drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart illustrating a method for power capping of a server according to an embodiment of the present invention;
FIG. 2 is a diagram illustrating a power capping system of a server according to an embodiment of the present invention;
fig. 3 is a structural diagram of a power capping device of a server according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The public version design of the domestic CPU is simpler, a specific algorithm related to power control is not available, and the problem of power capping function deficiency exists. According to the method and the device, the current target level is determined through the comparison relation between the power capping target value and the current power consumption value of the whole machine, and the effect of adjusting the power consumption value of the whole machine is achieved by utilizing the characteristic that an Operating System (OS) operates according to the target level. According to the scheme, the power capping of the server is realized through dynamic adjustment, the method is simple and quick, and the adjusting efficiency is high.
The embodiment of the invention discloses a power capping method of a server, which is shown in fig. 1 and comprises the following steps:
s1: acquiring a power capping target value through a client instruction;
that is, the power capping target value does not change frequently and is updated only when a client command is received.
S2: acquiring a current overall power consumption value of a server;
s3: and comparing the power capping target value with the current overall power consumption value, and determining the current target level in the p-state table so that the operating system OS adjusts the current overall power consumption value according to the current target level.
It will be appreciated that the execution body of this embodiment is typically a BMC, where the client instruction is specifically a power policy, including a power capping target value, and the current overall power consumption value of the server is typically sent to the BMC by the PSU through the PMBUS.
It can be understood that the p-state table contains a plurality of power levels, and the higher the power level is, the larger the corresponding power values at the two ends of the power meter are. The CPU can select a certain power level in the p-state table as a target level, and based on the working characteristics of the OS, the OS can adjust the overall power consumption of the server according to the target level. If the power capping target value is not the upper limit value of the target level, the adjusted power consumption value of the whole machine still does not correspond to the power capping target value, and in general, the BMC continuously executes steps S1-S3 of the power capping method, especially, the step S2 of obtaining the current power consumption value of the whole machine of the server, including obtaining the current power consumption value of the whole machine of the server according to the preset frequency, and then executing step S3 after step S2, wherein the power consumption value of the whole machine of the server is in dynamic fluctuation in the whole adjustment process, and the average power consumption can reach the effect of approximating the power capping target value.
The embodiment of the application discloses a power capping method of a server, which comprises the following steps: acquiring a power capping target value through a client instruction; acquiring a current overall power consumption value of a server; and comparing the power capping target value with the current overall power consumption value, and determining the current target level in the p-state table so that the operating system OS adjusts the current overall power consumption value according to the current target level. According to the method and the device, the current target level is determined through the comparison relation between the power capping target value and the current power consumption value of the whole machine, and the effect of adjusting the power consumption value of the whole machine is achieved by utilizing the characteristic that an Operating System (OS) operates according to the target level. According to the scheme, the power capping of the server is realized through dynamic adjustment, the method is simple and quick, and the adjusting efficiency is high.
The embodiment of the invention discloses a specific power capping method of a server, and compared with the previous embodiment, the embodiment further describes and optimizes the technical scheme.
Specifically, the process of comparing the power capping target value with the current overall power consumption value to determine the current target level in the p-state table includes:
comparing the power capping target value with the current power consumption value of the whole machine;
if the current power consumption value of the whole machine is smaller than the power capping target value, the current target level in the p-state table is increased by one level;
if the current power consumption value of the whole machine is larger than the power capping target value, the current target level is lowered by one level;
the higher the power level in the p-state table, the larger the corresponding power value at both ends of the power level.
Further, if the current power consumption value of the complete machine is smaller than the power capping target value, the process of raising the current target level in the p-state table by one level includes:
if the current power consumption value of the whole machine is smaller than the power capping target value, a first level adjusting signal is sent to the CPU through a first signal end so as to adjust the current target level in the p-state table by one level;
correspondingly, if the current power consumption value of the whole machine is larger than the power capping target value, the process of reducing the current target level by one level comprises the following steps:
and if the current power consumption value of the whole machine is larger than the power capping target value, sending a second level adjusting signal to the CPU through a second signal end so as to lower the current target level by one level.
Typically, the first signal terminal and the second signal terminal are GPIO signal terminals.
That is, in this embodiment, two paths exist between the BMC and the CPU, and when the target level is to be adjusted up, a first level adjustment signal is sent to the CPU through a first signal terminal, the current target level of the p-state table in the CPU is adjusted up by one level, and when the target level is to be adjusted down, a second level adjustment signal is sent to the CPU through a second signal terminal, and the current target level of the p-state table in the CPU is adjusted down by one level. The adjustment adopts simpler judgment basis and adjustment mode, the process is quick, but the adjustment cannot be performed once, and the ideal effect can be achieved through multiple times of adjustment.
The embodiment of the invention discloses a specific power capping method of a server, and compared with the previous embodiment, the embodiment further describes and optimizes the technical scheme.
Specifically, the process of comparing the power capping target value with the current overall power consumption value to determine the current target level in the p-state table includes:
the power capping target value and the current power consumption value of the whole machine are subjected to difference;
determining the number of stages to be adjusted and the direction to be adjusted according to the difference value;
and adjusting the current target level in the p-state table according to the number of levels to be adjusted and the direction to be adjusted.
It can be understood that the actions of determining the number of levels to be adjusted, the direction to be adjusted and adjusting the current target level in this embodiment may be implemented by the BMC entirely, only by sending an instruction for updating the current target level to the CPU, or may be implemented entirely by the CPU, that is, by comparing the power capping target value with the current overall power consumption value by the CPU, determining the current target level in the p-state table, or may be implemented partially by the BMC, and partially by the CPU, where the specific execution body allocation may be determined according to the processing capacities and the communication cheapness of the BMC and the CPU.
Correspondingly, the embodiment of the application also discloses a power capping system of the server, as shown in fig. 2, including:
the first data module 01 is used for acquiring a power capping target value through a client instruction;
a second data module 02, configured to obtain a current overall power consumption value of the server;
and the action module 03 is used for comparing the power capping target value with the current overall power consumption value and determining the current target level in the p-state table so as to enable the operating system OS to adjust the current overall power consumption value according to the current target level.
According to the embodiment of the application, the current target level is determined through the comparison relation between the power capping target value and the current power consumption value of the whole machine, and the effect of adjusting the power consumption value of the whole machine is achieved by utilizing the operating system OS to operate according to the target level. According to the scheme, the power capping of the server is realized through dynamic adjustment, the method is simple and quick, and the adjusting efficiency is high.
In some specific embodiments, the action module 03 is specifically configured to:
comparing the power capping target value with a current power consumption value of the whole machine;
if the current power consumption value of the whole machine is smaller than the power capping target value, the current target level in the p-state table is increased by one level;
if the current power consumption value of the whole machine is larger than the power capping target value, reducing the current target level by one level;
the higher the power level in the p-state table, the larger the power value corresponding to the two ends of the power level.
In some specific embodiments, the action module 03 is specifically configured to:
if the current power consumption value of the whole machine is smaller than the power capping target value, a first level adjusting signal is sent to the CPU through a first signal end so as to adjust the current target level in the p-state table by one level;
in some specific embodiments, the action module 03 is specifically further configured to:
and if the current power consumption value of the whole machine is larger than the power capping target value, sending a second level adjusting signal to the CPU through a second signal end so as to lower the current target level by one level.
In some specific embodiments, the first signal terminal and the second signal terminal are GPIO signal terminals.
In some specific embodiments, the action module 03 is specifically configured to:
solving a difference between the power capping target value and a current power consumption value of the whole machine;
determining the number of stages to be adjusted and the direction to be adjusted according to the difference value;
and according to the to-be-adjusted stage number and the to-be-adjusted direction, adjusting the current target stage in the p-state table.
In some specific embodiments, the action module 03 is specifically configured to:
and comparing the power capping target value with the current power consumption value of the whole machine by the CPU to determine the current target level in the p-state table.
In some specific embodiments, the second data module 02 is specifically configured to:
and obtaining the current power consumption value of the whole machine of the server according to the preset frequency.
Correspondingly, the embodiment of the application also discloses a power capping device of the server, which is shown in fig. 3 and comprises a processor 11 and a memory 12; wherein the process 11, when executing the computer program stored in the memory 12, implements the following steps:
acquiring a power capping target value through a client instruction;
acquiring a current overall power consumption value of a server;
and comparing the power capping target value with the current overall power consumption value, and determining the current target level in the p-state table so that the operating system OS adjusts the current overall power consumption value according to the current target level.
According to the embodiment of the application, the current target level is determined through the comparison relation between the power capping target value and the current power consumption value of the whole machine, and the effect of adjusting the power consumption value of the whole machine is achieved by utilizing the operating system OS to operate according to the target level. According to the scheme, the power capping of the server is realized through dynamic adjustment, the method is simple and quick, and the adjusting efficiency is high.
In some specific embodiments, the following steps may be implemented when the processor 11 executes the computer subroutine stored in the memory 12:
comparing the power capping target value with a current power consumption value of the whole machine;
if the current power consumption value of the whole machine is smaller than the power capping target value, the current target level in the p-state table is increased by one level;
if the current power consumption value of the whole machine is larger than the power capping target value, reducing the current target level by one level;
the higher the power level in the p-state table, the larger the power value corresponding to the two ends of the power level.
In some specific embodiments, the following steps may be implemented when the processor 11 executes the computer subroutine stored in the memory 12:
if the current power consumption value of the whole machine is smaller than the power capping target value, a first level adjusting signal is sent to the CPU through a first signal end so as to adjust the current target level in the p-state table by one level;
in some specific embodiments, the following steps may be implemented when the processor 11 executes the computer subroutine stored in the memory 12:
and if the current power consumption value of the whole machine is larger than the power capping target value, sending a second level adjusting signal to the CPU through a second signal end so as to lower the current target level by one level.
In some specific embodiments, the first signal terminal and the second signal terminal are GPIO signal terminals.
In some specific embodiments, the following steps may be implemented when the processor 11 executes the computer subroutine stored in the memory 12:
solving a difference between the power capping target value and a current power consumption value of the whole machine;
determining the number of stages to be adjusted and the direction to be adjusted according to the difference value;
and according to the to-be-adjusted stage number and the to-be-adjusted direction, adjusting the current target stage in the p-state table.
In some specific embodiments, the following steps may be implemented when the processor 11 executes the computer subroutine stored in the memory 12:
and comparing the power capping target value with the current power consumption value of the whole machine by the CPU to determine the current target level in the p-state table.
In some specific embodiments, the following steps may be implemented when the processor 11 executes the computer subroutine stored in the memory 12:
and obtaining the current power consumption value of the whole machine of the server according to the preset frequency.
Further, the power capping device of the server in this embodiment may further include:
the input interface 13 is configured to acquire an externally imported computer program, store the acquired computer program in the memory 12, and also be configured to acquire various instructions and parameters transmitted by an external terminal device, and transmit the various instructions and parameters to the processor 11, so that the processor 11 uses the various instructions and parameters to develop corresponding processing. In this embodiment, the input interface 13 may specifically include, but is not limited to, a USB interface, a serial interface, a voice input interface, a fingerprint input interface, a hard disk reading interface, and the like.
And an output interface 14 for outputting various data generated by the processor 11 to a terminal device connected thereto, so that other terminal devices connected to the output interface 14 can acquire various data generated by the processor 11. In this embodiment, the output interface 14 may specifically include, but is not limited to, a USB interface, a serial interface, and the like.
And the communication unit 15 is used for establishing remote communication connection between the power capping device of the server and the external server so that the power capping device of the server can mount the image file to the external server. In this embodiment, the communication unit 15 may specifically include, but is not limited to, a remote communication unit based on a wireless communication technology or a wired communication technology.
A keyboard 16 for acquiring various parameter data or instructions inputted by a user by tapping the key cap in real time.
And the display 17 is used for displaying the related information of the power capping process of the server in real time so as to facilitate the user to know the power capping condition in time.
The mouse 18 may be used to assist the user in inputting data and to simplify the user's operation.
Further, embodiments of the present application disclose a readable storage medium, where the readable storage medium includes Random Access Memory (RAM), memory, read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the art. A computer program is stored in a readable storage medium, which when executed by a processor, performs the steps of:
according to the embodiment of the application, the current target level is determined through the comparison relation between the power capping target value and the current power consumption value of the whole machine, and the effect of adjusting the power consumption value of the whole machine is achieved by utilizing the operating system OS to operate according to the target level. According to the scheme, the power capping of the server is realized through dynamic adjustment, the method is simple and quick, and the adjusting efficiency is high.
In some specific embodiments, the computer subroutine stored in the readable storage medium may specifically implement the following steps when executed by a processor:
comparing the power capping target value with a current power consumption value of the whole machine;
if the current power consumption value of the whole machine is smaller than the power capping target value, the current target level in the p-state table is increased by one level;
if the current power consumption value of the whole machine is larger than the power capping target value, reducing the current target level by one level;
the higher the power level in the p-state table, the larger the power value corresponding to the two ends of the power level.
In some specific embodiments, the computer subroutine stored in the readable storage medium may specifically implement the following steps when executed by a processor:
if the current power consumption value of the whole machine is smaller than the power capping target value, a first level adjusting signal is sent to the CPU through a first signal end so as to adjust the current target level in the p-state table by one level;
in some specific embodiments, the computer subroutine stored in the readable storage medium may specifically implement the following steps when executed by a processor:
and if the current power consumption value of the whole machine is larger than the power capping target value, sending a second level adjusting signal to the CPU through a second signal end so as to lower the current target level by one level.
In some specific embodiments, the first signal terminal and the second signal terminal are GPIO signal terminals.
In some specific embodiments, the computer subroutine stored in the readable storage medium may specifically implement the following steps when executed by a processor:
solving a difference between the power capping target value and a current power consumption value of the whole machine;
determining the number of stages to be adjusted and the direction to be adjusted according to the difference value;
and according to the to-be-adjusted stage number and the to-be-adjusted direction, adjusting the current target stage in the p-state table.
In some specific embodiments, the computer subroutine stored in the readable storage medium may specifically implement the following steps when executed by a processor:
and comparing the power capping target value with the current power consumption value of the whole machine by the CPU to determine the current target level in the p-state table.
In some specific embodiments, the computer subroutine stored in the readable storage medium may specifically implement the following steps when executed by a processor:
and obtaining the current power consumption value of the whole machine of the server according to the preset frequency.
Finally, it is further noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above detailed description of the power capping method, system and related components of the server provided by the present invention applies specific examples to illustrate the principles and embodiments of the present invention, and the above description of the examples is only used to help understand the method and core idea of the present invention; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in accordance with the ideas of the present invention, the present description should not be construed as limiting the present invention in view of the above.

Claims (7)

1. A method for capping power of a server, comprising:
acquiring a power capping target value through a client instruction;
acquiring a current overall power consumption value of a server;
comparing the power capping target value with a current overall power consumption value, and determining a current target level in a p-state table so that an Operating System (OS) adjusts the current overall power consumption value according to the current target level;
the process of comparing the power capping target value with the current power consumption value of the whole machine and determining the current target level in the p-state table comprises the following steps:
comparing the power capping target value with a current power consumption value of the whole machine;
if the current power consumption value of the whole machine is smaller than the power capping target value, the current target level in the p-state table is increased by one level;
if the current power consumption value of the whole machine is larger than the power capping target value, reducing the current target level by one level;
the higher the power level in the p-state table, the larger the power values corresponding to the two ends of the power level;
and if the current power consumption value of the whole machine is smaller than the power capping target value, the process of raising the current target level in the p-state table by one level comprises the following steps:
if the current power consumption value of the whole machine is smaller than the power capping target value, a first level adjusting signal is sent to the CPU through a first signal end so as to adjust the current target level in the p-state table by one level;
correspondingly, if the current power consumption value of the whole machine is greater than the power capping target value, the process of reducing the current target level by one level comprises the following steps:
if the current power consumption value of the whole machine is larger than the power capping target value, a second level adjusting signal is sent to the CPU through a second signal end so as to lower the current target level by one level;
the process of comparing the power capping target value with the current power consumption value of the whole machine and determining the current target level in the p-state table comprises the following steps:
solving a difference between the power capping target value and a current power consumption value of the whole machine;
determining the number of stages to be adjusted and the direction to be adjusted according to the difference value;
and according to the to-be-adjusted stage number and the to-be-adjusted direction, adjusting the current target stage in the p-state table.
2. The power capping method of claim 1, wherein the first signal terminal and the second signal terminal are GPIO signal terminals.
3. The power capping method as claimed in claim 1, wherein the process of comparing the power capping target value with a current overall power consumption value to determine a current target level in a p-state table comprises:
and comparing the power capping target value with the current power consumption value of the whole machine by the CPU to determine the current target level in the p-state table.
4. A power capping method according to any one of claims 1 to 3, wherein the process of obtaining the current overall power consumption value of the server includes:
and obtaining the current power consumption value of the whole machine of the server according to the preset frequency.
5. A power capping system for a server, comprising:
the first data module is used for acquiring a power capping target value through a client instruction;
the second data module is used for acquiring the current power consumption value of the whole machine of the server;
the action module is used for comparing the power capping target value with the current power consumption value of the whole machine and determining the current target level in the p-state table so as to enable the operating system OS to adjust the current power consumption value of the whole machine according to the current target level;
the system is also used for comparing the power capping target value with the current power consumption value of the whole machine; if the current power consumption value of the whole machine is smaller than the power capping target value, the current target level in the p-state table is increased by one level; if the current power consumption value of the whole machine is larger than the power capping target value, reducing the current target level by one level; the higher the power level in the p-state table, the larger the power values corresponding to the two ends of the power level; and if the current power consumption value of the whole machine is smaller than the power capping target value, the process of raising the current target level in the p-state table by one level comprises the following steps: if the current power consumption value of the whole machine is smaller than the power capping target value, a first level adjusting signal is sent to the CPU through a first signal end so as to adjust the current target level in the p-state table by one level; correspondingly, if the current power consumption value of the whole machine is greater than the power capping target value, the process of reducing the current target level by one level comprises the following steps: if the current power consumption value of the whole machine is larger than the power capping target value, a second level adjusting signal is sent to the CPU through a second signal end so as to lower the current target level by one level; the power capping target value is differenced with the current power consumption value of the whole machine; determining the number of stages to be adjusted and the direction to be adjusted according to the difference value; and according to the to-be-adjusted stage number and the to-be-adjusted direction, adjusting the current target stage in the p-state table.
6. A power capping device for a server, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the power capping method of the server according to any one of claims 1 to 4 when executing the computer program.
7. A readable storage medium, characterized in that it has stored thereon a computer program which, when executed by a processor, implements the steps of the power capping method of a server according to any one of claims 1 to 4.
CN202011311135.1A 2020-11-20 2020-11-20 Power capping method, system and related components of server Active CN112558747B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011311135.1A CN112558747B (en) 2020-11-20 2020-11-20 Power capping method, system and related components of server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011311135.1A CN112558747B (en) 2020-11-20 2020-11-20 Power capping method, system and related components of server

Publications (2)

Publication Number Publication Date
CN112558747A CN112558747A (en) 2021-03-26
CN112558747B true CN112558747B (en) 2023-05-02

Family

ID=75044227

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011311135.1A Active CN112558747B (en) 2020-11-20 2020-11-20 Power capping method, system and related components of server

Country Status (1)

Country Link
CN (1) CN112558747B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114138098B (en) * 2022-02-07 2022-04-29 苏州浪潮智能科技有限公司 Power consumption adjusting method and device, storage device and readable storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101689070A (en) * 2007-06-25 2010-03-31 惠普开发有限公司 Dynamicizer control for high efficiency manipulation

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102624546B (en) * 2012-02-28 2015-04-29 华为技术有限公司 Control method, control equipment and control system for capping power consumption
CN102916835B (en) * 2012-10-18 2015-09-09 华为技术有限公司 A kind of method and device adjusting equipment power dissipation
CN106708239A (en) * 2015-11-12 2017-05-24 中国长城计算机深圳股份有限公司 Method and device for adjusting power consumption
CN108983946B (en) * 2018-06-13 2021-04-27 烽火通信科技股份有限公司 Server power consumption control method, system and equipment
CN111913802B (en) * 2020-07-17 2022-09-30 烽火通信科技股份有限公司 Multi-node server power consumption control method and system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101689070A (en) * 2007-06-25 2010-03-31 惠普开发有限公司 Dynamicizer control for high efficiency manipulation

Also Published As

Publication number Publication date
CN112558747A (en) 2021-03-26

Similar Documents

Publication Publication Date Title
US10074372B2 (en) Speech recognition using electronic device and server
JP6383356B2 (en) Brightness control method, apparatus and program product
CN111816178A (en) Voice equipment control method, device and equipment
WO2023207120A1 (en) Information processing method and apparatus, readable medium, electronic device, and program product
CN111949478B (en) Method and system for controlling upper limit of power consumption of server and related components
CN112558747B (en) Power capping method, system and related components of server
US20170308729A1 (en) Fingerprint sensor apparatus and a method for controlling the fingerprint sensor apparatus
CN109597482B (en) Automatic page turning method and device for electronic book, medium and electronic equipment
CN114757214A (en) Selection method and related device for sample corpora for optimizing translation model
CN113342420B (en) Firmware configuration method, device, equipment and storage medium
CN113900718B (en) Decoupling method, system and device for BMC and BIOS asset information
CN113704177B (en) Storage method, system and related components of server firmware upgrade file
US7865709B2 (en) Computer motherboard
CN113824995A (en) Data transmission method and device for robot, electronic device and storage medium
KR102521408B1 (en) Electronic device for providing infographics and method thereof
CN113327194A (en) Image style migration method, device, equipment and storage medium
CN112685258A (en) Control method and device and electronic equipment
CN111552617A (en) NAND Flash temperature acquisition method and device, computer equipment and storage medium
CN111325299A (en) Two-dimensional code image generation method and device, computer equipment and storage medium
CN107330051B (en) Noise reduction database calling method and device
CN101819581A (en) Appratus and method for assisting a user in understanding content
CN117075924B (en) Chip ID processing method and electronic equipment
US20180356469A1 (en) Electronic system and method for recognizing status of power-supply device
TWI544392B (en) Capacitive touch electronic apparatus, touch control device, and mode selection method for the capacitive touch electronic apparatus
CN115001628B (en) Data encoding method and device, data decoding method and device and data structure

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