[go: up one dir, main page]

CN103593226A - Method for improving IO performance of disc of virtual machine - Google Patents

Method for improving IO performance of disc of virtual machine Download PDF

Info

Publication number
CN103593226A
CN103593226A CN201310539512.0A CN201310539512A CN103593226A CN 103593226 A CN103593226 A CN 103593226A CN 201310539512 A CN201310539512 A CN 201310539512A CN 103593226 A CN103593226 A CN 103593226A
Authority
CN
China
Prior art keywords
virtual machine
hard disk
virtual
file system
performance
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201310539512.0A
Other languages
Chinese (zh)
Inventor
韩飞
杨松
莫展鹏
季统凯
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
G Cloud Technology Co Ltd
Original Assignee
G Cloud Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by G Cloud Technology Co Ltd filed Critical G Cloud Technology Co Ltd
Priority to CN201310539512.0A priority Critical patent/CN103593226A/en
Publication of CN103593226A publication Critical patent/CN103593226A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention relates to the field of cloud computing technology, in particular to a method for improving IO performance of a disc of a virtual machine. According to the method, a special file system is utilized, a part of an internal storage is simulated into the disc, a virtual hard disk which is used by the virtual machine, exists in a file form and is stored in a host machine physical hard disk is placed in the file system simulated by the internal storage, and the high-speed read-write performance of the internal storage is utilized, so that the goal of greatly improving the IO performance of the disc is achieved. The method includes the steps that firstly, the file system simulated by the internal storage is established, and then the internal storage file system is mounted on an appropriate system route; secondly, virtual hard disk files of the virtual machine are copied into a catalogue; eventually, a route of the virtual hard disc files of the virtual machine is modified into the route. By the utilization of the method, the IO performance of the disc of the virtual machine can be remarkably improved, and the method can be used for establishing the virtual machine to support frequent read-write application of the disc.

Description

A kind of method that improves virtual machine disk I/O performance
Technical field
The present invention relates to cloud computing technology field, especially a kind of method that improves virtual machine disk I/O performance.
Background technology
, more fine granularity and more flexibly resource distribution and management safer in order to realize in cloud computing cluster the inside, need to use virtual machine conventionally; And the disk I/O performance of the virtual machine bottleneck of virtual machine performance often, and can not by increasing hard disk, improve simply; Because can run into the problems such as cost, resource management complexity, resource distribution.Meanwhile, the high-performance of the relative ordinary magnetic disc of internal memory and even solid magnetic disc and relative cheap cost, make it to become the good breach that solves virtual machine performance problem.
Summary of the invention
The technical matters that the present invention solves is to provide a kind of method of improving virtual machine disk I/O performance; Can effectively improve virtual machine disk I/O (input, output) performance.
The deal with problems technical scheme of above-mentioned technical matters of the present invention is:
Comprise following basic step:
Step 1: create memory file system;
Step 2: carry memory file system;
Step 3: virtual machine virtual hard disk file is put in memory file system;
Step 4: the path of virtual hard disk file in configuring virtual machine configuration file;
Step 5: start virtual machine.
Described memory file system is preserved virtual machine as need hard disk is changed, can use the virtual hard disk form of the support cow technology such as qcow2, by the virtual hard disk based on being placed in memory file system, create one and derive from mirror image, and it is placed on to persistent storage device as in hard disk.
Described establishment memory file system be by virtual machine virtual hard disk file put carry memory file system in; Based on virtual hard disk file, utilize cow technology to derive a virtual hard disk that is placed on non-volatile memory device and use to virtual machine, thereby guarantee not losing and avoiding a large amount of consumption to internal memory of data writing.
The COW technology of combined with virtual hard disk of the present invention, an available public virtual hard disk that is placed in memory file system (subregion), for many virtual machines provide service simultaneously, reaches the lifting of many virtual machine disk I/O performances with few memory consumption; Can significantly promote the disk I/O performance of virtual machine.
Accompanying drawing explanation
Below in conjunction with accompanying drawing, the present invention is further described:
Accompanying drawing is basic operation process flow diagram of the present invention.
Embodiment
As shown in the figure, the present invention is based on linux, kvm platform, adopting qcow2 file layout and tmpfs file system is example, and concrete operation step is as follows.
1, create one for the catalogue of carry file system:
2, create memory file system carry, can specify size; Here memory file system adopts tmpfs:
Figure BDA0000407509040000022
3, create virtual hard disk vm_disk.qcow2, size is 3G:
Figure BDA0000407509040000023
4, the virtual hard disk creating based on previous step creates and is placed on the derivation hard disk mirror-image on non-volatile memory device:
Figure BDA0000407509040000031
5, revise virtual machine configuration, the configuration file of libvirt of take is here example:
Suppose that configuration file is called libvirt.xml, in <device> section, revise virtual hard disk path,
Figure BDA0000407509040000032
6, start virtual machine:
Figure BDA0000407509040000033
Virtual machine internal disk IO performance test shows, the readwrite performance that is placed on the virtual hard disk in memory file system almost has the raising of ten times.The peak velocity of reading continuously can reach 1221.9MB/s, and average velocity reaches 952MB/s; With machine-readable average velocity 632MB/s.The speed of reading continuously (952MB/s) and relatively approaching with machine-readable speed (632MB/s), also matches with the random-access feature of internal memory.

