Hi,
I'm currently in the process of setting up OPNsense on my server for inter-VLAN firewalling. Traffic is on a 2x10 Gbit bond, so I'm trying to use the multiqueue option of OPNsense. Documentation says, that multiqueueing needs to be activated also within the VM. This is not possible pfSense, as they opted for ALTQ instead (see https://forum.netgate.com/topic/159665/multiqueue-on-virtio-nic (https://forum.netgate.com/topic/159665/multiqueue-on-virtio-nic) and https://forum.netgate.com/topic/138174/pfsense-vtnet-lack-of-queues/4 (https://forum.netgate.com/topic/138174/pfsense-vtnet-lack-of-queues/4)). However, I've read that people are using it for OPNsense, but I can't find how to.
Any helpful hint would be appreciated!
Although the thread is quite old, I only activated multiqueue on the host side - that's it.
On Proxmox you can achieve this via the GUI (Network Device - Advanced). Result of 4 queues on Proxmox host in OPNsense guest:
# dmesg
vtnet2: <VirtIO Networking Adapter> on virtio_pci5
vtnet2: Ethernet address: 02:00:00:02:01:02
vtnet2: netmap queues/slots: TX 4/256, RX 4/512
# sysctl
dev.vtnet.2.txq3.opackets: 3203078
dev.vtnet.2.rxq3.ipackets: 2405300
dev.vtnet.2.txq2.opackets: 3550761
dev.vtnet.2.rxq2.ipackets: 2472518
dev.vtnet.2.txq1.opackets: 53252329
dev.vtnet.2.rxq1.ipackets: 23579916
dev.vtnet.2.txq0.opackets: 34315060
dev.vtnet.2.rxq0.ipackets: 16892481