Download speeds issue with Proxmox/Virtio
I'm running a pfSense VM in KVM (Proxmox) and I've been trying to troubleshoot a discrepancy in speed tests with this VM, I'm on a gigabit symmetrical connection and connected to the gateway directly I get full 940/940Mbps, in the VM however I get 940Mbps upload and 700-900Mbps download. All hardware offload settings are disabled for both the VM and the host.
Netmap is reporting this at boot:
vtnet0: <VirtIO Networking Adapter> on virtio_pci1 vtnet0: Ethernet address: 00:00:00:00:00:00 vtnet0: netmap queues/slots: TX 4/256, RX 4/128 000.001082 [ 503] vtnet_netmap_attach vtnet attached txq=4, txd=256 rxq=4, rxd=128
txd and rxd aren't supposed to be the same? Ring parameters for the interface in the host are set to 2048:
Ring parameters for ens4f2: Pre-set maximums: RX: 4096 RX Mini: 0 RX Jumbo: 0 TX: 4096 Current hardware settings: RX: 2048 RX Mini: 0 RX Jumbo: 0 TX: 2048
Multiqueue is set to 4, which pfSense correctly applies, but I read in the Netmap github that both rxd and txd values must be same to avoid issues.
Bumping as I am also interested in this answer.
@elewsmer How were you able to set vtnet netmap queues to greater than 1 virtualizing with Proxmox? I have tried multiple ways to no avail, pfSense only recognizes one.
@tibere86 if you are still interested, had a similar issue with virtio in Proxmox and after several changes, reboots and iperfs later I found this combination of hardware offloading config offered the best performance System>Advanced>Networking
@elewsmer how did you get 4 queues on the vtnet driver? pfSense uses ALTQ which locks it to 1 queue?
@elewsmer please share with us, how you able to set queues greater than one.
on pfsense 2.5 doesn't work: