VMmanager supports a number of local and network storage. Local: LVM, DIR (RAW, QCoW2 formats).
To compare the performance of local storages we run a test.
We used the fio utility.
The results are represented in IOPS (input-output operations per second).
The following parameters were used for testing:
Each test was run 3 times. Before the test, the disk was set to zero through the dd utility, and disk OS cache was reset (echo 3 > /proc/sys/vm/drop_caches ).
The resulting value is the average value from those we got during the test (not the arithmetic mean from 3 values, but the average value). Values differed greatly depending on the test.
The following servers were used:
- Processor: Intel Core2Quad CPU Q6600
- RAM: 8 Gb
- Disk system: adaptec RAID 10, with 4 SAS disks 150 Gb each
- OS: CentOS-6
The fio utility was installed from the EPEL repository.
For tests, we created a 50000 Mb virtual disk. The virtio driver was used to connect disks to virtual machines.
To test a node by one method, we used sda4 (on which both LVM and disks for virtual machines were created later) and specified the size=50G option in fio
For the other method, we created the LVM volume group. 500000 MB LVM partition was created in this group the same way as for the virtual machine.
To test DIR storages with RAW and QCoW2 formats, the disk images in the form of files were located in the /vm directory of the ext4 file system.
|Storage types||Read test result, IOPS||Write test results, IOPS|
|Read/write on physical server||843||331|
|LVM-partition on physical server||848||559|
|Virtual machine on DIR (RAW)||668||545|
|Virtual machine on DIR (QCoW2)||621||463|
|Virtual machine on DIR (QCoW2) + snapshot||615||56|
|Virtual machine on LVM||854||557|
The fastest storage is LVM.
RAW storage is the easiest to configure for any incidents.
The advantage of QCoW2 is support for snapshots, however, snapshots significantly slow down record (until all the block are overwritten).