Discussion:
poor ethernet network performance
Keegan Saunders
2021-05-16 22:07:04 UTC
Permalink
I'm noticing that my OpenBSD desktop with a Realtek 8168 ethernet controller
(re(4) driver) is experiencing slow network speeds on OpenBSD 6.9 (not
recent, has been an issue before)

For example, on OpenBSD, cloning GitHub repos has about <400kb/s download
speeds whereas on Linux it is upwards of 30mb/s (both using SSH).
The issue is the same using wget, curl, etc. on other sites.

Using scp from another machine to this machine over LAN is achieving
about max 6mb/s which is still less than desired.

How can I further debug this issue to figure out what is wrong? Is the
driver having issues/known to have issues?

Thanks,
K
Steven Shockley
2021-05-17 00:18:20 UTC
Permalink
Post by Keegan Saunders
I'm noticing that my OpenBSD desktop with a Realtek 8168 ethernet controller
(re(4) driver) is experiencing slow network speeds on OpenBSD 6.9 (not
recent, has been an issue before)
For example, on OpenBSD, cloning GitHub repos has about <400kb/s download
speeds whereas on Linux it is upwards of 30mb/s (both using SSH).
The issue is the same using wget, curl, etc. on other sites.
Using scp from another machine to this machine over LAN is achieving
about max 6mb/s which is still less than desired.
How can I further debug this issue to figure out what is wrong? Is the
driver having issues/known to have issues?
Thanks,
K
I've had similar issues with OpenBSD (and MacOS) when connecting
to/through a CentOS/RHEL machine with the tcp_tw_recycle sysctl enabled
(on CentOS/RHEL). Unfortunately this was enabled by default in CentOS
6.x. If you're going through an old Linux proxy this may impact OpenBSD
performance.
Darren Tucker
2021-05-17 00:38:02 UTC
Permalink
Post by Keegan Saunders
I'm noticing that my OpenBSD desktop with a Realtek 8168 ethernet controller
(re(4) driver) is experiencing slow network speeds on OpenBSD 6.9 (not
recent, has been an issue before)
I've had something similar in the past and it was a duplex mismatch.

If you have a managed switch, check that it and ifconfig agree on the
duplex setting that was auto-negotiated. Failing that, try forcing either
full-duplex or half-duplex with ifconfig and/or hostname.re0.
--
Darren Tucker (dtucker at dtucker.net)
GPG key 11EAA6FA / A86E 3E07 5B19 5880 E860 37F4 9357 ECEF 11EA A6FA (new)
Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.
Chris Cappuccio
2021-05-18 20:19:52 UTC
Permalink
Post by Keegan Saunders
I'm noticing that my OpenBSD desktop with a Realtek 8168 ethernet controller
(re(4) driver) is experiencing slow network speeds on OpenBSD 6.9 (not
recent, has been an issue before)
Why not include a dmesg? How do you expect anyone to troubleshoot this problem with zero data?
Loading...