CN105677485B - The memory dynamic adjusting method of cloud desktop host and virtual machine - Google Patents

The memory dynamic adjusting method of cloud desktop host and virtual machine Download PDF

Info

Publication number
CN105677485B
CN105677485B CN201610011909.6A CN201610011909A CN105677485B CN 105677485 B CN105677485 B CN 105677485B CN 201610011909 A CN201610011909 A CN 201610011909A CN 105677485 B CN105677485 B CN 105677485B
Authority
CN
China
Prior art keywords
memory
host
virtual machine
safe dose
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.)
Active
Application number
CN201610011909.6A
Other languages
Chinese (zh)
Other versions
CN105677485A (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.)
Shanghai Caian Financial Services Group Co ltd
Original Assignee
CLP SECTION HUAYUN INFORMATION TECHNOLOGY 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 CLP SECTION HUAYUN INFORMATION TECHNOLOGY Co Ltd filed Critical CLP SECTION HUAYUN INFORMATION TECHNOLOGY Co Ltd
Priority to CN201610011909.6A priority Critical patent/CN105677485B/en
Publication of CN105677485A publication Critical patent/CN105677485A/en
Application granted granted Critical
Publication of CN105677485B publication Critical patent/CN105677485B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5011Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
    • G06F9/5016Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals the resource being the memory
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5061Partitioning or combining of resources
    • G06F9/5077Logical partitioning of resources; Management or configuration of virtualized resources

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Memory System Of A Hierarchy Structure (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The present invention provides the memory dynamic adjusting methods of a kind of cloud desktop host and virtual machine, including step 1, monitoring memory;Monitoring host computer memory and virtual machine free memory situation.Step 2, adjustment memory;If Host Idle memory is lower than safe dose, the free memory of virtual machine thereon is extracted, if Host Idle memory is higher than safe dose, memory is returned into virtual machine, host memory is finally reached and virutal machine memory is all higher than safe dose.Step 3, alarm information notify administrator.Monitoring host computer memory of the present invention is based on safe dose, reduces dynamic adjustment frequency, and virtual machine is made to have the request of sufficient memory reply burst;The setting of virutal machine memory safe dose can ensure the normal operation of virtual machine.

Description

The memory dynamic adjusting method of cloud desktop host and virtual machine
Technical field
The present invention relates to cloud desktop technology fields, and in particular, to a kind of memory dynamic of cloud desktop host and virtual machine Method of adjustment.
Background technique
The dynamic adjustment of virutal machine memory plays a crucial role in desktop cloud environment, directly determines server Memory source utilization rate increases the quantity that can carry virtual machine instance.
In existing technology, virutal machine memory dynamic adjustment has following defect:
1, existing method can not allow virtual machine sufficiently to use memory source in the case where host-physical memory is sufficient;
2, the safe dose for being not provided with virutal machine memory ensures the normal operation of virtual machine;
3, the triggering warning of enough memories repeatedly still can not be normally obtained after dynamic adjustment virutal machine memory.
Such as Chinese patent " virutal machine memory method of adjustment and equipment " (application number: 201180003694.9), Chinese patent " method and system of virutal machine memory are dynamically adjusted in cloud computing environment " (application number: 201310594574.1), the two discloses Technical essential be that virutal machine memory is adjusted according to virutal machine memory utilization rate, be not according to the host where virtual machine Memory is adjusted, and is not handled effectively unsuccessfully adjustment.
Summary of the invention
For the defects in the prior art, it is dynamic that the object of the present invention is to provide the memories of a kind of cloud desktop host and virtual machine State method of adjustment.
According to an aspect of the present invention, the memory dynamic adjusting method of a kind of cloud desktop host and virtual machine is provided, It is characterized in, wherein steps are as follows for host memory dynamic adjusting method:
(1) virutal machine memory safe dose and host memory safe dose are set;
(2) start the virtual machine of host and its lower configuration;
(3) monitoring host computer memory, if Host Idle memory is lower than the host memory safe dose,
(4) virutal machine memory under the host is monitored, the void that free memory is greater than the virutal machine memory safe dose is extracted The spare memory of quasi- machine;
(5) if Host Idle memory is higher than the host memory safe dose, adjustment terminates;Otherwise return step (4) It is completed until all virtual machines are all monitored under the host;
(6) if Host Idle memory is still below the host memory safe dose, host is alarmed,
Steps are as follows for virutal machine memory dynamic adjusting method:
(a) virutal machine memory safe dose and host memory safe dose are set;
(b) start the virtual machine of host and its lower configuration;
(c) monitoring host computer memory, if Host Idle memory is higher than the host memory safe dose,
(d) virutal machine memory under the host is monitored, host spare memory is distributed to free memory virtual lower than described The virtual machine of machine memory safe dose;
If (e) Host Idle Memory Allocation to all virtual machine free memories under it are above the virutal machine memory peace When full dose, then adjustment terminates;
If (f) Host Idle Memory Allocation is complete, still there is virtual machine free memory to be lower than the virutal machine memory safe dose, Then host is alarmed.
Preferably, in (d) step, Host Idle memory is preferentially distributed in described (4) step and is extracted memory Virtual machine.
Preferably, the warning message in described (6) step and (f) step is sent to system manager.
Compared with prior art, the present invention have it is following the utility model has the advantages that
(1) monitoring host computer memory is based on safe dose, reduces dynamic adjustment frequency, and virtual machine is made to have sufficient memory reply The request of burst;
(2) setting of virutal machine memory safe dose can ensure the normal operation of virtual machine;
(3) when host memory or virutal machine memory are lower than safe dose, administrator can be notified by alarm in time.
Detailed description of the invention
Upon reading the detailed description of non-limiting embodiments with reference to the following drawings, other feature of the invention, Objects and advantages will become more apparent upon:
Fig. 1 is flow chart of the method for the present invention.
Specific embodiment
The present invention is described in detail combined with specific embodiments below.Following embodiment will be helpful to the technology of this field Personnel further understand the present invention, but the invention is not limited in any way.It should be pointed out that the ordinary skill of this field For personnel, without departing from the inventive concept of the premise, various modifications and improvements can be made.These belong to the present invention Protection scope.
Referring to attached drawing 1, the memory dynamic adjusting method of cloud desktop host and virtual machine is realized by following basic step:
Step 1: monitoring memory;Monitoring host computer memory and virtual machine free memory situation.
Step 2: adjustment memory;If Host Idle memory is lower than safe dose, the free memory of virtual machine thereon is extracted, it is such as main Machine free memory is higher than safe dose, and memory is returned to virtual machine, host memory and virutal machine memory is finally reached and is all higher than peace Full dose.
If host memory is lower than safe dose, inquiry free memory is higher than the virtual machine of safe dose, extracts its memory, confirmation master Whether machine free memory is higher than safe dose, is, adjustment terminates;Otherwise 3 are gone to step.
If host memory is higher than safe dose, the plan of giving back is formulated, inquires decimated virtual machine, calculating need to give back interior It deposits, preferentially meets the virtual machine that memory is lower than safe dose, other virtual machines give back the memory that a part has extracted, and return if success Otherwise also virutal machine memory goes to step 3.
Step 3: alarm;Based on message informing administrator.
Detailed step includes host memory dynamic adjusting method, and steps are as follows:
(1) virutal machine memory safe dose and host memory safe dose are set;
(2) start the virtual machine of host and its lower configuration;
(3) monitoring host computer memory, if Host Idle memory is lower than the host memory safe dose,
(4) virutal machine memory under the host is monitored, the void that free memory is greater than the virutal machine memory safe dose is extracted The spare memory of quasi- machine;
(5) if Host Idle memory is higher than the host memory safe dose, adjustment terminates;Otherwise return step (4) It is completed until all virtual machines are all monitored under the host;
(6) if Host Idle memory is still below the host memory safe dose, host is alarmed,
Steps are as follows for virutal machine memory dynamic adjusting method:
(a) virutal machine memory safe dose and host memory safe dose are set;
(b) start the virtual machine of host and its lower configuration;
(c) monitoring host computer memory, if Host Idle memory is higher than the host memory safe dose,
(d) virutal machine memory under the host is monitored, host spare memory is distributed to free memory virtual lower than described The virtual machine of machine memory safe dose;
If (e) Host Idle Memory Allocation to all virtual machine free memories under it are above the virutal machine memory peace When full dose, then adjustment terminates;
If (f) Host Idle Memory Allocation is complete, still there is virtual machine free memory to be lower than the virutal machine memory safe dose, Then host is alarmed.
In (d) step, Host Idle memory preferentially distributes to the virtual machine that memory is extracted in described (4) step.
Warning message in (6) step and (f) step is sent to system manager.
Specific embodiments of the present invention are described above.It is to be appreciated that the invention is not limited to above-mentioned Particular implementation, those skilled in the art can make various deformations or amendments within the scope of the claims, this not shadow Ring substantive content of the invention.

Claims (3)

1. the memory dynamic adjusting method of a kind of cloud desktop host and virtual machine, which is characterized in that wherein host memory dynamic is adjusted Steps are as follows for adjusting method:
(1) virutal machine memory safe dose and host memory safe dose are set;
(2) start the virtual machine of host and its lower configuration;
(3) monitoring host computer memory, if Host Idle memory is lower than the host memory safe dose,
(4) virutal machine memory under the host is monitored, the virtual machine that free memory is greater than the virutal machine memory safe dose is extracted Spare memory;
(5) if Host Idle memory is higher than the host memory safe dose, adjustment terminates;Otherwise return step (4) until All virtual machines are all monitored under the host completes;
(6) if Host Idle memory is still below the host memory safe dose, host is alarmed,
Steps are as follows for virutal machine memory dynamic adjusting method:
(a) virutal machine memory safe dose and host memory safe dose are set;
(b) start the virtual machine of host and its lower configuration;
(c) monitoring host computer memory, if Host Idle memory is higher than the host memory safe dose,
(d) virutal machine memory under the host is monitored, host spare memory is distributed to free memory lower than in the virtual machine Deposit the virtual machine of safe dose;
If (e) Host Idle Memory Allocation is complete, when all virtual machine free memories are above the virutal machine memory safe dose, Then adjustment terminates;
If (f) Host Idle Memory Allocation is complete, still there is virtual machine free memory lower than the virutal machine memory safe dose, then lead Machine alarm.
2. the memory dynamic adjusting method of cloud desktop host according to claim 1 and virtual machine, which is characterized in that described In (d) step, Host Idle memory preferentially distributes to the virtual machine that memory is extracted in described (4) step.
3. the memory dynamic adjusting method of cloud desktop host according to claim 1 and virtual machine, which is characterized in that described Warning message in (6) step and (f) step is sent to system manager.
CN201610011909.6A 2016-01-08 2016-01-08 The memory dynamic adjusting method of cloud desktop host and virtual machine Active CN105677485B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610011909.6A CN105677485B (en) 2016-01-08 2016-01-08 The memory dynamic adjusting method of cloud desktop host and virtual machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610011909.6A CN105677485B (en) 2016-01-08 2016-01-08 The memory dynamic adjusting method of cloud desktop host and virtual machine

Publications (2)

Publication Number Publication Date
CN105677485A CN105677485A (en) 2016-06-15
CN105677485B true CN105677485B (en) 2018-12-18

Family

ID=56299530

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610011909.6A Active CN105677485B (en) 2016-01-08 2016-01-08 The memory dynamic adjusting method of cloud desktop host and virtual machine

Country Status (1)

Country Link
CN (1) CN105677485B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107273212A (en) * 2017-06-23 2017-10-20 郑州云海信息技术有限公司 A kind of method and system of dynamic assigning memory
CN107341060B (en) * 2017-07-17 2021-02-05 苏州浪潮智能科技有限公司 Virtual machine memory allocation method and device
GB2564863A (en) * 2017-07-24 2019-01-30 Bering Ltd Containerized application platform
CN112732449B (en) * 2021-01-20 2024-04-09 湖南大学 Video memory resource allocation method, device and equipment based on GPU virtualization technology
CN116524776B (en) * 2022-12-08 2024-01-12 深圳市鞑和科技有限公司 Multi-module electromechanical basic teaching training platform

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7433951B1 (en) * 2000-09-22 2008-10-07 Vmware, Inc. System and method for controlling resource revocation in a multi-guest computer system
CN102306126A (en) * 2011-08-24 2012-01-04 华为技术有限公司 Memory management method, device and system
CN102779074A (en) * 2012-06-18 2012-11-14 中国人民解放军国防科学技术大学 Internal memory resource distribution method based on internal memory hole mechanism
CN103502944A (en) * 2011-11-28 2014-01-08 华为技术有限公司 Method and device for adjusting memories of virtual machines

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7433951B1 (en) * 2000-09-22 2008-10-07 Vmware, Inc. System and method for controlling resource revocation in a multi-guest computer system
CN102306126A (en) * 2011-08-24 2012-01-04 华为技术有限公司 Memory management method, device and system
CN103502944A (en) * 2011-11-28 2014-01-08 华为技术有限公司 Method and device for adjusting memories of virtual machines
CN102779074A (en) * 2012-06-18 2012-11-14 中国人民解放军国防科学技术大学 Internal memory resource distribution method based on internal memory hole mechanism

Also Published As

Publication number Publication date
CN105677485A (en) 2016-06-15

Similar Documents

Publication Publication Date Title
CN105677485B (en) The memory dynamic adjusting method of cloud desktop host and virtual machine
CN109213600B (en) GPU resource scheduling method and device based on AI cloud
CN106874076B (en) Distributed transaction processing method
KR101403416B1 (en) Method system for managing virtual machine storage space and physical host
CN109309631A (en) A kind of method and device based on universal network file system write-in data
CN109614377A (en) File delet method, device, equipment and the storage medium of distributed file system
CN104572415B (en) A kind of transaction log record method suitable for distributed system
GB2434670A (en) Monitoring and management of distributed information systems
US10191909B2 (en) File system creating and deleting apparatus and driving method thereof
CN107704904B (en) Gas equipment management system and method and mobile terminal
WO2019080232A1 (en) Task information transmission method and apparatus in workflow system, and computer device
CN110784377A (en) Method for uniformly managing cloud monitoring data in multi-cloud environment
CN107577578A (en) Count method, apparatus, equipment and the storage medium of NFS operation word time delay
CN109992566A (en) A kind of file access method, device, equipment and readable storage medium storing program for executing
CN106020931A (en) Heat-based cloud application deployment scheme
CN109240614A (en) A kind of date storage method, device and relevant device
CN108255608B (en) Management method of memory pool
CN110704872A (en) Data query method and device, electronic equipment and computer readable storage medium
CN109947489A (en) External equipment management method, device, equipment and storage medium based on container
CN111459631A (en) Automatic batch processing method and system for server
CN104991849A (en) Method for monitoring system resource occupation of Linux process through zabbix
CN109165175A (en) Device identification generation method and device
CN106845215A (en) Based on safety protecting method and device under virtualized environment
CN109471989A (en) A kind of page request processing method and relevant apparatus
CN113722154B (en) Data management method and system, monitoring server and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20240724

Address after: Room 801, 8th Floor, No. 43, Handan Road, Hongkou District, Shanghai, 200437

Patentee after: SHANGHAI CAIAN FINANCIAL SERVICES GROUP CO.,LTD.

Country or region after: China

Address before: Room 552, building 7, 509 Huajing Road, Xuhui District, Shanghai 200231

Patentee before: CETC KEHUAYUN INFORMATION TECHNOLOGY Co.,Ltd.

Country or region before: China