CN104536905B - A kind of EMS memory management process and system - Google Patents
A kind of EMS memory management process and system Download PDFInfo
- Publication number
- CN104536905B CN104536905B CN201510018655.6A CN201510018655A CN104536905B CN 104536905 B CN104536905 B CN 104536905B CN 201510018655 A CN201510018655 A CN 201510018655A CN 104536905 B CN104536905 B CN 104536905B
- Authority
- CN
- China
- Prior art keywords
- cleaned
- chained list
- memory
- internal memory
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 19
- 238000004140 cleaning Methods 0.000 claims abstract description 26
- 239000003550 marker Substances 0.000 claims abstract description 8
- 238000005516 engineering process Methods 0.000 description 5
- 238000010586 diagram Methods 0.000 description 2
- 238000000151 deposition Methods 0.000 description 1
- 230000004927 fusion Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000011084 recovery Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The present invention provides a kind of EMS memory management process and system, the above method and comprised the following steps:When destroying virtual machine, the memory marker in the virtual machine is state to be cleaned and is put into chained list to be cleaned;When creating virtual machine, according to default Memory Allocation Strategy, internal memory corresponding to being obtained from corresponding chained list, it is allocated processing, traditional isochronous memory cleaning operation is converted into asynchronous cleaning operation by the present invention, is cleaned by postponing internal memory, is greatly reduced and is created and destroy the time that virtual machine is consumed, the hypervisor efficiency of management has been heightened, has improved Consumer's Experience.
Description
Technical field
The invention belongs to memory management field, more particularly to a kind of EMS memory management process and system.
Background technology
With the rise of cloud computing, the virtualization technology of wherein one of key technology is formed as focus outer in the industry, it is empty
Planization technology is no longer limited to IT development fields, but has moved towards the resource infrastructure aspect of more wide fusion broad sense,
Influenceed by virtualization concept, IT resources are forming a kind of new system, calculating, storage and net needed for dynamic combined adjustment
Network resource is to adapt to final business demand.
Hypervisor(virtual machine moni tor;Virtual machine monitor VMM) it is for managing and creating
The basic software of virtual machine:Such as the commercial VMware ESXi and Xen/KVM to increase income, all it is current main flow
hypervisor.For hypervisor, CPU and internal memory are the important objects of its management.In virtualized environment, internal memory
Different virtual machines may successively be distributed to, in order to avoid information leakage, hypervisor must virtual machine using internal memory it
It is preceding it to be cleaned (clearing).
Traditional internal memory cleaning method is as shown in Figure 1:When destroying virtual machine VM, internal memory in virtual machine VM is reclaimed and to it
Cleaning is synchronized, the internal memory after cleaning is put into clen chained lists;When creating virtual machine, apply for internal memory from clen chained lists.This
Kind convential memory cleaning method continuously emerges with the extensive use of virtualization technology, big specification virtual machine, causes to handle imperial palace
The low getting worse of efficiency when depositing, therefore there is an urgent need to a kind of efficient internal memory cleaning means, it is virtual that reply manages big specification
Machine produced problem.
The content of the invention
The present invention provides a kind of EMS memory management process and system, to solve the above problems.
The present invention also provides a kind of EMS memory management process, comprises the following steps:
When destroying virtual machine, the memory marker in the virtual machine is state to be cleaned and is put into chained list to be cleaned;
When creating virtual machine, according to default Memory Allocation Strategy, internal memory corresponding to acquisition, is allocated from corresponding chained list
Processing.
The present invention also provides a kind of internal storage management system, including chained list creation module, memory management module;Wherein, it is described
Chained list creation module is connected with the memory management module;
The chained list creation module, for creating chained list to be cleaned, having cleaned chained list and by the chain to be cleaned of establishment
Table, chained list is cleaned and has sent to the memory management module;
The memory management module, it is shape to be cleaned by the memory marker in the virtual machine during for destroying virtual machine
State is simultaneously put into chained list to be cleaned;When being additionally operable to create virtual machine, according to default Memory Allocation Strategy, the acquisition pair from corresponding chained list
The internal memory answered, it is allocated processing.
Compared to prior art, according to a kind of EMS memory management process provided by the invention and system, by internal memory according to whether
Need to clean, be divided into two classes:" clean " and " dirty " is, it is necessary to which internal memory only needs to mark memory setting classification when cleaning, whereby
Postpone internal memory cleaning operation, and internal memory cleaning is completed when the system free time;If system load is higher, in application internal memory
When complete again internal memory cleaning.Thus traditional isochronous memory cleaning operation is converted into asynchronous cleaning operation, by postponing internal memory
Cleaning, greatly reduce and create and destroy the time that virtual machine is consumed, heightened the hypervisor efficiency of management, improved
Consumer's Experience.
Brief description of the drawings
Accompanying drawing described herein is used for providing a further understanding of the present invention, forms the part of the application, this hair
Bright schematic description and description is used to explain the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 show the EMS memory management process flow chart of prior art;
Fig. 2 show the EMS memory management process flow chart of the present invention;
Fig. 3 show the EMS memory management process schematic diagram of the present invention;
Fig. 4 show the internal storage management system structure chart of the present invention.
Embodiment
Describe the present invention in detail below with reference to accompanying drawing and in conjunction with the embodiments.It should be noted that do not conflicting
In the case of, the feature in embodiment and embodiment in the application can be mutually combined.
Fig. 2 show the EMS memory management process flow chart of the present invention, comprises the following steps:
Step 201:Pre-set chained list to be cleaned, cleaned chained list, store internal memory to be cleaned respectively and cleaned internal memory;
Step 202:When destroying virtual machine, the memory marker in the virtual machine for state to be cleaned and is put into be cleaned
Chained list;
When virtual machine monitor destroys virtual machine, the memory marker in the virtual machine is " dirty " and is put into dirty
Chained list.
Step 203:When creating virtual machine, according to default Memory Allocation Strategy, the internal memory corresponding to acquisition from corresponding chained list,
It is allocated processing.
When creating virtual machine, according to default Memory Allocation Strategy, internal memory corresponding to acquisition, is allocated from corresponding chained list
The process of processing is:
When virtual machine monitor creates virtual machine, first from having cleaned the corresponding internal memory of search in chained list (clean chained lists), if
Search, then by the Memory Allocation to the virtual machine created;Otherwise, scanned in chained list to be cleaned, obtain corresponding treat
After cleaning internal memory and the internal memory to be cleaned being cleaned, by the Memory Allocation after cleaning to the virtual machine created.
If search is less than corresponding internal memory to be cleaned in chained list to be cleaned, feedback creates virtual machine failure.
If system CPU is in idle condition, captures an internal memory to be cleaned from the gauge outfit of chained list to be cleaned and cleaned
Afterwards, it is put into and has cleaned chained list table tail.
Fig. 3 show the EMS memory management process schematic diagram of the present invention, and when destroying virtual machine, the internal memory in recovery virtual machine is simultaneously
It is put into dirty chained lists, during the system free time, after line asynchronous cleaning is entered to the internal memory in dirty chained lists, is put into clean chained lists;
When creating virtual machine, when corresponding internal memory is obtained from clean chained lists or creating virtual machine, obtained from clean chained lists less than
During corresponding internal memory, corresponding internal memory is obtained from dirty chained lists, synchronizes cleaning.
Fig. 4 show the internal storage management system structure chart of the present invention, including chained list creation module, memory management module;Its
In, the chained list creation module is connected with the memory management module;
The chained list creation module, for creating chained list to be cleaned, having cleaned chained list and by the chain to be cleaned of establishment
Table, chained list is cleaned and has sent to the memory management module;
The memory management module, it is shape to be cleaned by the memory marker in the virtual machine during for destroying virtual machine
State is simultaneously put into chained list to be cleaned;When being additionally operable to create virtual machine, according to default Memory Allocation Strategy, the acquisition pair from corresponding chained list
The internal memory answered, it is allocated processing.
Compared to prior art, according to a kind of EMS memory management process provided by the invention and system, by memory pages according to
Whether need to clean, be divided into two classes:" clean " and " dirty ", it is necessary to internal memory clean when only need mark memory setting classification,
Postpone internal memory cleaning operation whereby, and internal memory cleaning is completed when the system free time;If system load is higher, applying
Internal memory cleaning is completed during internal memory again.Thus traditional isochronous memory cleaning operation is converted into asynchronous cleaning operation, passes through delay
Internal memory cleans, and greatly reduces and creates and destroy the time that virtual machine is consumed, has heightened the hypervisor efficiency of management, carried
Consumer's Experience is risen.
The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the invention, for the skill of this area
For art personnel, the present invention can have various modifications and variations.Within the spirit and principles of the invention, that is made any repaiies
Change, equivalent substitution, improvement etc., should be included in the scope of the protection.
Claims (3)
1. a kind of EMS memory management process, it is characterised in that comprise the following steps:
Pre-set chained list to be cleaned, cleaned chained list, store internal memory to be cleaned respectively and cleaned internal memory;
If system CPU is in idle condition, after gauge outfit one internal memory to be cleaned of crawl of chained list to be cleaned is cleaned, put
Enter to have cleaned chained list table tail;
When destroying virtual machine, the memory marker in the virtual machine is state to be cleaned and is put into chained list to be cleaned;
When creating virtual machine, according to default Memory Allocation Strategy, internal memory corresponding to acquisition, is allocated place from corresponding chained list
Reason, including:First from the corresponding internal memory of search in chained list has been cleaned, if searching, by the Memory Allocation to the virtual of establishment
Machine;Otherwise, scanned in chained list to be cleaned, obtain corresponding internal memory to be cleaned and the internal memory to be cleaned is cleaned
Afterwards, by the Memory Allocation after cleaning to the virtual machine created.
2. according to the method for claim 1, it is characterised in that if being searched in chained list to be cleaned to be cleaned less than corresponding
Internal memory, then feedback establishment virtual machine failure.
3. a kind of internal storage management system, it is characterised in that including chained list creation module, memory management module;Wherein, the chained list
Creation module is connected with the memory management module;
The chained list creation module, for creating chained list to be cleaned, having cleaned chained list, internal memory to be cleaned is stored respectively and has been cleaned
Internal memory;And for by the chained list to be cleaned of establishment, cleaned chained list and sent to the memory management module;
The memory management module, if be in idle condition for system CPU, capture one from the gauge outfit of chained list to be cleaned and treat
After cleaning internal memory is cleaned, it is put into and has cleaned chained list table tail;
The memory management module, it is state to be cleaned by the memory marker in the virtual machine when being additionally operable to destroy virtual machine
And it is put into chained list to be cleaned;When being additionally operable to create virtual machine, according to default Memory Allocation Strategy, obtained from corresponding chained list corresponding
Internal memory, be allocated processing, including:First from the corresponding internal memory of search in chained list has been cleaned, if searching, by the internal memory
Distribute to the virtual machine of establishment;Otherwise, scanned in chained list to be cleaned, obtain corresponding internal memory to be cleaned and treated clearly to described
Wash after internal memory cleaned, by the Memory Allocation after cleaning to the virtual machine created.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510018655.6A CN104536905B (en) | 2015-01-14 | 2015-01-14 | A kind of EMS memory management process and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510018655.6A CN104536905B (en) | 2015-01-14 | 2015-01-14 | A kind of EMS memory management process and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104536905A CN104536905A (en) | 2015-04-22 |
CN104536905B true CN104536905B (en) | 2018-02-02 |
Family
ID=52852435
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510018655.6A Active CN104536905B (en) | 2015-01-14 | 2015-01-14 | A kind of EMS memory management process and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104536905B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112114961B (en) * | 2020-08-21 | 2022-05-31 | 苏州浪潮智能科技有限公司 | Memory allocation method and device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6904589B1 (en) * | 1998-12-23 | 2005-06-07 | International Business Machines Corporation | Virtual machine memory management |
CN102236603A (en) * | 2010-04-29 | 2011-11-09 | 国际商业机器公司 | Garbage recycling method and system in virtual environment |
CN102306126A (en) * | 2011-08-24 | 2012-01-04 | 华为技术有限公司 | Memory management method, device and system |
CN103365784A (en) * | 2013-06-27 | 2013-10-23 | 华为技术有限公司 | Method and device for memory recycle and allocation |
CN104102460A (en) * | 2014-07-23 | 2014-10-15 | 浪潮(北京)电子信息产业有限公司 | Cloud computing-based memory management method and device |
-
2015
- 2015-01-14 CN CN201510018655.6A patent/CN104536905B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6904589B1 (en) * | 1998-12-23 | 2005-06-07 | International Business Machines Corporation | Virtual machine memory management |
CN102236603A (en) * | 2010-04-29 | 2011-11-09 | 国际商业机器公司 | Garbage recycling method and system in virtual environment |
CN102306126A (en) * | 2011-08-24 | 2012-01-04 | 华为技术有限公司 | Memory management method, device and system |
CN103365784A (en) * | 2013-06-27 | 2013-10-23 | 华为技术有限公司 | Method and device for memory recycle and allocation |
CN104102460A (en) * | 2014-07-23 | 2014-10-15 | 浪潮(北京)电子信息产业有限公司 | Cloud computing-based memory management method and device |
Also Published As
Publication number | Publication date |
---|---|
CN104536905A (en) | 2015-04-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102110121B (en) | A kind of data processing method and system thereof | |
CN102307206B (en) | Caching system and caching method for rapidly accessing virtual machine images based on cloud storage | |
CN102521712B (en) | A kind of process instance data processing method and device | |
CN103473277B (en) | The Snapshot Method and device of file system | |
DE102018005103A1 (en) | Techniques for migrating a virtual machine using distributed computing resources | |
CN104461744A (en) | Resource allocation method and device | |
US10031843B2 (en) | Managing memory in a computer system | |
CN105446814A (en) | Cache recovery method and device | |
DE112011102183T5 (en) | Accelerator for virtual machine migration | |
CN104834599A (en) | WEB security detection method and device | |
CN103116627A (en) | Database access method with high concurrency service-oriented architecture (SOA) technology and system | |
CN105184501A (en) | Efficient asynchronous order processing method | |
CN105812175A (en) | Resource management method and resource management device | |
CN114202027A (en) | Execution configuration information generation method, model training method and device | |
CN109376151A (en) | Data divide library processing method, system, device and storage medium | |
CN101937360A (en) | Method and device for creating virtual machines | |
CN104536905B (en) | A kind of EMS memory management process and system | |
CN105260244A (en) | Task scheduling method and device for distributed system | |
CN105653347A (en) | Server, resource management method and virtual machine manager | |
CN105141691A (en) | System and method for automatically expanding virtual machine cluster under cloud computing | |
CN103970592A (en) | Single-thread multi-task processing method and server of transaction middleware | |
CN106598697A (en) | Virtual memory dynamic allocation method of virtual machine | |
CN105740054A (en) | Virtual machine management method and device | |
CN107220129B (en) | Communication method and system between software modules | |
CN103530239A (en) | Method for improving performance of communication server by using memory pool |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |