CPU type of kvm64 has even better performance than `host` at network speed

left4pve

Member
Jul 12, 2021
34
3
13
33
Hi guys. I'm running pfSense as a VM on a host with J4125 CPU. The LAN network is connected to a Gigabit NIC. When using kvm64 as the CPU type, I can saturate the NIC at around 940Mbps, which is expected. However if switched to `host` as the CPU type, I can only reach around 850Mbps. Could someone please help me understand what might cause the performance degradation? And, what's the correct use case of `host` CPU type? Thanks!

P.s., I understand that KVM64 is live-migration-friendly, but unfortunately I only have one machine.
 
Interesting question... would also like to know what the optimal settings are.

In my homelab I set the OS for OPNsense as type "Other", since it runs on FreeBSD and not Linux.
In Network Device you can also tweak the multiqueue setting, this is for large datapackets like routers.