Supercharge Your Innovation With Domain-Expert AI Agents!

Memory optimization method and device based on physical memory in virtual environment

A physical memory, physical technology, applied in the field of communication systems, can solve problems such as low program operation efficiency, memory optimization failure, discontinuity, etc.

Active Publication Date: 2017-07-07
ALCATEL LUCENT SHANGHAI BELL CO LTD
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

For example, continuous memory allocation in a virtual machine may become discontinuous after mapping, making the program run inefficiently
[0005] In addition, in a virtualized cloud environment, when a virtual machine is migrated offline, the physical memory structure of the host machine (host machine) may change, such as from NUMA to non-NUMA architecture. Will cause the memory optimization applied in the original virtual machine to fail

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Memory optimization method and device based on physical memory in virtual environment
  • Memory optimization method and device based on physical memory in virtual environment
  • Memory optimization method and device based on physical memory in virtual environment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0023] Embodiments of the present invention are described below with reference to the drawings.

[0024] refer to figure 1 and figure 2 , when creating a virtual machine, the virtual machine monitor (VMM) configures a fixed-size contiguous physical memory for the virtual machine.

[0025] When the application program in the guest operating system (Guest OS) is started, first, in step S21, the application program sends a first request message to the agent client (MM_Agent_Client) in the guest operating system of the virtual machine. The first request message is used to query the physical memory characteristics of the host (Host). Advantageously, the physical memory characteristics include memory page size, number of memory channels, and number of memory ranks.

[0026] After the agent client receives the first request message from the application program, in step S22, it forwards the first request message to the agent server (MM_Agent_Server) in the virtual machine monitor....

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a memory optimization scheme based on physical memory in a virtual environment. The Application sends the first request message to the MM_Agent_Client for querying the physical memory characteristics of the Host. MM_Agent_Client forwards the first request message to MM_Agent_Server. Based on the first request message, the MM_Agent_Server acquires the physical memory characteristics of the Host, and sends it to the MM_Agent_Client through the first response message. MM_Agent_Client forwards the first response message to Application. Application creates a page table and applies for physical memory pages according to the required memory size. The Application sends a second request message to the MM_Agent_Client for querying information about the requested physical memory page. MM_Agent_Client forwards the second request message to MM_Agent_Server. Based on the second request message, the MM_Agent_Server obtains the relevant information of the physical memory page requested by the Application, and sends it to the MM_Agent_Client through the second response message. MM_Agent_Client forwards the second response message to Application. Application creates a memory object pool, and performs memory optimization based on physical memory characteristics and information about physical memory pages.

Description

technical field [0001] The present application relates to a communication system, in particular to a physical memory-based memory optimization method and device in a virtual environment. Background technique [0002] Memory optimization is very important for traditional "IP network forwarding", which is closely related to specific hardware. Application developers need to be aware of the hardware configuration, distribution, and characteristics of physical memory, so as to optimize applications based on parameters such as the number of channels and ranks of physical memory. Memory optimization can greatly improve application performance. [0003] In a virtualized cloud environment, an application program runs on a guest operating system (Guest OS) in a virtual machine (virtual machine, VM). The real physical memory is invisible to the Guest OS. Application programs can only access virtual physical memory virtualized by a virtual machine monitor (virtual machine monitor, VM...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F12/02G06F9/455
Inventor 沈志宏叶磊龚永杰
Owner ALCATEL LUCENT SHANGHAI BELL CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More