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
CN111796902APending Publication Date: 2020-10-20VIRTAI TECH BEIJING CO LTD

Patent Information

Authority / Receiving Office
CN · China
Current Assignee / Owner
VIRTAI TECH BEIJING CO LTD
Publication Date
2020-10-20

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

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.
Need to check novelty before this filing date? Find Prior Art

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