Claims (3)

1. a method that improves virtual machine disk I/O performance, is characterized in that:
Comprise following basic step:
Step 1: create memory file system;
Step 2: carry memory file system;
Step 3: virtual machine virtual hard disk file is put in memory file system;
Step 4: the path of virtual hard disk file in configuring virtual machine configuration file;
Step 5: start virtual machine.
2. the method for raising virtual machine disk I/O performance according to claim 1, it is characterized in that: described memory file system is preserved virtual machine as need hard disk is changed, can use the virtual hard disk form of the support cow technology such as qcow2, by the virtual hard disk based on being placed in memory file system, create one and derive from mirror image, and it is placed on to persistent storage device as in hard disk.
3. the method for raising virtual machine disk I/O performance according to claim 1 and 2, is characterized in that: described establishment memory file system be by virtual machine virtual hard disk file put carry memory file system in; Based on virtual hard disk file, utilize cow technology to derive a virtual hard disk that is placed on non-volatile memory device and use to virtual machine, thereby guarantee not losing and avoiding a large amount of consumption to internal memory of data writing.
CN201310539512.0A 2013-11-04 2013-11-04 Method for improving IO performance of disc of virtual machine Pending CN103593226A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310539512.0A CN103593226A (en) 2013-11-04 2013-11-04 Method for improving IO performance of disc of virtual machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310539512.0A CN103593226A (en) 2013-11-04 2013-11-04 Method for improving IO performance of disc of virtual machine

Publications (1)

Publication Number Publication Date
CN103593226A true CN103593226A (en) 2014-02-19

Family

ID=50083382

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310539512.0A Pending CN103593226A (en) 2013-11-04 2013-11-04 Method for improving IO performance of disc of virtual machine

Country Status (1)

