The physical disks are NVMe and provisioned with lvmthin.
Very fast when benchmarking a thin-volume assigned to a vm on host .
But in vm it is quite slow.
Please advise for DISK IO performance.
VM Options:
```
-drive file=/dev/datastore/vm-12205-disk-0,if=none,id=drive-scsi1,cache=writethrough,discard=on,format=raw,aio=io_uring,detect-zeroes=unmap
```
Physical Device:
```
# dd if=/dev/nvme0n1 of=/dev/null bs=1M skip=200000 count=6000 iflag=direct,sync status=progress
5241831424 bytes (5.2 GB, 4.9 GiB) copied, 2 s, 2.6 GB/s
6000+0 records in
6000+0 records out
6291456000 bytes (6.3 GB, 5.9 GiB) copied, 2.40037 s, 2.6 GB/s
```
LVM-Thin Volume:
```
# dd if=/dev/datastore/vm-12205-disk-0 of=/dev/null bs=1M skip=100000 count=6000 iflag=direct,sync status=progress
3716153344 bytes (3.7 GB, 3.5 GiB) copied, 1 s, 3.7 GB/s
6000+0 records in
6000+0 records out
6291456000 bytes (6.3 GB, 5.9 GiB) copied, 1.77287 s, 3.5 GB/s
```
In Virtual Machine:
```
# dd if=/dev/sdb of=/dev/null bs=1M skip=50000 count=3000 iflag=direct,sync status=progress
2679111680 bytes (2.7 GB, 2.5 GiB) copied, 5 s, 536 MB/s
3000+0 records in
3000+0 records out
3145728000 bytes (3.1 GB, 2.9 GiB) copied, 5.85316 s, 537 MB/s
```
Very fast when benchmarking a thin-volume assigned to a vm on host .
But in vm it is quite slow.
Please advise for DISK IO performance.
VM Options:
```
-drive file=/dev/datastore/vm-12205-disk-0,if=none,id=drive-scsi1,cache=writethrough,discard=on,format=raw,aio=io_uring,detect-zeroes=unmap
```
Physical Device:
```
# dd if=/dev/nvme0n1 of=/dev/null bs=1M skip=200000 count=6000 iflag=direct,sync status=progress
5241831424 bytes (5.2 GB, 4.9 GiB) copied, 2 s, 2.6 GB/s
6000+0 records in
6000+0 records out
6291456000 bytes (6.3 GB, 5.9 GiB) copied, 2.40037 s, 2.6 GB/s
```
LVM-Thin Volume:
```
# dd if=/dev/datastore/vm-12205-disk-0 of=/dev/null bs=1M skip=100000 count=6000 iflag=direct,sync status=progress
3716153344 bytes (3.7 GB, 3.5 GiB) copied, 1 s, 3.7 GB/s
6000+0 records in
6000+0 records out
6291456000 bytes (6.3 GB, 5.9 GiB) copied, 1.77287 s, 3.5 GB/s
```
In Virtual Machine:
```
# dd if=/dev/sdb of=/dev/null bs=1M skip=50000 count=3000 iflag=direct,sync status=progress
2679111680 bytes (2.7 GB, 2.5 GiB) copied, 5 s, 536 MB/s
3000+0 records in
3000+0 records out
3145728000 bytes (3.1 GB, 2.9 GiB) copied, 5.85316 s, 537 MB/s
```