[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN104536554B - A kind of method and apparatus for being used to control frame power consumption - Google Patents

A kind of method and apparatus for being used to control frame power consumption Download PDF

Info

Publication number
CN104536554B
CN104536554B CN201410743133.8A CN201410743133A CN104536554B CN 104536554 B CN104536554 B CN 104536554B CN 201410743133 A CN201410743133 A CN 201410743133A CN 104536554 B CN104536554 B CN 104536554B
Authority
CN
China
Prior art keywords
equipment
power consumption
frame
task
overall power
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410743133.8A
Other languages
Chinese (zh)
Other versions
CN104536554A (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

It is an object of the invention to provide a kind of method and apparatus for controlling frame power consumption.Wherein, this method includes:Determine the overall power consumption of frame;When the overall power consumption of the frame meets the first predetermined condition, power consumption control is carried out to the frame.Compared with prior art, overall power consumption of the invention by determining frame, and when overall power consumption meets predetermined condition, power consumption control is carried out to frame, in the case of in the power consumption service condition of effective monitoring frame to ensure operation stability, the utilization rate of rack position and the utilization ratio of power supply resource are improved, the purpose of efficient energy-saving is reached.

Description

A kind of method and apparatus for being used to control frame power consumption
Technical field
The present invention relates to power consumption control field, more particularly to a kind of method and apparatus of control frame power consumption.
Background technology
Currently, in computer room, such as, because the rated disspation by frame is limited in data center machine room server disposition, lead Rack position is caused with discontented, low space utilization.Prior art is in data center's internal rack deployment services device, dependent in clothes The maximum power dissipation of server obtained when business device type selecting, and peak power according to machine frame inside each server and frame/ The power supply limitation of first cabinet of each row/computer room/data center in itself, calculates the deployment amount of server.But due to technique difference, restocking The peak power of server and maximum power dissipation when type selecting have differences afterwards, can so directly influence under existing deployment scheme The number of nodes of single frame, causes server disposition density to reduce, and wastes rack space.Simultaneously as server its peak work The uncertainty of consumption, the server disposition mode of existing dependence experience can data center deployment each node (frame, row Head cabinet, single computer room etc.) place leaves redundancy, and excessive redundancy can reduce the utilization rate that data center powers.Therefore, how to pass through Reasonable manner more fully using rack position and improves the utilization rate that frame is powered, and avoids increasing after server in frame The super risk existed, and accomplish reliably, do not influence operation stability on the premise of, the equipment disposed in increase frame Density, lift carriage position and power supply resource utilization rate be one need solution the problem of.
The content of the invention
It is an object of the invention to provide a kind of method and apparatus for being used to control frame power consumption.
According to an aspect of the present invention there is provided a kind of method for controlling frame power consumption, wherein, this method includes:
- determine the overall power consumption of frame;
- when the overall power consumption of the frame meets the first predetermined condition, power consumption control is carried out to the frame.
According to another aspect of the present invention there is provided a kind of device for being used to control frame power consumption, wherein, the device bag Include:
- for the device for the overall power consumption for determining frame;
- be used to, when the overall power consumption of the frame meets the first predetermined condition, power consumption control is carried out to the frame The device of system.
Compared with prior art, the overall power consumption of the invention by determining frame, and when overall power consumption meets predetermined condition When, power consumption control is carried out to frame, so as to ensure operation stability in the power consumption service condition of effective monitoring frame In the case of, the utilization rate of rack position and the utilization ratio of power supply resource are improved, the purpose of efficient energy-saving is reached.
Brief description of the drawings
By reading the detailed description made to non-limiting example made with reference to the following drawings, of the invention is other Feature, objects and advantages will become more apparent upon:
Fig. 1 shows the method flow diagram for being used to control frame power consumption of the embodiment according to one aspect of the invention;
Fig. 2 shows the schematic diagram for being used to control the device of frame power consumption of embodiment according to a further aspect of the present invention.
Same or analogous reference represents same or analogous part in accompanying drawing.
Embodiment
The present invention is described in further detail below in conjunction with the accompanying drawings.
Fig. 1 shows the method flow diagram for being used to control 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 all in the frame The current power consumption sum of equipment.In one embodiment, the current power consumption of the equipment in frame can be obtained in real time, to determine machine The overall power consumption of frame.For example, the current power consumption for each equipment that can come according to certain frequency in timing acquisition frame, and will The summation of the current power consumption of each equipment is defined as the overall power consumption of frame.Herein, it can be set for example, by each in frame Its current power consumption is obtained for respective special interface, network can also be directed or through by application-specific to obtain machine The current power consumption of each equipment on frame.It will be understood by those skilled in the art that herein, for determine frame overall power consumption and The associated description of current power consumption for obtaining equipment is merely illustrative and non-limiting description, exist other various implementations without Away from the spirit or scope of the present invention, and it is incorporated herein by reference.
In a preferred embodiment, only when the current power consumption of the arbitrary equipment in frame meets the second predetermined condition, Determine the overall power consumption of the frame.Herein, second predetermined condition includes any one of following:
The current power consumption of-the equipment is more than the 6th predetermined threshold of the equipment;
The current power consumption of-the equipment is the 8th pre- less than what the value of the 7th predetermined threshold of the equipment was less than the equipment Determine threshold value;
Ratio between the current power consumption of-equipment and the peak power of the equipment is the 9th pre- higher than the equipment Determine threshold value.
Herein, the predetermined threshold of equipment the 6th for example can be the power consumption reasonable employment higher limit of equipment, and it slightly below can should The maximum power dissipation or power consumption higher limit of equipment.That is, the current power consumption that can work as equipment is more than the 6th predetermined threshold of the equipment, I.e. power consumption reasonable employment higher limit when, determine the overall power consumption for the frame that the equipment is located at.
7th predetermined threshold of equipment can be the maximum power dissipation or power consumption higher limit of such as equipment, and the 8th predetermined threshold Value can be the power consumption redundancy value of for example, equipment, and it can for example be equal to the 10% of the maximum power dissipation of the equipment.One In individual example, when the current power consumption of equipment is less than the 7th predetermined threshold of the equipment, namely maximum power dissipation, value be less than the equipment The 8th predetermined threshold, namely during power consumption redundancy value, the overall power consumption for the frame being located to the equipment is determined.
9th predetermined threshold of equipment can be between the current power consumption of the equipment and the peak power of the equipment The higher limit of ratio, for example, 85%.In an example, when the ratio between the current power consumption of equipment and its peak power surpasses The 9th predetermined threshold is crossed, when such as 85%, the overall power consumption for the frame being located to the equipment is determined.
It should be noted that the 6th predetermined threshold, the 7th predetermined threshold, the 8th predetermined threshold and the 9th predetermined threshold of equipment Value can be pre-set according to such as empirical value or statistical value, also, can also carry out dynamic regulation according to actual needs.This Outside, in a preferred embodiment, for different types of equipment, unified setup module can also be set, it provides unified Interface, to set above-mentioned each predetermined threshold to different types of equipment in a uniform manner.
It will be understood by those skilled in the art that herein, for the 6th predetermined threshold of equipment, the 7th predetermined threshold, the 8th pre- The associated description for determining threshold value and the 9th predetermined threshold is merely illustrative and non-limiting description, there are other various implementations Without departing from the spirit or scope of the present invention, and it is incorporated herein by reference.
In a preferred embodiment, determine the mode of overall power consumption of frame including following any:
1. when the equipment in frame is whole machine cabinet server, the current power consumption of the whole machine cabinet server will be obtained as this The overall power consumption of frame.Herein, whole machine cabinet server means that entirety can be carried out to it by the management node of place frame Manage to obtain the current power consumption of the whole machine cabinet server.It should be noted that may include one or many in the whole machine cabinet server Individual equipment, the current power consumption of the whole machine cabinet server can be the current power consumption sum of one or more equipment.
2. when the equipment in frame is one or more common standard servers, one or more common marks will be obtained The current power consumption of each common standard server in quasi- server, and according to the current power consumption of each common standard server, To determine the overall power consumption of frame.Herein, the common standard server refers to be mountable to the non-whole machine cabinet service in frame The various servers of device.In an example, it can be pacified for example, by inquiring about the modes such as rack configuration to obtain in the frame Each common standard server of dress, and the current power consumption of each common standard server is obtained, and with the total of each current power consumption With the overall power consumption as the frame.
Then, in step s 12, when the overall power consumption of the frame meets the first predetermined condition, to the machine Frame carries out power consumption control.
Herein, first predetermined condition includes any one of following:
The overall power consumption of-the frame is more than the second predetermined threshold of the frame;
The overall power consumption of-the frame is less than the of the frame less than the value of the 3rd predetermined threshold of the frame Four predetermined thresholds;
Ratio between the overall power consumption of-frame and the peak power of the frame is more than the of the frame Five predetermined thresholds.
Herein, the second predetermined threshold of frame for example can be the power consumption reasonable employment higher limit of frame, and it can be slightly below The rated disspation or power consumption higher limit of the frame.For example, when second predetermined threshold of the overall power consumption more than the frame of frame, Namely during power consumption reasonable employment higher limit, power consumption control will be carried out to the frame.
3rd predetermined threshold of frame can be the rated disspation or power consumption higher limit of such as frame, and the 4th of frame the Predetermined threshold can be the power consumption redundancy value of for example, frame, and it can for example be equal to the rated disspation of the frame 10%.For example, when the overall power consumption of frame is less than the 3rd predetermined threshold of the frame, namely rated disspation, value be less than the machine 4th predetermined threshold of frame, namely during power consumption redundancy value, power consumption control is carried out to the frame.
5th predetermined threshold of frame can be the ratio between the overall power consumption of frame and the peak power of the frame Higher limit, such as be 85%.For example, when the ratio between the overall power consumption of the frame and the peak power of the frame exceedes the machine 5th predetermined threshold of frame, when such as 85%, then carries out power consumption control to the frame.
Herein, the power consumption control carried out to frame can include for example being transported in one or more equipment in frame Equipment in capable task immigration to other frames and/or control one or more equipment in the frame to suspend to receive newly appointed Business.It should be noted that herein, one or more equipment in the frame can refer to one or more general in the frame Included one or more equipment in logical standard server, or whole machine cabinet server in the frame.
In a preferred embodiment, when the overall power consumption of frame meets the first predetermined condition, the machine will be determined first The first equipment of the first power consumption control of progress is needed in each equipment on frame, then first equipment in the frame is carried out First power consumption control.
Herein, in one embodiment, it can determine to need in each equipment in the frame in a random fashion Carry out the first equipment of the first power consumption control.In another embodiment, can also be to the current of each equipment in the frame Power consumption is ranked up, and is defined as needing carrying out the first equipment of the first power consumption control by the power consumption forward equipment that sorts.One In individual preferred embodiment, it is determined that it is any one of following to need the mode for carrying out the first equipment of the first power consumption control to include:
- when the overall power consumption of frame meets the first predetermined condition, by the current power consumption in each equipment in the frame The equipment minimum less than the value of the first predetermined threshold of the equipment is defined as the first equipment for needing to carry out the first power consumption control;
- when the overall power consumption of frame meets the first predetermined condition, by the current power consumption in each equipment in the frame Ratio highest equipment between the peak power of the equipment is defined as the first equipment for needing to carry out the first power consumption control.
Herein, the first predetermined threshold of equipment can based on experience value or statistical value is pre-set.Also, in a reality Apply in example, the value for the first predetermined threshold for being suitable for the equipment can be obtained by queries configuration database, for example it can be with For the peak power-consumption value of the equipment.Also, first predetermined threshold can also come dynamically to adjust according to actual needs.In addition, In one preferred embodiment, for different types of equipment, unified power consumption setup module can also be set, it provides unified Interface, to set first predetermined threshold to different types of equipment in a uniform manner.
Herein, first power consumption control carried out to the first equipment in frame includes any one of following or appointed many :
- first task run in first equipment in the frame is migrated into the second equipment to other frames;
- control first equipment pause in the frame to receive new task.
Specifically, any of the above-described can be carried out to first equipment by the special interface of the first equipment or appointed multinomial Second power consumption control, can also direct or through network to carry out above-mentioned second work(to first equipment by application-specific Consumption control.
Herein, the first task is the second equipment for needing in equipment to migrate to other frames in each task for running Some task.Second equipment means some equipment in other frames.In one embodiment, can this first In each task run in equipment the first task is determined according to for example randomly selected mode.In another embodiment In, select run time most according to the sequence of such as run time length in each task that can be run in first equipment Long/most short task is first task.In a preferred embodiment, in each task that will can be run in first equipment CPU usage highest task is defined as the first task for needing to be migrated., can will be upper in another preferred embodiment The higher task of CPU usage is stated, and the task with such as standby (fai lover) fault-tolerant ability is defined as needs The first task migrated.In a further preferred embodiment, for each equipment in other frames, it can determine first It is suitable for the second equipment for going of first task migration, then, then the first task that the needs are migrated moves to this its Second equipment in his frame.It will be understood by those skilled in the art that herein, for the phase for determining first task and being migrated Close description to be merely illustrative and non-limiting description, there is spirit or model of other various implementations without departing from the present invention Farmland, and be incorporated herein by reference.
In a preferred embodiment, when the current power consumption of the arbitrary equipment in frame meets as described above second pre- During fixed condition, the second power consumption control can also be carried out to the equipment.Herein, the second power consumption control that equipment is carried out is included following Any one is appointed multinomial:
The cpu frequency of-reduction the equipment;
The clocked memory of-reduction the equipment.
Specifically, above-mentioned second power consumption control can be carried out to the equipment by the special interface of equipment, can also led to Application-specific is crossed to direct or through network to carry out above-mentioned second power consumption control to the equipment.Those skilled in the art should manage Solution, herein, is merely illustrative and non-limiting description for the associated description that equipment carries out the second power consumption control, there are other each Spirit or scope of the implementation without departing from the present invention is planted, and is incorporated herein by reference.
Fig. 2 shows the schematic device for being used to control frame power consumption of embodiment according to a further aspect of the present invention.Such as Shown in Fig. 2, this is used to control the device of frame power consumption to include being used to determine the device 21 of the overall power consumption of frame, hereinafter referred to as always Body power consumption determining device 21, and for when the overall power consumption of the frame meets the first predetermined condition, to the machine Frame carries out 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 in the frame All devices current power consumption sum.In one embodiment, overall power consumption determining device 21 can be obtained in frame in real time Equipment current power consumption, to determine the overall power consumption of frame.For example, overall power consumption determining device 21 can be according to certain frequency The current power consumption for each equipment that rate is come in timing acquisition frame, and the summation of the current power consumption of each equipment is defined as frame Overall power consumption.Herein, overall power consumption determining device 21 can be for example, by the respective special interface of the equipment of each in frame To obtain its current power consumption, network can also be directed or through by application-specific to obtain each equipment in frame Current power consumption.It will be understood by those skilled in the art that herein, for determining the overall power consumption of frame and obtaining the current work(of equipment The associated description of consumption is merely illustrative and non-limiting description, there is spirit of other various implementations without departing from the present invention Or category, and be incorporated herein by reference.
In a preferred embodiment, overall power consumption determining device 21 is only when the current power consumption of the arbitrary equipment in frame expires During the second predetermined condition of foot, the overall power consumption of the frame is determined.Herein, second predetermined condition includes any one of following:
The current power consumption of-the equipment is more than the 6th predetermined threshold of the equipment;
The current power consumption of-the equipment is the 8th pre- less than what the value of the 7th predetermined threshold of the equipment was less than the equipment Determine threshold value;
Ratio between the current power consumption of-equipment and the peak power of the equipment is the 9th pre- higher than the equipment Determine threshold value.
Herein, the predetermined threshold of equipment the 6th for example can be the power consumption reasonable employment higher limit of equipment, and it slightly below can should The maximum power dissipation or power consumption higher limit of equipment.That is, the current power consumption that overall power consumption determining device 21 can work as equipment is set more than this The 6th standby predetermined threshold, namely during power consumption reasonable employment higher limit, determine the overall power consumption for the frame that the equipment is located at.
7th predetermined threshold of equipment can be the maximum power dissipation or power consumption higher limit of such as equipment, and the 8th predetermined threshold Value can be the power consumption redundancy value of for example, equipment, and it can for example be equal to the 10% of the maximum power dissipation of the equipment.One In individual example, when the current power consumption of equipment is less than the 7th predetermined threshold of the equipment, namely maximum power dissipation, value be less than the equipment The 8th predetermined threshold, namely during power consumption redundancy value, overall power consumption determining device 21 is by the frame being located to the equipment Overall power consumption is determined.
9th predetermined threshold of equipment can be between the current power consumption of the equipment and the peak power of the equipment The higher limit of ratio, for example, 85%.In an example, when the ratio between the current power consumption of equipment and its peak power surpasses The 9th predetermined threshold is crossed, when such as 85%, overall power consumption determining device 21 enters the overall power consumption for the frame being located to the equipment Row is determined.
It should be noted that the 6th predetermined threshold, the 7th predetermined threshold, the 8th predetermined threshold and the 9th predetermined threshold of equipment Value can be pre-set according to such as empirical value or statistical value, also, can also carry out dynamic regulation according to actual needs.This Outside, in a preferred embodiment, for different types of equipment, unified setup module can also be set, it provides unified Interface, to set above-mentioned each predetermined threshold to different types of equipment in a uniform manner.
It will be understood by those skilled in the art that herein, for the 6th predetermined threshold of equipment, the 7th predetermined threshold, the 8th pre- The associated description for determining threshold value and the 9th predetermined threshold is merely illustrative and non-limiting description, there are other various implementations Without departing from the spirit or scope of the present invention, and it is incorporated herein by reference.
In a preferred embodiment, overall power consumption determining device 21 determines the mode of the overall power consumption of frame including following It is any:
1. when the equipment in frame is whole machine cabinet server, overall power consumption determining device 21 is serviced the whole machine cabinet is obtained Overall power consumption of the current power consumption of device as the frame.Herein, mean can be by the management of place frame for whole machine cabinet server Node is managed to obtain the current power consumption of the whole machine cabinet server to carry out entirety to it.It should be noted that the whole machine cabinet is serviced It may include one or more equipment in device, the current power consumption of the whole machine cabinet server can be the current of one or more equipment Power consumption sum.
2. when the equipment in frame is one or more common standard servers, overall power consumption determining device 21 will be obtained The current power consumption of each common standard server in one or more common standard servers, and according to each common standard The current power consumption of server, to determine the overall power consumption of frame.Herein, the common standard server refers to be mountable to frame On non-whole machine cabinet server various servers.In an example, overall power consumption determining device 21 can be for example, by looking into The modes such as rack configuration are ask, to obtain each common standard server installed in the frame, and each common standard are obtained The current power consumption of server, and with overall power consumption of the summation of each current power consumption as the frame.
Then, power consumption control apparatus 22 is when the overall power consumption of the frame meets the first predetermined condition, to described Frame carries out power consumption control.
Herein, first predetermined condition includes any one of following:
The overall power consumption of-the frame is more than the second predetermined threshold of the frame;
The overall power consumption of-the frame is less than the of the frame less than the value of the 3rd predetermined threshold of the frame Four predetermined thresholds;
Ratio between the overall power consumption of-frame and the peak power of the frame is more than the of the frame Five predetermined thresholds.
Herein, the second predetermined threshold of frame for example can be the power consumption reasonable employment higher limit of frame, and it can be slightly below The rated disspation or power consumption higher limit of the frame.For example, when second predetermined threshold of the overall power consumption more than the frame of frame, Namely during power consumption reasonable employment higher limit, power consumption control apparatus 22 will carry out power consumption control to the frame.
3rd predetermined threshold of frame can be the rated disspation or power consumption higher limit of such as frame, and the 4th of frame the Predetermined threshold can be the power consumption redundancy value of for example, frame, and it can for example be equal to the rated disspation of the frame 10%.For example, when the overall power consumption of frame is less than the 3rd predetermined threshold of the frame, namely rated disspation, value be less than the machine 4th predetermined threshold of frame, namely during power consumption redundancy value, 22 pairs of frames of power consumption control apparatus carry out power consumption control.
5th predetermined threshold of frame can be the ratio between the overall power consumption of frame and the peak power of the frame Higher limit, such as be 85%.For example, when the ratio between the overall power consumption of the frame and the peak power of the frame exceedes the machine 5th predetermined threshold of frame, when such as 85%, then 22 pairs of frames of power consumption control apparatus carry out power consumption control.
Herein, the power consumption control that power consumption control apparatus 22 is carried out to frame can include for example by one in frame or Equipment in the task immigration run in multiple equipment to other frames and/or control one or more equipment in the frame Pause receives new task.It should be noted that herein, one or more equipment in the frame can refer in the frame Included one or more equipment in one or more common standard servers, or whole machine cabinet server in the frame.
In a preferred embodiment, when the overall power consumption of frame meets the first predetermined condition, power consumption control apparatus 22 Included in be used for when the overall power consumption of the frame meets the first predetermined condition, determine each in the frame The device of the first equipment of the first power consumption control of progress is needed in equipment, hereinafter referred to as the first equipment determining device 221 (is not shown Go out), need in each equipment that will be determined first in the frame to carry out the first equipment of the first power consumption control, then power consumption control Being used for included in device 22 carries out the device of the first power consumption control to first equipment in the frame, hereinafter referred to as The (not shown) of first power consumption control apparatus 222 carries out the first power consumption control to first equipment in the frame.
Herein, in one embodiment, the first equipment determining device 221 can determine the frame in a random fashion On each equipment in need carry out the first power consumption control the first equipment.In another embodiment, the first equipment determines dress Putting 221 can also be ranked up to the current power consumption of each equipment in the frame, and the equipment for sorting forward by power consumption is determined To need the first equipment for carrying out the first power consumption control.In a preferred embodiment, the first equipment determining device 221 determines to need Carrying out the mode of the first equipment of the first power consumption control includes following any one:
- when the overall power consumption of frame meets the first predetermined condition, the first equipment determining device 221 will be each in the frame Current power consumption in individual equipment is defined as needing to carry out the first work(less than the equipment of the value minimum of the first predetermined threshold of the equipment Consume the first equipment of control;
- when the overall power consumption of frame meets the first predetermined condition, the first equipment determining device 221 will be each in the frame Current power consumption in individual equipment and the ratio highest equipment between the peak power of the equipment are defined as needing to carry out the first work( Consume the first equipment of control.
Herein, the first predetermined threshold of equipment can based on experience value or statistical value is pre-set.Also, in a reality Apply in example, of the invention is suitable for the equipment for controlling the device of frame power consumption to be obtained by queries configuration database The first predetermined threshold value, for example its can be the equipment peak power-consumption value.Also, first predetermined threshold can also root Dynamically adjusted according to being actually needed.In addition, in a preferred embodiment, for different types of equipment, of the invention is used for The device of control frame power consumption can also set unified power consumption setup module, and it provides unified interface, with unified side Formula sets first predetermined threshold to different types of equipment.
After the first equipment determining device 221 determines the first equipment, the first power consumption control apparatus 222 is in frame First equipment carries out first power consumption control.Wherein, the first power consumption control apparatus 222 includes any one of following or appointed multinomial:
- be used to the first task run in first equipment in the frame migrating the second equipment to other frames Device, the hereinafter referred to as (not shown) of task immigration device 2221;
- it is used to control first equipment in the frame to suspend the device for receiving new task, hereinafter referred to as pause receives new The (not shown) of task apparatus 2222.
Specifically, the first power consumption control apparatus 222 and the task immigration device 2221 included by it receive new with pause Task apparatus 2222 by the special interface of the first equipment can carry out any of the above-described to first equipment or appoint multinomial the Two power consumption controls, can also direct or through network to carry out above-mentioned second power consumption to first equipment by application-specific Control.
Herein, the first task is the second equipment for needing in equipment to migrate to other frames in each task for running Some task.Second equipment means some equipment in other frames.Task immigration device 2221 can include using The device of the first task migrated the need for it is determined that being run in first equipment, hereinafter referred to as first task determine dress Put 22211 (not shown), and for by the first task run in first equipment in the frame migrate to The device of the second equipment in other frames, the hereinafter referred to as (not shown) of first task moving apparatus 22212.In one embodiment In, according to for example randomly choosing in each task that the first task determining device 22211 can be run in first equipment Mode determine the first task.In another embodiment, first task determining device 22211 can be in first equipment Sort to select run time most long/most short task to be first according to such as run time length in each task of middle operation Task.In a preferred embodiment, each task that first task determining device 22211 will can be run in first equipment Middle CPU usage highest task is defined as the first task for needing to be migrated.It is first in another preferred embodiment Determining device 22211 of being engaged in can be by the higher task of above-mentioned CPU usage, and has such as standby (fai lover) The task of fault-tolerant ability is defined as the first task for needing to be migrated.
After first task determining device 22211 determines first task, first task moving apparatus 22212 will be described First task migrates the second equipment to other frames.In a preferred embodiment, set for each in other frames Standby, first task determining device 22211 can determine to be suitable for the second equipment that first task migration is gone first, then, then The first task that the needs are migrated moves to second equipment in other frames.Those skilled in the art should manage , herein, for determining first task and the associated description that is migrated is merely illustrative and non-limiting description, there are other in solution Various implementations are incorporated herein by reference without departing from spirit or scope of the invention.
In a preferred embodiment, the present invention is used to control the device of frame power consumption also to include being used for when appointing in frame When the current power consumption for equipment of anticipating meets the second predetermined condition, the device of the second power consumption control is carried out to the equipment, hereinafter referred to as The (not shown) of second power consumption control apparatus 23.When the current power consumption of the arbitrary equipment in frame meets as described above second pre- During fixed condition, the second power consumption control apparatus 23 can carry out the second power consumption control to the equipment.Herein, the second power consumption control apparatus The second power consumption control that 23 pairs of equipment are carried out includes any one of following or appointed multinomial:
The cpu frequency of-reduction the equipment;
The clocked memory of-reduction the equipment.
Specifically, the second power consumption control apparatus 23 can carry out above-mentioned second by the special interface of equipment to the equipment Power consumption control, can also direct or through network to carry out above-mentioned second power consumption control to the equipment by application-specific. It will be understood by those skilled in the art that herein, being merely illustrative rather than limiting for the associated description that equipment carries out the second power consumption control , there is spirit or scope of other various implementations without departing from the present invention, and be contained in by reference in qualitative description This.
It should be noted that the present invention can be carried out in the assembly of software and/or software and hardware, for example, can adopt Realized with application specific integrated circuit (ASIC), general purpose computer or any other similar hardware device.In one embodiment In, software program of the invention can realize steps described above or function by computing device.Similarly, it is of the invention Software program (including related data structure) can be stored in computer readable recording medium storing program for performing, for example, RAM memory, Magnetically or optically driver or floppy disc and similar devices.In addition, some steps or function of the present invention can employ hardware to realize, example Such as, as coordinating with processor so as to performing the circuit of each step or function.
In addition, the part of the present invention can be applied to computer program product, such as computer program instructions, when its quilt When computer is performed, by the operation of the computer, the method according to the invention and/or technical scheme can be called or provided. And the programmed instruction of the method for the present invention is called, it is possibly stored in fixed or moveable recording medium, and/or pass through Broadcast or the data flow in other signal bearing medias and be transmitted, and/or be stored according to described program instruction operation In the working storage of computer equipment.Here, including a device according to one embodiment of present invention, the device includes using In the memory and processor for execute program instructions of storage computer program instructions, wherein, when the computer program refers to When order is by the computing device, method and/or skill of the plant running based on foregoing multiple embodiments according to the present invention are triggered Art scheme.
It is obvious to a person skilled in the art that the invention is not restricted to the details of above-mentioned one exemplary embodiment, Er Qie In the case of without departing substantially from spirit or essential attributes of the invention, the present invention can be realized in other specific forms.Therefore, no matter From the point of view of which point, embodiment all should be regarded as exemplary, and be nonrestrictive, the scope of the present invention is by appended power Profit is required rather than described above is limited, it is intended that all in the implication and scope of the equivalency of claim by falling Change is included in the present invention.Any reference in claim should not be considered as to the claim involved by limitation.This Outside, it is clear that the word of " comprising " one is not excluded for other units or step, and odd number is not excluded for plural number.That is stated in device claim is multiple Device can also be realized by a device by software or hardware.The first, the second grade word is used for representing title, and not Represent any specific order.

Claims (16)

1. a kind of method for controlling frame power consumption, wherein, this method includes:
- determine the overall power consumption of frame;
- when the overall power consumption of the frame meets the first predetermined condition, power consumption control is carried out to the frame, wherein, Including:
- when the overall power consumption of the frame meets the first predetermined condition, determine to need in each equipment in the frame Any one of the first equipment of the first power consumption control is carried out, wherein, including following:
- when the overall power consumption of the frame meets the first predetermined condition, will be current in each equipment in the frame The power consumption equipment minimum less than the value of the first predetermined threshold of the equipment is defined as needing the first of the first power consumption control of progress to set It is standby;
- when the overall power consumption of the frame meets the first predetermined condition, will be current in each equipment in the frame Ratio highest equipment between power consumption and the peak power of the equipment is defined as needing the first of the first power consumption control of progress to set It is standby;
- the first power consumption control is carried out to first equipment in the frame, wherein, first power consumption control includes following Any one is appointed multinomial:
- first task run in first equipment in the frame is migrated into the second equipment to other frames;
First equipment pause in the-control frame receives new task;
Wherein, first predetermined condition includes any one of following:
The overall power consumption of-the frame is more than the second predetermined threshold of the frame;
The overall power consumption of-the frame is the 4th pre- less than what the value of the 3rd predetermined threshold of the frame was less than the frame Determine threshold value;
It is the 5th pre- that ratio between the overall power consumption of-frame and the peak power of the frame is more than the frame Determine threshold value.
2. according to the method described in claim 1, wherein, it is described determine frame overall power consumption the step of include:
- when the current power consumption of the arbitrary equipment in frame meets the second predetermined condition, determine the overall power consumption of the frame.
3. method according to claim 1 or 2, wherein, it is described determine frame overall power consumption the step of include following One:
- when the equipment in frame is whole machine cabinet server:
- the current power consumption for obtaining the whole machine cabinet server is used as the overall power consumption of the frame;
- when the equipment in frame is one or more common standard servers:
The current power consumption of each common standard server in the one or more of common standard servers of-acquisition;
- according to the current power consumption of each common standard server, determine the overall power consumption of the frame.
4. according to the method described in claim 1, wherein, first run in first equipment by the frame The step of the second equipment in task immigration to other frames, includes:
- determine the first task that is migrated the need for being run in first equipment;
- first task run in first equipment in the frame is migrated second to other frames set It is standby.
5. method according to claim 4, wherein, it is described to determine what is migrated the need for being run in first equipment The step of first task, includes:
CPU usage highest task is defined as needing what is migrated in-each task that will be run in first equipment First task.
6. the method according to any one of claim 2,4,5, wherein, in addition to:
- when the current power consumption of the arbitrary equipment in frame meets the second predetermined condition, the second power consumption control is carried out to the equipment System.
7. method according to claim 6, wherein, second power consumption control carried out to the equipment includes following Any one is appointed multinomial:
The cpu frequency of-reduction the equipment;
The clocked memory of-reduction the equipment.
8. the method according to any one of claim 1,2,4,5, wherein, second predetermined condition includes following any :
The current power consumption of-the equipment is more than the 6th predetermined threshold of the equipment;
The current power consumption of-the equipment is less than the 8th predetermined threshold of the equipment less than the value of the 7th predetermined threshold of the equipment Value;
Ratio between the current power consumption of-equipment and the peak power of the equipment is higher than the 9th predetermined threshold of the equipment Value.
9. a kind of device for being used to control frame power consumption, wherein, the device includes:
- for the device for the overall power consumption for determining frame;
- be used to, when the overall power consumption of the frame meets the first predetermined condition, power consumption control is carried out to the frame Device, wherein, including:
- be used to, when the overall power consumption of the frame meets the first predetermined condition, determine each equipment in the frame Any one of the middle device for needing to carry out the first equipment of the first power consumption control, wherein, including following:
- be used for when the overall power consumption of the frame meets the first predetermined condition, by each equipment in the frame The current power consumption equipment minimum less than the value of the first predetermined threshold of the equipment is defined as needing carrying out the of the first power consumption control The device of one equipment;
- be used for when the overall power consumption of the frame meets the first predetermined condition, by each equipment in the frame Ratio highest equipment between current power consumption and the peak power of the equipment is defined as needing carrying out the of the first power consumption control The device of one equipment;
- it is used for the device to first equipment the first power consumption control of progress in the frame, wherein, the first power consumption control System includes any one of following or appointed multinomial:
- first task run in first equipment in the frame is migrated into the second equipment to other frames;
First equipment pause in the-control frame receives new task;
Wherein, first predetermined condition includes any one of following:
The overall power consumption of-the frame is more than the second predetermined threshold of the frame;
The overall power consumption of-the frame is the 4th pre- less than what the value of the 3rd predetermined threshold of the frame was less than the frame Determine threshold value;
It is the 5th pre- that ratio between the overall power consumption of-frame and the peak power of the frame is more than the frame Determine threshold value.
10. device according to claim 9, wherein, it is described to be used to determine that the device of the overall power consumption of frame is used for:
- when the current power consumption of the arbitrary equipment in frame meets the second predetermined condition, determine the overall power consumption of the frame.
11. the device according to claim 9 or 10, wherein, it is described to be used to determine that the device of the overall power consumption of frame is used for It is any one of following:
- when the equipment in frame is whole machine cabinet server:
- the current power consumption for obtaining the whole machine cabinet server is used as the overall power consumption of the frame;
- when the equipment in frame is one or more common standard servers:
The current power consumption of each common standard server in the one or more of common standard servers of-acquisition;
- according to the current power consumption of each common standard server, determine the overall power consumption of the frame.
12. device according to claim 9, wherein, it is described to be used to run in first equipment in the frame First task migrate the device of the second equipment to other frames and include:
- for the device for the first task for determining to be migrated the need for running in first equipment;
- for the first task run in first equipment in the frame to be migrated to second to other frames The device of equipment.
13. device according to claim 12, wherein, it is described to be used to determine to carry out the need for running in first equipment The device of the first task of migration is used for:
CPU usage highest task is defined as needing to be migrated in-each task that will be run in first equipment First task.
14. the device according to any one of claim 10,12,13, wherein, in addition to:
- be used to, when the current power consumption of the arbitrary equipment in frame meets the second predetermined condition, the second work(is carried out to the equipment Consume the device of control.
15. device according to claim 14, wherein, second power consumption control carried out to the equipment include with Lower any one is appointed multinomial:
The cpu frequency of-reduction the equipment;
The clocked memory of-reduction the equipment.
16. the device according to any one of claim 9,10,12,13, wherein, second predetermined condition includes following Any one:
The current power consumption of-the equipment is more than the 6th predetermined threshold of the equipment;
The current power consumption of-the equipment is less than the 8th predetermined threshold of the equipment less than the value of the 7th predetermined threshold of the equipment Value;
Ratio between the current power consumption of-equipment and the peak power of the equipment is higher than the 9th predetermined threshold of the equipment Value.
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 CN104536554A (en) 2015-04-22
CN104536554B true 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)

Families Citing this family (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
CN113467595B (en) * 2021-09-03 2021-11-05 苏州浪潮智能科技有限公司 Four-way server power consumption management device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (2)

* 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
US7783910B2 (en) * 2007-03-30 2010-08-24 International Business Machines Corporation Method and system for associating power consumption of a server with a network address assigned to the server

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Also Published As

Publication number Publication date
CN104536554A (en) 2015-04-22

Similar Documents

Publication Publication Date Title
US7739388B2 (en) Method and system for managing data center power usage based on service commitments
CN104536554B (en) A kind of method and apparatus for being used to control frame power consumption
CN110502340A (en) A kind of resource dynamic regulation method, device, equipment and storage medium
CN109343965A (en) Resource adjusting method, device, cloud platform and server
CN105302630B (en) A kind of dynamic adjusting method and its system of virtual machine
CN103077082A (en) Method and system for distributing data center load and saving energy during virtual machine migration
CN104516475A (en) Method and apparatus for managing global chip power on multicore system on chip
CN109840180B (en) Server operation power consumption management method and device and computer readable storage medium
CN105868004B (en) Scheduling method and scheduling device of service system based on cloud computing
CN102419718A (en) Resource scheduling method
CN103631873B (en) A kind of data compression method and storage system
CN103645795A (en) Cloud computing data center energy saving method based on ANN (artificial neural network)
CN105975047A (en) Method and system for adjusting power consumption of cloud data centre
CN104168326A (en) Server load balancing method and system
US10168762B2 (en) Power management for heterogeneous computing systems
CN109324679A (en) A kind of server energy consumption control method and device
Lent Analysis of an energy proportional data center
CN101819459B (en) Heterogeneous object memory system-based power consumption control method
CN103984588B (en) Virtual machine migration method based on temperature and system thereof
CN103399791A (en) Method and device for migrating virtual machines on basis of cloud computing
CN107193649A (en) A kind of method for scheduling task and device based on NUMA system
CN116204117A (en) Data block liveness estimation and data migration method based on access behaviors
CN104572298A (en) Video cloud platform resource dispatching method and device
JP5692355B2 (en) Computer system, control system, control method and control program
CN104765572A (en) Energy-saving virtual storage server system and scheduling method

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