CN102346680B - Resource adjusting system and method for virtual machine - Google Patents

Resource adjusting system and method for virtual machine Download PDF

Info

Publication number
CN102346680B
CN102346680B CN201010245032.XA CN201010245032A CN102346680B CN 102346680 B CN102346680 B CN 102346680B CN 201010245032 A CN201010245032 A CN 201010245032A CN 102346680 B CN102346680 B CN 102346680B
Authority
CN
China
Prior art keywords
virtual machine
user
memory address
address
resource
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.)
Expired - Fee Related
Application number
CN201010245032.XA
Other languages
Chinese (zh)
Other versions
CN102346680A (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.)
Institute for Information Industry
Original Assignee
Institute for Information Industry
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 Institute for Information Industry filed Critical Institute for Information Industry
Priority to CN201010245032.XA priority Critical patent/CN102346680B/en
Publication of CN102346680A publication Critical patent/CN102346680A/en
Application granted granted Critical
Publication of CN102346680B publication Critical patent/CN102346680B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Memory System Of A Hierarchy Structure (AREA)

Abstract

The invention discloses a resource adjusting system and method for a virtual machine, which are applied to at least one entity device. The at least one entity device at least comprises an operation system, a processing unit and a memory and is provided with a plurality of resources which can be distributed. According to the resource adjusting system and method for the virtual machine in the embodiment of the invention, resources of corresponding virtual machine can be directly adjusted under the condition without shutting down the virtual machine, so that the inconvenience caused by service interruption can be avoided, relevant resources can be improved, for example, the utilization rates of processing hardware and storage hardware can be improved and the efficiency of the whole electronic device/a hardware host can be improved.

Description

Resource adjustment System and the method for virtual machine
Technical field
The present invention relates to a kind of resource adjustment System and method of virtual machine, relate in particular to a kind of resource adjustment that can not need virtual machine shutdown directly to carry out respective virtual machine, as newly-increased or reduce the system and method for resource.
Background technology
Virtual machine (Virtual Machine, VM) is the mode of utilizing software simulation hardware, allows user can see through virtual machine and comes function software.In general, an entity apparatus can have a plurality of resources, and as processing unit and internal memory etc., part or all of resource can be assigned to one or more virtual machines and use.In other words, performed all softwares in a particular virtual machine, the resource that all can only use this particular virtual machine to be assigned to.
In some cases, when the inadequate resource of virtual machine is when dealing with related needs, the resource of virtual machine must be adjusted.Existing ground, when the inadequate resource of a fully virtualized virtual machine, must first will carry out the adjustment of resource after virtual machine shutdown again.Because the resource of respective virtual machine cannot directly be adjusted in open state, therefore, when this virtual machine must provide the service not breaking, as shut down in order to adjust the resource of virtual machine, by the service causing and program interrupt, form the inconvenience on using.Or drop to minimum for the inconvenience that allows virtual machine cause because of shutdown, must consider the time point of virtual machine shutdown, for example select it providing the least busy time point of service to shut down, therefore, often cannot immediately provide virtual machine required resource.
In another prior art, half virtualized virtual machine can be adjusted for its resource in the situation that not needing shutdown.Yet in this virtual machine, the operating system in virtual machine must be consistent with the operating system of hardware host, even can only in certain some specific operating system, can implement, thereby the application of virtual machine is restricted.
Summary of the invention
In view of this, the invention provides a kind of resource adjustment System and method of virtual machine.
The resource adjustment System of a kind of virtual machine of the embodiment of the present invention, be applicable at least one entity apparatus, wherein this at least one entity apparatus at least comprises an operating system, one processing unit and an internal memory, and this at least one entity apparatus has a plurality of resources of distributing, one first virtual machine configuration file is to move one first virtual machine, with one second virtual machine configuration file to move one second virtual machine, wherein this system comprises: a storage element, store one first virtual machine configuration file and one second virtual machine configuration file, with a virtual machine monitor, and a control module, cause this first virtual machine to enter a halted state, wherein, this first virtual machine has a first resource set in these resources and one first virtual machine paging table that mutually should the first virtual machine, cause this second virtual machine to enter a halted state, wherein, this second virtual machine has a Secondary resource set in these resources and one second virtual machine paging table that mutually should the second virtual machine, in this first virtual machine paging table, obtain mutually should the first virtual machine one first user's space address, in this second virtual machine paging table, obtain mutually should the second virtual machine one second user's space address, and by a virtual machine monitor, obtained mutually should first user's space address and this second user space address the first instance memory address in this at least one entity apparatus and a second instance memory address respectively, via this virtual machine monitor, so that mutually required this second instance memory address of this first user space address, cause this first virtual machine to enter an executing state, wherein, this first virtual machine is according to this first virtual machine paging table running, and, stop this second virtual machine.
The resource adjusting method of a kind of virtual machine of the embodiment of the present invention, be applicable at least one entity apparatus, wherein, this at least one entity apparatus at least comprises an operating system, one processing unit and an internal memory, and this at least one entity apparatus has a plurality of resources of distributing, one first virtual machine configuration file is to move one first virtual machine, with one second virtual machine configuration file to move one second virtual machine, the method comprises the following steps: to cause this first virtual machine to enter a halted state, wherein, this first virtual machine has a first resource set in these resources and one first virtual machine paging table that mutually should the first virtual machine, cause this second virtual machine to enter a halted state, wherein, this second virtual machine has a Secondary resource set in these resources and one second virtual machine paging table that mutually should the second virtual machine, in this first virtual machine paging table, obtain mutually should the first virtual machine one first user's space address, in this second virtual machine paging table, obtain mutually should the second virtual machine one second user's space address, and by a virtual machine monitor, obtained mutually should first user's space address and this second user space address the first instance memory address in this at least one entity apparatus and a second instance memory address respectively, via this virtual machine monitor, so that mutually required this second instance memory address of this first user space address, cause this first virtual machine to enter an executing state, wherein, this first virtual machine is according to this first virtual machine paging table running, and, stop this second virtual machine.
In certain embodiments, before being caused time-out at this second virtual machine, more comprise the data in a working storage of at least one processing unit in mutually should this Secondary resource set of the second virtual machine, be recorded to mutually in the internal memory in should this Secondary resource set of the second virtual machine.
In certain embodiments, before this first virtual machine is caused and enters this halted state, more comprise the core of one first virtual machine operating system in mutually should the first virtual machine, be written into the internal memory in this first resource set, as the kernel spacing in this first virtual machine paging table.
In certain embodiments, there is an entity apparatus and the first virtual machine and/or second virtual machine of corresponding control module, according to different operating system, operate.
Resource adjustment System and the method for the virtual machine of the embodiment of the present invention, can be in the situation that not needing virtual machine to shut down, and directly carry out the resource adjustment of respective virtual machine, not only can avoid the inconvenience causing due to break in service, more can promote related resource, as processing hardware and the utilization rate that stores hardware, and promote the usefulness of whole hardware unit/hardware host.
Accompanying drawing explanation
Accompanying drawing described herein is used to provide a further understanding of the present invention, forms the application's a part, does not form limitation of the invention.In the accompanying drawings:
Fig. 1 shows the schematic diagram according to the resource adjustment System of the virtual machine of the embodiment of the present invention;
Fig. 2 shows the schematic diagram according to the resource adjusting method of the virtual machine of the embodiment of the present invention.
Drawing reference numeral:
The resource adjustment System of 100~virtual machine;
112,114,116~entity apparatus;
112a, 114a, 116a~resource;
120~storage element;
121~virtual machine configuration file;
130~control module;
131~virtual machine monitor;
S210, S220 ..., S270~step.
Embodiment
For above-mentioned purpose of the present invention, feature and advantage can be become apparent, special embodiment below, and coordinate accompanying drawing, be described in detail as follows.
Fig. 1 shows the resource adjustment System according to the virtual machine of the embodiment of the present invention.Resource adjustment System 100 according to the virtual machine of the embodiment of the present invention goes at least one entity apparatus, as server, computer, notebook computer, workstation, with various computing machines etc.Remind, each entity apparatus at least comprises an operating system, a processing unit and an internal memory.In general, the internal memory in each entity apparatus can be divided into the user space of kernel spacing and the entity of entity.Internal memory in each entity apparatus is via an entity apparatus paging table, to record kernel spacing and the corresponding physical memory of user space institute address.
Resource adjustment System 100 according to the virtual machine of the embodiment of the present invention can at least comprise a storage element 120 and a control module 130.The resource adjustment System 100 of virtual machine can be arranged in an autonomous device, as independently server, computer, notebook computer, workstation or other calculation element, and be connected to one or more entity apparatus (112,114,116), also or the resource adjustment System 100 of virtual machine be a plurality of entity apparatus (112,114,116) one of them, to use/to distribute resource (112a, 114a, 116a) wherein.Resource can be the related hardware element that can be assigned to virtual machine in entity apparatus, as processing unit, internal memory etc.Storage element 120 can at least comprise the virtual machine configuration file 121 of corresponding different virtual machine.Wherein, virtual machine configuration file 121 can at least define the resource of respective virtual machine.For instance, the virtual machine configuration file of a corresponding virtual machine can define a processing unit that this virtual machine has and an internal memory of 1G size.
Control module 130 can be carried out a virtual machine monitor (Hypervisor) 131, should first user's space address and this second user space address the first instance memory address in this at least one entity apparatus and a second instance memory address respectively in order to obtain mutually, and, make mutually required this second instance memory address of this first user space address.It should be noted that in certain embodiments, virtual machine monitor can be produced by an operating system or related software, for control module 130, is carried out.
For instance, when at least one entity apparatus is adjusted the resource of this second virtual machine via the second virtual machine Profile Up one second virtual machine and plan, resource adjustment System 100 can be via one first virtual machine Profile Up one first virtual machine.In this embodiment, this virtual machine monitor 131 can record mutually should first user's space address and the corresponding relation of this first instance memory address, with phase should second user's space address and the corresponding relation of this second instance memory address.Then, virtual machine monitor 131 can make mutually required this second instance memory address of this first user space address, it can revise the corresponding relation of user's space address and physical memory address in this virtual machine monitor 131, with all or part of of this first instance memory address that should first user's space address by the phase being recorded in script corresponding relation, be substituted by this second instance memory address, after that is to say modification, this virtual machine monitor 131 is that part or all of its of record first user's space address corresponds to second instance memory address.Remind, each virtual machine can have a plurality of resources in these resources, for example a virtual machine internal memory and corresponding virtual machine paging table thereof.Similarly, virtual machine internal memory can also be divided into kernel spacing and user space, and corresponds to the user space of physical memory in entity apparatus.See through the physical memory page table change/correspondence of virtual machine monitor to the virtual machine paging table of fictitious host computer and entity apparatus, can find the corresponding physical memory of the virtual machine internal memory address of each virtual machine.
Related hardware and the software of control module 130 in can management entity device.In certain embodiments, control module 130 can management resource 112a, 114a, 116a etc., with according to indivedual corresponding virtual machines of virtual machine Profile Up.It should be noted that, in certain embodiments, in this at least one entity apparatus and indivedual virtual machines, can according to an operating system, move respectively, and individual other operating system can be different, that is the operating system of entity apparatus and dummy activity main frame can be not identical, the operating system between each virtual machine can be also not identical.Control module 130 can be carried out the resource adjusting method of virtual machine of the present invention, its details will in after describe.Note, storage element 120 can be arranged in a specific electronic devices with control module 130.In certain embodiments, specific electronic devices can be the one in aforementioned entity apparatus.In certain embodiments, specific electronic devices can be the device outside being independent of in aforementioned entity apparatus.
Fig. 2 shows the resource adjusting method according to the virtual machine of the embodiment of the present invention.In this embodiment, one second virtual machine in an entity apparatus according to its second virtual machine Profile Up, an and Secondary resource set of corresponding the second virtual machine (that is the resource including in this second virtual machine configuration file, as processing unit, internal memory) will be adjusted, wherein, the second virtual machine has one second virtual machine paging table.Remind, Secondary resource set can be that at least one in the resource of distribution can be provided in this at least one entity apparatus.In general, the second virtual machine has one second virtual machine operating system, and in order to produce the second virtual machine paging table, in the present embodiment, the second virtual machine operating system can be different with the operating system of entity apparatus.
Resource adjustment System 100 can be via above-mentioned entity apparatus (entity apparatus of the second virtual machine) or another entity apparatus, and one first virtual machine configuration file, move one first virtual machine, there is a first resource set, the resource that this first resource set has, be wish by the resource after the second virtual machine adjustment, for example, increase or reduce specific resources.The first virtual machine has one first virtual machine operating system, and in order to produce the first virtual machine paging table, in the present embodiment, the first virtual machine operating system can be different with the second virtual machine operating system, entity apparatus operating system.
As step S210, control module causes the first virtual machine to enter a halted state.Remind, in certain embodiments, before operation the first virtual machine, can first for the first virtual machine, carry out an initialization operation.It should be noted that, in certain embodiments, the process of initial the first virtual machine, can be by the core of one first virtual machine operating system in mutually should the first virtual machine, be written into the internal memory in this first resource set, as the kernel spacing in this first virtual machine paging table.After the core of corresponding the first virtual machine is written into internal memory, then cause the first virtual machine to enter halted state.
As step S220, control module causes the second virtual machine to enter a halted state.In certain embodiments, when causing before the second virtual machine suspends, can be by data of the working storage of processing unit in the Secondary resource set of the second virtual machine, be recorded in the internal memory in the Secondary resource set of the second virtual machine.
As step S230, can be recorded by a virtual machine monitor corresponding relation of first user's space address and first instance memory address and the corresponding relation of second user's space address and second instance memory address.In the time of further, virtual machine monitor can be obtained the corresponding first instance memory address of first user's space address via the entity apparatus paging table of entity apparatus, and the corresponding second instance memory address of second user's space address.It should be noted that in certain embodiments, step S230 also can omit.
As step S240, control module is in the first virtual machine paging table, obtain first user's space address of the first virtual machine, in the second virtual machine paging table, obtain one second user's space address of the second virtual machine, then by virtual machine monitor, obtain the first instance memory address of first user's space address in entity apparatus, and the second instance memory address of second user's space address in entity apparatus.In certain embodiments, virtual machine monitor can be inquired about and obtain first instance memory address and the second instance memory address in entity apparatus via the entity apparatus page table of entity apparatus.Remind, as previously mentioned, in the virtual machine internal memory of corresponding the second virtual machine, can comprise a kernel spacing and a user space.Step S240 is mainly the user space of finding out beyond the kernel spacing of corresponding the second virtual machine.
Then,, as step S250, via virtual machine monitor, make the mutually required second instance memory address of first user's space address.In not omitting the embodiment of step S230, virtual machine monitor can be revised this corresponding relation in this virtual machine monitor, with this first instance memory address that should first user's space address by the phase being recorded in this corresponding relation all or part of, be substituted by this second instance memory address.
It should be noted that, in certain embodiments, when the first resource set of the first virtual machine is less than the specific resources in the Secondary resource set of the second virtual machine, for example adjusting the second virtual machine resource is in order to reduce the internal memory of the second virtual machine, can find out one the 3rd physical memory address of having used in corresponding second instance memory address according to the second virtual machine paging table, then via virtual machine monitor, so that mutually required the 3rd physical memory address of first user's space address.In not omitting the embodiment of step S230, virtual machine monitor can be revised the corresponding relation in virtual machine monitor, all or part of with by the first instance memory address of the corresponding first user's space address of recorded, is substituted by the 3rd physical memory address.
As step S260, control module causes the first virtual machine to enter an executing state, to operate according to the first virtual machine paging table.Afterwards, as step S270, control module stops the second virtual machine.In the time of further, after the second virtual machine stops, can discharging the resource in Secondary resource set.Therefore this case can obtain by virtual machine monitor the physical memory address of virtual machine user space address and entity apparatus, then allow the physical memory address of the mutually required old virtual machine of user's space address of new virtual machine, make the state of old virtual machine can be transferred to new virtual machine, and be used as the resource after adjustment with the corresponding resource collection of new virtual machine.
Next, for an example, describe.The resource of supposing one second virtual machine (old virtual machine) comprises the internal memory of a processing unit and a 1G size.When wish is adjusted into the internal memory of two processing units and a 2G size by the resource of the second virtual machine, can first produce one first virtual machine configuration file of corresponding one first virtual machine (new virtual machine), wherein, in the first virtual machine configuration file, define the internal memory of two processing units and a 2G size.Then, according to first virtual machine Profile Up the first virtual machine, the first virtual machine and the second virtual machine are suspended, and all or part of by the first instance memory address of first user's space address of first virtual machine that records in the corresponding relation in virtual machine monitor, is substituted by the second instance memory address of second user's space address of corresponding the second virtual machine.In virtual machine monitor, the first virtual machine can access to the related data of original the second virtual machine, in the first virtual machine paging table, other user space is the space after expanding.Afterwards, cause the first virtual machine to enter executing state, with normal operation.Finally, the handling procedure of corresponding the second virtual machine is ended, also can further be discharged the resource of the second virtual machine.
Therefore, seeing through the resource adjustment System of virtual machine of this case and method can be in the situation that needing virtual machine to shut down, and directly carries out the resource adjustment of respective virtual machine.By the method and system of this case, not only can avoid the inconvenience that causes due to break in service, more can promote related resource, as processing hardware and the utilization rate that stores hardware, and promote the usefulness of whole electronic device/hardware main frame.
Method of the present invention, or specific kenel or its part, can exist with the kenel of procedure code.Procedure code can be contained in tangible media, as floppy disk, CD-RW discsCD-RW, hard disk or any other electronic equipment or machine readable are got (as readable in computer) Storage Media, also or be not limited to the computer program product of external form, wherein, when procedure code is by machine, when being written into and carrying out as computer, this machine becomes to participate in device of the present invention or system, and can carry out method step of the present invention.Procedure code also can see through some transfer mediums, as electric wire or cable, optical fiber or any transmission kenel transmit, wherein, when procedure code is by electronic equipment or machine, when receiving, being written into and carrying out as computer, this machine becomes to participate in system of the present invention or device.When in general service processing unit implementation, procedure code provides a class of operation to be similar to the unique apparatus of application particular logic circuit in conjunction with processing unit.
Although the present invention discloses as above with preferred embodiment; so it is not in order to limit the present invention, any those skilled in the art, without departing from the spirit and scope of the present invention; when doing a little change and retouching, so protection scope of the present invention is when being as the criterion depending on the claim scope person of defining.

