CN116991221A - Power consumption adjusting method and device - Google Patents

Power consumption adjusting method and device Download PDF

Info

Publication number
CN116991221A
CN116991221A CN202310567819.5A CN202310567819A CN116991221A CN 116991221 A CN116991221 A CN 116991221A CN 202310567819 A CN202310567819 A CN 202310567819A CN 116991221 A CN116991221 A CN 116991221A
Authority
CN
China
Prior art keywords
module
power consumption
target server
power
determining
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
CN202310567819.5A
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 CN202310567819.5A priority Critical patent/CN116991221A/en
Publication of CN116991221A publication Critical patent/CN116991221A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/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/3287Power saving characterised by the action undertaken by switching off individual functional units in the computer system

Landscapes

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

Abstract

The invention provides a power consumption adjusting method and a device, wherein the method comprises the following steps: dividing each component of the target server to obtain a basic module, a calculation module and a storage module; monitoring the power consumption of the base module, and determining that the power consumption of the base module is larger than a preset maximum power consumption threshold of the base module; determining a performance consumption proportion based on the operation data of the calculation module and the storage module; and determining a plurality of redundant components of the target server from the calculation module and the storage module based on the performance consumption proportion, and executing power-off operation on the plurality of redundant components. According to the power consumption adjustment method and device, the performance consumption proportion of the target server is determined, the redundant components of the target server are determined from the calculation module and the storage module, the power-off operation is carried out on the determined redundant components, the power consumption adjustment process is realized under the condition that the normal operation of the target server is ensured, and the normal operation of the business in the target server is ensured.

Description

