Virtual machine memory sharing method based on combination of KSM and Pass-through

A memory sharing and virtual machine technology, applied in the field of virtual machine memory sharing, can solve the problem of not supporting page fault exception and lack, and achieve the effect of improving device IO performance and saving memory resources

Active Publication Date: 2016-11-23
MASSCLOUDS INNOVATION RES INST (BEIJING) OF INFORMATION TECH
View PDF4 Cites 20 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0008] Second, most existing platforms do not support triggering page faults (#PF) during DMA
Corresponding techniques are lacking in existing methods to solve this problem

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
  • Virtual machine memory sharing method based on combination of KSM and Pass-through
  • Virtual machine memory sharing method based on combination of KSM and Pass-through
  • Virtual machine memory sharing method based on combination of KSM and Pass-through

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0049] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.

[0050] The object of the present invention is to solve the limitation problem of using memory sharing technology in PT-VM, that is to use KSM and Pass-through technology in combination to obtain the best trade-off in terms of virtual machine performance and efficiency. Hereinafter, this technical invention is named SM_PT_VM.

[0051] Based on the virtualized IOMMU in the client, SM_PT_VM divides the memory pages of the client into DMA-only and non-DMA purposes, and then selectively applies KSM technology only to non-DMA pages. On the premise of maintaining the Pass-through feature, at the same time To achieve the purpose of saving memory resources. The main points are as follows:

[0052] 1) Provide a virtual IOMMU (currently supported by KVM) to the guest operating system, and use the mechanism of the guest operating system to support the protection ...

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 discloses a virtual machine memory sharing method based on the combination of KSM and Pass-through. The virtual machine memory sharing method specifically comprises the following steps: judging whether an operating system of each client uses an IOMMU (Input / Output Memory Management Unit) or not by a virtual machine manager; if not, not participating in sharing mapping of a KSM technology; if so, judging a memory page of each client and determining whether the memory page is a mapping page or not; if so, mapping the mapping page of each client into a host; if not, under the condition of keeping Pass-through properties, utilizing the KSM technology for all non-mapping pages and combining the memory pages with the same content in a plurality of sets of virtual machines; and meanwhile, carrying out writing protection processing. The memory pages of the clients are distinguished into special use for DMA (Direct Memory Access) and non-DMA uses, so that the KSM technology is only selectively applied to the non-DMA pages; and under the condition of keeping the Pass-through properties, the aim of saving memory resources is realized.

Description

technical field [0001] The invention relates to a virtual machine memory sharing method based on the combination of KSM and Pass-through. Background technique [0002] In the system virtualization technology, the memory pages of the guest (guest) are supported by the memory pages of the host (host). For example, a virtual machine manager (VMM) may use Intel EPT technology to map a guest physical memory address (GPA-guest physical address) to a host physical memory address (HPA-host physical address). At the same time, some memory sharing technologies are commonly used in system virtualization, such as KSM. [0003] KSM (kernel same page merging) technology can merge memory pages with the same content among multiple virtual machines (VMs), and set write protection at the same time. For example, if a memory page (guest PA1->host PA1) in VM1 has the same content as another memory page (guest PA2->host PA2) in VM2, then only one memory page (guest PA2->host PA2) needs...

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 Applications(China)
IPC IPC(8): G06F12/0802G06F9/455
CPCG06F9/45504G06F12/0802G06F12/1475G06F9/45558G06F12/109G06F2009/45583G06F2212/1008G06F2212/1041G06F2212/152G06F2212/657G06F2009/45579G06F9/45545
Inventor 石磊张辉程栋牛文强
Owner MASSCLOUDS INNOVATION RES INST (BEIJING) OF INFORMATION TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products