Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and device for switching shared memory area, storage medium and electronic equipment

A technology of shared memory and memory area, which is applied in the field of data processing and can solve problems such as low performance

Pending Publication Date: 2020-10-20
VIRTAI TECH BEIJING CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The purpose of the present disclosure is to provide a method and device for switching shared memory areas, storage media and electronic equipment to solve the problem of low performance in the prior art where the virtual sender and the virtual receiver communicate based on the host shared memory area question

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
  • Method and device for switching shared memory area, storage medium and electronic equipment
  • Method and device for switching shared memory area, storage medium and electronic equipment
  • Method and device for switching shared memory area, storage medium and electronic equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0072] Specific embodiments of the present disclosure will be described in detail below in conjunction with the accompanying drawings. It should be understood that the specific embodiments described here are only used to illustrate and explain the present disclosure, and are not intended to limit the present disclosure.

[0073] Some solutions are proposed in the related art to reduce the frequency of interaction between the virtual sending end and the virtual receiving end running in the host during a data transmission. For example, allocate a large shared memory area within the host. The disadvantage of this is that when there are many VM-VM pairs or VM-Host pairs that need to communicate through shared memory on the host, a large memory is allocated for each VM-VM pair or VM-Host pair It will cause insufficient host memory, which will seriously affect the performance of the host. Moreover, when the length of data transmitted by a VM-VM pair or a VM-Host pair is less than ...

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 aims to provide a method and device for switching a shared memory area, a storage medium and electronic equipment so as to solve the problem of low performance of communication between avirtual sending end and a virtual receiving end based on a host shared memory area in the prior art. The method comprises: obtaining data parameter information of communication data sent by a sendingend in history; determining a to-be-selected storage length according to the parameter information and a first storage length of a first shared memory area currently used by the sending end and the receiving end; if the to-be-selected storage length is smaller than the first storage length, or if the to-be-selected storage length is not smaller than the first storage length and the to-be-selectedstorage length is not larger than a preset storage threshold length, setting a newly allocated second shared memory area as the to-be-selected storage length; and if the to-be-selected storage lengthis not less than the first storage length and the to-be-selected storage length is greater than a preset storage threshold length, setting the newly allocated second shared memory area as the storagethreshold length.

Description

technical field [0001] The present disclosure relates to the field of data processing, and in particular, to a method and device for switching a shared memory area, a storage medium, and an electronic device. Background technique [0002] With the development of computer technology, communication scenarios between virtual machines to virtual machines (VM-VM) and virtual machines to hosts (VM-Host) are increasing day by day. A common method is to perform VM-VM communication or VM-Host communication through a TCP / IP network. However, this method has disadvantages such as high communication delay and low bandwidth. In related technologies, in order to reduce the communication delay and increase the communication bandwidth, a scheme of performing communication from a virtual machine to a virtual machine and from a virtual machine to a host by reading and writing a shared memory is proposed. [0003] Specifically, process a in virtual machine 1 and process b in virtual machine ...

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
IPC IPC(8): G06F9/455G06F9/54
CPCG06F9/544G06F9/45558G06F2009/45583
Inventor 戴国浩
Owner VIRTAI TECH BEIJING CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products