Power consumption adjusting method and device
Technical Field
The present invention relates to the field of server technologies, and in particular, to a method and an apparatus for adjusting power consumption.
Background
With the rapid development of the internet and information technology, the number of servers and the number of electronic components in the servers are continuously increasing. The server is used as an important link of data processing and information transmission, and the safety and the stability of the server become important indexes for measuring the quality of the server.
In the running process of the existing server, the situation that the running power consumption of the server is overlarge and the server is in an overload running state may occur. Under the situation, the existing method generally reduces the overall power consumption of the server by limiting the performance of the server, so as to ensure that the server does not have serious conditions such as downtime. The power consumption is reduced based on the mode of directly reducing the performance of the server, and the server can be ensured not to stop working, but the performance of the server can be seriously influenced, and the service operation can be seriously influenced by limiting the performance of the server for a long time.
Disclosure of Invention
The invention provides a power consumption adjustment method and device, which are used for solving the technical problems that when the running power consumption of a server is overlarge in the prior art, the power consumption is reduced based on a mode of directly reducing the performance of the server, the performance of the server is seriously affected, and the performance of the server is severely affected by limiting the performance of the server for a long time.
The invention provides a power consumption adjusting method, which comprises the following steps:
dividing each component of a target server based on the functional information of each component in the target server to obtain a basic module of the target server, a calculation module of the target server and a storage module of the target server;
monitoring the power consumption of the base module, and determining that the power consumption of the base module is larger than a preset maximum power consumption threshold of the base module;
determining a performance consumption proportion of the target server based on the operation data of the calculation module and the operation data of the storage module;
and determining a plurality of redundant components of the target server from the calculation module and the storage module based on the performance consumption proportion, and performing power-off operation on the plurality of redundant components, wherein the redundant components are power-supplied and unused components.
According to the power consumption adjustment method provided by the invention, based on the performance consumption proportion, a plurality of redundant components of the target server are determined from the calculation module and the storage module, and the method comprises the following steps:
determining the type of the target server based on the performance consumption proportion, wherein the type of the target server comprises a calculation type and a storage type;
Based on the type of the target server, a module performing a power-off operation is determined from the computing module and the storage module, and a plurality of redundant components are determined in the module performing the power-off operation.
According to the power consumption adjustment method provided by the invention, based on the type of the target server, a module for executing power-off operation is determined from the calculation module and the storage module, and the method comprises the following steps:
under the condition that the type of the target server is a calculation type, determining that the module for executing the power-off operation is a storage module;
and determining that the module for executing the power-off operation is a calculation module under the condition that the type of the target server is a storage type.
According to the power consumption adjustment method provided by the invention, after the power consumption of the basic module is monitored, the method further comprises the following steps:
monitoring the power consumption of the computing module and the power consumption of the storage module under the condition that the power consumption of the base module is smaller than or equal to a preset maximum power consumption threshold of the base module;
determining a plurality of redundant components in the storage module and executing power-off operation on the plurality of redundant components in the storage module under the condition that the power consumption of the computing module is larger than a preset computing module power consumption threshold;
And under the condition that the power consumption of the storage module is larger than a preset storage module power consumption threshold, determining a plurality of redundant components in the computing module, and executing power-off operation on the plurality of redundant components in the computing module.
According to the power consumption adjustment method provided by the invention, the power-off operation is performed on the redundant components, and the power consumption adjustment method comprises the following steps:
acquiring historical operation data of each redundant component, and determining the priority of each redundant component based on the historical operation data;
and based on the priority, sequentially executing power-off operation on each redundant component until the power consumption of the basic module is smaller than the preset maximum power consumption threshold.
According to the power consumption adjustment method provided by the invention, the power-off operation is performed on the redundant components, and the power consumption adjustment method comprises the following steps:
and sending a power-off execution message to a baseboard management controller of the target server, so that the baseboard management controller receives the power-off execution message and then controls the redundant components to execute power-off operation based on a controller in a power module of the target server.
According to the power consumption adjustment method provided by the invention, after the redundant components are controlled to execute the power-off operation, the method further comprises the following steps:
And executing frequency-reducing operation on a processor in the computing module under the condition that the redundant components are powered off and the power consumption of the base module is larger than the preset maximum power consumption threshold value of the base module.
The invention also provides a power consumption adjusting device, which comprises:
the classification module is used for dividing each component of the target server based on the functional information of each component in the target server to obtain a basic module of the target server, a calculation module of the target server and a storage module of the target server;
the judging module is used for monitoring the power consumption of the base module and determining that the power consumption of the base module is larger than a preset maximum power consumption threshold of the base module;
the computing module is used for determining the performance consumption proportion of the target server based on the operation data of the computing module and the operation data of the storage module;
and the adjusting module is used for determining a plurality of redundant components of the target server from the calculating module and the storage module based on the performance consumption proportion, and executing power-off operation on the plurality of redundant components, wherein the redundant components are power-supplied and unused components.
The invention also provides an electronic device comprising a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor realizes any one of the power consumption adjustment methods when executing the computer program.
The present invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements any of the power consumption adjustment methods described above.
According to the power consumption adjustment method and device, the basic module, the calculation module and the storage module are obtained by dividing each component of the target server. And determining that the target server is in an overload running state with excessive power consumption based on the monitoring of the power consumption of the basic module. And based on the performance consumption proportion of the target server, a plurality of redundant components of the target server are determined from a calculation module and a storage module of the target server, and power-off operation is performed on the determined redundant components, so that the power consumption adjustment process of the target server is realized under the condition that the normal operation of the target server is ensured, and the normal operation of the business in the target server is ensured.
Drawings
In order to more clearly illustrate the invention or the technical solutions of the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described, it being obvious that the drawings in the description below are some embodiments of the invention and that other drawings can be obtained from them without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a power consumption adjustment method provided by the invention;
FIG. 2 is a flow chart of a power consumption adjustment method provided by the invention;
FIG. 3 is a schematic diagram of a power consumption adjusting device according to the present invention;
fig. 4 is a schematic structural diagram of an electronic device provided by the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some embodiments of the present invention, 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 invention provides a power consumption adjusting method, and fig. 1 is a flow chart of the power consumption adjusting method provided by the invention. Referring to fig. 1, the power consumption adjustment method provided by the present invention may include:
step 110, dividing each component of a target server based on the functional information of each component in the target server to obtain a basic module of the target server, a calculation module of the target server and a storage module of the target server;
step 120, monitoring the power consumption of the base module, and determining that the power consumption of the base module is greater than a preset maximum power consumption threshold of the base module;
step 130, determining a performance consumption proportion of the target server based on the operation data of the computing module and the operation data of the storage module;
and 140, determining a plurality of redundant components of the target server from the calculation module and the storage module based on the performance consumption proportion, and executing power-off operation on the plurality of redundant components, wherein the redundant components are power-supplied and unused components.
The execution subject of the power consumption adjustment method provided by the invention can be an electronic device, a component in the electronic device, an integrated circuit, or a chip. The electronic device may be a mobile electronic device or a non-mobile electronic device. By way of example, the mobile electronic device may be a cell phone, tablet, notebook, palmtop, ultra-mobile personal computer (ultra-mobile personal computer, UMPC), netbook or personal digital assistant (personal digital assistant, PDA), etc., and the non-mobile electronic device may be a server, network attached storage (Network Attached Storage, NAS) or personal computer (personal computer, PC), etc., the invention is not particularly limited.
The following describes the technical scheme of the present invention in detail by taking a BMC of a server as an example to execute the power consumption adjustment method provided by the present invention.
In step 110, based on the functional information of each component of the target server, each component of the target server is divided, and a base module of the target server, a calculation module of the target server, and a storage module of the target server are obtained after the division.
The target server is any server which needs to be subjected to power consumption adjustment. The target server includes a plurality of components, such as a CPU (Central Processing Unit ), a memory, a GPU (Graphics Processing Unit, graphics processor), and a hard disk. The functions of the components in the target server are different, for example, the CPU and the GPU are executing computing functions, and the hard disk is executing storage functions. The respective components of the target server may be divided based on the functional information of the respective components.
And dividing the function information of the components in the target server into calculation modules with calculation functions. For example, the computing module may include a network card component, a CPU component, a GPU component, and the like.
And dividing the function information of the components in the target server into storage modules of the target server, wherein the storage functions are contained in the function information of the components. For example, the storage module may include a hard disk back plate component, a hard disk component, a memory component, and the like.
The basic module of the target server is composed of components for ensuring the normal operation of the target server, wherein the basic module can comprise a main board component, a management board component, a fan component and the like.
In step 120, after dividing each component in the target server to obtain a base module, a storage module and a calculation module, power consumption of the base module of the target server is monitored in real time. And determining that the power consumption of the base module is larger than a preset maximum power consumption threshold of the base module.
Because the basic module of the target server is composed of components for ensuring the operation of the target server, the judgment of whether the power consumption of the whole target server is in a normal state can be realized based on the judgment of the power consumption of the basic module.
And monitoring the power consumption of the basic module of the target server, and determining that the power consumption of the basic module is larger than a preset maximum power consumption threshold of the basic module. The preset maximum power consumption threshold is the maximum power consumption corresponding to the normal operation of the basic module of the target server. It can be understood that the basic module of the target server is composed of components for ensuring the operation of the target server, so that the preset maximum power consumption threshold can reflect the maximum power consumption of the target server in normal operation. The preset maximum power consumption threshold may be determined based on historical operating data of a base module of the target server.
And monitoring the real-time power consumption of the basic module of the target server, and determining that the running power consumption of the current target server is too high and is in an overload mode with high power consumption when the power consumption of the basic module is determined to be larger than the preset maximum power consumption threshold of the basic module. Long-term operation in an excessive power consumption mode may result in the target server being in a down state.
In step 130, when it is determined in step 120 that the power consumption of the base module is greater than the preset maximum power consumption threshold of the base module, operation data of the computing module and operation data of the storage module are obtained. And determining the performance consumption proportion of the target server based on the operation data of the calculation module and the operation data of the storage module.
The performance consumption proportion of the target server may reflect the emphasis of the target server business process. It will be appreciated that for a server cluster or enclosure, multiple servers are typically included, and that the traffic of different servers in the server cluster or enclosure is of a different importance. There are storage servers responsible for executing storage functions, there are computing servers responsible for executing computing functions, and the like.
Based on the operation data of the calculation module and the operation data of the storage module in the target server, the performance consumption ratio of the target server can be determined. For example, for a compute-type server, the amount of operational data for a compute module may be much greater than for a compute module storing a type server.
Alternatively, the performance consumption ratio of the target server may be determined based on a ratio of the operational data of the computing module to the operational data of the storage module.
In step 140, after determining the performance consumption ratio of the target server in step 130, redundant components are determined from the calculation module and the storage module according to the performance consumption ratio, so as to determine a plurality of redundant components of the target server. A power down operation is performed on the determined plurality of redundant components to effect an adjustment of power consumption of the target server.
It can be appreciated that, for a service, in order to ensure service operation speed, service operation stability and service operation reliability, redundancy is often set for the hardware configuration of the server in which the service is operated. Therefore, a server typically includes a plurality of redundant components. The redundant components are powered after the server is powered on, but may be in an unused state. For example, when the memory required for running the service is 16G, 4 memory banks of 16G may be set in the hardware configuration of the server running the service, so that during the normal running process of the service in the server, the server may include 3 redundant memory banks.
Redundant components occupy server resources and generate power consumption in the server. Therefore, when the power consumption of the target server is too high, part of the redundant components can be determined, and the power-off operation is performed on the determined redundant components, so that the power consumption of the target server can be reduced under the condition that the normal running state of the target server is not influenced. The method and the system avoid the serious conditions of reducing the overall power consumption of the server by limiting the performance of the target server, and ensure that the server cannot be down.
After determining the performance consumption ratio, a determination may be made of a plurality of redundant components in the computing module and the storage module that determine the target server based on the performance consumption ratio. For example, in the case of determining that the computing module of the target server is relatively large based on the performance consumption ratio, redundant components can be determined from more slave storage modules, and redundant components are determined from less slave computing modules, so that normal operation of the target server is ensured. And determining that the memory module of the target server occupies a larger area based on the performance consumption proportion, determining redundant components from the calculation modules, and determining the redundant components from the memory modules to ensure the normal operation of the target server.
It can be understood that in the process of adjusting the power consumption of the target server, it is not necessary to determine all the redundant components in the computing module and the storage module, and power off all the determined redundant components, so as to adjust the power consumption of the target server. Because the power consumption of the target server is fluctuating, in the case where it is determined that the target server is in overload operation, the load may further increase as the traffic operates. Based on the manner of the performance consumption proportion, the redundant components are determined from the calculation module and the storage module, and the redundant components for adjusting the power consumption of the target server can be accurately determined.
Alternatively, the controller in the power module may be controlled based on the baseboard management controller of the target server to perform a power-off operation on the redundant component.
According to the power consumption adjustment method provided by the embodiment of the invention, the basic module, the calculation module and the storage module are obtained by dividing each component of the target server. And determining that the target server is in an overload running state with excessive power consumption based on the monitoring of the power consumption of the basic module. And based on the performance consumption proportion of the target server, a plurality of redundant components of the target server are determined from a calculation module and a storage module of the target server, and power-off operation is performed on the determined redundant components, so that the power consumption adjustment process of the target server is realized under the condition that the normal operation of the target server is ensured, and the normal operation of the business in the target server is ensured.
In one embodiment, determining a plurality of redundant components of the target server from the computing module and the storage module based on the performance consumption ratio comprises: determining the type of the target server based on the performance consumption proportion, wherein the type of the target server comprises a calculation type and a storage type; based on the type of the target server, a module performing a power-off operation is determined from the computing module and the storage module, and a plurality of redundant components are determined in the module performing the power-off operation.
Based on the performance consumption ratio, the type of the target server is determined. It will be appreciated that for one server cluster or enclosure, multiple servers are typically included, and that different servers are of the type of traffic in the server cluster or enclosure. There are storage servers responsible for performing storage functions and there are computing servers responsible for performing computing functions.
Based on the performance consumption ratio, the type of the target server may be determined. For example, if the target service determines that the performance consumption ratio is far greater than the storage performance consumption ratio, the type of the target server may be determined to be the calculation type. If the target service determines that the performance consumption ratio is far smaller than the storage performance consumption ratio, the type of the target server can be determined to be the storage type.
After determining the type of the target server, a module performing the power-off operation may be determined from the computing module or the storage module. For example, for a server that determines that the target server is of a computing type, in order to ensure the computing performance of the target server, a redundant component that performs a power-off operation in a storage module of the target server may be preferentially determined. For a server that determines that the target server is of a storage type, in order to ensure storage performance of the target server, a redundant component that performs a power-off operation in a computing module of the target server may be preferentially determined.
It can be understood that for a computing type server, the computing performance requirement is higher, and when determining that the power of a component in the current server needs to be cut off so as to reduce power consumption, redundant components in the storage module are preferentially cut off, so that the operation stability of the computing module can be ensured. And the normal operation of the service can be ensured when the calculation performance consumption of the calculation module continues to rise. The same applies to a server of the storage type.
Therefore, the module for executing the power-off operation is determined from the calculation module and the storage module based on the type of the target server, so that the power consumption of the target server can be reduced while the operation performance of the target server is ensured.
According to the power consumption adjustment method provided by the embodiment of the invention, the power consumption of the target server can be reduced under the condition of ensuring the operation performance of the target server by determining the module for executing the power-off operation from the calculation module or the storage module after determining the type of the target server.
In one embodiment, determining a module to perform a power down operation from the computing module and the storage module based on the type of the target server includes: under the condition that the type of the target server is a calculation type, determining that the module for executing the power-off operation is a storage module; and determining that the module for executing the power-off operation is a calculation module under the condition that the type of the target server is a storage type.
After determining the type of the target server, a determination is made of the module in the target server that performs the power down operation.
In order to ensure the computing performance of the target server, the storage module can be determined to be a module for executing power-off operation in the target server when the target server is determined to be a computing type server, and power-off is preferentially performed on redundant components in the storage module. For determining that the target server is a server of a storage type, in order to ensure the storage performance of the target server, the computing module can be determined to be a module for executing power-off operation in the target server, and redundant components in the computing module are powered off preferentially.
It can be understood that for a computing type server, the computing performance requirement is higher, and when determining that the power of a component in the current server needs to be cut off so as to reduce power consumption, redundant components in the storage module are preferentially cut off, so that the operation stability of the computing module can be ensured. And the normal operation of the service can be ensured when the calculation performance consumption of the calculation module continues to rise. The same applies to a server of the storage type.
Therefore, the module for executing the power-off operation is determined from the calculation module and the storage module based on the type of the target server, so that the power consumption of the target server can be reduced while the operation performance of the target server is ensured.
According to the power consumption adjustment method provided by the embodiment of the invention, the power consumption of the target server can be reduced under the condition of ensuring the operation performance of the target server by determining the module for executing the power-off operation in the target server after determining the type of the target server.
In one embodiment, after monitoring the power consumption of the base module, the method further comprises: monitoring the power consumption of the computing module and the power consumption of the storage module under the condition that the power consumption of the base module is smaller than or equal to a preset maximum power consumption threshold of the base module; determining a plurality of redundant components in the storage module and executing power-off operation on the plurality of redundant components in the storage module under the condition that the power consumption of the computing module is larger than a preset computing module power consumption threshold; and under the condition that the power consumption of the storage module is larger than a preset storage module power consumption threshold, determining a plurality of redundant components in the computing module, and executing power-off operation on the plurality of redundant components in the computing module.
It can be appreciated that in the process of operation, the target server may have normal power consumption of the base module, but the power consumption of the computing module or the storage module is higher, and the target server is in an overload operation mode. At this time, in order to meet the performance requirement of the module, the power consumption of other modules can be reduced, so as to realize the balance adjustment of the overall power consumption of the target server.
Specifically, the power consumption of the base module is monitored, and if the power consumption of the base module is less than or equal to the preset maximum power consumption threshold of the base module, the power consumption of the computing module and the storage module is further monitored.
And under the condition that the power consumption of the computing module is determined to be larger than the power consumption threshold value of the preset computing module, determining that the current computing module is in an overload operation mode. The preset power consumption threshold of the computing module can be determined according to the operation condition of the computing module. And determining a plurality of redundant components from the storage module when the current computing module is in the overload operation mode, and executing power-off operation on the plurality of redundant components in the storage module so as to realize balanced adjustment of the overall power consumption of the target server.
And under the condition that the power consumption of the storage module is larger than the preset power consumption threshold value of the storage module, determining that the current storage module is in an overload operation mode. The preset power consumption threshold of the storage module can be determined according to the operation condition of the storage module. And determining a plurality of redundant components from the computing module when the current storage module is in the overload operation mode, and executing power-off operation on the plurality of redundant components in the computing module so as to realize balanced adjustment of the overall power consumption of the target server.
According to the power consumption adjustment method provided by the embodiment of the invention, under the condition that the power consumption of the basic module is smaller than or equal to the preset maximum power consumption threshold of the basic module, the power consumption of the computing module and the power consumption of the storage module are further monitored, and the power consumption of the computing module or the power consumption of the storage module are adjusted based on the monitoring result, so that the dynamic adjustment process of the power consumption of the target server in the operation process is realized, and the operation reliability of the target server is improved.
In one embodiment, performing a power down operation on the plurality of redundant components includes: acquiring historical operation data of each redundant component, and determining the priority of each redundant component based on the historical operation data; and based on the priority, sequentially executing power-off operation on each redundant component until the power consumption of the basic module is smaller than the preset maximum power consumption threshold.
The redundant components include a plurality of, and when performing a power-off operation on each of the redundant components, an order in which power-off is performed on each of the redundant components may be determined based on the priority of the redundant components.
Historical operation data of each redundant component is obtained, and priority of each redundant component is determined based on the historical operation data. It will be appreciated that for multiple redundant components in the target server, some components may never be used and some components may occasionally be used. After the history data of each redundant component is acquired, a judgment can be made based on the acquired history data.
The priority of the redundant components that have never been used may be set to be highest, and the priority of each redundant component may be determined based on the use case.
After the priority of each redundant component is determined, power-off operation is sequentially performed on each redundant component based on the priority until the power consumption of the base module is smaller than a preset maximum power consumption threshold value, so that the running stability of the target server is further improved in the process of performing power-off on the redundant component in the target server.
According to the power consumption adjusting method provided by the embodiment of the invention, the priority of each redundant component is determined through the historical operation data of each redundant component. And based on the priority, power-off operation is sequentially performed on each redundant component until the power consumption of the basic module is smaller than a preset maximum power consumption threshold, so that the running stability of the target server is further improved in the process of performing power-off on the redundant components in the target server.
In one embodiment, performing a power down operation on the plurality of redundant components includes: and sending a power-off execution message to a baseboard management controller of the target server, so that the baseboard management controller receives the power-off execution message and then controls the redundant components to execute power-off operation based on a controller in a power module of the target server.
After determining the plurality of redundant components in the target server, control is required to power down the plurality of redundant components. The power down operation of the plurality of redundant components may be implemented based on a baseboard management controller of the target server.
And sending a power-off execution message to a baseboard management controller of the target server, so that the baseboard management controller determines a controller in the power supply module based on the target service after receiving the power-off execution message, and controls the redundant components to execute power-off operation so as to reduce the power consumption of the target server.
According to the power consumption adjustment method provided by the embodiment of the invention, the power-off execution message is sent to the baseboard management controller of the target server, so that the baseboard management controller determines the controller in the power supply module based on the target service after receiving the power-off execution message, and the power-off operation is controlled to be executed by the redundant components, so that the power-off control process of the redundant components is realized.
In one embodiment, after controlling the plurality of redundant components to perform the power-off operation, further comprising: and executing frequency-reducing operation on a processor in the computing module under the condition that the redundant components are powered off and the power consumption of the base module is larger than the preset maximum power consumption threshold value of the base module.
After the redundant components are controlled to execute the power-off operation, the power consumption of the base module needs to be further judged, and whether the power consumption of the base module is still larger than a preset maximum power consumption threshold value is determined.
Under the condition that the redundant components are powered off and the power consumption of the basic module is larger than the preset maximum power consumption threshold value of the basic module, in order to ensure that the target server can continue to operate and cannot enter a downtime state due to long-time overload operation, a processor in the computing module needs to execute the frequency-reducing operation.
The processor in the computing module may be a CPU or GPU.
According to the power consumption adjustment method provided by the embodiment of the invention, the processor in the computing module is subjected to the frequency reduction operation under the condition that the power consumption of the base module is larger than the preset maximum power consumption threshold value of the base module when the power failure of the redundant components is determined, so that the running state of the target server is ensured.
The following describes a technical solution provided by the present invention by taking a flow chart of a power consumption adjustment method provided by the present invention as an example, as shown in fig. 2:
step 210, dividing the target servers and determining the performance consumption proportion of the target servers. Based on the functional information of each component in the target server, each component of the target server is divided, and a basic module of the target server, a calculation module of the target server and a storage module of the target server are obtained. And determining the performance consumption proportion of the target server based on the operation data of the calculation module and the operation data of the storage module.
Step 220, monitoring the power consumption of the base module, setting a preset maximum power consumption threshold of the base module, setting a preset power consumption threshold of the computing module, setting the power consumption of the storage module to be larger than the preset power consumption threshold of the storage module, and ensuring the normal operation of the base module, wherein the power consumption of the storage module is larger than the preset power consumption threshold of the storage module.
Step 230, monitoring the power consumption of the base module, the computing module and the storage module, determining whether the power consumption of each module is smaller than the set corresponding threshold value, setting the power consumption of each component of the base module, the computing module and the storage module under the BIOS of the target server, and sequencing the priority of each component of the target server according to the service characteristics of the target server, wherein the adopted priority method comprises, but is not limited to, manually setting, factory preset according to the service of the server and the like; and the total power consumption of each module is ensured to be smaller than the rated power consumption of the normal operation of the target server.
Step 240, based on step 230, based on the baseboard management controller of the target server, reading the power consumption value of each component of the register, and monitoring each component in real time; based on the monitoring by the baseboard management controller, the PSU (Power Supply Unit, power supply module) monitors power consumption information of each component monitored by the baseboard management controller, for example: monitoring the power consumption of the CPU:
Specifically, the following commands may be directly executed for the CPU power consumption monitoring operation process:
a command: ipmitool-b 0x06-t 0x2c raw 0x2e 0xc8 0x57 0x01 0x00 11 0;
return value: 57 01 00 18 01c7 00 5f 01 15 01 63 15 6d 63 6b 79 00 0051e1;
the fourth byte and the fifth byte represent that CPU Power 18 01 is 0x0118 decimal 280;
and calculating according to the detection value of the BMC and a set value under the BIOS, and realizing power consumption management of each component through a control module of the PSU.
Step 250, according to the monitoring of step 240, the power consumption of the target server is determined and adjusted. Judging whether the power consumption of the whole machine of the target server and the power consumption of each module are larger than the rated power consumption of the PSU or not; when a certain component of a certain module is in overload operation, exceeding a set upper limit value, and performing error reporting processing by the BMC; when one part is in operation with high power consumption and other parts are affected, the following steps can be set:
step 251: according to the control module of the power supply module, dividing the power consumption of each module of the target server into four modes, namely a performance mode, a standard mode, a power saving mode and a power failure mode;
step 252: according to the service requirement of the target server, when a certain component needs great power consumption, the upper limit of the power consumption value of the component can be increased before application, so that the component can meet the performance requirement, and the modes of other components can be correspondingly adjusted according to the priority of each module and the priority of the use sequence, for example: when the computing module needs great power consumption, the part of the computing module is set to be in a performance mode, and the part of the storage module is correspondingly adjusted to be in a power saving mode or even a power off mode, so that the rated power consumption of the power supply can be correspondingly ensured not to be exceeded, and the power consumption of the whole machine can be even reduced.
Fig. 3 is a schematic structural diagram of a power consumption adjustment device according to the present invention, as shown in fig. 3, the device includes a classification module 310, a judgment module 320, a calculation module 330, and an adjustment module 340.
The classification module 310 is configured to divide each component of the target server based on the functional information of each component in the target server, so as to obtain a base module of the target server, a calculation module of the target server, and a storage module of the target server;
the judging module 320 is configured to monitor power consumption of the base module, and determine that the power consumption of the base module is greater than a preset maximum power consumption threshold of the base module;
a calculation module 330, configured to determine a performance consumption proportion of the target server based on the operation data of the calculation module and the operation data of the storage module;
and an adjustment module 340, configured to determine a plurality of redundant components of the target server from the calculation module and the storage module based on the performance consumption ratio, and perform a power-off operation on the plurality of redundant components, where the redundant components are power-supplied and unused components.
According to the power consumption adjusting device provided by the embodiment of the invention, the basic module, the computing module and the storage module are obtained by dividing each component of the target server. And determining that the target server is in an overload running state with excessive power consumption based on the monitoring of the power consumption of the basic module. And based on the performance consumption proportion of the target server, a plurality of redundant components of the target server are determined from a calculation module and a storage module of the target server, and power-off operation is performed on the determined redundant components, so that the power consumption adjustment process of the target server is realized under the condition that the normal operation of the target server is ensured, and the normal operation of the business in the target server is ensured.
In one embodiment, the adjustment module 340 is specifically configured to:
determining a plurality of redundant components of the target server from the computing module and the storage module based on the performance consumption ratio, comprising:
determining the type of the target server based on the performance consumption proportion, wherein the type of the target server comprises a calculation type and a storage type;
based on the type of the target server, a module performing a power-off operation is determined from the computing module and the storage module, and a plurality of redundant components are determined in the module performing the power-off operation.
In one embodiment, the adjustment module 340 is further specifically configured to:
determining, based on the type of the target server, a module to perform a power-off operation from the computing module and the storage module, comprising:
under the condition that the type of the target server is a calculation type, determining that the module for executing the power-off operation is a storage module;
and determining that the module for executing the power-off operation is a calculation module under the condition that the type of the target server is a storage type.
In one embodiment, the determining module 320 is specifically configured to:
after monitoring the power consumption of the base module, the method further comprises:
Monitoring the power consumption of the computing module and the power consumption of the storage module under the condition that the power consumption of the base module is smaller than or equal to a preset maximum power consumption threshold of the base module;
determining a plurality of redundant components in the storage module and executing power-off operation on the plurality of redundant components in the storage module under the condition that the power consumption of the computing module is larger than a preset computing module power consumption threshold;
and under the condition that the power consumption of the storage module is larger than a preset storage module power consumption threshold, determining a plurality of redundant components in the computing module, and executing power-off operation on the plurality of redundant components in the computing module.
In one embodiment, the adjustment module 340 is further specifically configured to:
performing a power down operation on the plurality of redundant components, comprising:
acquiring historical operation data of each redundant component, and determining the priority of each redundant component based on the historical operation data;
and based on the priority, sequentially executing power-off operation on each redundant component until the power consumption of the basic module is smaller than the preset maximum power consumption threshold.
In one embodiment, the adjustment module 340 is further specifically configured to:
Performing a power down operation on the plurality of redundant components, comprising:
and sending a power-off execution message to a baseboard management controller of the target server, so that the baseboard management controller receives the power-off execution message and then controls the redundant components to execute power-off operation based on a controller in a power module of the target server.
In one embodiment, the adjustment module 340 is further specifically configured to:
after controlling the plurality of redundant components to perform the power-off operation, further comprising:
and executing frequency-reducing operation on a processor in the computing module under the condition that the redundant components are powered off and the power consumption of the base module is larger than the preset maximum power consumption threshold value of the base module.
Fig. 4 illustrates a physical schematic diagram of an electronic device, as shown in fig. 4, which may include: processor 410, communication interface (Communications Interface) 420, memory 430 and communication bus 440, wherein processor 410, communication interface 420 and memory 430 communicate with each other via communication bus 440. The processor 410 may invoke logic instructions in the memory 430 to perform a power consumption adjustment method comprising:
Dividing each component of a target server based on the functional information of each component in the target server to obtain a basic module of the target server, a calculation module of the target server and a storage module of the target server;
monitoring the power consumption of the base module, and determining that the power consumption of the base module is larger than a preset maximum power consumption threshold of the base module;
determining a performance consumption proportion of the target server based on the operation data of the calculation module and the operation data of the storage module;
and determining a plurality of redundant components of the target server from the calculation module and the storage module based on the performance consumption proportion, and performing power-off operation on the plurality of redundant components, wherein the redundant components are power-supplied and unused components.
Further, the logic instructions in the memory 430 described above may be implemented in the form of software functional units and may be stored in a computer-readable storage medium when sold or used as a stand-alone product. Based on this understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
In another aspect, the present invention also provides a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions which, when executed by a computer, enable the computer to perform the power consumption adjustment method provided by the above methods, the method comprising:
dividing each component of a target server based on the functional information of each component in the target server to obtain a basic module of the target server, a calculation module of the target server and a storage module of the target server;
monitoring the power consumption of the base module, and determining that the power consumption of the base module is larger than a preset maximum power consumption threshold of the base module;
determining a performance consumption proportion of the target server based on the operation data of the calculation module and the operation data of the storage module;
and determining a plurality of redundant components of the target server from the calculation module and the storage module based on the performance consumption proportion, and performing power-off operation on the plurality of redundant components, wherein the redundant components are power-supplied and unused components.
In yet another aspect, the present invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, is implemented to perform the above provided power consumption adjustment methods, the method comprising:
dividing each component of a target server based on the functional information of each component in the target server to obtain a basic module of the target server, a calculation module of the target server and a storage module of the target server;
monitoring the power consumption of the base module, and determining that the power consumption of the base module is larger than a preset maximum power consumption threshold of the base module;
determining a performance consumption proportion of the target server based on the operation data of the calculation module and the operation data of the storage module;
and determining a plurality of redundant components of the target server from the calculation module and the storage module based on the performance consumption proportion, and performing power-off operation on the plurality of redundant components, wherein the redundant components are power-supplied and unused components.
The apparatus embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
From the above description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus necessary general hardware platforms, or of course may be implemented by means of hardware. Based on this understanding, the foregoing technical solution may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method described in the respective embodiments or some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. A method of power consumption adjustment, the method comprising:
dividing each component of a target server based on the functional information of each component in the target server to obtain a basic module of the target server, a calculation module of the target server and a storage module of the target server;
monitoring the power consumption of the base module, and determining that the power consumption of the base module is larger than a preset maximum power consumption threshold of the base module;
determining a performance consumption proportion of the target server based on the operation data of the calculation module and the operation data of the storage module;
and determining a plurality of redundant components of the target server from the calculation module and the storage module based on the performance consumption proportion, and performing power-off operation on the plurality of redundant components, wherein the redundant components are power-supplied and unused components.
2. The power consumption adjustment method according to claim 1, wherein the determining a plurality of redundant components of the target server from the calculation module and the storage module based on the performance consumption ratio includes:
determining the type of the target server based on the performance consumption proportion, wherein the type of the target server comprises a calculation type and a storage type;
Based on the type of the target server, a module performing a power-off operation is determined from the computing module and the storage module, and a plurality of redundant components are determined in the module performing the power-off operation.
3. The power consumption adjustment method according to claim 2, wherein the determining a module that performs a power-off operation from the calculation module and the storage module based on the type of the target server includes:
under the condition that the type of the target server is a calculation type, determining that the module for executing the power-off operation is a storage module;
and determining that the module for executing the power-off operation is a calculation module under the condition that the type of the target server is a storage type.
4. The power consumption adjustment method according to claim 1, wherein after the monitoring of the power consumption of the base module, further comprising:
monitoring the power consumption of the computing module and the power consumption of the storage module under the condition that the power consumption of the base module is smaller than or equal to a preset maximum power consumption threshold of the base module;
determining a plurality of redundant components in the storage module and executing power-off operation on the plurality of redundant components in the storage module under the condition that the power consumption of the computing module is larger than a preset computing module power consumption threshold;
And under the condition that the power consumption of the storage module is larger than a preset storage module power consumption threshold, determining a plurality of redundant components in the computing module, and executing power-off operation on the plurality of redundant components in the computing module.
5. The power consumption adjustment method according to claim 1, wherein the performing a power-off operation on the plurality of redundant components includes:
acquiring historical operation data of each redundant component, and determining the priority of each redundant component based on the historical operation data;
and based on the priority, sequentially executing power-off operation on each redundant component until the power consumption of the basic module is smaller than the preset maximum power consumption threshold.
6. The power consumption adjustment method according to claim 1, wherein the performing a power-off operation on the plurality of redundant components includes:
and sending a power-off execution message to a baseboard management controller of the target server, so that the baseboard management controller receives the power-off execution message and then controls the redundant components to execute power-off operation based on a controller in a power module of the target server.
7. The power consumption adjustment method according to claim 6, wherein after the controlling the plurality of redundant components to perform the power-off operation, further comprising:
And executing frequency-reducing operation on a processor in the computing module under the condition that the redundant components are powered off and the power consumption of the base module is larger than the preset maximum power consumption threshold value of the base module.
8. A power consumption adjustment apparatus, characterized by comprising:
the classification module is used for dividing each component of the target server based on the functional information of each component in the target server to obtain a basic module of the target server, a calculation module of the target server and a storage module of the target server;
the judging module is used for monitoring the power consumption of the base module and determining that the power consumption of the base module is larger than a preset maximum power consumption threshold of the base module;
the computing module is used for determining the performance consumption proportion of the target server based on the operation data of the computing module and the operation data of the storage module;
and the adjusting module is used for determining a plurality of redundant components of the target server from the calculating module and the storage module based on the performance consumption proportion, and executing power-off operation on the plurality of redundant components, wherein the redundant components are power-supplied and unused components.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the power consumption adjustment method according to any of claims 1 to 7 when executing the computer program.
10. A non-transitory computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when executed by a processor, implements the power consumption adjustment method according to any one of claims 1 to 7.
CN202310567819.5A 2023-05-19 2023-05-19 Power consumption adjusting method and device Pending CN116991221A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310567819.5A CN116991221A (en) 2023-05-19 2023-05-19 Power consumption adjusting method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310567819.5A CN116991221A (en) 2023-05-19 2023-05-19 Power consumption adjusting method and device

