Maybe this is not the right place to ask, but hopefully member here able to guide me to right direction to find out this differences.
I had created 2 VM (KVM and LXC) to do benchmark.
Seems like LXC disk I/O much slower than KVM with virtio. May I know what should I look into to have both same performances on same hardware and same storage pool....?
Ceph storage Network setup:
4 ports LAN with bond0 with balance-rr mode for 4 nodes.
Hardware setup as listed here: https://forum.proxmox.com/threads/usable-space-on-ceph-storage.25219/
Under KVM VM (virtio):
user@ubuntu:~$ sudo echo 3 | sudo tee /proc/sys/vm/drop_caches && sudo sync
user@ubuntu:~$ dd if=/dev/zero of=here bs=1G count=1 oflag=direct
1+0 records in
1+0 records out
1073741824 bytes (1.1 GB) copied, 14.7675 s, 72.7 MB/s
user@ubuntu:~$ dd if=/dev/zero of=here bs=4M count=1000 oflag=direct
1000+0 records in
1000+0 records out
4194304000 bytes (4.2 GB) copied, 11.9827 s, 350 MB/s
Under LXC VM:
user@ubuntu:~$ sudo echo 3 | sudo tee /proc/sys/vm/drop_caches && sudo sync
user@ubuntu:~$ dd if=/dev/zero of=here bs=1G count=1 oflag=direct
1+0 records in
1+0 records out
1073741824 bytes (1.1 GB) copied, 20.2207 s, 53.1 MB/s
user@ubuntu:~$ dd if=/dev/zero of=here bs=4M count=1000 oflag=direct
1000+0 records in
1000+0 records out
4194304000 bytes (4.2 GB) copied, 228.281 s, 18.4 MB/s
I had created 2 VM (KVM and LXC) to do benchmark.
Seems like LXC disk I/O much slower than KVM with virtio. May I know what should I look into to have both same performances on same hardware and same storage pool....?
Ceph storage Network setup:
4 ports LAN with bond0 with balance-rr mode for 4 nodes.
Hardware setup as listed here: https://forum.proxmox.com/threads/usable-space-on-ceph-storage.25219/
Under KVM VM (virtio):
user@ubuntu:~$ sudo echo 3 | sudo tee /proc/sys/vm/drop_caches && sudo sync
user@ubuntu:~$ dd if=/dev/zero of=here bs=1G count=1 oflag=direct
1+0 records in
1+0 records out
1073741824 bytes (1.1 GB) copied, 14.7675 s, 72.7 MB/s
user@ubuntu:~$ dd if=/dev/zero of=here bs=4M count=1000 oflag=direct
1000+0 records in
1000+0 records out
4194304000 bytes (4.2 GB) copied, 11.9827 s, 350 MB/s
Under LXC VM:
user@ubuntu:~$ sudo echo 3 | sudo tee /proc/sys/vm/drop_caches && sudo sync
user@ubuntu:~$ dd if=/dev/zero of=here bs=1G count=1 oflag=direct
1+0 records in
1+0 records out
1073741824 bytes (1.1 GB) copied, 20.2207 s, 53.1 MB/s
user@ubuntu:~$ dd if=/dev/zero of=here bs=4M count=1000 oflag=direct
1000+0 records in
1000+0 records out
4194304000 bytes (4.2 GB) copied, 228.281 s, 18.4 MB/s