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

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 process of the virtual machine still reads the corresponding data from the back-end ceph storage cluster; when multiple virtual machines on the server start at the same time, because the data cannot be shared , causing a lot of IO data to be read repeatedly, which greatly increases the CPU pressure of the server and also lengthens the startup time of the virtual machine

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

Embodiment Construction

[0033] It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined with each other.

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

[0035] The system assigns a clone volume to each virtual machine as a system startup disk, and creates a file directory for caching the data of the parent volume 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 the IO data, if the data is located in the parent volume, then query whether the cache directory has a cache file corresponding to the parent volume data;

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

[0039] If ...

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 深圳市杉岩数据技术有限公司
Features
  • Generate Ideas
  • 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