Publications (1)

Publication Number Publication Date
CN116991221A true CN116991221A (en) 2023-11-03

Family

ID=88520194

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310567819.5A Pending CN116991221A (en) 2023-05-19 2023-05-19 Power consumption adjusting method and device

Country Status (1)

Country Link
CN (1) CN116991221A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117331425A (en) * 2023-12-01 2024-01-02 苏州元脑智能科技有限公司 Power consumption management system, power consumption management method, storage medium, and electronic device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117331425A (en) * 2023-12-01 2024-01-02 苏州元脑智能科技有限公司 Power consumption management system, power consumption management method, storage medium, and electronic device
CN117331425B (en) * 2023-12-01 2024-03-22 苏州元脑智能科技有限公司 Power consumption management system, power consumption management method, storage medium, and electronic device

Similar Documents

Publication Publication Date Title
US6904534B2 (en) Progressive CPU sleep state duty cycle to limit peak power of multiple computers on shared power distribution unit
EP3190478A1 (en) Method, apparatus and system to transition system power state of a computer platform
EP2607987A1 (en) Computing apparatus and system for remote control of operating states
US11340684B2 (en) System and method for predictive battery power management
KR102140219B1 (en) Method for system power management and computing system thereof
CN110109782B (en) Method, device and system for replacing fault PCIe (peripheral component interconnect express) equipment
CN116991221A (en) Power consumption adjusting method and device
RU2766417C9 (en) Power supply control system and method for power supply control
WO2009156447A2 (en) Managing power consumption of a computer
CN105739668A (en) Power management method and power management system of notebook computers
CN111581043A (en) Server power consumption monitoring method and device and server
CN113126892A (en) Method for controlling storage system, electronic device and computer program product
US11733762B2 (en) Method to allow for higher usable power capacity in a redundant power configuration
WO2023029375A1 (en) Power source consumption management apparatus for four-way server
CN112969978B (en) Method and apparatus for providing peak-optimized power supply unit
CN108933687B (en) Power consumption control method and device
CN117331423A (en) Power supply method and device of PCIE equipment, storage medium and electronic device
CN112328442A (en) Radiator detection method and device and computer readable storage medium
CN113360344B (en) Server monitoring method, device, equipment and computer readable storage medium
CN114217942B (en) Power management in blade enclosure
US11599182B2 (en) Method and apparatus to distribute current indicator to multiple end-points
CN114327017A (en) Server control method and device and server
CN114610562A (en) Server power consumption control method, system, terminal and storage medium
US11181961B2 (en) System and method for increasing power delivery to information handling systems
WO2023216688A1 (en) Hardware management card and related product

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