Disk performance in virtual machines is subpar

mgiammarco

Dabbler
Joined
Jul 22, 2012
Messages
17
Hello,
I have a truenas 12.0-U3.1 on real hardware: hp server with 12core xeon cpu, 64gb ram and 4 2tb sata disks (no hardware raid controller)
I have created a debian virtual machine with 4 core and 12 gb of ram.
Disk performance is terrible: I some times need half an hour to boot.
hdparm tells me read speed of disk is 3mb per sec.
I am testing now with bonnie++ but it needs 15 minutes to install.
I have tried disabling sync and compression of the zvol of the vm but I got very little improvment.
Please note that also READS are slow.
What can I do?
Thanks,
Mario
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
What disk controller method are you using? AHCI?... switch to VirtIO (maybe will require a reinstall of the VM OS).
 
Top