CN101635636A - Method and device for controlling server - Google Patents

Method and device for controlling server Download PDF

Info

Publication number
CN101635636A
CN101635636A CN200810117052A CN200810117052A CN101635636A CN 101635636 A CN101635636 A CN 101635636A CN 200810117052 A CN200810117052 A CN 200810117052A CN 200810117052 A CN200810117052 A CN 200810117052A CN 101635636 A CN101635636 A CN 101635636A
Authority
CN
China
Prior art keywords
controlled server
save mode
power save
server
rule information
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
CN200810117052A
Other languages
Chinese (zh)
Other versions
CN101635636B (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN2008101170521A priority Critical patent/CN101635636B/en
Publication of CN101635636A publication Critical patent/CN101635636A/en
Application granted granted Critical
Publication of CN101635636B publication Critical patent/CN101635636B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention provides a method and a device for controlling a server. The method comprises the following steps: acquiring information on load variation of a controlled server according to the change condition of working loads of the controlled server in a preset long period of time; setting an energy-saving condition for the controlled sever according to the information on the load variation; and when the controlled sever satisfies the energy-saving condition, setting the controlled sever in an energy-saving state corresponding to the energy-saving condition. By using the technical scheme, the settings of the energy-saving state can be performed on the server so as to achieve energy conservation of the server.

Description

A kind of method of Control Server and device
Technical field
The present invention relates to computer network, particularly relate to a kind of method and device of Control Server.
Background technology
Server is a kind of high-performance computer, as the node of network, and 80% data, information on storage, the processing network.The formation of server is similar substantially to microcomputer, comprise: processor, hard disk, internal memory, system bus etc., they are at concrete network application tailor-make, thereby server and microcomputer there are differences very big at aspects such as disposal ability, stability, reliability, fail safe, extensibility, manageabilitys.Server can be high efficiency computer, special-purpose superserver, middle-grade server even can also be large-scale computer.Server has reliability, high availability and the expandability of height usually.Because the important function of server in computer network, it needs non-stop run 24 hours every days usually.
In realizing process of the present invention, the inventor finds in 24 hours non-stop run process of server, server always is not in busy working stage, it also exists not busy stage or even stage at leisure, and prior art does not provide identified server whether to be in not busy stage or idle phase, and the server setting that will be in not busy stage or idle phase is in the Control Server method that power save mode realizes that server is energy-conservation.
Summary of the invention
Embodiments of the invention provide a kind of method and device of Control Server, so that server is carried out the setting of power save mode, and realize the energy-conservation of server.
To achieve these goals, on the one hand, provide a kind of method of Control Server, wherein, comprise the steps:
According to controlled server in predetermined long-time section, the situation of change of live load, obtain the load variations rule information of described controlled server;
According to described load variations rule information is that described controlled server is provided with energy saving condition;
When described controlled server satisfied described energy saving condition, described controlled server was set to and the corresponding power save mode of described energy saving condition.
Preferably, described method wherein, after the load variations rule information that obtains described controlled server, also comprises:
According to described load variations rule information is that described controlled server is provided with the power save mode exit criteria;
When the described controlled server that is in power save mode satisfies described power save mode exit criteria, make described controlled server withdraw from described power save mode.
Preferably, described method, wherein, the load variations rule information of described acquisition controlled server comprises:
According to controlled server in predetermined long-time section, the situation of change and/or the live load situation of change predefined according to the user, controlled server of real work load obtain described load variations rule information.
Preferably, described method, wherein, the load variations rule information of described acquisition controlled server is specially:
Obtain described load variations rule information by the energy-saving control device that is connected with described controlled server that sets in advance.
Preferably, described method, wherein,
The step that described controlled server is set to power save mode comprises:
Send first packet to described controlled server, described first packet is to cause described controlled server to enter the packet of power save mode;
The described step that makes described controlled server withdraw from described power save mode comprises:
Send second packet to described controlled server, described second packet is to cause described controlled server to withdraw from the packet of power save mode.
Preferably, described method, wherein, described load variations rule information comprises:
According to controlled server in predetermined long-time section, the situation of change of real work load, first rush hour section of the described controlled server of acquisition, first free time section, the first busy threshold value of described controlled server load and/or the first idle threshold value that described controlled server is loaded; And/or,
The live load situation of change of, controlled server predefined according to the user, the user who obtains is predefined, second rush hour section of controlled server and/or second free time section.
Preferably, described method, wherein, described second rush hour section and/or second free time section be: the rush hour section that the user sets according to festivals or holidays and/or the policy of changing one's shift to get leave later in advance and/or free time section.
Preferably, described method, wherein, described energy saving condition comprises one or more in the following condition:
That the current load of described controlled server is lower than is default, with the described power save mode corresponding second idle threshold value, the described second idle threshold value is not higher than the described first idle threshold value;
Described controlled server is current be in described first free time section or the described second free time section in;
Described controlled server is current not to be in described first rush hour section and described second rush hour section.
Preferably, described method wherein, before the controlled server that satisfies described energy saving condition enters power save mode, also comprises:
Judge whether the time span that described controlled server leaves power save mode last time reaches default time span, and in this way, then controlled server enters power save mode; Otherwise controlled server does not enter power save mode.
Preferably, described method, wherein, described power save mode exit criteria comprises one or more in the following condition:
Described controlled server when that preload is higher than is default, with the residing power save mode corresponding second busy threshold value, the described second busy threshold value is not higher than the described first busy threshold value;
Described controlled server is current to be in described first rush hour section or described second rush hour section;
Described controlled server is current be not in described first free time section and the described second free time section in;
Described controlled server receives the network demand that wakes power save mode up.
Preferably, described method, wherein, the power save mode of described different energy saving condition correspondences is identical or different.
Preferably, described method, wherein, described power save mode is: the Upper Bound Power of holding state, resting state, controlled server is not more than state, the P state under the global state G0 or the C state under the global state G0 of default performance number.
On the other hand, also provide a kind of device of Control Server, wherein, comprising:
Load variations rule information acquisition module, be used for according to controlled server in predetermined long-time section, the situation of change of live load, obtain the load variations rule information of described controlled server;
Energy saving condition is provided with module, and being used for according to described load variations rule information is that described controlled server is provided with energy saving condition;
Power save mode is provided with module, is used for when described controlled server satisfies described energy saving condition, and described controlled server is set to and the corresponding power save mode of described energy saving condition.
Preferably, described device wherein, also comprises:
The power save mode exit criteria is provided with module, and being used for according to described load variations rule information is that described controlled server is provided with the power save mode exit criteria;
Power save mode withdraws from module, is used for making described controlled server withdraw from described power save mode when the described controlled server that is in power save mode satisfies described power save mode exit criteria.
Preferably, described device, wherein,
Described power save mode is provided with module and comprises:
The first packet sending module is used for sending first packet to described controlled server when described controlled server satisfies described energy saving condition, and described first packet is to cause described controlled server to enter the packet of power save mode;
Described power save mode withdraws from module and comprises:
The second packet sending module is used for sending second packet to described controlled server when described controlled server satisfies described power save mode exit criteria, and described second packet is to cause described controlled server to withdraw from the packet of power save mode.
Preferably, described device, wherein, described load variations rule information acquisition module comprises:
First acquisition module, be used for according to controlled server in predetermined long-time section, the situation of change of real work load obtains described load variations rule information; And/or,
Second acquisition module is used for live load situation of change predefined according to the user, controlled server and obtains described load variations rule information.
Preferably, described device, wherein, described load variations rule information comprises:
Described first acquisition module obtains: first rush hour section of described controlled server, first free time section, described controlled server load the first busy threshold value and/or the first idle threshold value of described controlled server load; And/or,
Described second acquisition module obtains: second rush hour section of the predefined controlled server of user and/or second free time section.
Preferably, described device, wherein, the energy saving condition that described energy saving condition is provided with the module setting comprises one or more in the following condition:
That the current load of described controlled server is lower than is default, with the described power save mode corresponding second idle threshold value, the described second idle threshold value is not higher than the described first idle threshold value;
Described controlled server is current be in described first free time section or the described second free time section in;
Described controlled server is current not to be in described first rush hour section and described second rush hour section.
Preferably, described device, wherein, described power save mode exit criteria comprises one or more in the following condition:
Described controlled server when that preload is higher than is default, with the described power save mode corresponding second busy threshold value, the described second busy threshold value is not higher than the described first busy threshold value;
Described controlled server is current to be in described first rush hour section or described second rush hour section;
Described controlled server is current be not in described first free time section and the described second free time section in;
Described controlled server receives the network demand that wakes power save mode up.
A technical scheme in the technique scheme has following technique effect:
Be scheduled in long-time section according to controlled server, the situation of change of live load, obtain the load variations rule information of described controlled server, and according to the energy saving condition of this load variations rule information setting controlled server that obtains, can be when controlled server satisfies energy saving condition, server is set to the power save mode corresponding with the energy saving condition that is satisfied, for example, can be in free time in the load variations rule information in the section time at controlled server, controlled server is set to power save mode, thereby realized setting, and and then realized the energy-conservation of server the power save mode of server.
Another technical scheme in the technique scheme has following technique effect:
Since the load variations rule information of the controlled server that obtains can be according to controlled server in predetermined long-time section, the load variations rule of the situation of change acquisition of real work load, promptly react the Changing Pattern of controlled server real work load; Also can be that live load situation of change predefined according to the user, controlled server obtains described load variations rule information, the load variations rule information of the server of determining according to festivals or holidays or the policy of changing one's shift to get leave later as the user, make it possible to the Energy Saving Strategy that people can consider controlled server more flexibly, all sidedly, help server energy-conservation better.
Description of drawings
Fig. 1 is the schematic flow sheet of the method for one embodiment of the invention Control Server;
Fig. 2 is in the method for one embodiment of the invention Control Server, comprises the computer network schematic diagram of multiserver;
Fig. 3 is in the embodiments of the invention, an example of the load variations rule information of the controlled server of acquisition;
Fig. 4 is the schematic flow sheet of method of the Control Server of another embodiment of the present invention;
Fig. 5 is the structural representation of the device of embodiment of the invention Control Server.
Embodiment
For technical problem, technical scheme and advantage that the embodiment of the invention will be solved is clearer, be described in detail below in conjunction with the accompanying drawings and the specific embodiments.
In realizing process of the present invention, the inventor finds that coming the power-saving technology of energy efficient such as dormant technology by the power save mode that makes device be in low power operation more is to be used on desktop computer, and need on the server of non-stop run in 24 hours usually not to be applied to as yet.
Fig. 1 is the schematic flow sheet of the method for one embodiment of the invention Control Server.As Fig. 1, the method for one embodiment of the invention Control Server comprises:
Step 101, according to controlled server in predetermined long-time section, the situation of change of live load, obtain the load variations rule information of described controlled server; Exemplarily, this load variations rule information can be the busy not busy rule of controlled server, is used to react the busy not busy threshold value of section between busy period of controlled server and/or load;
Step 102 is that described controlled server is provided with energy saving condition according to described load variations rule information;
Step 103, when described controlled server satisfied described energy saving condition, described controlled server was set to and the corresponding power save mode of described energy saving condition.
The load variations rule information of this embodiment by obtaining controlled server is as busy not busy rule information, and according to the corresponding Energy Saving Strategy of load variations rule information setting, can when satisfying default energy saving condition, controlled server enter and the corresponding power save mode of energy saving condition.
Preferably, in the example of this embodiment, after the load variations rule information that obtains described controlled server, also comprise: according to described load variations rule information is that described controlled server is provided with the power save mode exit criteria; When the described controlled server that is in power save mode satisfies described power save mode exit criteria, make described controlled server withdraw from described power save mode.Thereby, for the server that is in power save mode, can be by judging whether this server satisfies default power save mode exit criteria the server that is in power save mode is returned to non-power save mode, can guarantee like this when needs server operate as normal, can guarantee the server operate as normal, as with the full power state operate as normal.
Exemplary, an example embodiment illustrated in fig. 1 can be realized by the energy-saving control device such as the Energy Saving Control server that are connected with controlled server are set.In an embodiment, obtain the load variations rule information of controlled server by energy-saving control device, then according to energy saving condition and/or power save mode exit criteria in this load variations rule information setting Energy Saving Strategy, and then judge whether controlled server satisfies energy saving condition, and when energy saving condition is satisfied in controlled service, by send first packet to controlled server, controlled server is set to power save mode, wherein, first packet is to cause described controlled server to enter the packet of power save mode; Exemplarily, this first packet includes and is used to make controlled server to enter the specific bit sequence of power save mode; And it is same, when controlled server is in power save mode, judge by energy-saving control device whether the server that is in power save mode satisfies the power save mode exit criteria, and when controlled server satisfies the power save mode exit criteria, by send second packet to controlled server, make controlled server withdraw from power save mode, wherein, second packet is to cause described controlled server to withdraw from the packet of power save mode; Exemplarily, this second packet is a wakeup packet, includes the specific bit sequence that is used to wake up controlled server.
Exemplarily, in the example of this embodiment, for the computer network that comprises multiserver computer network as shown in Figure 2, an energy-saving control device such as Energy Saving Control server can be set to be come each station server of need control is controlled, working law at each station server obtains the busy accordingly not busy rule of this server, with setting and the corresponding Energy Saving Strategy of each station server, comprise and corresponding energy saving condition of each station server and power save mode exit criteria.By the control of energy-saving control device, the controlled server in the network can be in power save mode the free time energy-conservation, and energy-saving control device normally is connected in the network always, and always be in full power state of operation.Exemplarily, the way of realization of this energy-saving control device can be an Energy Saving Control server independently, or is included in an energy-saving control module in any equipment of network.Certainly, plural Energy Saving Control server can also be set on consolidated network failure tolerant is provided.In addition, in the example of this embodiment, if the controlled server One's name is legion also can be provided with many Energy Saving Control servers and control, every Energy Saving Control server controls is the server of some wherein.
Preferably, in the example of this embodiment, the described step of obtaining controlled server load variations rule information comprises: according to controlled server in predetermined long-time section, the situation of change and/or the live load situation of change predefined according to the user, controlled server of real work load obtain described load variations rule information.The load variations rule information of promptly obtaining both can comprise the Changing Pattern of reaction controlled server real work load, can comprise that also live load situation of change predefined according to the user, controlled server obtains described load variations rule information, the load variations rule information of determining according to festivals or holidays or the policy of changing one's shift to get leave later as the user, make people can take all factors into consideration the working law and the demand of user in real work of controlled server more flexibly, all sidedly, and, help server energy-conservation better by corresponding Energy Saving Strategy is set.
Preferably, in the example of this embodiment, above-mentioned load variations rule information comprises: according to controlled server in predetermined long-time section, the situation of change of real work load, first rush hour section of the described controlled server of acquisition, first free time section, the first busy threshold value of described controlled server load and/or the first idle threshold value that described controlled server is loaded; And/or, the live load situation of change of, controlled server predefined according to the user, the user who obtains is predefined, second rush hour section of controlled server and/or second free time section.
Fig. 3 is in the embodiments of the invention, an example of the load variations rule information of the controlled server of acquisition.In this embodiment, be that working law is collected by situation of change to the nearly live load all around of controlled server, the load variations rule information weekly that draws.Among Fig. 3, transverse axis is the time; The longitudinal axis is the load of controlled server.As Fig. 3, Saturday, Sunday the controlled server live load very low; On Monday to operating time of Friday (as 9:00-18:00 in evening morning), the load of controlled server is very big, and forward and backward a period of time operating time (as 7:00-morning 9:00 early, late 18:00-21:00 in evening) live load is bigger; Other non-working time except that forward and backward a period of time operating time, the load of controlled server is very low.According to this rule, when Energy Saving Strategy is set, can consider Saturday, Sunday, and remove before and after the workaday operating time a period of time as 0:00-7:00 and 21:24:00) controlled server is set to power save mode such as resting state.
Usually, second rush hour section or second free time section be artificially to set according to actual conditions by the user.For example, above-mentioned second rush hour section and/or second free time section be: the rush hour section that the user is provided with according to festivals or holidays and/or the policy of changing one's shift to get leave later in advance and/or free time section.For example, section can be that Saturday, Sunday, other legal festivals and holidays or user think and can allow server enter the section At All Other Times of power save mode this second free time.Exemplarily, as Fig. 3, though on October 1st, 2008 was Wednesday, be working day, because be National Day this Wednesday, because company has a holiday or vacation, controlled server does not need work yet, then artificially is set to resting state this Wednesday.
Preferably, in the example of this embodiment, comprise one or more in the following condition according to the energy saving condition of described load variations rule information setting, promptly when controlled server satisfies one or more in the following condition, the controlled server setting is in and the corresponding power save mode of energy saving condition:
That the current load of controlled server is lower than is default, with the described power save mode corresponding second idle threshold value, the described second idle threshold value is not higher than the described first idle threshold value;
Controlled server is current be in described first free time section or the described second free time section in;
Controlled server is current not to be in described first rush hour section and described second rush hour section.
Exemplarily, in the above-mentioned condition, the first idle threshold value is that the live load Changing Pattern according to the controlled server reality that counts draws, and the second idle threshold value normally the user determine according to this first idle threshold value and the power save mode desiring to enter.According to the difference of concrete power save mode, with the power save mode corresponding second idle threshold value also can be corresponding different.The second idle threshold value can equal the first idle threshold value.
Exemplarily, can judge whether controlled server satisfies above-mentioned energy saving condition by energy-saving control device such as Energy Saving Control server, and controlled server is set to corresponding power save mode.
Exemplary, after judging controlled server and having satisfied above-mentioned one or more energy saving condition, controlled server also comprises before entering power save mode:
Judge whether the time span that described controlled server leaves power save mode last time reaches default time span, and in this way, controlled server enters power save mode; Otherwise controlled server does not enter power save mode.
The energy saving condition that lists above is exemplary, and the user can determine more energy saving condition as required.
The power save mode of different energy saving condition correspondences can be identical or different.For example, for above-mentioned condition, when the user satisfies different energy saving condition, the corresponding power save mode difference that enters.Exemplarily, the described power save mode of the embodiment of the invention can be: the Upper Bound Power of holding state, resting state or controlled server is not more than the state of default performance number; Or, advanced configuration and power-management interface (ACPI, Advanced Configuration and Power Interface) the undefined various power save modes of standard, as:
Global state (G-States, Global system states) is when being the G0 state, and the power save mode of realizing by the power consumption that reduces peripheral hardware, CPU is as certain C state or P state; Wherein, certain C state is certain cpu power state (C-States, CPU Power States); As can being that the C1 state is that cpu power suspended state, C2 state are that cpu power stop grant state, C3 state are that cpu power deep sleep, C4 state are more deep sleep of cpu power; Wherein, when being in the C1 state, wakeup time is fast, can save 70% CPU power consumption; When being in the C2 state, processor clock frequency and I/O buffering are stopped, and can save 70% CPU and platform energy consumption; When being in the C3 state, bus frequency and PLL are all locked, can save 70% CPU power consumption, but platform power consumption is following bigger than C2 state; When being in the C4 state, can save 98% CPU maximum power dissipation; Wherein, certain P state is certain CPU/ equipment performance state (P-States, Performance States); As being P1, P2 ... until the Pn state, power consumption minimum during the Pn state wherein;
Perhaps, the sleep state of power save mode in can global state, promptly the G1 state can't run application under the G1 state.Computer is " cutting out " state, and power consumption is very little, may be reduced to several watts; And, also can be divided into a plurality of ranks of S1 to Sn according to the depth of sleep; Perhaps,
Perhaps, the soft-off state of power save mode in can global state, promptly the G2 state under the G2 state, can not run application and operating system, except main power supply power supply unit, can close whole system basically, and power consumption approximates zero.
Certainly, there are diversified power save mode and energy saver mode in the power management of prior art, do not give unnecessary details one by one at this, the user can be provided with suitable Energy Saving Strategy as required, energy saving condition is set in Energy Saving Strategy to be reached and the corresponding power save mode of energy saving condition, as enter the short power save mode of wakeup time when satisfying some condition, can enter wakeup time length when satisfying some condition but the more power save mode of saving power consumption, and when controlled server satisfies predetermined energy saving condition, make controlled server enter corresponding power save mode.The compound mode of energy saving condition and power save mode also has a variety of, does not repeat them here.
Preferably, in the example of this embodiment, comprise one or more in the following condition according to the power save mode exit criteria of load variations rule information setting, when the controlled server that is in power save mode satisfied one or more in the following condition, described controlled server withdrawed from power save mode:
Controlled server when that preload is higher than is default, with the residing power save mode corresponding second busy threshold value, the described second busy threshold value is not higher than the described first busy threshold value;
Controlled server is current to be in described first rush hour section or described second rush hour section;
Controlled server is current be not in described first free time section and the described second free time section in;
Controlled server receives the network demand that wakes power save mode up.
Exemplarily, in the above-mentioned condition, the first busy threshold value is that the real work load Changing Pattern according to the controlled server that counts draws, and the second busy threshold value normally the user power save mode that breaks away from according to this first busy threshold value and desire determine.The difference of the power save mode that breaks away from according to concrete desire, with the residing power save mode corresponding second busy threshold value also can be corresponding different.The second busy threshold value can equal the first busy threshold value.
Fig. 4 is the schematic flow sheet of method of the Control Server of another embodiment of the present invention.Among this embodiment, the Energy Saving Strategy that sets in advance comprises:
When controlled server satisfies condition 1 the time, make controlled server be in default power save mode;
When the controlled server that is in power save mode satisfies condition 2 the time, make controlled server withdraw from power save mode.Wherein:
Condition 1 is:
Monitor data has reached anticipated number; And,
According to the rule of monitor data in the past, now arrived default first free time section; And,
Current artificial second rush hour section that is provided with of user that do not belong to; And,
Current system loading is less than the idle threshold value of default power save mode; And,
For the controlled server that has just left under a certain power save mode, its time span of leaving has reached default time span.
Condition 2 is:
The network demand that wakes up is arranged; Perhaps,
Reached first rush hour section of monitor data in the past; Perhaps,
Reached second rush hour section of artificial setting; Perhaps,
The load of system is greater than the busy threshold value of presetting power save mode.
As Fig. 4, the method for this embodiment comprises the steps:
Step 401 is judged the current artificial free time section that is provided with of user that whether is in, promptly second free time section; In this way, execution in step 403 then; Otherwise, execution in step 402;
Step 402 judges whether controlled server satisfies above-mentioned condition 1; In this way, execution in step 403 then; Otherwise, continue the monitoring controlled server, change execution in step 401 over to;
Step 403 sends first packet such as dormant data bag to controlled server, and controlled server is set to power save mode;
Step 404, monitoring is in the controlled server of power save mode, judges whether the controlled server that is in power save mode satisfies above-mentioned condition 2; In this way, execution in step 405 then; Otherwise, continue the monitoring controlled server and whether satisfy above-mentioned condition 2;
Step 405 sends second packet such as wakeup packet to controlled server, controlled server is broken away from promptly withdraw from power save mode; Then, continue controlled server is monitored, change step 401 over to.
One of ordinary skill in the art will appreciate that, realize that all or part of step in the method for the above-mentioned fact is to instruct relevant hardware to finish by program, described program can be stored in the storage medium that a computer be can read, and this program comprises the steps: when carrying out
According to controlled server in predetermined long-time section, the situation of change of live load, obtain the load variations rule information of described controlled server;
According to described load variations rule information is that described controlled server is provided with energy saving condition;
When described controlled server satisfied described energy saving condition, described controlled server was set to and the corresponding power save mode of described energy saving condition.
Above-mentioned storage medium is as ROM/RAM, disk, CD etc.
On the other hand, the embodiment of the invention also discloses a kind of device of Control Server.Fig. 5 is the structural representation of the device of the embodiment of the invention.As Fig. 5, this device 500 comprises: load variations rule information acquisition module 501, be used for according to controlled server in predetermined long-time section, the situation of change of live load, obtain the load variations rule information of controlled server; Energy saving condition is provided with module 502, and being used for according to described load variations rule information is that described controlled server is provided with energy saving condition; Power save mode is provided with module 503, is used for when described controlled server satisfies described energy saving condition, and described controlled server is set to and the corresponding power save mode of described energy saving condition.
Preferably, the device of this embodiment also comprises: the power save mode exit criteria is provided with module, and being used for according to described load variations rule information is that described controlled server is provided with the power save mode exit criteria; Power save mode withdraws from module, is used for satisfying described power save mode exit criteria at the controlled server that is in power save mode, makes described controlled server withdraw from power save mode.
Preferably, in the device of this embodiment, power save mode is provided with module and comprises: the first packet sending module, be used for when described controlled server satisfies described energy saving condition, send first packet to described controlled server, described first packet is to cause described controlled server to enter the packet of power save mode;
Described power save mode withdraws from module and comprises: the second packet sending module, be used for when described controlled server satisfies described power save mode and breaks away from condition, send second packet to described controlled server, described second packet is to cause described controlled server to withdraw from the packet of power save mode.
Preferably, in the device of this embodiment, described load variations rule information acquisition module comprises: first acquisition module, be used for according to controlled server in predetermined long-time section, the situation of change of real work load obtains described load variations rule information; And/or second acquisition module is used for live load situation of change predefined according to the user, controlled server and obtains described load variations rule information.
Preferably, in the device of this embodiment, described load variations rule information comprises: described first acquisition module obtains: first rush hour section of described controlled server, first free time section, described controlled server load the first busy threshold value and/or the first idle threshold value of described controlled server load; And/or described second acquisition module obtains: second rush hour section of the predefined controlled server of user and/or second free time section.
Preferably, in the device of this embodiment, the energy saving condition that described energy saving condition is provided with the module setting comprises one or more in the following condition: the current load of described controlled server be lower than default, with the described power save mode corresponding second idle threshold value, the described second idle threshold value is not higher than the described first idle threshold value; Described controlled server is current be in described first free time section or the described second free time section in; Described controlled server is current not to be in described first rush hour section and described second rush hour section.
Preferably, in the device of this embodiment, the power save mode exit criteria that described power save mode exit criteria is provided with the module setting comprises one or more in the following condition: described controlled server when that preload is higher than is default, with the described power save mode corresponding second busy threshold value, the described second busy threshold value is not higher than the described first busy threshold value; Described controlled server is current to be in described first rush hour section or described second rush hour section; Described controlled server is current be not in described first free time section and the described second free time section in; Described controlled server receives the network demand that wakes power save mode up.
The above is a preferred implementation of the present invention; should be pointed out that for those skilled in the art, under the prerequisite that does not break away from the described principle of the embodiment of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.

Claims (19)

1. the method for a Control Server is characterized in that, comprises the steps:
According to controlled server in predetermined long-time section, the situation of change of live load, obtain the load variations rule information of described controlled server;
According to described load variations rule information is that described controlled server is provided with energy saving condition;
When described controlled server satisfied described energy saving condition, described controlled server was set to and the corresponding power save mode of described energy saving condition.
2. method according to claim 1 is characterized in that, after the load variations rule information that obtains described controlled server, also comprises:
According to described load variations rule information is that described controlled server is provided with the power save mode exit criteria;
When the described controlled server that is in power save mode satisfies described power save mode exit criteria, make described controlled server withdraw from described power save mode.
3. method according to claim 2 is characterized in that, the load variations rule information of described acquisition controlled server comprises:
According to controlled server in predetermined long-time section, the situation of change and/or the live load situation of change predefined according to the user, controlled server of real work load obtain described load variations rule information.
4. method according to claim 3 is characterized in that, the load variations rule information of described acquisition controlled server is specially:
Obtain described load variations rule information by the energy-saving control device that is connected with described controlled server that sets in advance.
5. method according to claim 2 is characterized in that,
The step that described controlled server is set to power save mode comprises:
Send first packet to described controlled server, described first packet is to cause described controlled server to enter the packet of power save mode;
The described step that makes described controlled server withdraw from described power save mode comprises:
Send second packet to described controlled server, described second packet is to cause described controlled server to withdraw from the packet of power save mode.
6. method according to claim 3 is characterized in that, described load variations rule information comprises:
According to controlled server in predetermined long-time section, the situation of change of real work load, first rush hour section of the described controlled server of acquisition, first free time section, the first busy threshold value of described controlled server load and/or the first idle threshold value that described controlled server is loaded; And/or,
The live load situation of change of, controlled server predefined according to the user, the user who obtains is predefined, second rush hour section of controlled server and/or second free time section.
7. method according to claim 6 is characterized in that, described second rush hour section and/or second free time section be: the rush hour section that the user sets according to festivals or holidays and/or the policy of changing one's shift to get leave later in advance and/or free time section.
8. method according to claim 6 is characterized in that, described energy saving condition comprises one or more in the following condition:
That the current load of described controlled server is lower than is default, with the described power save mode corresponding second idle threshold value, the described second idle threshold value is not higher than the described first idle threshold value;
Described controlled server is current be in described first free time section or the described second free time section in;
Described controlled server is current not to be in described first rush hour section and described second rush hour section.
9. method according to claim 8 is characterized in that, before the controlled server that satisfies described energy saving condition enters power save mode, also comprises:
Judge whether the time span that described controlled server leaves power save mode last time reaches default time span, and in this way, then controlled server enters power save mode; Otherwise controlled server does not enter power save mode.
10. according to claim 6 or 8 described methods, it is characterized in that described power save mode exit criteria comprises one or more in the following condition:
Described controlled server when that preload is higher than is default, with the residing power save mode corresponding second busy threshold value, the described second busy threshold value is not higher than the described first busy threshold value;
Described controlled server is current to be in described first rush hour section or described second rush hour section;
Described controlled server is current be not in described first free time section and the described second free time section in;
Described controlled server receives the network demand that wakes power save mode up.
11. method according to claim 1 is characterized in that, the power save mode of described different energy saving condition correspondences is identical or different.
12. method according to claim 11, it is characterized in that described power save mode is: the Upper Bound Power of holding state, resting state, controlled server is not more than state, the P state under the global state G0 or the C state under the global state G0 of default performance number.
13. the device of a Control Server is characterized in that, comprising:
Load variations rule information acquisition module, be used for according to controlled server in predetermined long-time section, the situation of change of live load, obtain the load variations rule information of described controlled server;
Energy saving condition is provided with module, and being used for according to described load variations rule information is that described controlled server is provided with energy saving condition;
Power save mode is provided with module, is used for when described controlled server satisfies described energy saving condition, and described controlled server is set to and the corresponding power save mode of described energy saving condition.
14. device according to claim 13 is characterized in that, also comprises:
The power save mode exit criteria is provided with module, and being used for according to described load variations rule information is that described controlled server is provided with the power save mode exit criteria;
Power save mode withdraws from module, is used for making described controlled server withdraw from described power save mode when the described controlled server that is in power save mode satisfies described power save mode exit criteria.
15. device according to claim 14 is characterized in that,
Described power save mode is provided with module and comprises:
The first packet sending module is used for sending first packet to described controlled server when described controlled server satisfies described energy saving condition, and described first packet is to cause described controlled server to enter the packet of power save mode;
Described power save mode withdraws from module and comprises:
The second packet sending module is used for sending second packet to described controlled server when described controlled server satisfies described power save mode exit criteria, and described second packet is to cause described controlled server to withdraw from the packet of power save mode.
16. device according to claim 14 is characterized in that, described load variations rule information acquisition module comprises:
First acquisition module, be used for according to controlled server in predetermined long-time section, the situation of change of real work load obtains described load variations rule information; And/or,
Second acquisition module is used for live load situation of change predefined according to the user, controlled server and obtains described load variations rule information.
17. device according to claim 16 is characterized in that, described load variations rule information comprises:
Described first acquisition module obtains: first rush hour section of described controlled server, first free time section, described controlled server load the first busy threshold value and/or the first idle threshold value of described controlled server load; And/or,
Described second acquisition module obtains: second rush hour section of the predefined controlled server of user and/or second free time section.
18. device according to claim 17 is characterized in that, the energy saving condition that described energy saving condition is provided with the module setting comprises one or more in the following condition:
That the current load of described controlled server is lower than is default, with the described power save mode corresponding second idle threshold value, the described second idle threshold value is not higher than the described first idle threshold value;
Described controlled server is current be in described first free time section or the described second free time section in;
Described controlled server is current not to be in described first rush hour section and described second rush hour section.
19., it is characterized in that described power save mode exit criteria comprises one or more in the following condition according to claim 17 or 18 described devices:
Described controlled server when that preload is higher than is default, with the described power save mode corresponding second busy threshold value, the described second busy threshold value is not higher than the described first busy threshold value;
Described controlled server is current to be in described first rush hour section or described second rush hour section;
Described controlled server is current be not in described first free time section and the described second free time section in;
Described controlled server receives the network demand that wakes power save mode up.
CN2008101170521A 2008-07-23 2008-07-23 Method and device for controlling server Active CN101635636B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2008101170521A CN101635636B (en) 2008-07-23 2008-07-23 Method and device for controlling server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2008101170521A CN101635636B (en) 2008-07-23 2008-07-23 Method and device for controlling server

