can somebody explain the following ?
i have two harddisks, one SAS and one SATA
i passtrough this disks in virtual machine
when i directly do "dd if=/dev/zero of=/dev/disk bs=4k" to the disks on the proxmox host, i'm getting decent performance with both disks ( about 200MB/s on writes)
in virtual machine, writing the same way to the mapped/passed-trough virtual disks , write to the sas disk is dead slow:
iostat in VM:
iostat on HOST:
we see write to the sata disk inside the VM is just a little bit slower then on the host, but writing to the sas disk is less than half as fast as bevore
what could be the reason for this ? i'm out of ideas
mappings:
sdr in VM -> sdz on host
sdx in VM -> sdae on host
i have two harddisks, one SAS and one SATA
Code:
# fdisk -l /dev/sdz
Disk /dev/sdz: 3.64 TiB, 4000787030016 bytes, 7814037168 sectors
Disk model: ST4000NM0034
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Code:
# fdisk -l /dev/sdae
Disk /dev/sdae: 7.28 TiB, 8001563222016 bytes, 15628053168 sectors
Disk model: HGST HDN728080AL
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
i passtrough this disks in virtual machine
Code:
scsi1: /dev/sdz,aio=threads,backup=0,iothread=1,size=3907018584K
scsi2: /dev/sdae,aio=threads,backup=0,iothread=1,size=7814026584K
when i directly do "dd if=/dev/zero of=/dev/disk bs=4k" to the disks on the proxmox host, i'm getting decent performance with both disks ( about 200MB/s on writes)
Code:
Device r/s rkB/s rrqm/s %rrqm r_await rareq-sz w/s wkB/s wrqm/s %wrqm w_await wareq-sz d/s dkB/s drqm/s %drqm d_await dareq-sz f/s f_await aqu-sz %util
sdae 0.00 0.00 0.00 0.00 0.00 0.00 424.00 217088.00 54102.00 99.22 7.75 512.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 3.29 100.00
sdz 0.00 0.00 0.00 0.00 0.00 0.00 384.00 196608.00 48895.00 99.22 8.60 512.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 3.30 100.00
in virtual machine, writing the same way to the mapped/passed-trough virtual disks , write to the sas disk is dead slow:
iostat in VM:
Code:
Device r/s rkB/s rrqm/s %rrqm r_await rareq-sz w/s wkB/s wrqm/s %wrqm w_await wareq-sz d/s dkB/s drqm/s %drqm d_await dareq-sz f/s f_await aqu-sz %util
sdr 0.00 0.00 0.00 0.00 0.00 0.00 75.00 76200.00 18216.00 99.59 156.37 1016.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 11.73 99.60
sdx 0.00 0.00 0.00 0.00 0.00 0.00 171.00 173736.00 43650.00 99.61 82.51 1016.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 14.11 100.40
iostat on HOST:
Code:
Device r/s rkB/s rrqm/s %rrqm r_await rareq-sz w/s wkB/s wrqm/s %wrqm w_await wareq-sz d/s dkB/s drqm/s %drqm d_await dareq-sz f/s f_await aqu-sz %util
sdae 0.00 0.00 0.00 0.00 0.00 0.00 339.00 172216.00 0.00 0.00 4.40 508.01 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.49 100.00
sdz 0.00 0.00 0.00 0.00 0.00 0.00 76.00 77216.00 0.00 0.00 12.93 1016.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.98 99.20
we see write to the sata disk inside the VM is just a little bit slower then on the host, but writing to the sas disk is less than half as fast as bevore
what could be the reason for this ? i'm out of ideas
mappings:
sdr in VM -> sdz on host
sdx in VM -> sdae on host
Last edited: