Summary of the invention
The invention provides a kind of management method and system of facility resource pool, how rationally the technical problem that solve is, carries out managing power consumption to large-scale equipment resource pool efficiently.
For solving the problems of the technologies described above, the invention provides following technical scheme:
A management method for facility resource pool, described facility resource pool provides multiple resources for multiple equipment, and wherein said method comprises:
Add up the occupied information of each equipment to various resource;
According to the occupied information obtained, to obtain in the same time period each equipment to the minimum of a value of resource occupation amount of the same race;
According to the minimum of a value of equipment each in the same time period to resource occupation amount of the same race, when running each equipment, required various resources are distributed.
Preferably, described method also has following features: according to the minimum of a value of equipment each in the same time period to resource occupation amount of the same race, and when running each equipment, required various resources are distributed, and comprising:
For the priority that each Equipments Setting is corresponding when taking resource of the same race;
When receive multiple until operational outfit to resource of the same race take request time, according to all treating the occupancy minimum of a value of operational outfit to this kind of resource, obtaining this kind of resource in described facility resource pool and meeting described free quantity all after running hold facility amount minimum of a value;
According to whole corresponding priority in time running hold facility this kind of resource, the free quantity of this kind of resource is distributed to and treats operational outfit, using the resource that the resource that each equipment after distributing free quantity obtains provides for this equipment as this facility resource pool.
Preferably, described method also has following features: the free quantity of this kind of resource distributed to and treat operational outfit, comprising:
Obtain and treat the optimal values of operational outfit to this kind of resource occupation, wherein said optimal values is that this equipment performance change amplitude within this time period is maximum and take the minimum numerical value of this kind of resource quantity;
According to treating the optimal values of operational outfit to this kind of resource occupation, the free quantity of this kind of resource being distributed to and treats operational outfit.
Preferably, described method also has following features: described optimal values obtains in the following way, comprising:
For equipment increases the sendout of this kind of resource within this time period, the performance information of recording equipment under different numerical value and the change information of performance;
According to the change information of described performance information and performance, obtain described optimal values.
A management system for facility resource pool, described facility resource pool provides multiple resources for multiple equipment, and wherein said system comprises:
Statistic device, for adding up the occupied information of each equipment to various resource;
Acquisition device, is connected with described statistic device, for according to the occupied information that obtains, to obtain in the same time period each equipment to the minimum of a value of resource occupation amount of the same race;
Distributor, is connected with described acquisition device, for according to the minimum of a value of equipment each in the same time period to resource occupation amount of the same race, distributes required various resources during each equipment operation.
Preferably, described system also has following features: described distributor comprises:
Configuration module, for being each Equipments Setting priority corresponding when taking resource of the same race;
Acquisition module, be connected with described configuration module, for when receive multiple until operational outfit to resource of the same race take request time, according to all treating the occupancy minimum of a value of operational outfit to this kind of resource, obtaining this kind of resource in described facility resource pool and meeting described free quantity all after running hold facility amount minimum of a value;
Distribution module, be connected with described acquisition module, for the priority that basis is all corresponding in time running hold facility this kind of resource, the free quantity of this kind of resource is distributed to and treats operational outfit, using the resource that the resource that each equipment after distributing free quantity obtains provides for this equipment as this facility resource pool.
Preferably, described system also has following features: described distribution module comprises:
Acquiring unit, treats the optimal values of operational outfit to this kind of resource occupation for obtaining, and wherein said optimal values is that this equipment performance change amplitude within this time period is maximum and take the minimum numerical value of this kind of resource quantity;
Allocation units, for according to treating the optimal values of operational outfit to this kind of resource occupation, distributing to the free quantity of this kind of resource and treating operational outfit.
Preferably, described system also has following features: the optimal values that described acquiring unit obtains obtains in the following way, comprising:
For equipment increases the sendout of this kind of resource within this time period, the performance information of recording equipment under different numerical value and the change information of performance;
According to the change information of described performance information and performance, obtain described optimal values.
Embodiment provided by the invention, break traditional method can only carrying out managing power consumption to individual equipment resource, by the parameter such as task workload accounting, behavior pattern, service time of device resource each in analytical equipment resource pool, realize the Energy dissipation to device resource each in facility resource pool, management, accomplish the managing power consumption to whole facility resource pool, and then raising is to the efficiency of whole facility resource pool managing power consumption and the object realizing energy-conserving and environment-protective.
Detailed description of the invention
For making the object, technical solutions and advantages of the present invention clearly, the present invention is described in further detail below in conjunction with the accompanying drawings and the specific embodiments.It should be noted that, when not conflicting, the embodiment in the application and the feature in embodiment can be combined mutually.
Fig. 1 is the schematic flow sheet of the management method embodiment of facility resource pool provided by the invention.In embodiment of the method shown in Fig. 1, described facility resource pool provides multiple resources for multiple equipment, and wherein said method comprises:
Step 101, add up the occupied information of each equipment to various resource;
Described resource is processor resource, memory source and bandwidth resources etc.
Different from the resource of adding up in prior art in individual equipment needed for different application, what add up is the conditions of demand of this Whole Equipment to respective resource herein.Specifically, the various device resources in resource pool being analyzed, by obtaining the series of parameters such as task workload accounting, performance, life-span service time of each device resource, analyzing the energy consumption accounting of each device resource in facility resource pool.
The occupied information that step 102, basis obtain, in the same time period, each equipment is to the minimum of a value of resource occupation amount of the same race;
Wherein, how many divisions of time period can divide according to device processes task.
According to occupied information, take temporal information as condition, occupied information is classified, then carry out secondary classification according to resource, the minimum of a value of each equipment occupancy when resource occupation of the same race can be drawn.
Step 103, according to the minimum of a value of equipment each in the same time period to resource occupation amount of the same race, when running each equipment, required various resources are distributed.
As long as be assigned with the minimum of a value of resource requirement for each equipment to be run, just can ensure that the application on this equipment can normally run, thus this equipment just can the operation of normal response outside.
Preferably, in order to enable equipment component play best disposal ability, this equipment just needs to obtain more resources, therefore proposes to improve means as follows, specifically comprises:
For the priority that each Equipments Setting is corresponding when taking resource of the same race;
When receive multiple until operational outfit to resource of the same race take request time, according to all treating that operational outfit is to the minimum of a value needed for this kind of resource, obtaining this kind of resource in described facility resource pool and meeting described free quantity all after the minimum of a value needed for operational outfit;
According to whole corresponding priority in time running hold facility this kind of resource, the free quantity of this kind of resource is distributed to and treats operational outfit, using the resource that the resource that each equipment after distributing free quantity obtains provides for this equipment as this facility resource pool.
It should be noted that, in order to ensure that this equipment normally can run in this time period, when for distributing this kind of resource wait the equipment run, first to meet and respectively treat the minimum requirements of operational outfit to this kind of resource, under this kind of resource also has remaining situation, according to each equipment priority is taken to this resource, the free quantity of this resource is distributed again, thus make the resource of this type at utmost use by equipment, ensure that the maximum utilization of resource on the one hand, on the other hand, after equipment obtains sufficient resource, disposal ability obtains maximum performance.
The equipment of considering not is take more resources, its disposal ability is larger, specifically, if it is very few to get this resource exactly, often can not give play to best disposal ability, get this resource too much, the amplitude that device processes ability improves not is very large or can not changes, its essence is for certain resource, when the resource got is in some specific intervals, this equipment can have best disposal ability, therefore by experiment, for equipment increases the sendout of this kind of resource within this time period, the performance information of recording equipment under different numerical value and the change information of performance, according to the change information of described performance information and performance, obtain described optimal values, wherein said optimal values is that this equipment performance change amplitude within this time period is maximum and take the minimum numerical value of this kind of resource quantity.
And then when the free quantity of this kind of resource is distributed to until operational outfit, can obtain and treat the optimal values of operational outfit to this kind of resource occupation, again according to treating the optimal values of operational outfit to this kind of resource occupation, the free quantity of this kind of resource is distributed to and treats operational outfit, thus ensure that the optimum of resource uses.
Fig. 2 is the structural representation of the management system embodiment of facility resource pool provided by the invention.Method shown in composition graphs 1, described facility resource pool provides multiple resources for multiple equipment, and wherein said system comprises:
Statistic device 201, for adding up the occupied information of each equipment to various resource;
Acquisition device 202, is connected with described statistic device 201, for according to the occupied information that obtains, to obtain in the same time period each equipment to the minimum of a value of resource occupation amount of the same race;
Distributor 203, is connected with described acquisition device 202, for according to the minimum of a value of equipment each in the same time period to resource occupation amount of the same race, distributes required various resources during each equipment operation.
Preferably, described distributor 203 comprises:
Configuration module, for being each Equipments Setting priority corresponding when taking resource of the same race;
Acquisition module, be connected with described configuration module, for when receive multiple until operational outfit to resource of the same race take request time, according to all treating the occupancy minimum of a value of operational outfit to this kind of resource, obtaining this kind of resource in described facility resource pool and meeting described free quantity all after running hold facility amount minimum of a value;
Distribution module, be connected with described acquisition module, for the priority that basis is all corresponding in time running hold facility this kind of resource, the free quantity of this kind of resource is distributed to and treats operational outfit, using the resource that the resource that each equipment after distributing free quantity obtains provides for this equipment as this facility resource pool.
Preferably, described distribution module comprises:
Acquiring unit, treats the optimal values of operational outfit to this kind of resource occupation for obtaining, and wherein said optimal values is that this equipment performance change amplitude within this time period is maximum and take the minimum numerical value of this kind of resource quantity;
Allocation units, for according to treating the optimal values of operational outfit to this kind of resource occupation, distributing to the free quantity of this kind of resource and treating operational outfit.
Wherein, the optimal values that described acquiring unit obtains obtains in the following way, comprising:
For equipment increases the sendout of this kind of resource within this time period, the performance information of recording equipment under different numerical value and the change information of performance;
According to the change information of described performance information and performance, obtain described optimal values.
Embodiment provided by the invention, break traditional method can only carrying out managing power consumption to individual equipment resource, by the parameter such as task workload accounting, behavior pattern, service time of device resource each in analytical equipment resource pool, realize the Energy dissipation to device resource each in facility resource pool, management, accomplish the managing power consumption to whole facility resource pool, and then raising is to the efficiency of whole facility resource pool managing power consumption and the object realizing energy-conserving and environment-protective.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; change can be expected easily or replace, 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 protection domain described in claim.