Claims (18)

1. the resource adjustment System of a virtual machine, it is characterized in that, described resource adjustment System is applicable at least one entity apparatus, described at least one entity apparatus at least comprises an operating system, a processing unit and an internal memory, and described at least one entity apparatus has a plurality of resources of distributing, one first virtual machine configuration file to move one first virtual machine, to move one second virtual machine, wherein said system comprises with one second virtual machine configuration file:
One storage element, stores one first virtual machine configuration file and one second virtual machine configuration file; And
One control module, causes described the first virtual machine to enter a halted state, and wherein, described the first virtual machine has a first resource set in described resource and one first virtual machine paging table of corresponding described the first virtual machine; Cause described the second virtual machine to enter a halted state, wherein, described the second virtual machine has a Secondary resource set in described resource and one second virtual machine paging table of corresponding described the second virtual machine, wherein, described the first virtual machine and the one of described the second virtual machine in described at least one entity apparatus are moved; In described the first virtual machine paging table, obtain one first user's space address of corresponding described the first virtual machine, in described the second virtual machine paging table, obtain one second user's space address of corresponding described the second virtual machine, and obtain corresponding described first user's space address and described second user's space address the first instance memory address in described at least one entity apparatus and a second instance memory address respectively by a virtual machine monitor; Via described virtual machine monitor, so that described first user's space address corresponds to described second instance memory address; Cause described the first virtual machine to enter an executing state, wherein, described the first virtual machine is according to described the first virtual machine paging table running; And, stop described the second virtual machine.
2. the resource adjustment System of virtual machine as claimed in claim 1, wherein, described virtual machine monitor more records one first corresponding relation of corresponding described first user's space address and described first instance memory address, with one second corresponding relation of corresponding described second user's space address and described second instance memory address; And, via described virtual machine monitor so that described first user's space address corresponds to described second instance memory address, it is described the first corresponding relation of revising in described virtual machine monitor, with by all or part of of the described first instance memory address of the corresponding described first user's space address being recorded in described the first corresponding relation, be substituted by described second instance memory address.
3. the resource adjustment System of virtual machine as claimed in claim 2, wherein, described virtual machine monitor records described the first corresponding relation and described the second corresponding relation, it is the entity apparatus paging table via described at least one entity apparatus, obtain the corresponding described first instance memory address of described first user's space address, with the corresponding described second instance memory address of described second user's space address.
4. the resource adjustment System of virtual machine as claimed in claim 1, wherein, by described virtual machine monitor, obtaining corresponding described first user's space address and described second user's space address the first instance memory address in described at least one entity apparatus and a second instance memory address respectively, is that described virtual machine monitor is inquired about and obtained via an entity apparatus page table of described at least one entity apparatus.
5. the resource adjustment System of virtual machine as claimed in claim 1, wherein, before being caused time-out at described the second virtual machine, described control module more comprises the data in a working storage of at least one processing unit in the described Secondary resource set of corresponding described the second virtual machine, is recorded in the internal memory in the described Secondary resource set of corresponding described the second virtual machine.
6. the resource adjustment System of virtual machine as claimed in claim 1, wherein, before described the first virtual machine is caused and enters described halted state, described control module more comprises the core of one first virtual machine operating system in corresponding described the first virtual machine, be written into the internal memory in described first resource set, as the kernel spacing in described the first virtual machine paging table.
7. the resource adjustment System of virtual machine as claimed in claim 1, wherein, described resource at least comprises a processing unit or an internal memory.
8. the resource adjustment System of virtual machine as claimed in claim 1, wherein, described control module more comprises according to described the second virtual machine paging table finds out one the 3rd physical memory address of having used in described second instance memory address; And, via described virtual machine monitor, so that described first user's space address corresponds to described the 3rd physical memory address.
9. the resource adjustment System of virtual machine as claimed in claim 8, wherein, described virtual machine monitor records one first corresponding relation of corresponding described first user's space address and described first instance memory address, with one second corresponding relation of corresponding described second user's space address and described second instance memory address; And, via described virtual machine monitor so that described first user's space address corresponds to described second instance memory address, that described virtual machine monitor is revised described the first corresponding relation in described virtual machine monitor, with by all or part of of the described first instance memory address of the corresponding described first user's space address being recorded in described the first corresponding relation, be substituted by described the 3rd physical memory address.
10. the resource adjusting method of a virtual machine, it is characterized in that, described resource adjusting method is applicable at least one entity apparatus, described at least one entity apparatus at least comprises an operating system, a processing unit and an internal memory, and described at least one entity apparatus has a plurality of resources of distributing, one first virtual machine configuration file to move one first virtual machine, to move one second virtual machine, described method comprises the following steps: with one second virtual machine configuration file
Cause described the first virtual machine to enter a halted state, wherein, described the first virtual machine has a first resource set in described resource and one first virtual machine paging table of corresponding described the first virtual machine, and the one of described the first virtual machine in described at least one entity apparatus moved;
Cause described the second virtual machine to enter a halted state, wherein, described the second virtual machine has a Secondary resource set in described resource and one second virtual machine paging table of corresponding described the second virtual machine, and the one of described the second virtual machine in described at least one entity apparatus moved;
In described the first virtual machine paging table, obtain one first user's space address of corresponding described the first virtual machine, in described the second virtual machine paging table, obtain one second user's space address of corresponding described the second virtual machine, and obtain corresponding described first user's space address and described second user's space address the first instance memory address in described at least one entity apparatus and a second instance memory address respectively by a virtual machine monitor;
Via described virtual machine monitor, so that described first user's space address corresponds to described second instance memory address;
Cause described the first virtual machine to enter an executing state, wherein, described the first virtual machine is according to described the first virtual machine paging table running; And
Stop described the second virtual machine.
The resource adjusting method of 11. virtual machines as claimed in claim 10, it is characterized in that, described virtual machine monitor more records one first corresponding relation of corresponding described first user's space address and described first instance memory address, with one second corresponding relation of corresponding described second user's space address and described second instance memory address; And, via described virtual machine monitor so that described first user's space address corresponds to described second instance memory address, revise described the first corresponding relation in described virtual machine monitor, with by all or part of of the described first instance memory address of the corresponding described first user's space address being recorded in described the first corresponding relation, be substituted by described second instance memory address.
The resource adjusting method of 12. virtual machines as claimed in claim 11, it is characterized in that, described virtual machine monitor records described the first corresponding relation and described the second corresponding relation, it is the entity apparatus paging table via described at least one entity apparatus, obtain the corresponding described first instance memory address of described first user's space address, with the corresponding described second instance memory address of described second user's space address.
The resource adjusting method of 13. virtual machines as claimed in claim 10, it is characterized in that, by described virtual machine monitor, obtaining corresponding described first user's space address and described second user's space address the first instance memory address in described at least one entity apparatus and a second instance memory address respectively, is that described virtual machine monitor is inquired about and obtained via an entity apparatus page table of described at least one entity apparatus.
The resource adjusting method of 14. virtual machines as claimed in claim 10, it is characterized in that, before being caused time-out at described the second virtual machine, more comprise the data in a working storage of at least one processing unit in the described Secondary resource set of corresponding described the second virtual machine, be recorded in the internal memory in the described Secondary resource set of corresponding described the second virtual machine.
The resource adjusting method of 15. virtual machines as claimed in claim 10, it is characterized in that, before described the first virtual machine is caused and enters described halted state, more comprise the core of one first virtual machine operating system in corresponding described the first virtual machine, be written into the internal memory in described first resource set, as the kernel spacing in described the first virtual machine paging table.
The resource adjusting method of 16. virtual machines as claimed in claim 10, is characterized in that, described resource at least comprises a processing unit or an internal memory.
The resource adjusting method of 17. virtual machines as claimed in claim 10, is characterized in that, described resource adjusting method more comprises the following steps:
According to described the second virtual machine paging table, find out one the 3rd physical memory address of having used in described second instance memory address; And
Via described virtual machine monitor, so that described first user's space address corresponds to described the 3rd physical memory address.
The resource adjusting method of 18. virtual machines as claimed in claim 17, it is characterized in that, described virtual machine monitor records one first corresponding relation of corresponding described first user's space address and described first instance memory address, with one second corresponding relation of corresponding described second user's space address and described second instance memory address; And, via described virtual machine monitor so that described first user's space address corresponds to described second instance memory address, described virtual machine monitor is described the first corresponding relation of revising in described virtual machine monitor, with by all or part of of the described first instance memory address of the corresponding described first user's space address being recorded in described the first corresponding relation, be substituted by described the 3rd physical memory address.
CN201010245032.XA 2010-08-02 2010-08-02 Resource adjusting system and method for virtual machine Expired - Fee Related CN102346680B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010245032.XA CN102346680B (en) 2010-08-02 2010-08-02 Resource adjusting system and method for virtual machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010245032.XA CN102346680B (en) 2010-08-02 2010-08-02 Resource adjusting system and method for virtual machine

