CN104536554A - Method and device for controlling power consumption of frame - Google Patents

Method and device for controlling power consumption of frame Download PDF

Info

Publication number
CN104536554A
CN104536554A CN201410743133.8A CN201410743133A CN104536554A CN 104536554 A CN104536554 A CN 104536554A CN 201410743133 A CN201410743133 A CN 201410743133A CN 104536554 A CN104536554 A CN 104536554A
Authority
CN
China
Prior art keywords
power consumption
equipment
frame
predetermined threshold
described frame
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.)
Granted
Application number
CN201410743133.8A
Other languages
Chinese (zh)
Other versions
CN104536554B (en
Inventor
朱颖航
胡殿明
李孝众
郭杰成
李闻
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and 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 Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201410743133.8A priority Critical patent/CN104536554B/en
Publication of CN104536554A publication Critical patent/CN104536554A/en
Application granted granted Critical
Publication of CN104536554B publication Critical patent/CN104536554B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3206Monitoring of events, devices or parameters that trigger a change in power modality
    • G06F1/3212Monitoring battery levels, e.g. power saving mode being initiated when battery voltage goes below a certain level
    • 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
    • G06F1/3215Monitoring of peripheral devices

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Supply And Distribution Of Alternating Current (AREA)
  • Power Sources (AREA)

Abstract

The invention provides a method and a device for controlling power consumption of a frame. The method includes determining main power consumption of the frame; controlling power consumption of the frame when the main power consumption of the frame meets the first preset condition. Compared with the prior art, the method and the device achieve the effect that power consumption control can be conducted on the frame when the main power consumption is determined to meet the preset condition, so that the frame position utilization rate and the power source utilization efficiency can be improved under the condition that the power consumption of the frame is effectively monitored to ensure operation stability, and the aims of saving energy and achieving high efficiency are achieved.

Description

A kind of method and apparatus for controlling frame power consumption
Technical field
The present invention relates to power consumption control field, particularly relate to a kind of method and apparatus controlling frame power consumption.
Background technology
Current, at machine room, such as, owing to being subject to the rated disspation restriction of frame in data center machine room server disposition, cause rack position with discontented, space availability ratio is low.Prior art in the data interior portion frame deployment server time, depend on the maximum power dissipation of the server obtained when server type selecting, and according to the peak power of each server of machine frame inside and the power supply restriction of frame/first cabinet of each row/machine room/data center itself, calculate the deployment amount of server.But due to technique difference, the maximum power dissipation when peak power of added rear server and type selecting there are differences, the number of nodes of single frame under directly having influence on existing deployment scheme like this, causes server disposition density to reduce, waste rack space.Simultaneously, due to the uncertainty of server peak power, the server disposition mode of existing dependence experience the heart is disposed in the data each node (frame, first cabinet of each row, single machine room etc.) place can leave redundancy, and too much redundancy can reduce the utilization rate that data center powers.Therefore, how utilize rack position more fully by reasonable manner and improve the utilization rate that frame powers, and the super risk existed after avoiding increasing server in frame, and under accomplishing reliably, not affect the prerequisite of operation stability, increase the density of the equipment disposed in frame, hoister chord position and the utilization factor for electric resources are problems needing to solve.
Summary of the invention
The object of this invention is to provide a kind of method and apparatus for controlling frame power consumption.
According to an aspect of the present invention, provide a kind of method for controlling frame power consumption, wherein, the method comprises:
-determine the overall power consumption of frame;
-when the described overall power consumption first predetermined condition of described frame, power consumption control is carried out to described frame.
According to another aspect of the present invention, provide a kind of device for controlling frame power consumption, wherein, this device comprises:
-for determining the device of the overall power consumption of frame;
-for when the described overall power consumption first predetermined condition of described frame, described frame is carried out to the device of power consumption control.
Compared with prior art, the present invention is by determining the overall power consumption of frame, and when overall power consumption meets predetermined condition, power consumption control is carried out to frame, thus can when the power consumption service condition of effective monitoring frame is to guarantee operation stability, improve the utilization factor of rack position and the utilization ratio for electric resources, reach the object of efficient energy-saving.
Accompanying drawing explanation
By reading the detailed description done non-limiting example done with reference to the following drawings, other features, objects and advantages of the present invention will become more obvious:
Fig. 1 illustrates the method flow diagram for controlling frame power consumption of the embodiment according to one aspect of the invention;
Fig. 2 illustrates the schematic diagram of the device for controlling frame power consumption of embodiment according to a further aspect of the present invention.
In accompanying drawing, same or analogous Reference numeral represents same or analogous parts.
Embodiment
Below in conjunction with accompanying drawing, the present invention is described in further detail.
Fig. 1 illustrates the method flow diagram for controlling frame power consumption of the embodiment according to one aspect of the invention.
First, in step s 11, the overall power consumption of frame will be determined.Herein, overall power consumption means the current power consumption sum of all devices in this frame.In one embodiment, can the current power consumption of equipment in Real-time Obtaining frame, to determine the overall power consumption of frame.Such as, the current power consumption of each equipment in timing acquisition frame can be carried out according to certain frequency, and the summation of the current power consumption of each equipment is defined as the overall power consumption of frame., its current power consumption can be obtained by each equipment special interface separately in such as frame herein, also can be come directly by application-specific or be obtained the current power consumption of each equipment in frame by network.It will be understood by those skilled in the art that, herein, associated description for the current power consumption of the overall power consumption and the equipment of acquisition of determining frame is only exemplary and indefiniteness describes, and there are other various implementations and does not deviate from spirit of the present invention or category, and being contained in this by reference.
In a preferred embodiment, only when the current power consumption second predetermined condition of the arbitrary equipment in frame, the overall power consumption of described frame is determined.Herein, described second predetermined condition comprises following any one:
The current power consumption of-described equipment is greater than the 6th predetermined threshold of described equipment;
The current power consumption of-described equipment is less than the 8th predetermined threshold of described equipment lower than the value of the 7th predetermined threshold of described equipment;
Ratio between the current power consumption of-described equipment and the peak power of described equipment is higher than the 9th predetermined threshold of described equipment.
Herein, equipment the 6th predetermined threshold can be such as the power consumption reasonable employment higher limit of equipment, and it can a little less than the maximum power dissipation of this equipment or power consumption higher limit.Also namely, the current power consumption can working as equipment is greater than the 6th predetermined threshold of this equipment, when being also power consumption reasonable employment higher limit, determines the overall power consumption of the frame that this equipment is positioned at.
7th predetermined threshold of equipment can be maximum power dissipation or the power consumption higher limit of such as equipment, and the 8th predetermined threshold can be such as the power consumption redundancy value of this equipment, and it such as can equal 10% of the maximum power dissipation of this equipment.In an example, when the current power consumption of equipment is lower than the 7th predetermined threshold of this equipment, also i.e. maximum power dissipation, value be less than the 8th predetermined threshold of this equipment, also namely power consumption redundancy value time, the overall power consumption of the frame be positioned at this equipment is determined.
9th predetermined threshold of equipment can be the higher limit of the ratio between the current power consumption of described equipment and the peak power of described equipment, such as, be 85%.In an example, the ratio between the current power consumption and its peak power of equipment more than the 9th predetermined threshold, as 85% time, the overall power consumption of the frame be positioned at this equipment is determined.
It should be noted, the 6th predetermined threshold of equipment, the 7th predetermined threshold, the 8th predetermined threshold and the 9th predetermined threshold can pre-set according to such as empirical value or statistical value, and, also can dynamic adjustments according to actual needs.In addition, in a preferred embodiment, for dissimilar equipment, can also arrange and unified arrange module, it provides unified interface, comes to arrange each predetermined threshold above-mentioned to dissimilar equipment in a uniform manner.
It will be understood by those skilled in the art that, herein, associated description for the 6th predetermined threshold of equipment, the 7th predetermined threshold, the 8th predetermined threshold and the 9th predetermined threshold is only exemplary and indefiniteness describes, there are other various implementations and do not deviate from spirit of the present invention or category, and being contained in this by reference.
In a preferred embodiment, determine the mode of the overall power consumption of frame comprise following any one:
1., when the equipment in frame is whole machine cabinet server, the overall power consumption of current power consumption as this frame of this whole machine cabinet server will be obtained.Herein, whole machine cabinet server means to carry out holistic management to obtain the current power consumption of this whole machine cabinet server by the management node of place frame to it.It should be noted, can comprise one or more equipment in this whole machine cabinet server, the current power consumption of this whole machine cabinet server can be the current power consumption sum of this one or more equipment.
2. when the equipment in frame is one or more common standard server, the current power consumption of each common standard server in this one or more common standard server will be obtained, and according to the current power consumption of this each common standard server, determine the overall power consumption of frame.Herein, described common standard server refers to the various servers of the non-whole machine cabinet server that can be installed in frame.In an example, can by such as inquiring about the modes such as frame configuration, obtain each common standard server that this frame is installed, and obtain the current power consumption of each common standard server, and with the overall power consumption of the summation of each current power consumption as this frame.
Then, in step s 12, when the described overall power consumption first predetermined condition of described frame, power consumption control is carried out to described frame.
Herein, described first predetermined condition comprises following any one:
The described overall power consumption of-described frame is greater than the second predetermined threshold of described frame;
The described overall power consumption of-described frame is less than the 4th predetermined threshold of described frame lower than the value of the 3rd predetermined threshold of described frame;
Ratio between the described overall power consumption of-described frame and the peak power of described frame is greater than the 5th predetermined threshold of described frame.
Herein, the second predetermined threshold of frame can be such as the power consumption reasonable employment higher limit of frame, and it can a little less than the rated disspation of described frame or power consumption higher limit.Such as, when the overall power consumption of frame is greater than the second predetermined threshold of this frame, also namely power consumption reasonable employment higher limit time, power consumption control will be carried out to described frame.
3rd predetermined threshold of frame can be rated disspation or the power consumption higher limit of such as frame, and the 4th predetermined threshold of frame can be such as the power consumption redundancy value of this frame, and it such as can equal 10% of the rated disspation of this frame.Such as, when the overall power consumption of frame is lower than the 3rd predetermined threshold of this frame, also i.e. rated disspation, value be less than the 4th predetermined threshold of this frame, also namely power consumption redundancy value time, power consumption control is carried out to this frame.
5th predetermined threshold of frame can be the higher limit of the ratio between the overall power consumption of frame and the peak power of described frame, as being 85%.Such as, the ratio between the overall power consumption and the peak power of this frame of this frame exceedes the 5th predetermined threshold of this frame, as 85% time, then power consumption control is carried out to this frame.
Herein, the power consumption control of carrying out frame can comprise such as being suspended to the equipment in other frames and/or the one or more equipment controlled in this frame by the task immigration run in the one or more equipment in frame and accepts new task.It should be noted, in this article, the one or more equipment in described frame can refer to the one or more common standard servers in this frame, or one or more equipment included in whole machine cabinet server in this frame.
In a preferred embodiment, when the overall power consumption first predetermined condition of frame, need in each equipment first determined in this frame the first equipment carrying out the first power consumption control, then the first power consumption control is carried out to this first equipment in this frame.
Herein, in one embodiment, the first equipment needing to carry out the first power consumption control in each equipment in this frame can be determined according to random mode.In another embodiment, can also sort to the current power consumption of each equipment in this frame, and the forward equipment that power consumption sorted is defined as the first equipment needing to carry out the first power consumption control.In a preferred embodiment, determine that the mode of the first equipment needing to carry out the first power consumption control comprises following any one:
-when the overall power consumption first predetermined condition of frame, the current power consumption in each equipment in this frame is defined as lower than the equipment that the value of the first predetermined threshold of this equipment is minimum the first equipment needing to carry out the first power consumption control;
-when the overall power consumption first predetermined condition of frame, equipment the highest for the ratio between the current power consumption in each equipment in this frame and the peak power of this equipment is defined as the first equipment needing to carry out the first power consumption control.
Herein, equipment the first predetermined threshold can based on experience value or statistical value pre-set.Further, in one embodiment, can be obtained the value of the first predetermined threshold being suitable for this equipment by queries configuration database, such as it can be the peak power-consumption value of this equipment.Further, this first predetermined threshold also can dynamic conditioning according to actual needs.In addition, in a preferred embodiment, for dissimilar equipment, can also arrange unified power consumption and arrange module, it provides unified interface, comes to arrange this first predetermined threshold to dissimilar equipment in a uniform manner.
Herein, described first power consumption control of carrying out the first equipment in frame comprises following any one or appoints multinomial:
-first task run in this first equipment in this frame migrated to the second equipment in other frames;
-this first equipment time-out controlled in this frame accepts new task.
Particularly, above-mentioned any one or multinomial second power consumption control can be carried out by the special interface of the first equipment to this first equipment, also can be come directly by application-specific or by network, above-mentioned second power consumption control be carried out to this first equipment.
Herein, this first task is certain task needing the second equipment migrated in other frames in each task run in equipment.Described second equipment means certain equipment in these other frames.In one embodiment, in each task can run in this first equipment according to the mode of such as Stochastic choice to determine this first task.In another embodiment, be first task according to the length such as working time task of selecting working time the longest/the shortest that sorts in each task can run in this first equipment.In a preferred embodiment, task the highest for CPU usage in each task run in this first equipment can be defined as the first task needing to carry out moving.In another preferred embodiment, can by task higher for above-mentioned CPU usage, and having as fault-tolerant abilitys such as standbies (fai lover) of task is defined as the first task that needs to carry out moving.Going back in a preferred embodiment, for each equipment in other frames, first can determine that being suitable for this first task moves the second equipment gone, and then, then moves to this second equipment in these other frames by the first task that these needs carry out moving.It will be understood by those skilled in the art that herein, for determine first task and the associated description of carrying out moving be only exemplary and indefiniteness describe, there are other various implementations and do not deviate from spirit of the present invention or category, and being contained in this by reference.
In a preferred embodiment, when the current power consumption of the arbitrary equipment in frame meets the second predetermined condition as described above, the second power consumption control can also be carried out to this equipment.Herein, second power consumption control of carrying out equipment comprises following any one or appoints multinomial:
-reduce the cpu frequency of described equipment;
-reduce the clocked memory of described equipment.
Particularly, above-mentioned second power consumption control can be carried out by the special interface of equipment to this equipment, also can be come directly by application-specific or by network, above-mentioned second power consumption control be carried out to this equipment.It will be understood by those skilled in the art that herein, the associated description of equipment being carried out to the second power consumption control is only exemplary and indefiniteness description, there are other various implementations and does not deviate from spirit of the present invention or category, and being contained in this by reference.
Fig. 2 illustrates the device schematic diagram for controlling frame power consumption of embodiment according to a further aspect of the present invention.As shown in Figure 2, this device being used for controlling frame power consumption comprises the device 21 of the overall power consumption for determining frame, hereinafter referred to as overall power consumption determining device 21, and for when the described overall power consumption first predetermined condition of described frame, described frame is carried out to the device 22 of power consumption control, hereinafter referred to as power consumption control apparatus 22.
First, overall power consumption determining device 21 will determine the overall power consumption of frame.Herein, overall power consumption means the current power consumption sum of all devices in this frame.In one embodiment, overall power consumption determining device 21 can the current power consumption of equipment in Real-time Obtaining frame, to determine the overall power consumption of frame.Such as, overall power consumption determining device 21 can carry out the current power consumption of each equipment in timing acquisition frame according to certain frequency, and the summation of the current power consumption of each equipment is defined as the overall power consumption of frame.Herein, overall power consumption determining device 21 can obtain its current power consumption by each equipment special interface separately in such as frame, also can be come directly by application-specific or be obtained the current power consumption of each equipment in frame by network.It will be understood by those skilled in the art that, herein, associated description for the current power consumption of the overall power consumption and the equipment of acquisition of determining frame is only exemplary and indefiniteness describes, and there are other various implementations and does not deviate from spirit of the present invention or category, and being contained in this by reference.
In a preferred embodiment, overall power consumption determining device 21, only when the current power consumption second predetermined condition of the arbitrary equipment in frame, determines the overall power consumption of described frame.Herein, described second predetermined condition comprises following any one:
The current power consumption of-described equipment is greater than the 6th predetermined threshold of described equipment;
The current power consumption of-described equipment is less than the 8th predetermined threshold of described equipment lower than the value of the 7th predetermined threshold of described equipment;
Ratio between the current power consumption of-described equipment and the peak power of described equipment is higher than the 9th predetermined threshold of described equipment.
Herein, equipment the 6th predetermined threshold can be such as the power consumption reasonable employment higher limit of equipment, and it can a little less than the maximum power dissipation of this equipment or power consumption higher limit.Also namely, the current power consumption that overall power consumption determining device 21 can work as equipment is greater than the 6th predetermined threshold of this equipment, also namely power consumption reasonable employment higher limit time, determine the overall power consumption of the frame that this equipment is positioned at.
7th predetermined threshold of equipment can be maximum power dissipation or the power consumption higher limit of such as equipment, and the 8th predetermined threshold can be such as the power consumption redundancy value of this equipment, and it such as can equal 10% of the maximum power dissipation of this equipment.In an example, when the current power consumption of equipment is lower than the 7th predetermined threshold of this equipment, also i.e. maximum power dissipation, value be less than the 8th predetermined threshold of this equipment, when being also power consumption redundancy value, the overall power consumption of the frame be positioned at this equipment is determined by overall power consumption determining device 21.
9th predetermined threshold of equipment can be the higher limit of the ratio between the current power consumption of described equipment and the peak power of described equipment, such as, be 85%.In an example, the ratio between the current power consumption and its peak power of equipment more than the 9th predetermined threshold, as 85% time, the overall power consumption of the frame be positioned at this equipment is determined by overall power consumption determining device 21.
It should be noted, the 6th predetermined threshold of equipment, the 7th predetermined threshold, the 8th predetermined threshold and the 9th predetermined threshold can pre-set according to such as empirical value or statistical value, and, also can dynamic adjustments according to actual needs.In addition, in a preferred embodiment, for dissimilar equipment, can also arrange and unified arrange module, it provides unified interface, comes to arrange each predetermined threshold above-mentioned to dissimilar equipment in a uniform manner.
It will be understood by those skilled in the art that, herein, associated description for the 6th predetermined threshold of equipment, the 7th predetermined threshold, the 8th predetermined threshold and the 9th predetermined threshold is only exemplary and indefiniteness describes, there are other various implementations and do not deviate from spirit of the present invention or category, and being contained in this by reference.
In a preferred embodiment, overall power consumption determining device 21 determine the mode of the overall power consumption of frame comprise following any one:
1., when the equipment in frame is whole machine cabinet server, overall power consumption determining device 21 will obtain the overall power consumption of current power consumption as this frame of this whole machine cabinet server.Herein, whole machine cabinet server means to carry out holistic management to obtain the current power consumption of this whole machine cabinet server by the management node of place frame to it.It should be noted, can comprise one or more equipment in this whole machine cabinet server, the current power consumption of this whole machine cabinet server can be the current power consumption sum of this one or more equipment.
2. when the equipment in frame is one or more common standard server, overall power consumption determining device 21 will obtain the current power consumption of each common standard server in this one or more common standard server, and according to the current power consumption of this each common standard server, determine the overall power consumption of frame.Herein, described common standard server refers to the various servers of the non-whole machine cabinet server that can be installed in frame.In an example, overall power consumption determining device 21 can by such as inquiring about the modes such as frame configuration, obtain each common standard server that this frame is installed, and obtain the current power consumption of each common standard server, and with the overall power consumption of the summation of each current power consumption as this frame.
Then, power consumption control apparatus 22, when the described overall power consumption first predetermined condition of described frame, carries out power consumption control to described frame.
Herein, described first predetermined condition comprises following any one:
The described overall power consumption of-described frame is greater than the second predetermined threshold of described frame;
The described overall power consumption of-described frame is less than the 4th predetermined threshold of described frame lower than the value of the 3rd predetermined threshold of described frame;
Ratio between the described overall power consumption of-described frame and the peak power of described frame is greater than the 5th predetermined threshold of described frame.
Herein, the second predetermined threshold of frame can be such as the power consumption reasonable employment higher limit of frame, and it can a little less than the rated disspation of described frame or power consumption higher limit.Such as, when the overall power consumption of frame is greater than the second predetermined threshold of this frame, also namely power consumption reasonable employment higher limit time, power consumption control apparatus 22 will carry out power consumption control to described frame.
3rd predetermined threshold of frame can be rated disspation or the power consumption higher limit of such as frame, and the 4th predetermined threshold of frame can be such as the power consumption redundancy value of this frame, and it such as can equal 10% of the rated disspation of this frame.Such as, when the overall power consumption of frame is lower than the 3rd predetermined threshold of this frame, also i.e. rated disspation, value be less than the 4th predetermined threshold of this frame, also namely power consumption redundancy value time, power consumption control apparatus 22 carries out power consumption control to this frame.
5th predetermined threshold of frame can be the higher limit of the ratio between the overall power consumption of frame and the peak power of described frame, as being 85%.Such as, the ratio between the overall power consumption and the peak power of this frame of this frame exceedes the 5th predetermined threshold of this frame, as 85% time, then power consumption control apparatus 22 carries out power consumption control to this frame.
Herein, the power consumption control that power consumption control apparatus 22 pairs of frames are carried out can comprise such as being suspended to the equipment in other frames and/or the one or more equipment controlled in this frame by the task immigration run in the one or more equipment in frame and accepts new task.It should be noted, in this article, the one or more equipment in described frame can refer to the one or more common standard servers in this frame, or one or more equipment included in whole machine cabinet server in this frame.
In a preferred embodiment, when the overall power consumption first predetermined condition of frame, comprise in power consumption control apparatus 22 for when the described overall power consumption first predetermined condition of described frame, determine the device of the first equipment needing to carry out the first power consumption control in each equipment in described frame, hereinafter referred to as the first equipment determining device 221 (not shown), the first equipment carrying out the first power consumption control is needed by each equipment first determined in this frame, then the device for carrying out the first power consumption control to described first equipment in described frame comprised in power consumption control apparatus 22, hereinafter referred to as the first power consumption control apparatus 222 (not shown), the first power consumption control is carried out to this first equipment in this frame.
Herein, in one embodiment, the first equipment of the first power consumption control is needed to carry out in each equipment that the first equipment determining device 221 can be determined in this frame according to random mode.In another embodiment, the first equipment determining device 221 can also sort to the current power consumption of each equipment in this frame, and the forward equipment that power consumption sorted is defined as the first equipment needing to carry out the first power consumption control.In a preferred embodiment, the first equipment determining device 221 determines that the mode of the first equipment needing to carry out the first power consumption control comprises following any one:
-when the overall power consumption first predetermined condition of frame, the current power consumption in each equipment in this frame is defined as lower than the equipment that the value of the first predetermined threshold of this equipment is minimum the first equipment needing to carry out the first power consumption control by the first equipment determining device 221;
-when the overall power consumption first predetermined condition of frame, equipment the highest for the ratio between the current power consumption in each equipment in this frame and the peak power of this equipment is defined as the first equipment needing to carry out the first power consumption control by the first equipment determining device 221.
Herein, equipment the first predetermined threshold can based on experience value or statistical value pre-set.Further, in one embodiment, the device for controlling frame power consumption of the present invention can obtain the value of the first predetermined threshold being suitable for this equipment by queries configuration database, such as it can be the peak power-consumption value of this equipment.Further, this first predetermined threshold also can dynamic conditioning according to actual needs.In addition, in a preferred embodiment, for dissimilar equipment, the device for controlling frame power consumption of the present invention can also arrange unified power consumption and arrange module, it provides unified interface, comes to arrange this first predetermined threshold to dissimilar equipment in a uniform manner.
After the first equipment determining device 221 determines the first equipment, the first equipment in the first power consumption control apparatus 222 pairs frame carries out described first power consumption control.Wherein, the first power consumption control apparatus 222 comprises following any one or appoints multinomial:
-for the first task run in this first equipment in this frame being migrated to the device of the second equipment in other frames, hereinafter referred to as task immigration device 2221 (not shown);
-suspend for this first equipment controlled in this frame the device accepting new task, accept new task device 2222 (not shown) hereinafter referred to as time-out.
Particularly, first power consumption control apparatus 222 and the task immigration device included by it 2221 accept new task device 2222 with time-out and can carry out above-mentioned any one or multinomial second power consumption control by the special interface of the first equipment to this first equipment, also can be come directly by application-specific or carry out above-mentioned second power consumption control by network to this first equipment.
Herein, this first task is certain task needing the second equipment migrated in other frames in each task run in equipment.Described second equipment means certain equipment in these other frames.Task immigration device 2221 can comprise for determining that the needs run in described first equipment carry out the device of the first task of moving, hereinafter referred to as first task determining device 22211 (not shown), and for the described first task run in described first equipment in described frame being migrated to the device of the second equipment in other frames, hereinafter referred to as first task moving apparatus 22212 (not shown).In one embodiment, in each task that can run in this first equipment of this first task determining device 22211 according to the mode of such as Stochastic choice to determine this first task.In another embodiment, be first task according to the length such as working time task of selecting working time the longest/the shortest that sorts in each task that can run in this first equipment of first task determining device 22211.In a preferred embodiment, task the highest for CPU usage in each task run in this first equipment can be defined as the first task that needs to carry out moving by first task determining device 22211.In another preferred embodiment, first task determining device 22211 can by task higher for above-mentioned CPU usage, and having as fault-tolerant abilitys such as standbies (fai lover) of task is defined as the first task that needs to carry out moving.
After first task determining device 22211 determines first task, described first task is migrated to the second equipment in other frames by first task moving apparatus 22212.In a preferred embodiment, for each equipment in other frames, first first task determining device 22211 can determine that being suitable for this first task moves the second equipment gone, and then, then moves to this second equipment in these other frames by the first task that these needs carry out moving.It will be understood by those skilled in the art that herein, for determine first task and the associated description of carrying out moving be only exemplary and indefiniteness describe, there are other various implementations and do not deviate from spirit of the present invention or category, and being contained in this by reference.
In a preferred embodiment, the present invention also comprises for when the current power consumption second predetermined condition of the arbitrary equipment in frame for the device controlling frame power consumption, described equipment is carried out to the device of the second power consumption control, hereinafter referred to as the second power consumption control apparatus 23 (not shown).When the current power consumption of the arbitrary equipment in frame meets the second predetermined condition as described above, the second power consumption control apparatus 23 can carry out the second power consumption control to this equipment.Herein, the second power consumption control that the second power consumption control apparatus 23 pairs of equipment carry out comprises following any one or appoints multinomial:
-reduce the cpu frequency of described equipment;
-reduce the clocked memory of described equipment.
Particularly, the second power consumption control apparatus 23 can carry out above-mentioned second power consumption control by the special interface of equipment to this equipment, also can be come directly by application-specific or carry out above-mentioned second power consumption control by network to this equipment.It will be understood by those skilled in the art that herein, the associated description of equipment being carried out to the second power consumption control is only exemplary and indefiniteness description, there are other various implementations and does not deviate from spirit of the present invention or category, and being contained in this by reference.
It should be noted that the present invention can be implemented in the assembly of software and/or software restraint, such as, special IC (ASIC), general object computing machine or any other similar hardware device can be adopted to realize.In one embodiment, software program of the present invention can perform to realize step mentioned above or function by processor.Similarly, software program of the present invention (comprising relevant data structure) can be stored in computer readable recording medium storing program for performing, such as, and RAM storer, magnetic or CD-ROM driver or flexible plastic disc and similar devices.In addition, steps more of the present invention or function can adopt hardware to realize, such as, as coordinating with processor thus performing the circuit of each step or function.
In addition, a part of the present invention can be applied to computer program, such as computer program instructions, when it is performed by computing machine, by the operation of this computing machine, can call or provide according to method of the present invention and/or technical scheme.And call the programmed instruction of method of the present invention, may be stored in fixing or moveable recording medium, and/or be transmitted by the data stream in broadcast or other signal bearing medias, and/or be stored in the working storage of the computer equipment run according to described programmed instruction.At this, comprise a device according to one embodiment of present invention, this device comprises the storer for storing computer program instructions and the processor for execution of program instructions, wherein, when this computer program instructions is performed by this processor, trigger this plant running based on the aforementioned method according to multiple embodiment of the present invention and/or technical scheme.
To those skilled in the art, obviously the invention is not restricted to the details of above-mentioned one exemplary embodiment, and when not deviating from spirit of the present invention or essential characteristic, the present invention can be realized in other specific forms.Therefore, no matter from which point, all should embodiment be regarded as exemplary, and be nonrestrictive, scope of the present invention is limited by claims instead of above-mentioned explanation, and all changes be therefore intended in the implication of the equivalency by dropping on claim and scope are included in the present invention.Any Reference numeral in claim should be considered as the claim involved by limiting.In addition, obviously " comprising " one word do not get rid of other unit or step, odd number does not get rid of plural number.Multiple devices of stating in device claim also can be realized by software or hardware by a device.First, second word such as grade is used for representing title, and does not represent any specific order.

Claims (24)

1., for controlling a method for frame power consumption, wherein, the method comprises:
-determine the overall power consumption of frame;
-when the described overall power consumption first predetermined condition of described frame, power consumption control is carried out to described frame.
2. method according to claim 1, wherein, describedly determine that the step of the overall power consumption of frame comprises:
-when the current power consumption second predetermined condition of the arbitrary equipment in frame, determine the overall power consumption of described frame.
3. method according to claim 1 and 2, wherein, describedly determine that the step of the overall power consumption of frame comprises following any one:
-when the equipment in frame is whole machine cabinet server:
-obtain the overall power consumption of current power consumption as this frame of this whole machine cabinet server;
-when the equipment in frame is one or more common standard server:
-obtain the current power consumption of each common standard server in described one or more common standard server;
-according to the current power consumption of each common standard server described, determine the overall power consumption of this frame.
4. the method according to any one of claim 1-3, wherein, during the described described overall power consumption first predetermined condition when described frame, the step of described frame being carried out to power consumption control comprises:
-when the described overall power consumption first predetermined condition of described frame, determine the first equipment needing to carry out the first power consumption control in each equipment in described frame;
-the first power consumption control is carried out to described first equipment in described frame.
5. method according to claim 4, wherein, during the described described overall power consumption first predetermined condition when described frame, determine that the step of the first equipment needing to carry out the first power consumption control in each equipment in described frame comprises following any one:
-when the described overall power consumption first predetermined condition of described frame, the current power consumption in each equipment in described frame is defined as lower than the equipment that the value of the first predetermined threshold of this equipment is minimum the first equipment needing to carry out the first power consumption control;
-when the described overall power consumption first predetermined condition of described frame, equipment the highest for the ratio between the current power consumption in each equipment in described frame and the peak power of this equipment is defined as the first equipment needing to carry out the first power consumption control.
6. the method according to claim 4 or 5, wherein, comprises following any one to the first power consumption control that described first equipment in described frame carries out or appoints multinomial:
-first task run in described first equipment in described frame migrated to the second equipment in other frames;
-described first equipment the time-out controlled in described frame accepts new task.
7. method according to claim 6, wherein, the step of described the second equipment first task run in described first equipment in described frame migrated in other frames comprises:
-determine that the needs run in described first equipment carry out the first task of moving;
-the described first task run in described first equipment in described frame migrated to the second equipment in other frames.
8. method according to claim 7, wherein, the described step determining that the needs run in described first equipment carry out the first task of moving comprises:
-task the highest for CPU usage in each task run in described first equipment is defined as the first task that needs to carry out moving.
9. the method according to claim 2-8, wherein, also comprises:
-when the current power consumption second predetermined condition of the arbitrary equipment in frame, the second power consumption control is carried out to described equipment.
10. method according to claim 9, wherein, comprises following any one to described second power consumption control that described equipment carries out or appoints multinomial:
-reduce the cpu frequency of described equipment;
-reduce the clocked memory of described equipment.
11. methods according to any one of claim 1-10, wherein, described first predetermined condition comprises following any one:
The described overall power consumption of-described frame is greater than the second predetermined threshold of described frame;
The described overall power consumption of-described frame is less than the 4th predetermined threshold of described frame lower than the value of the 3rd predetermined threshold of described frame;
Ratio between the described overall power consumption of-described frame and the peak power of described frame is greater than the 5th predetermined threshold of described frame.
12. methods according to any one of claim 1-11, wherein, described second predetermined condition comprises following any one:
The current power consumption of-described equipment is greater than the 6th predetermined threshold of described equipment;
The current power consumption of-described equipment is less than the 8th predetermined threshold of described equipment lower than the value of the 7th predetermined threshold of described equipment;
Ratio between the current power consumption of-described equipment and the peak power of described equipment is higher than the 9th predetermined threshold of described equipment.
13. 1 kinds for controlling the device of frame power consumption, wherein, this device comprises:
-for determining the device of the overall power consumption of frame;
-for when the described overall power consumption first predetermined condition of described frame, described frame is carried out to the device of power consumption control.
14. devices according to claim 13, wherein, the device of the described overall power consumption for determining frame for:
-when the current power consumption second predetermined condition of the arbitrary equipment in frame, determine the overall power consumption of described frame.
15. devices according to claim 13 or 14, wherein, the device of the described overall power consumption for determining frame is for following any one:
-when the equipment in frame is whole machine cabinet server:
-obtain the overall power consumption of current power consumption as this frame of this whole machine cabinet server;
-when the equipment in frame is one or more common standard server:
-obtain the current power consumption of each common standard server in described one or more common standard server;
-according to the current power consumption of each common standard server described, determine the overall power consumption of this frame.
16. devices according to any one of claim 13-15, wherein, described for when the described overall power consumption first predetermined condition of described frame, the device described frame being carried out to power consumption control comprises:
-for when the described overall power consumption first predetermined condition of described frame, determine the device of the first equipment needing to carry out the first power consumption control in each equipment in described frame;
-for carrying out the device of the first power consumption control to described first equipment in described frame.
17. devices according to claim 16, wherein, described for when the described overall power consumption first predetermined condition of described frame, determine that the device of the first equipment needing to carry out the first power consumption control in each equipment in described frame comprises following any one:
-for when the described overall power consumption first predetermined condition of described frame, the current power consumption in each equipment in described frame is defined as the device of the first equipment needing to carry out the first power consumption control lower than the equipment that the value of the first predetermined threshold of this equipment is minimum;
-for when the described overall power consumption first predetermined condition of described frame, equipment the highest for the ratio between the current power consumption in each equipment in described frame and the peak power of this equipment is defined as the device of the first equipment needing to carry out the first power consumption control.
18. devices according to claim 16 or 17, wherein, comprise following any one to the first power consumption control that described first equipment in described frame carries out or appoint multinomial:
-first task run in described first equipment in described frame migrated to the second equipment in other frames;
-described first equipment the time-out controlled in described frame accepts new task.
19. devices according to claim 18, wherein, the device of described the second equipment for the first task run in described first equipment in described frame being migrated in other frames comprises:
-for determining that the needs run in described first equipment carry out the device of the first task of moving;
-for the described first task run in described first equipment in described frame being migrated to the device of the second equipment in other frames.
20. devices according to claim 19, wherein, described for determine device that the needs run in described first equipment carry out the first task of moving for:
-by run in described first equipment each task in the highest task of CPU usage be defined as the first task that needs to carry out moving.
21. devices according to claim 14-20, wherein, also comprise:
-for when the current power consumption second predetermined condition of the arbitrary equipment in frame, described equipment is carried out to the device of the second power consumption control.
22. devices according to claim 21, wherein, comprise following any one to described second power consumption control that described equipment carries out or appoint multinomial:
-reduce the cpu frequency of described equipment;
-reduce the clocked memory of described equipment.
23. devices according to any one of claim 13-22, wherein, described first predetermined condition comprises following any one:
The described overall power consumption of-described frame is greater than the second predetermined threshold of described frame;
The described overall power consumption of-described frame is less than the 4th predetermined threshold of described frame lower than the value of the 3rd predetermined threshold of described frame;
Ratio between the described overall power consumption of-described frame and the peak power of described frame is greater than the 5th predetermined threshold of described frame.
24. devices according to any one of claim 13-23, wherein, described second predetermined condition comprises following any one:
The current power consumption of-described equipment is greater than the 6th predetermined threshold of described equipment;
The current power consumption of-described equipment is less than the 8th predetermined threshold of described equipment lower than the value of the 7th predetermined threshold of described equipment;
Ratio between the current power consumption of-described equipment and the peak power of described equipment is higher than the 9th predetermined threshold of described equipment.
CN201410743133.8A 2014-12-05 2014-12-05 A kind of method and apparatus for being used to control frame power consumption Active CN104536554B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410743133.8A CN104536554B (en) 2014-12-05 2014-12-05 A kind of method and apparatus for being used to control frame power consumption

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410743133.8A CN104536554B (en) 2014-12-05 2014-12-05 A kind of method and apparatus for being used to control frame power consumption

Publications (2)

Publication Number Publication Date
CN104536554A true CN104536554A (en) 2015-04-22
CN104536554B CN104536554B (en) 2017-11-03

Family

ID=52852095

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410743133.8A Active CN104536554B (en) 2014-12-05 2014-12-05 A kind of method and apparatus for being used to control frame power consumption

Country Status (1)

Country Link
CN (1) CN104536554B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107329811A (en) * 2017-06-09 2017-11-07 北京云集智造科技有限公司 A kind of power consumption of data center adjusting method and device
CN109800125A (en) * 2018-12-18 2019-05-24 平安科技(深圳)有限公司 Cabinet configuring management method, device and computer readable storage medium
CN110389553A (en) * 2019-07-31 2019-10-29 浪潮商用机器有限公司 A kind of equipment power dissipation monitoring device and method
WO2023029375A1 (en) * 2021-09-03 2023-03-09 苏州浪潮智能科技有限公司 Power source consumption management apparatus for four-way server

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060156041A1 (en) * 2005-01-07 2006-07-13 Lee Zaretsky System and method for power management of plural information handling systems
US20080244281A1 (en) * 2007-03-30 2008-10-02 Felter Wesley M Method and System for Associating Power Consumption with a Network Address
CN102916835A (en) * 2012-10-18 2013-02-06 华为技术有限公司 Method and device for regulating power consumption of equipments
CN103777734A (en) * 2012-10-25 2014-05-07 英业达科技有限公司 Cabinet type server system and operation method thereof
TW201427219A (en) * 2012-12-24 2014-07-01 Celestica Technology Consultancy Shanghai Co Ltd Apparatus for controlling centralized power supply module of a rack and method of the same

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060156041A1 (en) * 2005-01-07 2006-07-13 Lee Zaretsky System and method for power management of plural information handling systems
US20080244281A1 (en) * 2007-03-30 2008-10-02 Felter Wesley M Method and System for Associating Power Consumption with a Network Address
CN102916835A (en) * 2012-10-18 2013-02-06 华为技术有限公司 Method and device for regulating power consumption of equipments
CN103777734A (en) * 2012-10-25 2014-05-07 英业达科技有限公司 Cabinet type server system and operation method thereof
TW201427219A (en) * 2012-12-24 2014-07-01 Celestica Technology Consultancy Shanghai Co Ltd Apparatus for controlling centralized power supply module of a rack and method of the same

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107329811A (en) * 2017-06-09 2017-11-07 北京云集智造科技有限公司 A kind of power consumption of data center adjusting method and device
CN109800125A (en) * 2018-12-18 2019-05-24 平安科技(深圳)有限公司 Cabinet configuring management method, device and computer readable storage medium
CN110389553A (en) * 2019-07-31 2019-10-29 浪潮商用机器有限公司 A kind of equipment power dissipation monitoring device and method
WO2023029375A1 (en) * 2021-09-03 2023-03-09 苏州浪潮智能科技有限公司 Power source consumption management apparatus for four-way server

Also Published As

Publication number Publication date
CN104536554B (en) 2017-11-03

Similar Documents

Publication Publication Date Title
JP5496518B2 (en) Centralized power management method, device-side agent, centralized power management controller, and centralized power management system
CN104536554A (en) Method and device for controlling power consumption of frame
Borah et al. Power saving strategies in green cloud computing systems
CN109388488B (en) Power allocation in computer system
CN104639347A (en) Multi-cluster monitoring method and device, and system
CN104516475A (en) Method and apparatus for managing global chip power on multicore system on chip
US20120089734A1 (en) Allocation of resources between web services in a composite service
Chaabouni et al. Energy management strategy in cloud computing: a perspective study
US9377834B2 (en) Adjusting working frequency of a processor based on monitored idle time
Bahari et al. Review on data center issues and challenges: Towards the Green Data Center
Monil et al. Energy-aware VM consolidation approach using combination of heuristics and migration control
US20200081513A1 (en) Variation-aware intra-node power shifting among different hardware components
CN116016276A (en) Method and device for detecting health state of server
CN104572298A (en) Video cloud platform resource dispatching method and device
CN103927244A (en) Plug-in scheduling process monitoring method implemented based on dynamic proxy
CN103617090A (en) Energy saving method based on distributed management
CN105049365A (en) Adaptive frequency modulation energy-saving method for multi-core multi-thread intrusion detection device
CN105282199A (en) Cloud resource optimizing method, cloud platform and cloud user client
US20230229216A1 (en) System and methods for server power management
CN105320246A (en) Information processing method and electronic device
CN114490091A (en) Method and device for monitoring rule engine performance in industrial data acquisition management system
CN103593249A (en) HA early warning method and virtual resource manager
CN104102541A (en) Sign-off dynamic adjusting method and system
US20190155359A1 (en) Method for automatically managing the electricity consumption of a server farm
CN102521715A (en) Method and system capable of controlling resource allocation of application system

Legal Events

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