Bug 256413

Summary: emulators/virtualbox-ose-kmod: bridged networking emulated adapters poor performance
Product: Ports & Packages Reporter: rdunkle
Component: Individual Port(s)Assignee: Virtualbox Team (Nobody) <vbox>
Status: Open ---    
Severity: Affects Only Me CC: grahamperrin, groenveld, rozhuk.im, sink
Priority: --- Keywords: performance
Version: LatestFlags: bugzilla: maintainer-feedback? (vbox)
Hardware: amd64   
OS: Any   
URL: https://www.freshports.org/emulators/virtualbox-ose-kmod/

Description rdunkle 2021-06-04 11:17:59 UTC
13.0-STABLE FreeBSD 13.0-STABLE #0 stable/13-4a4a17495
virtualbox-ose-6.1.22
I have noticed that using bridged networking with any of the emulated adapters that network performance is poor. I particularly notice when trying to scp files to a Linux guests (RHEL 8.3, Alma 8.4), Solaris 9.  I found that networking is normal if I select virtio network on the guest.  I have switched physical network cards, and the problem persists.
Comment 1 Ivan Rozhuk 2021-09-21 06:02:06 UTC
Try to disable HW offloads on NIC:
ifconfig igb0 -rxcsum -txcsum -vlanhwtso -lro -tso4 -tso6 down up
Comment 2 rdunkle 2021-09-21 08:31:16 UTC
That made a world of difference.  The nic works normally.
Thank you!
Comment 3 Pavel Gubin 2023-01-25 14:48:03 UTC
(In reply to Ivan Rozhuk from comment #1)

Thanks! helped for me also.

Env (if this gives someone any clue):

Host: FreeBSD 12.4-RELEASE r372781 GENERIC amd64 on (very old) Intel S3210SH platform with Xeon X3210 CPU @2.13 and em0 <Intel(R) 82566DM-2 ICH9 AMT>

Virtualbox:
virtualbox-ose-6.1.36 (from packages)
virtualbox-ose-kmod-6.1.36 (built from ports for 12.4)

Guests:
Win 2003 Server (32-bit) using virtio-net driver
Win XP using emulated PCNet-FAST III adapter
Ubuntu 14.04/i686 using emulated Intel PRO/1000MT adapter

All three has poor performance - ~5KB/s by wget under Ubuntu from local server, failure to transfer files with "resource disappeared" error under Windows - including W2K3 with virtio.

"ifconfig em0 -rxcsum -txcsum" was sufficient to restore normal network speed.