Country Link
CN (1) CN103593226A (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104503821A (en) * 2014-12-11 2015-04-08 国云科技股份有限公司 A method for calculating the IO speed of a virtual disk
CN105353985A (en) * 2015-11-03 2016-02-24 国云科技股份有限公司 A method to improve the reading speed of virtual machine temporary files
CN105511952A (en) * 2014-09-22 2016-04-20 苏宁云商集团股份有限公司 Resource self-migration method and system based on cloud computing platform
CN105511938A (en) * 2015-11-23 2016-04-20 国云科技股份有限公司 Virtual disk construction method
CN106227473A (en) * 2016-09-27 2016-12-14 天脉聚源(北京)传媒科技有限公司 A kind of using internal memory as the implementation method of disk read-write and device
CN106325974A (en) * 2016-08-11 2017-01-11 浪潮(北京)电子信息产业有限公司 Virtualization IO performance optimization method and system
CN106445633A (en) * 2016-09-13 2017-02-22 中国电子科技集团公司第三十二研究所 Method and system for improving performance of virtual machine through NVRAM
CN106933653A (en) * 2017-03-16 2017-07-07 郑州云海信息技术有限公司 A kind of data file storage method of virtual machine, device and KVM virtual machines
CN108846136A (en) * 2018-07-09 2018-11-20 郑州云海信息技术有限公司 A kind of optimization method of distributed type assemblies, device, system and readable storage medium storing program for executing
CN108984299A (en) * 2018-06-29 2018-12-11 郑州云海信息技术有限公司 A kind of optimization method of distributed type assemblies, device, system and readable storage medium storing program for executing
CN111708488A (en) * 2020-05-26 2020-09-25 苏州浪潮智能科技有限公司 A method and device for Ceph performance optimization based on distributed memory disk
CN112860493A (en) * 2021-02-03 2021-05-28 广东中兴新支点技术有限公司 Linux virtual machine cloud packing partition chain-breaking protection method, system and medium
CN114238254A (en) * 2021-12-20 2022-03-25 北京天融信网络安全技术有限公司 Shared access method, device and storage medium of file system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001013221A2 (en) * 1999-08-16 2001-02-22 Gamecraft, Inc. Method and apparatus for embedding operating system in rom
CN101421715A (en) * 2006-04-17 2009-04-29 微软公司 Creating host-level application-consistent backups of virtual machines

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001013221A2 (en) * 1999-08-16 2001-02-22 Gamecraft, Inc. Method and apparatus for embedding operating system in rom
CN101421715A (en) * 2006-04-17 2009-04-29 微软公司 Creating host-level application-consistent backups of virtual machines
CN101421715B (en) * 2006-04-17 2012-01-04 微软公司 Create host-level application-consistent backups of virtual machines

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
AHMAD,I ETC.: "Easy and Efficient Disk I/O Workload Characterization in", 《IEEE 10TH INTERNATIONAL SYMPOSIUM ON WORKLOAD CHARACTERIZATION》, 29 September 2007 (2007-09-29), pages 149 - 158, XP031151969 *
卢业敏 等: "基于虚拟技术的数据库I/O解决方案研究", 《湖北工业大学学报》, vol. 25, no. 5, 15 October 2010 (2010-10-15), pages 56 - 60 *
沈玉良 等: "一种基于虚拟机的高效磁盘I/O特征分析方法", 《软件学报》, vol. 21, no. 4, 15 April 2010 (2010-04-15), pages 849 - 862 *
郑康 等: "虚拟硬盘系统的实现及应用", 《小型微型计算机系统》, no. 9, 21 September 2002 (2002-09-21), pages 1149 - 1152 *

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105511952A (en) * 2014-09-22 2016-04-20 苏宁云商集团股份有限公司 Resource self-migration method and system based on cloud computing platform
CN105511952B (en) * 2014-09-22 2020-02-04 苏宁云计算有限公司 Resource self-migration method and system based on cloud computing platform
CN104503821A (en) * 2014-12-11 2015-04-08 国云科技股份有限公司 A method for calculating the IO speed of a virtual disk
CN105353985A (en) * 2015-11-03 2016-02-24 国云科技股份有限公司 A method to improve the reading speed of virtual machine temporary files
CN105511938A (en) * 2015-11-23 2016-04-20 国云科技股份有限公司 Virtual disk construction method
CN106325974B (en) * 2016-08-11 2020-02-07 浪潮(北京)电子信息产业有限公司 Virtualization IO performance optimization method and system
CN106325974A (en) * 2016-08-11 2017-01-11 浪潮(北京)电子信息产业有限公司 Virtualization IO performance optimization method and system
CN106445633A (en) * 2016-09-13 2017-02-22 中国电子科技集团公司第三十二研究所 Method and system for improving performance of virtual machine through NVRAM
CN106227473A (en) * 2016-09-27 2016-12-14 天脉聚源(北京)传媒科技有限公司 A kind of using internal memory as the implementation method of disk read-write and device
CN106933653A (en) * 2017-03-16 2017-07-07 郑州云海信息技术有限公司 A kind of data file storage method of virtual machine, device and KVM virtual machines
CN108984299A (en) * 2018-06-29 2018-12-11 郑州云海信息技术有限公司 A kind of optimization method of distributed type assemblies, device, system and readable storage medium storing program for executing
CN108846136A (en) * 2018-07-09 2018-11-20 郑州云海信息技术有限公司 A kind of optimization method of distributed type assemblies, device, system and readable storage medium storing program for executing
CN111708488A (en) * 2020-05-26 2020-09-25 苏州浪潮智能科技有限公司 A method and device for Ceph performance optimization based on distributed memory disk
CN111708488B (en) * 2020-05-26 2023-01-06 苏州浪潮智能科技有限公司 Distributed memory disk-based Ceph performance optimization method and device
CN112860493A (en) * 2021-02-03 2021-05-28 广东中兴新支点技术有限公司 Linux virtual machine cloud packing partition chain-breaking protection method, system and medium
CN112860493B (en) * 2021-02-03 2022-09-27 广东中兴新支点技术有限公司 Linux virtual machine cloud packing partition chain-breaking protection method, system and medium
CN114238254A (en) * 2021-12-20 2022-03-25 北京天融信网络安全技术有限公司 Shared access method, device and storage medium of file system

Similar Documents

Publication Publication Date Title
CN103593226A (en) Method for improving IO performance of disc of virtual machine
CN107870728B (en) Method and apparatus for moving data
CN103440206B (en) A kind of solid state hard disc and mixed-use developments method thereof
CN103870312B (en) Establish the method and device that virtual machine shares memory buffers
CN102968342B (en) Method for carrying out para-virtualization under embedded platform to rapidly switch guest operating system
RU2669008C2 (en) Storage systems and aliased memory
CN103678166A (en) Method and system for using solid-state disk as cache of computer
CN104407990B (en) A kind of disk access method and device
KR102715658B1 (en) Systems and methods for data transfer for computational storage devices
CN103838676A (en) Data storage system, data storage method and PCM bridge
CN105677480A (en) Data processing method and device
CN103713926B (en) Method and system for updating software of client in advance
US10031853B2 (en) Unified in-memory cache
CN103425439A (en) Method for reading and writing solid-state disk and solid-state disk thereof
CN104104705A (en) Access method and device of distributed storage system
CN103049546B (en) The method and apparatus of a kind of management, access system daily record
CN205986931U (en) Switch based on NVMeSSD
CN103927215A (en) kvm virtual machine scheduling optimization method and system based on memory disk and SSD disk
CN102184141A (en) Method and device for storing check point data
CN103984569A (en) HBA card acceleration method
CN105607869A (en) Method for quickly formatting and using virtual machine disk
CN103488772A (en) Method, system and equipment for caching files through external storage
CN105138294A (en) Hard disc equipment and information processing method
CN104331322B (en) A kind of process migration method and apparatus
US9170942B1 (en) System, apparatus, and method of automatic data padding

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20140219