Virtual machine startup acceleration method and apparatus

A virtual machine and boot disk technology, applied in program control devices, software emulation/interpretation/simulation, program control design, etc., can solve the problems of increasing server CPU pressure, inability to share, and lengthening virtual machine startup time, reducing The effect of storing pressure and shortening the start-up delay

Inactive Publication Date: 2018-07-06
深圳市杉岩数据技术有限公司
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Since each virtual machine has an independent qemu and librbd process, although most of the data read by each virtual machine is the same, it cannot be shared; although the client side cache developed by Intel can cache the parent volume data locally, but When many virtual machines start at the same time, the local ssd has no parent volume data at this time, so the IO

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 startup acceleration method and apparatus

Examples

Experimental program
Comparison scheme
Effect test

Example Embodiment

[0033] It should be noted that the embodiments in this application and the features in the embodiments can be combined with each other if there is no conflict.

[0034] The present invention provides a method for accelerating virtual machine startup, which includes the following steps:

[0035] The system allocates a cloned volume to each virtual machine as the system startup disk, and creates a file directory for caching the parent volume data for the virtual machines cloned from the same parent volume;

[0036] When the virtual machine starts, the system controls the corresponding IO process to load the corresponding clone volume;

[0037] When the IO process of the virtual machine reads IO data, if the data is located in the parent volume, query the cache directory whether there is a cache file corresponding to the parent volume data;

[0038] If so, first obtain the read lock of the file, and then open the corresponding file to read the data;

[0039] If there is no cache file, creat...

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 startup acceleration method and apparatus. The method comprises the following steps that a system allocates a cloned volume for each virtual machine to serveas a system startup disk, and creates a file directory used for caching main volume data for the virtual machines cloned by a same main volume; when the virtual machine is started, the system controlsa corresponding IO process to load a corresponding cloned volume; when the IO process of the virtual machine reads IO data, if the data is located in the main volume, whether a cache file corresponding to the main volume data exists in a cache directory or not is queried; and if the cache file exists, a reading lock of the file is obtained firstly and then the corresponding file is opened to readthe data. According to the virtual machine startup acceleration method and apparatus provided by the invention, in combination with the reading/writing lock of the file and a mapping table of the cloned data, the main volume data of the virtual machine is cached by utilizing a local file system, so that the storage pressure during concurrent startup of the virtual machines is reduced and the timedelay of virtual machine startup is shortened; and the virtual machine startup acceleration method and apparatus is widely applied to the field of the virtual machines.

Description

technical field [0001] The invention relates to the field of virtual machines, in particular to a method and device for accelerating virtual machine startup. Background technique [0002] KVM: Kernel-based virtual machine is a common way of linux virtualization. [0003] Ceph: Open source distributed storage software. [0004] Qemu: IO simulation program for KVM virtualization scenarios. [0005] When solving the problem of virtual machine startup in the prior art, it is necessary to first copy the parent volume of the virtual machine to the memory disk, and then start the virtual machine, which increases the time for copying the virtual machine image. And if there are many different virtual machine templates, more memory needs to be consumed. [0006] In the configuration process of the virtualization solution using KVM+Ceph, a parent volume is usually created first, and the operating system and some necessary application software are installed. After installing the rel...

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/455
CPCG06F9/45558G06F2009/45575G06F2009/45579
Inventor 文刘飞肖宜节游长繁
Owner 深圳市杉岩数据技术有限公司
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