Publications (2)

Publication Number Publication Date
CN101635636A true CN101635636A (en) 2010-01-27
CN101635636B CN101635636B (en) 2012-06-06

Family

ID=41594705

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2008101170521A Active CN101635636B (en) 2008-07-23 2008-07-23 Method and device for controlling server

Country Status (1)

Country Link
CN (1) CN101635636B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103596045A (en) * 2012-08-14 2014-02-19 上海海德数据科技有限公司 An energy-saving control method for a video code stream playing terminal
CN107810488A (en) * 2017-08-11 2018-03-16 深圳前海达闼云端智能科技有限公司 A kind of method of state management of virtual machine, device and intelligent terminal
CN110703900A (en) * 2019-09-23 2020-01-17 苏州浪潮智能科技有限公司 Power control method and device for cloud computing environment

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6728646B2 (en) * 1998-02-23 2004-04-27 Enerwise Global Technologies, Inc. Energy information system and sub-measurement board for use therewith
CN1352422A (en) * 2000-11-15 2002-06-05 熊文 Safe automatic speed regualtion computer system and method
CN1273894C (en) * 2003-06-30 2006-09-06 英业达股份有限公司 Managerial approach and system for operating efficiency of blade type server

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103596045A (en) * 2012-08-14 2014-02-19 上海海德数据科技有限公司 An energy-saving control method for a video code stream playing terminal
CN103596045B (en) * 2012-08-14 2017-03-15 吴飞 A kind of energy-saving control method for video code flow playing terminal equipment
CN107810488A (en) * 2017-08-11 2018-03-16 深圳前海达闼云端智能科技有限公司 A kind of method of state management of virtual machine, device and intelligent terminal
CN110703900A (en) * 2019-09-23 2020-01-17 苏州浪潮智能科技有限公司 Power control method and device for cloud computing environment

