Some VMs get huge disk I/O performance increase, simply by switching the disk bus/device to VirtIO Block.
Results with SCSI:
Results with VirtIO block:
Can this huge performance increase be expected by using VirtIO? It seems odd that such a seemingly small change has such a large impact
Background information: Ceph cluster with 3 nodes. SCSI controller used is VirtIO SCSI (in both tests).
Results with SCSI:
Code:
[root@acrux testjes]# dd if=/dev/zero of=testfile bs=1M count=1000 oflag=dsync
1000+0 records in
1000+0 records out
1048576000 bytes (1.0 GB) copied, 93.3164 s, 11.2 MB/s
[root@acrux testjes]# dd if=/dev/zero of=testfile bs=1G count=1 oflag=dsync
1+0 records in
1+0 records out
1073741824 bytes (1.1 GB) copied, 20.9574 s, 51.2 MB/s
Results with VirtIO block:
Code:
[root@acrux testjes]# dd if=/dev/zero of=testfile bs=1M count=1000 oflag=dsync
1000+0 records in
1000+0 records out
1048576000 bytes (1.0 GB) copied, 42.9133 s, 24.4 MB/s
[root@acrux testjes]# dd if=/dev/zero of=testfile bs=1G count=1 oflag=dsync
1+0 records in
1+0 records out
1073741824 bytes (1.1 GB) copied, 5.74577 s, 187 MB/s
Can this huge performance increase be expected by using VirtIO? It seems odd that such a seemingly small change has such a large impact
Background information: Ceph cluster with 3 nodes. SCSI controller used is VirtIO SCSI (in both tests).