Summary of the invention
The present invention provides the management method and the system in a kind of device resource pond, and how rationally the technical problem that solve is, efficiently the large-scale equipment resource pool is carried out managing power consumption.
For solving the problems of the technologies described above, the invention provides following technical scheme:
The management method in a kind of device resource pond, said device resource pond are that a plurality of equipment provide multiple resource, and wherein said method comprises:
Add up the occupied information of each equipment to various resources;
According to the occupied information that obtains, obtain the minimum value of interior each equipment of same time period to resource occupation amount of the same race;
To the minimum value of resource occupation amount of the same race, various resources required during to each equipment operation are distributed according to each equipment in the same time period.
Preferably, said method also has following characteristics: to the minimum value of resource occupation amount of the same race, various resources required during to each equipment operation are distributed, and comprising according to each equipment in the same time period:
Be each equipment disposition pairing priority when taking resource of the same race;
When receiving a plurality of whens request of taking of treating operation equipment to resource of the same race; According to all treating the occupancy minimum value of operation equipment, obtain this kind resource in the said device resource pond and satisfying said free time amount after all waiting to move hold facility amount minimum value this kind resource;
Pairing priority when all waiting to move this kind of hold facility resource is distributed to the operation equipment of treating with the free time amount of this kind resource, is resource that this equipment provided with distributing the resulting resource of idle amount each equipment of back as this device resource pond.
Preferably, said method also has following characteristics: the free time amount of this kind resource is distributed to treated operation equipment, comprising:
Obtain and treat that the optimal values of operation equipment to this kind resource occupation, wherein said optimal values are that this equipment performance change amplitude in this time period is maximum and take the minimum numerical value of this kind resource quantity;
According to treating the optimal values of operation equipment, the free time amount of this kind resource is distributed to the operation equipment of treating to this kind resource occupation.
Preferably, said method also has following characteristics: said optimal values is obtained through following mode, comprising:
In this time period, increase the sendout of this kind resource, performance information and the changes of properties information of recording equipment under different numerical value for equipment;
According to said performance information and changes of properties information, obtain said optimal values.
The management system in a kind of device resource pond, said device resource pond are that a plurality of equipment provide multiple resource, and wherein said system comprises:
Statistic device is used to add up the occupied information of each equipment to various resources;
Deriving means links to each other with said statistic device, is used for according to the occupied information that obtains, and obtains the minimum value of interior each equipment of same time period to resource occupation amount of the same race;
Distributor links to each other with said deriving means, is used for according to each equipment in the same time period the minimum value of resource occupation amount of the same race, and various resources required during to each equipment operation are distributed.
Preferably, said system also has following characteristics: said distributor comprises:
Configuration module is used to each equipment disposition pairing priority when taking resource of the same race;
Acquisition module; Link to each other with said configuration module; Be used for when receiving a plurality of whens request of taking of treating operation equipment resource of the same race; According to all treating the occupancy minimum value of operation equipment, obtain this kind resource in the said device resource pond and satisfying said free time amount after all waiting to move hold facility amount minimum value this kind resource;
Distribution module; Link to each other with said acquisition module; Be used for pairing priority when all waiting to move this kind of hold facility resource; The free time amount of this kind resource is distributed to the operation equipment of treating, is the resource that this equipment provided with distributing the resulting resource of idle amount each equipment of back as this device resource pond.
Preferably, said system also has following characteristics: said distribution module comprises:
Acquiring unit is used to obtain and treats that the optimal values of operation equipment to this kind resource occupation, wherein said optimal values are that this equipment performance change amplitude in this time period is maximum and take the minimum numerical value of this kind resource quantity;
Allocation units are used for according to treating the optimal values of operation equipment to this kind resource occupation the free time amount of this kind resource being distributed to the operation equipment of treating.
Preferably, said system also has following characteristics: the optimal values that said acquiring unit obtained is obtained through following mode, comprising:
In this time period, increase the sendout of this kind resource, performance information and the changes of properties information of recording equipment under different numerical value for equipment;
According to said performance information and changes of properties information, obtain said optimal values.
Embodiment provided by the invention; Broken the traditional method that can only carry out managing power consumption to the individual equipment resource; Parameters such as the task workload accounting through each device resource in the analytical equipment resource pool, performance situation, service time; Realization distributes, manages the energy consumption of each device resource in the device resource pond, accomplishes the managing power consumption to the entire equipment resource pool, and then improves the efficient of entire equipment resource pool managing power consumption and the purpose of realization energy-conserving and environment-protective.
Embodiment
For making the object of the invention, technical scheme and advantage clearer, will combine accompanying drawing and specific embodiment that the present invention is made further detailed description below.Need to prove that under the situation of not conflicting, embodiment among the application and the characteristic among the embodiment be combination in any each other.
Fig. 1 is the schematic flow sheet of the management method embodiment in device resource provided by the invention pond.Among the method embodiment shown in Figure 1, said device resource pond is that a plurality of equipment provide multiple resource, and wherein said method comprises:
Step 101, add up the occupied information of each equipment to various resources;
Said resource is processor resource, memory source and bandwidth resources etc.
Different with the required resource of different application in the statistics individual equipment in the prior art, statistics is this equipment integral to the conditions of demand of resource separately here.Specifically, the various device resources in the resource pool is analyzed, series of parameters such as the task workload accounting through obtaining each device resource, performance, life-span service time analyzes the energy consumption accounting of each device resource in the device resource pond.
The occupied information that step 102, basis obtain, each equipment is to the minimum value of resource occupation amount of the same race in the same time period;
Wherein, how many divisions of time period can divide according to the device processes task.
According to occupied information, be condition with the temporal information, occupied information is classified, carry out secondary classification according to resource again, can draw the minimum value of each equipment occupancy when resource occupation of the same race.
Step 103, according to each equipment in the same time period to the minimum value of resource occupation amount of the same race, various resources required during to each equipment operation are distributed.
Needed only to each devices allocation to be moved the minimum value of resource requirement, just can guarantee that the application on this equipment can normally move, thereby this equipment just can the outside operation of normal response.
Preferably, can bring into play best disposal ability in order to make equipment component, this equipment just need obtain more resources, therefore proposes following improvement means, specifically comprises:
Be each equipment disposition pairing priority when taking resource of the same race;
When receiving a plurality of whens request of taking of treating operation equipment to resource of the same race; According to the minimum value of treating that all operation equipment is required to this kind resource, obtain this kind resource in the said device resource pond and satisfying said free time amount after all treating the required minimum value of operation equipment;
Pairing priority when all waiting to move this kind of hold facility resource is distributed to the operation equipment of treating with the free time amount of this kind resource, is resource that this equipment provided with distributing the resulting resource of idle amount each equipment of back as this device resource pond.
Need to prove, can normally move in this time period, the time for this kind of devices allocation resource to be moved in order to guarantee this equipment; At first to satisfy and respectively treat of the minimum requirements of operation equipment, also have under the remaining situation, according to the take priority of each equipment this resource in this kind resource to this kind resource; The free time amount of this resource is distributed again; Thereby make the resource of this type at utmost used, guaranteed the maximum use of resource on the one hand, on the other hand by equipment; After equipment obtained sufficient resources, disposal ability obtained maximum performance.
The equipment of considering not is to take more resources, and its disposal ability is big more, specifically; If it is very few to get access to this resource exactly, often can not give play to best disposal ability, it is too much to get access to this resource; The amplitude that the device processes ability improves not is very big or can change, its essence is for certain resource, when the resource that gets access to is in some specific intervals; This equipment can have best disposal ability; Therefore through experiment, in this time period, be the sendout of this kind of equipment increase resource, the performance information and the changes of properties information of recording equipment under different numerical value; According to said performance information and changes of properties information, obtain said optimal values, wherein said optimal values is that this equipment performance change amplitude in this time period is maximum and take the minimum numerical value of this kind resource quantity.
And then free time of this kind resource amount is being distributed to when waiting to move equipment; Can obtain and treat the optimal values of operation equipment this kind resource occupation; Again according to treating the optimal values of operation equipment to this kind resource occupation; The free time amount of this kind resource is distributed to the operation equipment of treating, thereby the optimum that guarantees resource uses.
Fig. 2 is the structural representation of the management system embodiment in device resource provided by the invention pond.In conjunction with method shown in Figure 1, said device resource pond is that a plurality of equipment provide multiple resource, and wherein said system comprises:
Statistic device 201 is used to add up the occupied information of each equipment to various resources;
Deriving means 202 links to each other with said statistic device 201, is used for according to the occupied information that obtains, and obtains the minimum value of interior each equipment of same time period to resource occupation amount of the same race;
Distributor 203 links to each other with said deriving means 202, is used for according to each equipment in the same time period the minimum value of resource occupation amount of the same race, and various resources required during to each equipment operation are distributed.
Preferably, said distributor 203 comprises:
Configuration module is used to each equipment disposition pairing priority when taking resource of the same race;
Acquisition module; Link to each other with said configuration module; Be used for when receiving a plurality of whens request of taking of treating operation equipment resource of the same race; According to all treating the occupancy minimum value of operation equipment, obtain this kind resource in the said device resource pond and satisfying said free time amount after all waiting to move hold facility amount minimum value this kind resource;
Distribution module; Link to each other with said acquisition module; Be used for pairing priority when all waiting to move this kind of hold facility resource; The free time amount of this kind resource is distributed to the operation equipment of treating, is the resource that this equipment provided with distributing the resulting resource of idle amount each equipment of back as this device resource pond.
Preferably, said distribution module comprises:
Acquiring unit is used to obtain and treats that the optimal values of operation equipment to this kind resource occupation, wherein said optimal values are that this equipment performance change amplitude in this time period is maximum and take the minimum numerical value of this kind resource quantity;
Allocation units are used for according to treating the optimal values of operation equipment to this kind resource occupation the free time amount of this kind resource being distributed to the operation equipment of treating.
Wherein, the optimal values that said acquiring unit obtained is obtained through following mode, comprising:
In this time period, increase the sendout of this kind resource, performance information and the changes of properties information of recording equipment under different numerical value for equipment;
According to said performance information and changes of properties information, obtain said optimal values.
Embodiment provided by the invention; Broken the traditional method that can only carry out managing power consumption to the individual equipment resource; Parameters such as the task workload accounting through each device resource in the analytical equipment resource pool, performance situation, service time; Realization distributes, manages the energy consumption of each device resource in the device resource pond, accomplishes the managing power consumption to the entire equipment resource pool, and then improves the efficient of entire equipment resource pool managing power consumption and the purpose of realization energy-conserving and environment-protective.
The above; Be merely embodiment of the present invention, but protection scope of the present invention is not limited thereto, any technical staff who is familiar with the present technique field is in the technical scope that the present invention discloses; Can expect easily changing or replacement, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the described protection range of claim.