Also Published As

Publication number Publication date
CN101635636B (en) 2012-06-06

Similar Documents

Publication Publication Date Title
US7017061B2 (en) Method and system for dynamically adjusting power consumption of an information handling system
CN101403945B (en) Storage system and its energy-saving method
US7337333B2 (en) System and method for strategic power supply sequencing in a computer system with multiple processing resources and multiple power supplies
KR100968202B1 (en) Cluster System For Reducing Consumption Power And Power Source Management Method Thereof
US8473768B2 (en) Power control apparatus and method for cluster system
CN102955549B (en) The method for managing power supply of a kind of multi-core CPU, system and CPU
US20060005058A1 (en) Portable communication device with multi-tiered power save operation
CN111625080B (en) Server energy saving method and device, electronic equipment and storage medium
CN101635650B (en) Method and equipment for managing power saving mode
CN105868004B (en) Scheduling method and scheduling device of service system based on cloud computing
CN102725997A (en) Method and device for realizing low power consumption of data switching equipment, and data switching equipment
CN109857239B (en) Storage control method and device
CN101772140A (en) Self-adaption energy saving method and business system having self-adaption energy saving function
US20080219083A1 (en) Semiconductor memory device and power control method thereof
WO2018112750A1 (en) Micro-energy collection-based power management method and device, and micro-energy supply device
CN103108039A (en) Service quality guarantee method in low-energy cluster environment
CN101635636B (en) Method and device for controlling server
CN105549723A (en) Electricity saving control method and device of server, and energy-saving control device of electronic equipment
CN107341091A (en) Distributed memory system power consumption management method and device
CN101441508A (en) Control method of equipment operation mode, equipment and system
CN101414212A (en) Method for performing booking work
CN111966208A (en) Method and device for reducing power consumption of server
JP2022505916A (en) Power sleep method, sleep determination method, and electronic devices
CN102681650B (en) The storage system of a kind of Energy control power-economizing method and correspondence thereof
CN114327023B (en) Energy saving method, system, computer medium and electronic equipment of Kubernetes cluster

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant