CN103678002A - Resource reuse controlling method and device - Google Patents

Resource reuse controlling method and device Download PDF

Info

Publication number
CN103678002A
CN103678002A CN201310662560.9A CN201310662560A CN103678002A CN 103678002 A CN103678002 A CN 103678002A CN 201310662560 A CN201310662560 A CN 201310662560A CN 103678002 A CN103678002 A CN 103678002A
Authority
CN
China
Prior art keywords
resource
vcpu
duration
utilization rate
virtual machine
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.)
Pending
Application number
CN201310662560.9A
Other languages
Chinese (zh)
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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201310662560.9A priority Critical patent/CN103678002A/en
Publication of CN103678002A publication Critical patent/CN103678002A/en
Pending legal-status Critical Current

Links

Images

Abstract

The embodiment of the invention provides a resource reuse controlling method and device. The resource reuse controlling method comprises the steps that the resource use information of each VCPU in a virtual machine is obtained, and according to the resource use information of each VCPU, the resource occupancy rate of each VCPU is adjusted. Through the resource reuse controlling method and device, the resource occupancy rate of each VCPU in the virtual machine is adjusted adaptively, namely the state and the specification of the virtual machine is not changed, and the reasonable time division reuse of resources for each VCPU is achieved.

Description

The control method of resource multiplex and device
Technical field
The embodiment of the present invention relates to cloud computing technology field, relates in particular to a kind of control method and device of resource multiplex.
Background technology
On a physical server, a plurality of virtual machines have been carried, virtual machine can have a plurality of virtual central processing units (Virtual Central Processing Unit, be called for short: VCPU), a plurality of VCPU can share the resource on physical server, as the core in physical cpu (core); And be to dispatch by the principle of time slicing between each VCPU in each virtual machine and core.For example: have two VCPU, be respectively VCPU1 and VCPU2, VCPU1 takies after 100ms, switch, then take 100ms by VCPU2, then switch and to have VCPU1 to take, so circulation repeatedly.
And in the prior art, in order to realize the time-sharing multiplex of physical server resource, when some virtual machine does not need work within a time period, do not need the virtual machine of work to carry out power-off operation these, thereby the resource that these virtual machines are taken discharges; Subsequently, then by the operation of starting shooting of other virtual machines of need to working, can take the resource of above-mentioned release, thereby realize the time-sharing multiplex of physical server resource; Or when within a time period, some virtual machine operating load is lower, the lower virtual machine of these loads is reduced to the operation (for example: be reduced to 1 VCPU from 2 VCPU) of VCPU, subsequently, again the higher virtual machine of other loads is increased to the operation (for example: increase to 2 VCPU from 1 VCPU) of VCPU, thereby realized the time-sharing multiplex of physical server cpu resource.
Yet when employing such scheme is realized the time-sharing multiplex of physical server resource, find, such scheme has changed state (as closing virtual machine) or the specification (as the quantity of increase and decrease VCPU) of virtual machine; But these changes are need to obtain certain authority just can realize, and are not easy to realize timely the time-sharing multiplex of resource; In addition, increase or reduce VCPU, the operation that likely can restart just can come into force, and causes the interruption of business, and traffic affecting is implemented.
Summary of the invention
The embodiment of the present invention provides a kind of control method and device of resource multiplex, for controlling the rational time-sharing multiplex of each VCPU to resource.
First aspect, the embodiment of the present invention provides a kind of control method of resource multiplex, comprising:
Obtain the resource using information of each virtual central processing unit VCPU in virtual machine;
According to the resource using information of VCPU described in each, adjust the occupancy of VCPU to resource described in each.
In conjunction with first aspect, in the first embodiment, the utilization rate that described resource using information is resource, obtains the resource using information of each VCPU in virtual machine described in, comprising:
The real-time utilization rate of VCPU to resource described in each in the described virtual machine of monitoring.
In conjunction with first aspect the first embodiment, in the second embodiment, described according to the resource using information of VCPU described in each, adjust the occupancy of VCPU to resource described in each, comprising:
If a VCPU is more than or equal to the first predetermined threshold value to the utilization rate of resource in very first time section, a described VCPU is increased to lengthening duration to the duration that takies of resource by normal duration;
After described very first time section, if the second time period in a VCPU to the utilization rate of resource less than or equal to the second predetermined threshold value, a described VCPU is reverted to described normal duration to the duration that takies of resource by lengthening duration.
In conjunction with first aspect the first embodiment, in the 3rd embodiment, described according to the resource using information of VCPU described in each, adjust the occupancy of VCPU to resource described in each, comprising:
If a VCPU is less than or equal to the 3rd predetermined threshold value to the utilization rate of resource in very first time section, a described VCPU is reduced to shortening duration to the duration that takies of resource by normal duration;
After described very first time section, if the second time period in a described VCPU to the utilization rate of resource lower than the 4th predetermined threshold value, a described VCPU is reverted to described normal duration to the duration that takies of resource by described shortening duration.
In conjunction with first aspect, in the 4th embodiment, the utilization rate that described resource using information is resource, obtains the resource using information of each VCPU in virtual machine described in, comprising:
In predetermined period, monitor each VCPU of described virtual machine, obtain VCPU utilization rate to resource within each time period described in each;
According to the resource using information of VCPU described in each, adjust the occupancy of VCPU to resource described in each, comprising:
When the initial time of current slot arrives, according to obtain each described in VCPU utilization rate to resource in current slot, control VCPU holding time to resource in described current slot described in each; Described virtual machine is corresponding with described virtual machine utilization rate to resource in current slot of obtaining with the ratio of described current slot to the holding time of resource in described current slot.
Second aspect, the embodiment of the present invention provides a kind of control device of resource multiplex, comprising:
Acquisition module, for obtaining the resource using information of each VCPU of virtual machine;
Processing module, for according to the resource using information of VCPU described in each, adjusts the occupancy of VCPU to resource described in each.
In conjunction with second aspect, in the first embodiment, the utilization rate that described resource using information is resource, described acquisition module is specifically for the utilization rate of VCPU to resource described in each in the real-time described virtual machine of monitoring.
In conjunction with second aspect the first embodiment, in the second embodiment, if described processing module is more than or equal to the first predetermined threshold value specifically for a VCPU in very first time section to the utilization rate of resource, a described VCPU is increased to lengthening duration to the duration that takies of resource by normal duration;
After described very first time section, if the second time period in a VCPU to the utilization rate of resource less than or equal to the second predetermined threshold value, a described VCPU is reverted to described normal duration to the duration that takies of resource by lengthening duration.
In conjunction with second aspect the first embodiment, in the 3rd embodiment, described processing module specifically for
If a VCPU is less than or equal to the 3rd predetermined threshold value to the utilization rate of resource in very first time section, a described VCPU is reduced to shortening duration to the duration that takies of resource by normal duration;
After described very first time section, if the second time period in a described VCPU to the utilization rate of resource lower than the 4th predetermined threshold value, a described VCPU is reverted to described normal duration to the duration that takies of resource by described shortening duration.
In conjunction with second aspect, in the 4th embodiment, the utilization rate that described resource using information is resource, described acquisition module specifically for
In predetermined period, monitor each VCPU of described virtual machine, obtain VCPU utilization rate to resource within each time period described in each;
Described processing module specifically for
When the initial time of current slot arrives, according to obtain each described in VCPU utilization rate to resource in current slot, control VCPU holding time to resource in described current slot described in each; Described virtual machine is corresponding with described virtual machine utilization rate to resource in current slot of obtaining with the ratio of described current slot to the holding time of resource in described current slot.
The control method of the resource multiplex that the embodiment of the present invention provides and device, by the resource using information of each VCPU in the virtual machine obtaining, the occupancy of each VCPU to resource in the adjustment virtual machine adapting to, do not change state and the specification of virtual machine, realize the rational time-sharing multiplex of each VCPU to resource.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing of required use during embodiment is described is briefly described, apparently, accompanying drawing in the following describes is some embodiments of the present invention, for those of ordinary skills, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is the process flow diagram of the control method embodiment mono-of resource multiplex of the present invention;
Fig. 2 is the process flow diagram of the control method embodiment bis-of resource multiplex of the present invention;
Fig. 3 is the process flow diagram of the control method embodiment tri-of resource multiplex of the present invention;
Fig. 4 is the structural drawing of the control device embodiment mono-of resource multiplex of the present invention;
Fig. 5 is the structural drawing of the control device embodiment bis-of resource multiplex of the present invention.
Embodiment
For making object, technical scheme and the advantage of the embodiment of the present invention clearer, below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly described, obviously, described embodiment is the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
Fig. 1 is the process flow diagram of the control method embodiment mono-of resource multiplex of the present invention.As shown in Figure 1, the control device that the executive agent of the present embodiment is resource multiplex, this control device can adopt the mode of software and/or hardware to realize, and preferred, this control device can be integrated in physical server, and this control method comprises:
S101, obtain the resource using information of each VCPU in virtual machine.
On physical server, can move a plurality of virtual machines, the plurality of virtual machine can be shared the resource of this physical server, but in order to control each virtual machine to the rational time-sharing multiplex of resource, need to know the use information of each virtual machine to resource, concrete, for each virtual machine, in obtaining virtual machine during the resource using information of each VCPU, can pass through the monitoring in one period of cycle, know the use information of each VCPU to resource in each virtual machine, as larger in the portfolio between 18:00 to 22:00 in found a VCPU of certain virtual machine by monitoring, for other VCPU, the resource duration more or use resource taking is longer, or can be by real-time monitoring, find the behaviour in service in the past one hour of each VCPU in each virtual machine.
S102, according to the resource using information of each VCPU, adjust the occupancy of each VCPU to resource.
As lower to the utilization rate of resource in certain VCPU, can shorten the take duration of this VCPU to resource, thereby other can have the more duration that takies to resource to the higher VCPU of the utilization rate of resource.
In the present embodiment, by the resource using information of each VCPU in the virtual machine obtaining, the occupancy of each VCPU to resource in the adjustment virtual machine of adaptation, does not change state and the specification of virtual machine, realizes the rational time-sharing multiplex of each VCPU to resource.
Fig. 2 is the process flow diagram of the control method embodiment bis-of resource multiplex of the present invention.As shown in Figure 2, the present embodiment is on the basis of the embodiment shown in Fig. 1, describes a kind of possible implementation, and concrete, this control method comprises:
S201, monitor the utilization rate of each VCPU to resource in virtual machine in real time.
In the present embodiment when carrying out S201, for each virtual machine, and specifically to take each VCPU be example to the utilization rate of resource to the resource using information of each VCPU in the present embodiment, in actual applications, the resource using information of each VCPU can also be the occupancy of each VCPU to resource, such as being allocated in the quantity of core of VCPU and other physical resources etc.
S202, according to the resource using information of each VCPU, adjust the occupancy of each VCPU to resource.
Concrete, the monitoring of above-mentioned S201 is to carry out according to the time period, by monitoring, find, if a VCPU is more than or equal to the first predetermined threshold value to the utilization rate of resource in very first time section, a VCPU is increased to lengthening duration to the duration that takies of resource by normal duration;
Wherein a VCPU is any one in above-mentioned each VCPU, and one section of duration that very first time section can start for any time such as 1 hour, 2 hours, for example, very first time section is that 6:00 was by one hour of 7:00, now controlling the duration that each VCPU takies resource is 10s, be called normal condition, and for each VCPU, VCPU is normal duration to the duration 10s that takies of resource; And within this very first time, it is above-mentioned the first predetermined threshold value that the utilization rate of finding a VCPU continues within 1 hour, to remain on 80%() more than, a VCPU is adjusted into and is increased 20%(20% only for giving an example by normal duration the duration that takies of core, the concrete ratio of adjusting can be preset as required), by normal duration, increase to lengthening duration;
Further, after described very first time section, if the second time period in a VCPU to the utilization rate of resource less than or equal to the second predetermined threshold value, a VCPU is reverted to described normal duration to the duration that takies of resource by lengthening duration.
That is to say, above-mentioned by normal duration, increased to lengthen duration after, the utilization rate of finding a VCPU after monitoring by S201 continues 2 hours (being above-mentioned the second time period), and to remain on 20%(be above-mentioned the second predetermined threshold value) below, a VCPU is taken to duration by reverting to described normal duration by lengthening duration to core; The time period now starting continues as understandable, above-mentioned by normal duration, increased to lengthen duration after, the one VCPU is not more than or equal to the first predetermined threshold value to the utilization rate of resource, and not less than or equal to the second predetermined threshold value, a VCPU remains unchanged to the duration that takies of resource.
Accordingly, the low situation of the utilization rate to resource for a VCPU under normal condition, similar to the above, even in very first time section, a VCPU is less than or equal to the 3rd predetermined threshold value to the utilization rate of resource, and a VCPU is reduced to shortening duration to the duration that takies of resource by normal duration;
Further, after very first time section, if a VCPU is more than or equal to the 4th predetermined threshold value to the utilization rate of resource in the second time period, a VCPU is reverted to normal duration to the duration that takies of resource by shortening duration.
Above-mentioned very first time section and the second time period are relative concept, along with each VCPU is constantly become and lengthened duration or shorten duration from normal duration, and revert to normal time by lengthening duration or shortening duration, very first time section and the second time period occur successively, thereby S201 and S202 are along with the arrival circulation of time period is each time performed, to realize the time-sharing multiplex of each VCPU to resource.
In the present embodiment, by the resource using information of each VCPU in the virtual machine obtaining, the occupancy of each VCPU to resource in the adjustment virtual machine of adaptation, does not change state and the specification of virtual machine, realizes the rational time-sharing multiplex of each VCPU to resource.
Fig. 3 is the process flow diagram of the control method embodiment tri-of resource multiplex of the present invention.As shown in Figure 3, the present embodiment is on the basis of the embodiment shown in Fig. 1, describes another kind of possible implementation, and concrete, this control method comprises:
S301, in predetermined period, monitor each VCPU of virtual machine, obtain each VCPU utilization rate to resource within each time period.
Predetermined period is much larger than above-mentioned each time period, for example predetermined period be take one week as example, each VCPU that finds each virtual machine by the monitoring of a week at a fixed time utilization rate in section is substantially fixing, for example, because virtual machine is responsible for the business difference of processing, may to concentrate on the 9:00 to 10:00 of every morning higher to the utilization rate of resource for each VCPU in a virtual machine, and each VCPU in another virtual machine is higher to the utilization rate of resource at the 21:00 to 22:00 of every night, get thus each VCPU utilization rate to resource within each time period.
In the present embodiment, specifically to take each VCPU be example to the utilization rate of resource to the resource using information of each VCPU, in actual applications, the resource using information of each VCPU can also be the occupancy of each VCPU to resource, such as being allocated in the quantity of core of VCPU and other physical resources etc.
S302, according to the resource using information of each VCPU, adjust the occupancy of each VCPU to resource.
Concrete, when the initial time of current slot arrives, according to each VCPU obtaining utilization rate to resource in current slot, control each VCPU holding time to resource in current slot; Virtual machine is corresponding with described virtual machine utilization rate to resource in current slot of obtaining with the ratio of described current slot to the holding time of resource in described current slot.
For example, owing to knowing that by S301 the ratio that the VCPU of virtual machine 1 takies core at 6:00 to 8:00 is 20% in advance, and the ratio that the VCPU of virtual machine 2 takies core at 6:00 to 8:00 is 80%, when 6:00, and when the initial time 6:00 of current slot 6:00 to 8:00 arrives, the VCPU that controls respectively virtual machine 1 and virtual machine 2 takies the holding time of core at 6:00 to 8:00, the VCPU that makes virtual machine 1 takies the holding time of core and the ratio of current slot 6:00 to 8:00 is 20% at 6:00 to 8:00, be that the holding time that the VCPU of virtual machine 1 takies core at 6:00 to 8:00 is 24 minutes, ratio during these 24 minutes with 6:00 to 8:00 120 minutes is 20%, and the holding time that virtual machine 2 takies core at 6:00 to 8:00 is 96 minutes, be that virtual machine is corresponding with described virtual machine utilization rate to resource in current slot of obtaining with the ratio of current slot to the holding time of resource in current slot, realize the time-sharing multiplex of each VCPU to resource.
In the present embodiment, by the resource using information of each VCPU in the virtual machine obtaining, the occupancy of each VCPU to resource in the adjustment virtual machine of adaptation, does not change state and the specification of virtual machine, realizes the rational time-sharing multiplex of each VCPU to resource.
Fig. 4 is the structural drawing of the control device embodiment mono-of resource multiplex of the present invention.As shown in Figure 4, the control device of resource multiplex in the present embodiment, comprising:
Acquisition module 41, for obtaining the resource using information of each VCPU of virtual machine;
Processing module 42, for according to the resource using information of each VCPU, adjusts the occupancy of each VCPU to resource.
In one implementation, the utilization rate that described resource using information is resource, acquisition module 41 is specifically for the utilization rate of VCPU to resource described in each in real-time monitoring virtual machine.
When adjusting each VCPU to the occupancy of resource, optionally, if processing module 42 is more than or equal to the first predetermined threshold value specifically for a VCPU in very first time section to the utilization rate of resource, a described VCPU is increased to lengthening duration to the duration that takies of resource by normal duration;
After described very first time section, if the second time period in a VCPU to the utilization rate of resource less than or equal to the second predetermined threshold value, a described VCPU is reverted to described normal duration to the duration that takies of resource by lengthening duration.
Or, when adjusting each VCPU to the occupancy of resource, optional, processing module 42 specifically for
If a VCPU is less than or equal to the 3rd predetermined threshold value to the utilization rate of resource in very first time section, a described VCPU is reduced to shortening duration to the duration that takies of resource by normal duration;
After described very first time section, if the second time period in a described VCPU to the utilization rate of resource lower than the 4th predetermined threshold value, a described VCPU is reverted to described normal duration to the duration that takies of resource by described shortening duration.
Flexibly, in another kind of implementation, the utilization rate that described resource using information is resource, described acquisition module 41 specifically for
In predetermined period, monitor each VCPU of virtual machine, obtain VCPU utilization rate to resource within each time period described in each;
Described processing module 42 specifically for
When the initial time of current slot arrives, according to obtain each described in VCPU utilization rate to resource in current slot, control each VCPU holding time to resource in described current slot; Described virtual machine is corresponding with described virtual machine utilization rate to resource in current slot of obtaining with the ratio of described current slot to the holding time of resource in described current slot.
In the present embodiment, corresponding each step carried out in above-mentioned each embodiment of the method for above-mentioned each module, does not repeat them here.
In the present embodiment, the control device of resource multiplex is by the resource using information of each VCPU in the virtual machine obtaining, the occupancy of each VCPU to resource in the adjustment virtual machine adapting to, does not change state and the specification of virtual machine, realizes the rational time-sharing multiplex of each VCPU to resource.
Fig. 5 is the structural drawing of the control device embodiment bis-of resource multiplex of the present invention.As shown in Figure 5, the control device of resource multiplex in the present embodiment, comprising:
Processor 51, for obtaining the resource using information of each VCPU of virtual machine;
Above-mentioned processor 51, for according to the resource using information of each VCPU, is adjusted the occupancy of each VCPU to resource.
In one implementation, the utilization rate that described resource using information is resource, processor 51 is specifically for the utilization rate of VCPU to resource described in each in real-time monitoring virtual machine.
When adjusting each VCPU to the occupancy of resource, optionally, if processor 51 is more than or equal to the first predetermined threshold value specifically for a VCPU in very first time section to the utilization rate of resource, a described VCPU is increased to lengthening duration to the duration that takies of resource by normal duration;
After described very first time section, if the second time period in a VCPU to the utilization rate of resource less than or equal to the second predetermined threshold value, a described VCPU is reverted to described normal duration to the duration that takies of resource by lengthening duration.
Or, when adjusting each VCPU to the occupancy of resource, optional, processor 51 specifically for
If a VCPU is less than or equal to the 3rd predetermined threshold value to the utilization rate of resource in very first time section, a described VCPU is reduced to shortening duration to the duration that takies of resource by normal duration;
After described very first time section, if the second time period in a described VCPU to the utilization rate of resource lower than the 4th predetermined threshold value, a described VCPU is reverted to described normal duration to the duration that takies of resource by described shortening duration.
Flexibly, in another kind of implementation, the utilization rate that described resource using information is resource, described processor 51 specifically for
In predetermined period, monitor each VCPU of virtual machine, obtain VCPU utilization rate to resource within each time period described in each;
Described processor 51 specifically for
When the initial time of current slot arrives, according to obtain each described in VCPU utilization rate to resource in current slot, control each VCPU holding time to resource in described current slot; Described virtual machine is corresponding with described virtual machine utilization rate to resource in current slot of obtaining with the ratio of described current slot to the holding time of resource in described current slot.
Corresponding each step of carrying out in above-mentioned each embodiment of the method for processor in the present embodiment, detail and effect do not repeat them here.
In the present embodiment, the control device of resource multiplex is by the resource using information of each VCPU in the virtual machine obtaining, the occupancy of each VCPU to resource in the adjustment virtual machine adapting to, does not change state and the specification of virtual machine, realizes the rational time-sharing multiplex of each VCPU to resource.
One of ordinary skill in the art will appreciate that: all or part of step that realizes above-mentioned each embodiment of the method can complete by the relevant hardware of programmed instruction.Aforesaid program can be stored in a computer read/write memory medium.This program, when carrying out, is carried out the step that comprises above-mentioned each embodiment of the method; And aforesaid storage medium comprises: various media that can be program code stored such as ROM, RAM, magnetic disc or CDs.
Finally it should be noted that: each embodiment, only in order to technical scheme of the present invention to be described, is not intended to limit above; Although the present invention is had been described in detail with reference to aforementioned each embodiment, those of ordinary skill in the art is to be understood that: its technical scheme that still can record aforementioned each embodiment is modified, or some or all of technical characterictic is wherein equal to replacement; And these modifications or replacement do not make the essence of appropriate technical solution depart from the scope of various embodiments of the present invention technical scheme.

Claims (10)

1. a control method for resource multiplex, is characterized in that, comprising:
Obtain the resource using information of each virtual central processing unit VCPU in virtual machine;
According to the resource using information of VCPU described in each, adjust the occupancy of VCPU to resource described in each.
2. control method according to claim 1, is characterized in that, the utilization rate that described resource using information is resource is obtained the resource using information of each VCPU in virtual machine described in, comprising:
The real-time utilization rate of VCPU to resource described in each in the described virtual machine of monitoring.
3. control method according to claim 2, is characterized in that, described according to the resource using information of VCPU described in each, adjusts the occupancy of VCPU to resource described in each, comprising:
If a VCPU is more than or equal to the first predetermined threshold value to the utilization rate of resource in very first time section, a described VCPU is increased to lengthening duration to the duration that takies of resource by normal duration;
After described very first time section, if the second time period in a VCPU to the utilization rate of resource less than or equal to the second predetermined threshold value, a described VCPU is reverted to described normal duration to the duration that takies of resource by lengthening duration.
4. control method according to claim 2, is characterized in that, described according to the resource using information of VCPU described in each, adjusts the occupancy of each VCPU to resource, comprising:
If a VCPU is less than or equal to the 3rd predetermined threshold value to the utilization rate of resource in very first time section, a described VCPU is reduced to shortening duration to the duration that takies of resource by normal duration;
After described very first time section, if the second time period in a described VCPU to the utilization rate of resource lower than the 4th predetermined threshold value, a described VCPU is reverted to described normal duration to the duration that takies of resource by described shortening duration.
5. control method according to claim 1, is characterized in that, the utilization rate that described resource using information is resource is obtained the resource using information of each VCPU in virtual machine described in, comprising:
In predetermined period, monitor each VCPU of described virtual machine, obtain VCPU utilization rate to resource within each time period described in each;
According to the resource using information of VCPU described in each, adjust the occupancy of VCPU to resource described in each, comprising:
When the initial time of current slot arrives, according to obtain each described in VCPU utilization rate to resource in current slot, control VCPU holding time to resource in described current slot described in each; Described virtual machine is corresponding with described virtual machine utilization rate to resource in current slot of obtaining with the ratio of described current slot to the holding time of resource in described current slot.
6. a control device for resource multiplex, is characterized in that, comprising:
Acquisition module, for obtaining the resource using information of each VCPU of virtual machine;
Processing module, for according to the resource using information of VCPU described in each, adjusts the occupancy of VCPU to resource described in each.
7. control device according to claim 6, is characterized in that, the utilization rate that described resource using information is resource, and described acquisition module is specifically for the utilization rate of VCPU to resource described in each in the real-time described virtual machine of monitoring.
8. control device according to claim 7, it is characterized in that, if described processing module is more than or equal to the first predetermined threshold value specifically for a VCPU in very first time section to the utilization rate of resource, a described VCPU is increased to lengthening duration to the duration that takies of resource by normal duration;
After described very first time section, if the second time period in a VCPU to the utilization rate of resource less than or equal to the second predetermined threshold value, a described VCPU is reverted to described normal duration to the duration that takies of resource by lengthening duration.
9. control device according to claim 7, is characterized in that, described processing module specifically for
If a VCPU is less than or equal to the 3rd predetermined threshold value to the utilization rate of resource in very first time section, a described VCPU is reduced to shortening duration to the duration that takies of resource by normal duration;
After described very first time section, if the second time period in a described VCPU to the utilization rate of resource lower than the 4th predetermined threshold value, a described VCPU is reverted to described normal duration to the duration that takies of resource by described shortening duration.
10. control device according to claim 6, is characterized in that, the utilization rate that described resource using information is resource, described acquisition module specifically for
In predetermined period, monitor each VCPU of described virtual machine, obtain VCPU utilization rate to resource within each time period described in each;
Described processing module specifically for
When the initial time of current slot arrives, according to obtain each described in VCPU utilization rate to resource in current slot, control VCPU holding time to resource in described current slot described in each; Described virtual machine is corresponding with described virtual machine utilization rate to resource in current slot of obtaining with the ratio of described current slot to the holding time of resource in described current slot.
CN201310662560.9A 2013-12-09 2013-12-09 Resource reuse controlling method and device Pending CN103678002A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310662560.9A CN103678002A (en) 2013-12-09 2013-12-09 Resource reuse controlling method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310662560.9A CN103678002A (en) 2013-12-09 2013-12-09 Resource reuse controlling method and device

Publications (1)

Publication Number Publication Date
CN103678002A true CN103678002A (en) 2014-03-26

Family

ID=50315654

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310662560.9A Pending CN103678002A (en) 2013-12-09 2013-12-09 Resource reuse controlling method and device

Country Status (1)

Country Link
CN (1) CN103678002A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018149217A1 (en) * 2017-02-17 2018-08-23 清华大学 Information processing method and system for neural network computation core, and computer device
WO2018192475A1 (en) * 2017-04-20 2018-10-25 中兴通讯股份有限公司 Method and apparatus for adjusting virtual machine specifications
EP3451237A4 (en) * 2016-04-28 2019-04-17 Sony Corporation Information processing device and information processing method
CN111338792A (en) * 2020-02-16 2020-06-26 苏州浪潮智能科技有限公司 Cluster resource release method, device and medium
CN113626196A (en) * 2021-08-12 2021-11-09 杭州海康威视数字技术股份有限公司 Task sending method and device

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3451237A4 (en) * 2016-04-28 2019-04-17 Sony Corporation Information processing device and information processing method
WO2018149217A1 (en) * 2017-02-17 2018-08-23 清华大学 Information processing method and system for neural network computation core, and computer device
WO2018192475A1 (en) * 2017-04-20 2018-10-25 中兴通讯股份有限公司 Method and apparatus for adjusting virtual machine specifications
CN111338792A (en) * 2020-02-16 2020-06-26 苏州浪潮智能科技有限公司 Cluster resource release method, device and medium
CN111338792B (en) * 2020-02-16 2023-01-06 苏州浪潮智能科技有限公司 Cluster resource release method, device and medium
CN113626196A (en) * 2021-08-12 2021-11-09 杭州海康威视数字技术股份有限公司 Task sending method and device

Similar Documents

Publication Publication Date Title
CN103678002A (en) Resource reuse controlling method and device
US9733987B2 (en) Techniques to dynamically allocate resources of configurable computing resources
US10091307B2 (en) Application management method and terminal
US20160378570A1 (en) Techniques for Offloading Computational Tasks between Nodes
WO2014055607A1 (en) Mobile application migration to cloud computing platform
EP2843838A1 (en) Multiple core processor device and clock control implementing method therefor
US9323559B2 (en) Reducing virtual machine suspension time in checkpoint system
CN104252390A (en) Resource scheduling method, device and system
WO2017148362A1 (en) Control system and control method for ddr system
CN110275680B (en) Double-control double-active storage system
CN103617098A (en) Intelligent backup method and system based on data changes
EP3394746A1 (en) Techniques for co-migration of virtual machines
HRP20221374T1 (en) Synchronization and hot standby method and system for primary system and standby system of apparatus
CN110971430A (en) Automatic capacity expansion and reduction control method and device, storage medium and processor
CN106775885B (en) Log output control method and system and bank management system
CN110716813A (en) Data stream processing method and device, readable storage medium and processor
GB2500079A (en) Dynamic change of probing frequency for resource availability associated with resource consumption pattern for processing input file
US9727252B2 (en) Methods and systems for optimal snapshot distribution within a protection schedule
CN102158545A (en) Resource pool management method and device
CN102831630A (en) Method and device for rendering animation
US10348428B2 (en) Techniques for synchronized execution of a command at network fabric nodes
CN104281587B (en) A kind of method and device for establishing connection
KR20160040260A (en) Concurrent network application scheduling for reduced power consumption
CN103442033A (en) Running state information synchronizing method and device
CN102981868A (en) Method of achieving virtual machine batch deployment by utilizing cloud computing

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20140326