Hello everyone,
I’m facing a challenging issue with my home network setup and need help troubleshooting high latency on my Proxmox server. The problem appears related with use of the PCI express Intel i226-v NIC and seems specific to the Lenovo M920q hardware rather than any particular VM, including OPNsense. Here are the details of my setup and the steps I’ve taken so far:
Setup Details
- Host: Lenovo M920q (i7, 16GB RAM) running Proxmox (latest version, fully updated)
- NIC: Intel i226-v (PCIe card with 4 ports, purchased from AliExpress link)
- Guest OS: OPNsense VM (fully updated), but the issue persists across other VMs
- Use Case: Dedicated PCI passthrough of the NIC to a VM
This Intel i226-v was chosen for its compatibility with the M720q and M920q original cases,
riser and bracket kit.
Issue
When using PCI passthrough of the Intel i226-v NIC on Proxmox, I experience inconsistent and high latency (>10ms) when pinging the VM from the LAN. This issue is seems to be not specific to OPNsense and occurs across multiple VMs and the Proxmox host itself.
Here’s an example of the latency behavior:
Reply from 192.168.56.253: bytes=32 time=49ms TTL=64
Reply from 192.168.56.253: bytes=32 time=12ms TTL=64
Reply from 192.168.56.253: bytes=32 time=2ms TTL=64
Reply from 192.168.56.253: bytes=32 time=27ms TTL=64
...
Reply from 192.168.56.253: bytes=32 time=114ms TTL=64
Reply from 192.168.56.253: bytes=32 time=2ms TTL=64
By comparison, VMs connected via the M920q’s internal LAN consistently have ~1ms latency.
I also tested assigning a direct IP to the Nic in Proxmox (with and without a bridge). The behavior varied between high latency and 1-2ms, but I couldn’t determine the exact conditions causing it to stabilize.
Troubleshooting Steps Taken
Virtual Machine
- OPNsense:
- Disabled all hardware offloading settings in OPNsense.
- Tested with a clean OPNsense setup (only LAN and WAN configured) and an Ubuntu VM.
Virtualisation Layer
- VM Configurations in Proxmox:
- Switched between Q35 and i440fx machine types with different versions.
- PCI Passthrough Configurations:
- Tried settings such as All Functions=1 and PCI-Express=1.
- Kernel Boot Parameters in Proxmox:
- Tested configurations including:
quiet pci=assign-busses intel_iommu=on iommu=pt pcie_acs_override=downstream,multifunction pcie_port_pm=off pcie_aspm.policy=performance disable_idle_d3=1 acpi=off
- Kernel Downgrade:
- Downgraded to proxmox-kernel-6.2.16-20-pve.
- Alternative Configuration:
- Removed PCI passthrough and used a bridged interface (vtnetX), but latency issues persisted.
Hardware Layer:
- BIOS Settings on Lenovo:
- Tested various configurations, including disabling ASPM.
- Testing on Another Proxmox Node (same hardware):
- Moved the NIC and VM to another Lenovo M920q node with different BIOS versions (2019 and 2024).
But when i tested
on Another Desktop PC (not Mx20q, just a basic lenovo desktop PC):
- Moved the NIC to a different desktop PC with Proxmox, where latency was consistently ~1ms.
The issue seems to be specific to Proxmox on the Lenovo Mx20q series (M720q/M920q) as i tested on 2x. The Intel i226-v NIC performs as expected when used on a different Proxmox system (desktop PC), so seems the problem might stem from the Mx20q hardware or Proxmox configuration or kernel within Lenovo m920q hardware.
Has anyone encountered similar issues with Intel i226-v NIC on Lenovo Mx20q models? Any advice or guidance on additional steps to debug or resolve this would be greatly appreciated!
Thanks a lot in advance for your help.