Publications (2)

Publication Number Publication Date
CN102346680A CN102346680A (en) 2012-02-08
CN102346680B true CN102346680B (en) 2014-04-09

Family

ID=45545383

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010245032.XA Expired - Fee Related CN102346680B (en) 2010-08-02 2010-08-02 Resource adjusting system and method for virtual machine

Country Status (1)

Country Link
CN (1) CN102346680B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104657082A (en) * 2013-11-18 2015-05-27 英业达科技有限公司 Computer device and memorizer management method

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7203944B1 (en) * 2003-07-09 2007-04-10 Veritas Operating Corporation Migrating virtual machines among computer systems to balance load caused by virtual machines
CN101135997A (en) * 2006-08-29 2008-03-05 联想(北京)有限公司 Virtual machine system and hardware equipment interrupt handling method thereof

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4756603B2 (en) * 2006-10-10 2011-08-24 ルネサスエレクトロニクス株式会社 Data processor

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7203944B1 (en) * 2003-07-09 2007-04-10 Veritas Operating Corporation Migrating virtual machines among computer systems to balance load caused by virtual machines
CN101135997A (en) * 2006-08-29 2008-03-05 联想(北京)有限公司 Virtual machine system and hardware equipment interrupt handling method thereof

Also Published As

Publication number Publication date
CN102346680A (en) 2012-02-08

