VirtIO poor performance!

Status
Not open for further replies.

itvend

Cadet
Joined
Sep 8, 2017
Messages
3
I have question what do i have to do to get better performance? I am running FreeNAS 11 in VM and i am not getting very good speeds with virtio. Download 60Mbytes and upload 40Mbytes. i tested my virtual network. Every other vm achieves 100Mbytes/s speed and even my pFSense in VM work fine. i just dont know what magical variables i have to set or unset to get it working.

what i have tried:

Code:
ifconfig vtnet0 -lro -tso -rxcsum -txcsum 


/boot/loader.conf (( i hope there no need to recompile something ))

Code:
hw.vtnet.csum_disable=1
hw.vtnet.tso_disable=1
hw.vtnet.lro_disable=1

Code:
root@freenas:~ # uname -a
FreeBSD freenas.itvend.eu 11.0-STABLE FreeBSD 11.0-STABLE #0 r321665+c0805687fec(freenas/11.0-stable): Tue Sep  5 16:07:24 UTC 2017	 root@gauntlet:/freenas-11-releng/freenas/_BE/objs/freenas-11-releng/freenas/_BE/os/sys/FreeNAS.amd64  amd64


i am measuring speeds with iperf3

EDIT:

vtnet works fine in pure FreeBSD 11.1 env speed max out nicely, and i noticed that my options don't go trough ifconfig vtnet0 rxsum if i do ifconfig vtnet options line stays same.

Code:
root@freenas:~ # ifconfig vtnet0
vtnet0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
		options=80028<VLAN_MTU,JUMBO_MTU,LINKSTATE>
		ether 52:54:00:87:4d:fe
		inet 192.168.0.5 netmask 0xffffff00 broadcast 192.168.0.255
		nd6 options=9<PERFORMNUD,IFDISABLED>
		media: Ethernet 10Gbase-T <full-duplex>
		status: active



Thanks fur help :)
 
Last edited:

m0nkey_

MVP
Joined
Oct 27, 2015
Messages
2,739
How is FreeNAS virtualized? The only supported virtulization method is using VMware's offering.
 

m0nkey_

MVP
Joined
Oct 27, 2015
Messages
2,739
FreeNAS is known to perform badly on KVM. Do not expect great performance from it.
 

itvend

Cadet
Joined
Sep 8, 2017
Messages
3
but FreeNAS has same virt kernel modules that are in FreeBSD kernel, what has changed ??
 
Status
Not open for further replies.
Top