CN115129137A - ARM platform server power consumption control method, system, equipment and storage medium - Google Patents

ARM platform server power consumption control method, system, equipment and storage medium Download PDF

Info

Publication number
CN115129137A
CN115129137A CN202210744095.2A CN202210744095A CN115129137A CN 115129137 A CN115129137 A CN 115129137A CN 202210744095 A CN202210744095 A CN 202210744095A CN 115129137 A CN115129137 A CN 115129137A
Authority
CN
China
Prior art keywords
power consumption
command
operating system
frequency
processor
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.)
Pending
Application number
CN202210744095.2A
Other languages
Chinese (zh)
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.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology 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 Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202210744095.2A priority Critical patent/CN115129137A/en
Publication of CN115129137A publication Critical patent/CN115129137A/en
Pending legal-status Critical Current

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/3206Monitoring of events, devices or parameters that trigger a change in power modality
    • 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
    • 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)
  • Power Sources (AREA)

Abstract

The invention relates to a method, a system, equipment and a storage medium for controlling the power consumption of an ARM platform server, wherein the method comprises the following steps: acquiring a real-time complete machine power consumption value of a server, and comparing the real-time complete machine power consumption value with a preset power consumption reference value of the server; when the real-time complete machine power consumption value deviates from the preset power consumption reference value range, the baseboard management controller issues an intelligent platform management interface command to an operating system of the server through a low pin number interface; acquiring an operating system command corresponding to the intelligent platform management interface command from a command mapping script; and acquiring a power consumption control strategy table corresponding to the operating system command, and executing the operating system command according to the power consumption control strategy table to control the power consumption. By adopting the power consumption control method, the system, the equipment and the storage medium, the power consumption control method of the ARM platform server is established, and the power consumption control capability of the ARM platform server is improved.

Description

ARM platform server power consumption control method, system, equipment and storage medium
Technical Field
The invention relates to the field of power consumption control, in particular to a method, a system, equipment and a storage medium for controlling the power consumption of an ARM platform server.
Background
The state pays more and more attention to the development of a domestic CPU, and an ARM platform-based autonomous research and development processor advances to the leading level of the industry, and is widely applied to various industries such as communication, internet and the like at present. However, due to the limitation of the AMR platform, the public design is slightly simpler than that of the X86 platform, and the monitoring of functions such as CPU temperature, frequency modulation and the like cannot be managed by ME as in the X86 platform, which also limits the power consumption control function of the ARM platform.
The power capping technology is characterized in that a power consumption peak value of the whole machine is set, the power consumption of the whole machine is monitored, the function that the power consumption accords with the expected setting is realized by controlling a whole machine system, resources can be reasonably used to the maximum extent by the function, and the waste of the resources is greatly reduced. At present, the ARM platform reduces power consumption through a heat dissipation strategy, namely a scheme of reducing the rotating speed of a fan, but the reduction range of the scheme is limited, conventional heat dissipation balance can be damaged, and the power consumption control efficiency is low.
Disclosure of Invention
In view of the above, it is necessary to provide a method, a system, a device and a storage medium for controlling power consumption of an ARM platform server, which can improve the power consumption control capability of the ARM platform.
On one hand, the power consumption control method of the ARM platform server is provided, and comprises the following steps:
acquiring a real-time complete machine power consumption value of a server, and comparing the real-time complete machine power consumption value with a preset power consumption reference value of the server;
when the real-time complete machine power consumption value deviates from the preset power consumption reference value, the baseboard management controller issues an intelligent platform management interface command to an operating system of the server through a low pin number interface;
acquiring an operating system command corresponding to the intelligent platform management interface command from a command mapping script;
and acquiring a power consumption control strategy table corresponding to the operating system command, and executing the operating system command according to the power consumption control strategy table to control the power consumption.
In one embodiment, before obtaining the real-time overall power consumption value of the server, the method further includes:
and receiving a preset power consumption reference value set by a user on an interface of the baseboard management controller.
In one embodiment, before the obtaining the operating system command corresponding to the intelligent platform management interface command from the command mapping script, the method further includes:
establishing a mapping relation between the intelligent platform management interface command and the operating system command through a command mapping script;
wherein the intelligent platform management interface command comprises:
a first intelligent platform management interface command, wherein the corresponding operating system command is a command for reading the frequency of a processor;
a second intelligent platform management interface command, wherein the corresponding operating system command is a command for setting the frequency of the processor;
a third intelligent platform management interface command, wherein the corresponding operating system command is a command for reading the kernel number of the processor;
and the fourth intelligent platform management interface command corresponds to the operating system command which is a command for setting the kernel state of the processor.
In one embodiment, before the obtaining the power consumption control policy table corresponding to the operating system command, the method further includes:
establishing a power consumption control strategy table;
wherein the power consumption restriction policy table comprises a frequency control policy table and a kernel control policy table;
the frequency control policy table stores frequency adjustment parameters, and the kernel control policy table stores kernel adjustment parameters.
In one embodiment, acquiring a power consumption control policy table corresponding to the operating system command, and executing the operating system command according to the power consumption control policy table to perform power consumption control includes:
acquiring a frequency control strategy table corresponding to the operating system command, and executing power consumption control operation according to the frequency control strategy table;
acquiring a kernel control strategy table corresponding to the operating system command, and executing power consumption control operation according to the kernel control strategy table;
and executing power consumption control operation according to the frequency control strategy table and executing power consumption control operation according to the kernel control strategy table in turn and alternately.
In one embodiment, the performing the power consumption control operation according to the frequency control policy table and the performing the power consumption control operation according to the core control policy table are performed alternately in sequence, and the performing the power consumption control operation according to the frequency control policy table includes:
executing an operating system command corresponding to the first intelligent platform management interface command, reading the current processor frequency, and positioning the reference frequency matched with the current processor frequency in the frequency control strategy table;
executing an operating system command corresponding to a second intelligent platform management interface command, and adjusting the frequency of the processor according to the frequency control strategy table along the reverse direction of the real-time complete machine power consumption value deviating from the preset power consumption reference value on the basis of the reference frequency;
executing an operating system command corresponding to the third intelligent platform management interface command, reading the currently started processor core number, and positioning the reference core number matched with the currently started processor core number in the core control strategy table;
and executing an operating system command corresponding to the fourth intelligent platform management interface command, and setting the number of the started or closed processor cores according to the kernel control policy table along the reverse direction of the real-time complete machine power consumption value deviating from the preset power consumption reference value based on the reference kernel number.
In one embodiment, the frequency tuning parameter in the frequency control policy table includes a frequency step value, the core tuning parameter in the core control policy table includes a core number step value, and the establishing the power consumption control policy table further includes:
and establishing a numerical relationship between the frequency stepping value and the kernel stepping value according to historical test data, so that the real-time overall power consumption value is stably changed when the power consumption control operation is executed according to the frequency control strategy table and the power consumption control operation is executed according to the kernel control strategy table alternately.
On the other hand, the power consumption control system of the ARM platform server comprises a power supply, a substrate management controller, an operating system and a processor which are in communication connection with each other, wherein the power supply is connected with the substrate management controller through a power management bus, and the substrate management controller is connected with the operating system through a low pin number interface;
the baseboard management controller comprises:
the power consumption value module is used for acquiring a real-time whole machine power consumption value of the server and comparing the real-time whole machine power consumption value with a preset power consumption reference value of the server;
the command issuing module is used for issuing an intelligent platform management interface command to an operating system of the server through a low pin number interface by the baseboard management controller when the real-time complete machine power consumption value deviates from the preset power consumption reference value range;
the operating system includes:
the power consumption control strategy module is used for acquiring a power consumption control strategy table corresponding to the operating system command and executing the operating system command according to the power consumption control strategy table to control the power consumption;
the power consumption control system further includes:
and the command mapping module is used for acquiring the operating system command corresponding to the intelligent platform management interface command from the command mapping script.
In another aspect, an apparatus is provided, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor executes the computer program to implement the following steps:
acquiring a real-time complete machine power consumption value of a server, and comparing the real-time complete machine power consumption value with a preset power consumption reference value of the server;
when the real-time complete machine power consumption value deviates from the preset power consumption reference value, the baseboard management controller issues an intelligent platform management interface command to an operating system of the server through a low pin number interface;
acquiring an operating system command corresponding to the intelligent platform management interface command from a command mapping script;
and acquiring a power consumption control strategy table corresponding to the operating system command, and executing the operating system command according to the power consumption control strategy table to control the power consumption.
In yet another aspect, there is provided a computer-readable storage medium storing a program which, when executed by a processor, causes the processor to perform the steps of:
acquiring a real-time overall power consumption value of a server, and comparing the real-time overall power consumption value with a preset power consumption reference value of the server;
when the real-time complete machine power consumption value deviates from the preset power consumption reference value, the baseboard management controller issues an intelligent platform management interface command to an operating system of the server through a low pin number interface;
acquiring an operating system command corresponding to the intelligent platform management interface command from a command mapping script;
and acquiring a power consumption control strategy table corresponding to the operating system command, and executing the operating system command according to the power consumption control strategy table to control the power consumption.
Compared with the prior art, the technical scheme of the invention has the following advantages:
according to the power consumption control method, the system, the equipment and the storage medium of the ARM platform server, firstly, a real-time complete machine power consumption value of the server is obtained, and the real-time complete machine power consumption value is compared with a preset power consumption reference value of the server; when the real-time complete machine power consumption value deviates from the preset power consumption reference value range, the baseboard management controller issues an intelligent platform management interface command to an operating system of the server through a low pin number interface; and acquiring an operating system command corresponding to the intelligent platform management interface command from the command mapping script, acquiring a corresponding power consumption control strategy table according to the operating system command, and executing power consumption control operation according to the power consumption control strategy table to realize the power consumption control function of the ARM platform and improve the power consumption control capability of the ARM platform server.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a flow chart of a first method of an ARM platform server power consumption control method of the present invention;
FIG. 2 is a flow chart of a second method of the ARM platform server power consumption control method of the present invention;
FIG. 3 is a system block diagram of an ARM platform server power consumption control system of the present invention;
FIG. 4 is a topology diagram of an ARM platform server power consumption control system of the present invention;
fig. 5 is a device configuration diagram of the computer device of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The development of a domestic CPU (processor) is more and more emphasized in China, and an ARM platform-based autonomous research and development processor has advanced to the leading level of the industry and is widely applied to various industries such as communication, Internet and the like at present. However, due to the limitation of the AMR platform, the public version design is slightly simpler than that of the X86 platform, and the monitoring of functions such as CPU temperature, frequency modulation and the like is not managed by an ME (Management Engine) like the X86 platform, and the power consumption control function of the ARM platform is also limited, so that the invention provides a power consumption control method, system, device and storage medium for the ARM platform, which first obtains the real-time overall power consumption value of the server and compares the real-time overall power consumption value with the preset power consumption reference value of the server; when the real-time complete machine power consumption value deviates from the preset power consumption reference value range, the baseboard management controller issues an intelligent platform management interface command to an operating system of the server through a low pin number interface; and acquiring an operating system command corresponding to the intelligent platform management interface command from a command mapping script, acquiring a corresponding power consumption control strategy table according to the operating system command, and slightly executing power consumption control operation according to the power consumption control strategy table so as to realize the power consumption control function of the ARM platform.
The first embodiment is as follows:
referring to fig. 1 to 2, a power consumption control method of an ARM platform server according to the present embodiment is shown, where fig. 1 is a first method flowchart of the power consumption control method of the ARM platform server according to the present invention; fig. 2 is a second method flowchart of the ARM platform server power consumption control method of the present invention.
The power consumption control method of the ARM platform server comprises the following steps:
acquiring a real-time complete machine power consumption value of a server, and comparing the real-time complete machine power consumption value with a preset power consumption reference value of the server;
in order to control the power consumption, a comparison mechanism between a real-time complete machine power consumption value and a preset reference value is established, a power consumption feedback mechanism is established by adjusting the frequency or the number of processor cores of a processor which normally works according to the comparison mechanism, and the power consumption control function is realized through the power consumption feedback mechanism. Therefore, a real-time complete machine power consumption value of the server is obtained firstly, and the method for obtaining the real-time complete machine power consumption value is as follows: the baseboard Management controller obtains a real-time Power consumption value of the whole machine from a Power supply of the server through a Power Management Bus (PMbus). After the real-time complete machine power consumption value is obtained, the real-time complete machine power consumption value can be compared with the preset power consumption reference value to obtain the relation between the real-time complete machine power consumption value and the preset power consumption reference value, and a power consumption feedback regulation mechanism of an ARM platform is conveniently established.
When the real-time complete machine power consumption value deviates from the preset power consumption reference value, the baseboard management controller issues an intelligent platform management interface command to an operating system of the server through a low pin number interface;
under normal conditions, the real-time power consumption value of the whole machine is within the range of the preset power consumption reference value, and the server does not need to control the power consumption. In order to reasonably use resources to the maximum extent and reduce the waste of resources, a power consumption feedback mechanism needs to be established, when the real-time complete machine power consumption value deviates from a preset power consumption reference value, that is, the real-time complete machine power consumption value is not within the range of the preset power consumption reference value (including two cases that the real-time complete machine power consumption value is greater than the preset power consumption reference value and the real-time complete machine power consumption value is less than the preset power consumption reference value, the reference value can be selected to be a numerical value range or a specific numerical value), at this moment, the real-time complete machine power consumption value needs to be adjusted through the power consumption feedback mechanism, so that the real-time complete machine power consumption value is kept within the normal range of the preset power consumption reference value. For the ARM Platform, there is no power consumption control managed by ME similar to the x86 Platform, so the present invention uses the Baseboard Management Controller (BMC) to issue an Intelligent Platform Management Interface command (IPMI command) to the Operating System (OS) of the server through the Low pin count Interface (LPC, Low pin count Bus) to implement communication with the Operating System, and further opens the kernel Interface of the processor through the Operating System to perform frequency adjustment or kernel number adjustment (to turn on or turn off the processor kernel).
Acquiring an operating system command corresponding to the intelligent platform management interface command from a command mapping script;
after issuing an intelligent platform management interface command to an operating system of a server through a low pin count interface, the baseboard management controller triggers an interrupt, so that the operating system executes an interrupt processing program, namely, executes a corresponding operating system command. The command mapping script stores the mapping relation between the intelligent platform management interface command and the operating system command, the operating system command corresponding to the intelligent platform management interface command is obtained through the command mapping script, then the operating system executes the operating system command corresponding to the intelligent platform management interface command and issued by the substrate management controller, and the operating system command can trigger related frequency adjustment or kernel number adjustment.
And acquiring a power consumption control strategy table corresponding to the operating system command, and executing the operating system command according to the power consumption control strategy table to control the power consumption.
After the operating system command corresponding to the intelligent platform management interface command is obtained from the command mapping script, the operating system command needs to be executed to control power consumption. After the operating system command is acquired, the power consumption control strategy table corresponding to the operating system command can be acquired according to the operating system command, and the power consumption control strategy table stores the parameters for frequency adjustment and the parameters for kernel number adjustment, so that the corresponding power consumption control can be performed by executing the operating system command according to the power consumption control strategy table, namely, the adjustment of the processor frequency and/or the adjustment of the kernel number. The power consumption control method can be set to be on or off in the baseboard management controller, and the power consumption control method is allowed to be executed when the power consumption control method is on.
In one embodiment, before obtaining the real-time overall power consumption value of the server, the method further includes:
and receiving a preset power consumption reference value set by a user on an interface of the baseboard management controller.
A preset power consumption reference value can be set on a BMC (baseboard management controller) WEB, a user sets a corresponding preset power consumption reference value according to the actual configuration of a server, and then the preset power consumption reference value can be acquired from the baseboard management controller when power consumption control is carried out, so that the real-time complete machine power consumption value and the preset power consumption reference value can be compared conveniently.
In one embodiment, before the obtaining the operating system command corresponding to the intelligent platform management interface command from the command mapping script, the method further includes:
establishing a mapping relation between the intelligent platform management interface command and the operating system command through a command mapping script;
after the baseboard management controller issues the intelligent platform management interface command to the operating system of the server through the low pin number interface, the operating system command corresponding to the intelligent platform management interface command can be obtained from the command mapping script, and the mapping relation between the intelligent platform management interface command and the operating system command is stored in the mapping script file, so that before the operating system command corresponding to the intelligent platform management interface command is obtained from the command mapping script, the mapping relation between the intelligent platform management interface command and the operating system command needs to be established in advance and stored in the command mapping script.
Wherein the intelligent platform management interface command comprises:
a first intelligent platform management interface command, wherein the corresponding operating system command is a command for reading the frequency of a processor;
a second intelligent platform management interface command, wherein the corresponding operating system command is a command for setting the frequency of the processor;
a third intelligent platform management interface command, wherein the corresponding operating system command is a command for reading the kernel number of the processor;
and the fourth intelligent platform management interface command, wherein the corresponding operating system command is a command for setting the kernel state of the processor.
The Userspace function implements frequency setting (allows the root-authorized user to set the cpu frequency to the frequency desired by the user through the "scaling _ scheduled field of sysfs). Therefore, the substrate management controller also correspondingly sets the intelligent platform management interface commands corresponding to the functions realized by the operating system commands in the commands issued to the operating system of the server through the low pin count interface, and the mapping relation is established in a one-to-one correspondence manner. After the operating system receives the first intelligent platform management interface command, the operating system executes an operating system command for reading the frequency of the processor; after the operating system receives the second intelligent platform management interface command, the operating system can execute an operating system command for setting the processor frequency; after the operating system receives the third intelligent platform management interface command, the operating system can execute an operating system command for reading the kernel number of the processor; after the operating system receives the fourth intelligent platform management interface command, the operating system executes an operating system command for setting the kernel state of the processor. Further, setting the state of the core processor, i.e. turning on or off the processor core, before setting the state of the processor core, a relationship between the operating system and the processor core is to be established, i.e. numbering the processor core, e.g. 64 cores of a processor, numbering the cores, CPU 0core 1, CPU 0core 2, … …, CPU 0core 62, CPU 0core 63, and closing the relevant instructions of the processor core, e.g. closing the CPU 0core 12 core, commanding echo 0> dir (path) CPU 0_ core 12), where 0 denotes the processor core is closed and 1 denotes the processor core is opened.
In one embodiment, before the obtaining the power consumption control policy table corresponding to the operating system command, the method further includes:
establishing a power consumption control strategy table;
wherein the power consumption restriction policy table comprises a frequency control policy table and a kernel control policy table;
the frequency control policy table stores frequency adjustment parameters, and the kernel control policy table stores kernel adjustment parameters.
In order to adjust the frequency or the number of cores according to a set power consumption control strategy, the power consumption control strategy is preset, so that a power consumption control strategy table is preset before a power consumption control strategy table corresponding to an operating system command is acquired, so that power consumption control is performed according to strategy parameters in the power consumption control strategy table. The power consumption control comprises two control modes, one mode is to realize the power consumption control by adjusting the frequency of the processor, and when the real-time power consumption value of the whole machine is overlarge, the frequency of the processor is reduced; when the real-time power consumption value of the whole machine is too small, the frequency of the processor is improved; the other is to adjust the number of the processor cores, namely, to open or close the corresponding number of the processor cores, and to close the corresponding number of the processor cores when the real-time power consumption value of the whole machine is overlarge; and when the power consumption value of the real-time complete machine is too small, starting the corresponding number of processor cores. Therefore, the corresponding adjusting parameters comprise a frequency adjusting parameter and a kernel adjusting parameter, and the two adjusting parameters are used for controlling the power consumption according to the set change strategy. The user can update the frequency adjusting parameters in the frequency control strategy table and the kernel adjusting parameters in the kernel control strategy table according to actual requirements so as to meet the power consumption control requirements of different servers.
In one embodiment, acquiring a power consumption control policy table corresponding to the operating system command, and executing the operating system command according to the power consumption control policy table to perform power consumption control includes:
acquiring a frequency control strategy table corresponding to the operating system command, and executing power consumption control operation according to the frequency control strategy table;
acquiring a kernel control strategy table corresponding to the operating system command, and executing power consumption control operation according to the kernel control strategy table;
and executing power consumption control operation according to the frequency control strategy table and executing power consumption control operation according to the kernel control strategy table in turn and alternately.
The power consumption control strategy table comprises a frequency control strategy table and a kernel control strategy table, generally, when the flow of the power consumption control strategy is executed, firstly, a power consumption control mode for adjusting the frequency is carried out, then, the power consumption control mode for adjusting the kernel is carried out, if the power consumption control effect is not ideal, then, the power consumption control mode for adjusting the frequency is executed again, namely, the two power consumption control modes are executed alternately, and then, the operating system command is executed alternately according to the frequency control strategy table and the kernel control strategy table. In the process of adjusting the frequency, if the frequency is directly reduced to a very low level for the purpose of power consumption control effect, the performance of the processor is greatly reduced, so the frequency parameter is adjusted according to the frequency adjustment strategy table according to the frequency control strategy table, and the balance between the power consumption and the performance is considered.
In one embodiment, the performing the power consumption control operation according to the frequency control policy table and performing the power consumption control operation according to the core control policy table are performed alternately in sequence, and the performing the power consumption control operation according to the core control policy table includes:
executing an operating system command corresponding to the first intelligent platform management interface command, reading the current processor frequency, and positioning a reference frequency matched with the current processor frequency in the frequency control strategy table;
the power consumption control process starts by adjusting the processor frequency first, so that the bmc first issues a first intelligent platform management interface command to an operating system of the server through the low pin count interface, the operating system executes an operating system command corresponding to the first intelligent platform management interface command, that is, a command for reading the processor frequency, reads the current processor frequency, and locates the current processor frequency in the frequency control policy table to a reference frequency matching the current processor frequency, for example, if the policy parameters in the frequency control policy table are 1.3GHz, 1.5GHz, 1.7GHz, and 1.9GHz, and if the current processor frequency is 1.71GHz, the reference frequency in the frequency control policy table is 1.7 GHz.
Executing an operating system command corresponding to a second intelligent platform management interface command, and adjusting the frequency of the processor according to the frequency control strategy table along the reverse direction of the real-time complete machine power consumption value deviating from the preset power consumption reference value on the basis of the reference frequency;
reading the current processor frequency, positioning the current processor frequency to a reference frequency in the frequency control strategy table, and then adjusting the processor frequency according to the relation between the complete machine power consumption value and a preset power consumption reference value, wherein the baseboard management controller issues a second intelligent platform management interface command to an operating system of the server through a low pin number interface, and the operating system executes an operating system command corresponding to the second intelligent platform management interface command, namely, a command for setting the processor frequency. If the real-time complete machine power consumption value is higher than the preset power consumption reference value range at the moment, the real-time complete machine power consumption is over high, the frequency of the processor needs to be adjusted downwards to be 1.5GHz on the basis of the reference frequency of 1.7GHz, namely, the direction of adjusting the frequency parameters according to the frequency control strategy table is adjusted along the opposite direction of the real-time complete machine power consumption value deviating from the preset power consumption reference value range, so as to establish a feedback adjusting mechanism.
Executing an operating system command corresponding to the third intelligent platform management interface command, reading the currently started processor core number, and positioning the reference core number matched with the currently started processor core number in the core control strategy table;
after executing the operating system command corresponding to the second intelligent platform management interface command to perform frequency adjustment, if the power consumption is still too high, the baseboard management controller issues a third intelligent platform management interface command to the operating system of the server through the low pin number interface, and the operating system executes the operating system command corresponding to the third intelligent platform management interface command, that is, the command for reading the number of processor cores, reads the current number of processor cores, and locates, in the core control policy table, the reference number of cores that matches the current number of processor cores, for example, the policy parameters in the core control policy table are 4, 8, 12, and 16, and the current number of processor cores is 7, and the reference number of cores that is located in the core control policy table is 8.
And executing an operating system command corresponding to the fourth intelligent platform management interface command, and setting the number of started or closed processor cores according to the kernel control policy table along the reverse direction of the real-time complete machine power consumption value deviating from the preset power consumption reference value range on the basis of the reference kernel number.
Reading the current processor core number, positioning the current processor core number to a reference core number in a core control strategy table, and then adjusting the processor core number according to the relation between the complete machine power consumption value and a preset power consumption reference value, wherein the substrate management controller issues a fourth intelligent platform management interface command to an operating system of the server through a low pin number interface, and the operating system executes an operating system command corresponding to the fourth intelligent platform management interface command, namely, a command for setting the processor core number. If the real-time complete machine power consumption value is higher than the preset power consumption reference value range at the moment, the real-time complete machine power consumption is over high, and the number of the cores of the processor needs to be adjusted downwards to be 4 on the basis of the reference number of the cores 8. Therefore, the direction of adjusting the kernel parameters according to the kernel numerical control strategy table is adjusted along the opposite direction of the real-time complete machine power consumption value deviating from the preset power consumption reference value range, so as to establish a feedback adjustment mechanism.
In addition, after the power consumption control strategy corresponding to the operating system command is executed, the operating system acquires an execution result, and if the execution result does not contain information that the power consumption control strategy is successfully executed, the operating system repeatedly issues a corresponding operating system instruction, and re-executes the power consumption control strategy corresponding to the operating system command. The power consumption control result executed by the power consumption control method can be displayed on an interface of the baseboard management controller, and the power consumption control result comprises a real-time power consumption value, a set frequency and kernel number information.
In one embodiment, the frequency adjustment parameter in the frequency control policy table includes a frequency step value, the core adjustment parameter in the core control policy table includes a core number step value, and the establishing the power consumption control policy table further includes:
and establishing a numerical relationship between the frequency stepping value and the kernel stepping value according to historical test data, so that the real-time overall power consumption value is stably changed when the power consumption control operation is executed according to the frequency control strategy table and the power consumption control operation is executed according to the kernel control strategy table alternately.
The frequency adjustment and the core number adjustment are mutually matched in the process of performing power consumption control by adjusting the frequency and alternately performing the power consumption control by adjusting the core number, and the step value of the frequency adjustment is matched with the step value of the core number adjustment, namely, the whole machine power consumption fluctuation generated by adjusting the frequency once according to the frequency step value is close to the whole machine power consumption fluctuation generated by adjusting the core once according to the core number step value, so that the real-time whole machine power consumption can be changed stably when the power consumption control operation is executed according to the frequency control strategy table and the power consumption control operation is sequentially and alternately executed according to the core control strategy table, and the performance of a processor can be considered. In addition, the frequency stepping value and the kernel number stepping value can be determined according to specific actual requirements, the frequency stepping values in the same frequency control strategy table can be consistent, or different frequency stepping values are set in different frequency segments; the step values of the kernel numbers in the same kernel control policy table may be consistent, or different kernel number step values may be set for different kernel number segments.
Example two:
referring to fig. 2 and 4, fig. 2 is a flowchart illustrating a second method of the power consumption control method of the ARM platform server according to the present invention, and fig. 4 is a topology structure diagram illustrating a power consumption control system of the ARM platform server according to the present invention.
Receiving a preset power consumption reference value set by a user on an interface of the baseboard management controller;
the method comprises the steps that a preset power consumption reference value can be set on an interface of a baseboard management controller, a user sets the corresponding preset power consumption reference value according to actual configuration of a server, and then the preset power consumption reference value can be obtained from the baseboard management controller when power consumption control is conducted, so that the real-time power consumption value of the whole machine can be compared with the preset power consumption reference value conveniently.
Acquiring a real-time complete machine power consumption value of a server, and comparing the real-time complete machine power consumption value with a preset power consumption reference value of the server;
in order to control the power consumption, a comparison mechanism between a real-time complete machine power consumption value and a preset reference value is established, a power consumption feedback mechanism is established by adjusting the frequency or the number of processor cores in the process of the processor working according to the comparison mechanism, and the power consumption control function is realized through the power consumption feedback mechanism. Therefore, a real-time complete machine power consumption value of the server is obtained firstly, and the method for obtaining the real-time complete machine power consumption value is as follows: and the baseboard management controller acquires a real-time complete machine power consumption value from a power supply of the server through the PMbus. After the real-time complete machine power consumption value is obtained, the real-time complete machine power consumption value can be compared with the preset power consumption reference value to obtain the relation between the real-time complete machine power consumption value and the preset power consumption reference value, and a power consumption feedback regulation mechanism of an ARM platform is conveniently established.
When the real-time complete machine power consumption value deviates from the preset power consumption reference value, the baseboard management controller issues an intelligent platform management interface command to an operating system of the server through a low pin number interface;
under normal conditions, the real-time power consumption value of the whole machine is within the range of the preset power consumption reference value, and the server does not need to control the power consumption. In order to reasonably use resources to the maximum extent and reduce the waste of resources, a power consumption feedback mechanism needs to be established, when the real-time complete machine power consumption value deviates from a preset power consumption reference value, that is, when the real-time complete machine power consumption value is not within the range of the preset power consumption reference value (including two cases that the real-time complete machine power consumption value is greater than the preset power consumption reference value and the real-time complete machine power consumption value is less than the preset power consumption reference value), the real-time complete machine power consumption value needs to be adjusted through the power consumption feedback mechanism, so that the real-time complete machine power consumption value is kept within the normal range of the preset power consumption reference value. For the ARM platform, there is no power consumption control managed by ME similar to the x86 platform, so the invention issues an intelligent platform management interface command to the operating system of the server through a low pin count interface by the baseboard management controller to implement communication with the operating system, and further performs frequency adjustment or kernel count adjustment (turning on or off the processor kernel) by turning on the kernel interface of the processor through the operating system.
Establishing a mapping relation between the intelligent platform management interface command and the operating system command through a command mapping script;
when the baseboard management controller issues an intelligent platform management interface command to an operating system of a server through a low pin number interface, the operating system command corresponding to the intelligent platform management interface command can be obtained from the command mapping script, and the mapping relation between the intelligent platform management interface command and the operating system command is stored in the mapping script file, so that before the operating system command corresponding to the intelligent platform management interface command is obtained from the command mapping script, the mapping relation between the intelligent platform management interface command and the operating system command needs to be established in advance and stored in the command mapping script.
Acquiring an operating system command corresponding to the intelligent platform management interface command from a command mapping script;
after the baseboard management controller issues an intelligent platform management interface command to an operating system of the server through a low pin number interface, interruption is triggered, so that the operating system executes an interruption processing program, namely, executes a corresponding operating system command. The command mapping script stores the mapping relation between the intelligent platform management interface command and the operating system command, the operating system command corresponding to the intelligent platform management interface command is obtained through the command mapping script, then the operating system executes the operating system command corresponding to the intelligent platform management interface command and issued by the substrate management controller, and the operating system command can trigger related frequency adjustment or kernel number adjustment.
Executing an operating system command corresponding to the first intelligent platform management interface command, reading the current processor frequency, and positioning the reference frequency matched with the current processor frequency in the frequency control strategy table;
the power consumption control process starts by adjusting the processor frequency first, so that the bmc first issues a first intelligent platform management interface command to an operating system of the server through the low pin count interface, the operating system executes an operating system command corresponding to the first intelligent platform management interface command, that is, a command for reading the processor frequency, reads the current processor frequency, and locates the current processor frequency in the frequency control policy table to a reference frequency matching the current processor frequency, for example, if the policy parameters in the frequency control policy table are 1.3GHz, 1.5GHz, 1.7GHz, and 1.9GHz, and if the current processor frequency is 1.71GHz, the reference frequency in the frequency control policy table is 1.7 GHz.
Executing an operating system command corresponding to a second intelligent platform management interface command, and adjusting the frequency of the processor according to the frequency control strategy table along the reverse direction of the real-time complete machine power consumption value deviating from the preset power consumption reference value on the basis of the reference frequency;
reading the current processor frequency, positioning the current processor frequency to a reference frequency in the frequency control strategy table, and then adjusting the processor frequency according to the relation between the complete machine power consumption value and a preset power consumption reference value, wherein the baseboard management controller issues a second intelligent platform management interface command to an operating system of the server through a low pin number interface, and the operating system executes an operating system command corresponding to the second intelligent platform management interface command, namely, a command for setting the processor frequency. If the real-time complete machine power consumption value is higher than the preset power consumption reference value range at the moment, the real-time complete machine power consumption is over high, the frequency of the processor needs to be adjusted downwards to be 1.5GHz on the basis of the reference frequency of 1.7GHz, namely, the direction of adjusting the frequency parameters according to the frequency control strategy table is adjusted along the opposite direction of the real-time complete machine power consumption value deviating from the preset power consumption reference value range, so as to establish a feedback adjusting mechanism.
Executing an operating system command corresponding to the third intelligent platform management interface command, reading the number of currently started processor cores, and positioning a reference core number matched with the number of currently started processor cores in the core control strategy table;
after executing the operating system command corresponding to the second intelligent platform management interface command to perform frequency adjustment, if the power consumption is still too high, the baseboard management controller issues a third intelligent platform management interface command to the operating system of the server through the low pin number interface, and the operating system executes the operating system command corresponding to the third intelligent platform management interface command, that is, the command for reading the number of processor cores, reads the current number of processor cores, and locates, in the core control policy table, the reference number of cores that matches the current number of processor cores, for example, the policy parameters in the core control policy table are 4, 8, 12, and 16, and the current processor frequency is 7, and then locates the reference frequency in the frequency control policy table to be 8.
And executing an operating system command corresponding to the fourth intelligent platform management interface command, and setting the number of started or closed processor cores according to the kernel control policy table along the reverse direction of the real-time complete machine power consumption value deviating from the preset power consumption reference value range on the basis of the reference kernel number.
Reading the current processor core number, positioning the current processor core number to a reference core number in a core control strategy table, and then adjusting the processor core number according to the relation between the complete machine power consumption value and a preset power consumption reference value, wherein the substrate management controller issues a fourth intelligent platform management interface command to an operating system of the server through a low pin number interface, and the operating system executes an operating system command corresponding to the fourth intelligent platform management interface command, namely, a command for setting the processor core number. If the real-time complete machine power consumption value is higher than the preset power consumption reference value range at the moment, the real-time complete machine power consumption is over high, and the number of the cores of the processor needs to be adjusted downwards to be 4 on the basis of the reference number of the cores 8. Therefore, the direction of adjusting the kernel parameters according to the kernel numerical control strategy table is adjusted along the opposite direction of the real-time complete machine power consumption value deviating from the preset power consumption reference value range, so as to establish a feedback adjustment mechanism.
It should be understood that although the various steps in the flow charts of fig. 1-2 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 1-2 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performing the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternately with other steps or at least some of the sub-steps or stages of other steps.
Example three:
referring to fig. 3, fig. 3 is a system structure diagram of the power consumption control system of the ARM platform server according to the present invention.
The power consumption control system of the ARM platform server comprises a power supply, a substrate management controller, an operating system and a processor, wherein the power supply is in communication connection with the substrate management controller through a power management bus, and the substrate management controller is in communication connection with the operating system through a low pin count interface;
the baseboard management controller comprises:
the power consumption value module is used for acquiring a real-time whole machine power consumption value of the server and comparing the real-time whole machine power consumption value with a preset power consumption reference value of the server;
in order to control the power consumption, a comparison mechanism between a real-time complete machine power consumption value and a preset reference value is established through a power consumption value module, a power consumption feedback mechanism is established by adjusting the frequency or adjusting the number of processor cores of a processor which normally works according to the comparison mechanism, and the power consumption control function is realized through the power consumption feedback mechanism. Therefore, the real-time power consumption value of the whole machine of the server is firstly obtained through the power consumption value module, and the mode of obtaining the real-time power consumption value of the whole machine is as follows: and the baseboard management controller acquires a real-time complete machine power consumption value from a power supply of the server through the PMbus. After the real-time complete machine power consumption value is obtained, the real-time complete machine power consumption value can be compared with the preset power consumption reference value to obtain the relation between the real-time complete machine power consumption value and the preset power consumption reference value, and a power consumption feedback regulation mechanism of an ARM platform is conveniently established. In addition, the power consumption value module is further used for receiving a preset power consumption reference value set by a user.
The command issuing module is used for issuing an intelligent platform management interface command to an operating system of the server through a low pin number interface by the baseboard management controller when the real-time complete machine power consumption value deviates from the preset power consumption reference value range;
under normal conditions, the real-time power consumption value of the whole machine is within the range of the preset power consumption reference value, and the server does not need to control the power consumption. In order to reasonably use resources to the maximum extent and reduce the waste of resources, a power consumption feedback mechanism needs to be established, when the real-time complete machine power consumption value deviates from a preset power consumption reference value, that is, when the real-time complete machine power consumption value is not within the range of the preset power consumption reference value (including two cases that the real-time complete machine power consumption value is greater than the preset power consumption reference value and the real-time complete machine power consumption value is less than the preset power consumption reference value), the real-time complete machine power consumption value needs to be adjusted through the power consumption feedback mechanism, so that the real-time complete machine power consumption value is kept within the normal range of the preset power consumption reference value. For the ARM platform, the power consumption control similar to that of the x86 platform managed by the ME is not performed, so that the intelligent platform management interface command is issued to the operating system of the server through the command issuing module to realize communication with the operating system.
The result display module is used for displaying the power consumption control result;
the power consumption control result executed by the power consumption control method can be displayed on an interface of the baseboard management controller through a result display module, and the power consumption control result comprises a real-time power consumption value, and set frequency and kernel number information.
And the power consumption control switch module is used for setting whether the power consumption control switch needs to be opened or not.
The power consumption control switch module can set the on or off of the power consumption control method in the baseboard management controller, and the power consumption control method is allowed to be executed when the power consumption control method is started.
The operating system includes:
and the power consumption control strategy module is used for acquiring a power consumption control strategy table corresponding to the operating system command and executing the operating system command according to the power consumption control strategy table so as to control the power consumption.
After the operating system command corresponding to the intelligent platform management interface command is obtained from the command mapping script, the operating system command needs to be executed to control power consumption. After the operating system command is acquired, the power consumption control strategy table corresponding to the operating system command can be acquired through the power consumption control strategy module according to the operating system command, and the power consumption control strategy table stores parameters for frequency adjustment and parameters for kernel number adjustment, so that corresponding power consumption control can be performed by executing the operating system command according to the power consumption control strategy table, namely, the adjustment of processor frequency and/or the adjustment of kernel number.
The power consumption control system further includes:
the command mapping module is used for acquiring an operating system command corresponding to the intelligent platform management interface command from a command mapping script;
the command mapping module can establish a mapping relation between an intelligent platform management interface command and an operating system command, and the baseboard management controller issues the intelligent platform management interface command to an operating system of the server through a low pin number interface so as to trigger interruption, so that the operating system executes an interruption processing program, namely, executes the corresponding operating system command. The command mapping script stores the mapping relation between the intelligent platform management interface command and the operating system command, the operating system command corresponding to the intelligent platform management interface command is obtained through the command mapping module, then the operating system executes the operating system command corresponding to the intelligent platform management interface command and issued by the baseboard management controller, and the operating system command can execute relevant frequency adjustment or kernel number adjustment.
And the strategy table module is used for establishing a power consumption control strategy table.
In order to adjust the frequency or the number of cores according to a set power consumption control strategy, the power consumption control strategy is preset, and therefore, before a power consumption control strategy table corresponding to an operating system command is obtained, a power consumption control strategy table, namely, a frequency control strategy table and a core control strategy table, is preset through a strategy table module, so that power consumption control is performed according to strategy parameters in the power consumption control strategy table.
For specific limitations of the ARM platform server power consumption control system, reference may be made to the above limitations of the method, which are not described herein again. All modules in the ARM platform server power consumption control system can be wholly or partially realized through software, hardware and a combination of the software and the hardware. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
Example four:
the embodiment provides a device, which includes a memory, a processor, and a computer program stored in the memory and capable of running on the processor, and is characterized in that the processor implements the steps of the method for controlling the power consumption of the ARM platform server when executing the computer program.
The computer device may be a terminal, and its internal structure diagram may be as shown in fig. 4. The computer device comprises a processor, a memory, a network interface, a display screen and an input device which are connected through a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement an ARM platform server power consumption control method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
It should be understood by those skilled in the art that the structure shown in fig. 4 is a block diagram of only a portion of the structure associated with the present application, and does not constitute a limitation on the computing devices to which the present application may be applied, and a particular computing device may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program:
acquiring a real-time complete machine power consumption value of a server, and comparing the real-time complete machine power consumption value with a preset power consumption reference value of the server;
when the real-time complete machine power consumption value deviates from the preset power consumption reference value, the baseboard management controller issues an intelligent platform management interface command to an operating system of the server through a low pin number interface;
acquiring an operating system command corresponding to the intelligent platform management interface command from a command mapping script;
and acquiring a power consumption control strategy table corresponding to the operating system command, and executing the operating system command according to the power consumption control strategy table to control the power consumption.
Example five:
the present embodiment provides a computer-readable storage medium, on which a computer program is stored, the computer program realizing the following steps when executed by a processor:
acquiring a real-time overall power consumption value of a server, and comparing the real-time overall power consumption value with a preset power consumption reference value of the server;
when the real-time complete machine power consumption value deviates from the preset power consumption reference value, the baseboard management controller issues an intelligent platform management interface command to an operating system of the server through a low pin number interface;
acquiring an operating system command corresponding to the intelligent platform management interface command from a command mapping script;
and acquiring a power consumption control strategy table corresponding to the operating system command, and executing the operating system command according to the power consumption control strategy table to control the power consumption.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is specific and detailed, but not to be understood as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, and these are all within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A power consumption control method for an ARM platform server is characterized by comprising the following steps:
acquiring a real-time complete machine power consumption value of a server, and comparing the real-time complete machine power consumption value with a preset power consumption reference value of the server;
when the real-time complete machine power consumption value deviates from the preset power consumption reference value, the baseboard management controller issues an intelligent platform management interface command to an operating system of the server through a low pin number interface;
acquiring an operating system command corresponding to the intelligent platform management interface command from a command mapping script;
and acquiring a power consumption control strategy table corresponding to the operating system command, and executing the operating system command according to the power consumption control strategy table to control the power consumption.
2. The method for controlling power consumption of an ARM platform server according to claim 1, wherein before obtaining the real-time overall power consumption value of the server, the method further comprises:
and receiving a preset power consumption reference value set by a user on an interface of the baseboard management controller.
3. The ARM platform server power consumption control method of claim 1, wherein before obtaining the operating system command corresponding to the smart platform management interface command from the command mapping script, the method further comprises:
establishing a mapping relation between the intelligent platform management interface command and the operating system command through a command mapping script;
wherein the intelligent platform management interface command comprises:
a first intelligent platform management interface command, wherein the corresponding operating system command is a command for reading the frequency of a processor;
a second intelligent platform management interface command, wherein the corresponding operating system command is a command for setting the frequency of the processor;
a third intelligent platform management interface command, wherein the corresponding operating system command is a command for reading the kernel number of the processor;
and the fourth intelligent platform management interface command, wherein the corresponding operating system command is a command for setting the kernel state of the processor.
4. The ARM platform server power consumption control method of claim 3, wherein before obtaining the power consumption control policy table corresponding to the operating system command, further comprising:
establishing a power consumption control strategy table;
wherein the power consumption restriction policy table comprises a frequency control policy table and a kernel control policy table;
the frequency control policy table stores frequency adjustment parameters, and the kernel control policy table stores kernel adjustment parameters.
5. The ARM platform server power consumption control method of claim 4, wherein obtaining a power consumption control policy table corresponding to the operating system commands, executing the operating system commands according to the power consumption control policy table for power consumption control comprises:
acquiring a frequency control strategy table corresponding to the operating system command, and executing power consumption control operation according to the frequency control strategy table;
acquiring a kernel control strategy table corresponding to the operating system command, and executing power consumption control operation according to the kernel control strategy table;
and executing power consumption control operation according to the frequency control strategy table and executing power consumption control operation according to the kernel control strategy table in turn and alternately.
6. The ARM platform server power consumption control method of claim 5, wherein the performing the power consumption control operation according to the frequency control policy table and the performing the power consumption control operation according to the kernel control policy table are performed alternately in sequence, comprising:
executing an operating system command corresponding to the first intelligent platform management interface command, reading the current processor frequency, and positioning the reference frequency matched with the current processor frequency in the frequency control strategy table;
executing an operating system command corresponding to a second intelligent platform management interface command, and adjusting the frequency of the processor according to the frequency control strategy table along the reverse direction of the real-time complete machine power consumption value deviating from the preset power consumption reference value on the basis of the reference frequency;
executing an operating system command corresponding to the third intelligent platform management interface command, reading the currently started processor core number, and positioning the reference core number matched with the currently started processor core number in the core control strategy table;
and executing an operating system command corresponding to a fourth intelligent platform management interface command, and setting the number of the started or closed processor cores according to the kernel control policy table along the reverse direction of the real-time complete machine power consumption value deviating from the preset power consumption reference value based on the reference kernel number.
7. The ARM platform server power consumption control method of claim 5, wherein the frequency tuning parameters in the frequency control policy table include a frequency step value, the core tuning parameters in the core control policy table include a core number step value, the establishing the power consumption control policy table further comprises:
and establishing a numerical relationship between the frequency stepping value and the kernel stepping value according to historical test data, so that the real-time overall power consumption value is stably changed when the power consumption control operation is executed according to the frequency control strategy table and the power consumption control operation is executed according to the kernel control strategy table alternately.
8. The ARM platform server power consumption control system is characterized by comprising a power supply, a substrate management controller, an operating system and a processor which are in communication connection with one another, wherein the power supply is connected with the substrate management controller through a power supply management bus, and the substrate management controller is connected with the operating system through a low pin number interface;
the baseboard management controller comprises:
the power consumption value module is used for acquiring a real-time whole machine power consumption value of the server and comparing the real-time whole machine power consumption value with a preset power consumption reference value of the server;
the command issuing module is used for issuing an intelligent platform management interface command to an operating system of the server through a low pin number interface when the real-time complete machine power consumption value deviates from the preset power consumption reference value range;
the operating system includes:
the power consumption control strategy module is used for acquiring a power consumption control strategy table corresponding to the operating system command and executing the operating system command according to the power consumption control strategy table to control the power consumption;
the power consumption control system further includes:
and the command mapping module is used for acquiring the operating system command corresponding to the intelligent platform management interface command from the command mapping script.
9. An apparatus comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the steps of the method of any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, characterized in that: the computer readable storage medium stores a program which, when executed by a processor, causes the processor to perform the steps of the method according to any one of claims 1 to 7.
CN202210744095.2A 2022-06-27 2022-06-27 ARM platform server power consumption control method, system, equipment and storage medium Pending CN115129137A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210744095.2A CN115129137A (en) 2022-06-27 2022-06-27 ARM platform server power consumption control method, system, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210744095.2A CN115129137A (en) 2022-06-27 2022-06-27 ARM platform server power consumption control method, system, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115129137A true CN115129137A (en) 2022-09-30

Family

ID=83379964

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210744095.2A Pending CN115129137A (en) 2022-06-27 2022-06-27 ARM platform server power consumption control method, system, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115129137A (en)

Similar Documents

Publication Publication Date Title
CN102057344B (en) Sleep processor
US9423852B2 (en) Selecting a startup condition of an electronic device corresponding to available power
DE102007048505B4 (en) Server configured to manage performance and performance
CN107273170B (en) A kind of SoPC programs remote update system and method
CN110688172B (en) Device function mutual exclusion logic configuration method and device, electronic device and storage medium
WO1999022489A2 (en) Method of reprogramming memories in field devices over a multidrop network
CN108279754B (en) Fan heat dissipation method, system, equipment and computer readable storage medium
CN105653306B (en) The method and apparatus of display starting set interface
CN1398371A (en) System and method for altering operating system start-up sequence prior to operating system loading
CN113407208A (en) Edge device function online configuration method based on remote deployment
CN111857777A (en) System updating method and device based on double-core intelligent electric meter and computer equipment
CN111563036B (en) Function logic judgment method and device, intelligent equipment and storage medium
CN115454512A (en) Chip drive loading configuration method, device, equipment and storage medium
CN111580639A (en) SSD (solid State disk) adaptive load clock adjusting method and device and computer equipment
CN115129137A (en) ARM platform server power consumption control method, system, equipment and storage medium
US7856550B2 (en) System and method for hardware manipulation in a computing device
CN114281890B (en) BIOS out-of-band management system and method
CN113986357B (en) Method, apparatus and storage medium for establishing communication link
CN115543055B (en) Power management control right transfer method, device, equipment and storage medium
CN114996096A (en) Server, and fan speed regulation method and circuit of server
EP3945424A1 (en) Memory power management method and processor system
CN104597999B (en) A kind of heat dissipating method and device
WO2024113548A1 (en) Control right handover method and apparatus for power management, device, and storage medium
CN114886296B (en) Steaming oven, cooking control method thereof and readable storage medium
TWI796082B (en) Method of keeping bios setup data

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