Similar Documents

Publication Publication Date Title
CN104838373B (en) For the devices, systems, and methods of multiple calculate node management based on single microcontroller
CN103399781A (en) Cloud server and virtual machine management method thereof
CN110427284A (en) Data processing method, distributed system, computer system and medium
CN103309721A (en) Virtual machine monitor management system and method
CN101120317A (en) Method, apparatus and system for dynamically reassigning memory from one virtual machine to another
CN102591709B (en) Shapefile master-slave type parallel writing method based on OGR (open geospatial rule)
CN103403689A (en) Resource failure management method, device and system
CN105446657A (en) Method for monitoring RAID card
KR102646619B1 (en) Method and system providing file system for an electronic device comprising a composite memory device
EP3171274B1 (en) Resource leak detecting method and apparatus
CN103810429A (en) Computer virus searching and killing method based on desktop cloud virtualization technology
CN104111867B (en) A kind of virtual machine (vm) migration device and method
CN102929769A (en) Virtual machine internal-data acquisition method based on agency service
CN102799465A (en) Virtual interrupt management method and device of distributed virtual system
CN104205780A (en) Data storage method and device
CN104123183A (en) Cluster assignment dispatching method and device
WO2019062019A1 (en) Data list exporting method and terminal using same
CN104517067A (en) Method, device and system for data access
CN104252416A (en) Accelerator and data processing method
CN102346680B (en) Resource adjusting system and method for virtual machine
CN110532150B (en) Case management method and device, storage medium and processor
CN105045727A (en) Method and equipment for accessing shared memories
CN102521102A (en) Monitoring management method of physical multi-partition computer system based on Non Uniform Memory Access (NUMA)
CN106445634A (en) Container monitoring method and device
CN105373346A (en) Virtual storage method and virtual storage device

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20140409

CF01 Termination of patent right due to non-payment of annual fee