aws ena flipping workaround on 11.2-R

in2 in2 at gamesofa.com
Fri Sep 14 02:48:39 UTC 2018


Hi,

I'm running 11.2-RELEASE on aws c5/m5/r5 and seeing  ena resetting every 30
minutes
this causes around 0.5% packet loss overall.
Sep 14 09:19:57 ip-10-251-24-249 kernel: ena0: device is going DOWN
Sep 14 09:19:57 ip-10-251-24-249 kernel: ena0: device is going UP
Sep 14 09:19:57 ip-10-251-24-249 kernel: ena0: queue 0 - cpu 0
Sep 14 09:19:57 ip-10-251-24-249 kernel: ena0: queue 1 - cpu 1
Sep 14 09:49:57 ip-10-251-24-249 kernel: ena0: device is going DOWN
Sep 14 09:49:58 ip-10-251-24-249 kernel: ena0: device is going UP
Sep 14 09:49:58 ip-10-251-24-249 kernel: ena0: queue 0 - cpu 0
Sep 14 09:49:58 ip-10-251-24-249 kernel: ena0: queue 1 - cpu 1
Sep 14 10:19:57 ip-10-251-24-249 kernel: ena0: device is going DOWN
Sep 14 10:19:58 ip-10-251-24-249 kernel: ena0: device is going UP
Sep 14 10:19:58 ip-10-251-24-249 kernel: ena0: queue 0 - cpu 0
Sep 14 10:19:58 ip-10-251-24-249 kernel: ena0: queue 1 - cpu 1

this bug has been fixed on head r333454 but is not merged back to 11.2-R
yet.
since this issue happens when renewing dhcp but we do not need dhcp anymore
after instance booted, may I suggest a simple workaround: kill dhclient,
for example
    echo '(/bin/sleep 60; /usr/bin/killall dhclient)&' >> /etc/rc.local


More information about the freebsd-net mailing list