Bug 410043 - Speed of wired network is slower on Plasma + NetworkManager
Summary: Speed of wired network is slower on Plasma + NetworkManager
Status: RESOLVED WORKSFORME
Alias: None
Product: plasmashell
Classification: Plasma
Component: Networking in general (show other bugs)
Version: master
Platform: Arch Linux Linux
: NOR normal
Target Milestone: 1.0
Assignee: Jan Grulich
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-07-20 18:21 UTC by Patrick Silva
Modified: 2024-12-23 18:23 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Silva 2019-07-20 18:21:32 UTC
SUMMARY


STEPS TO REPRODUCE
1. start plasma session
2. connection your machine to a wired network
3. suspend and resume your system

OBSERVED RESULT
explained above

EXPECTED RESULT
network speed is always correct

SOFTWARE/OS VERSIONS
Operating System: KDE neon Unstable Edition
KDE Plasma Version: 5.16.80
KDE Frameworks Version: 5.61.0
Qt Version: 5.12.3
Kernel Version: 5.1.16-050116-generic

Operating System: Arch Linux
KDE Plasma Version: 5.16.3
KDE Frameworks Version: 5.60
Qt Version: 5.13
Kernel Version: 5.2.1.arch1-1

Operating System: void 
KDE Plasma Version: 5.16.3
KDE Frameworks Version: 5.60.0
Qt Version: 5.13
Kernel Version: 5.1.16_1
Comment 1 Patrick Silva 2019-07-20 18:22:33 UTC
Detailed info:

I have two computers connected to the same router through a cable,
each one runs two systems.
Desktop:
Arch Linux + Plasma 5.16.3 + Network Manager
Void Linux + Plasma 5.16.3 + Network Manager

Laptop:
Arch Linux + Gnome 3.32.2 + Network Manager
Neon unstable edition + Network Manager

Both Arch and Void installed on desktop computer have
exactly the same problem: internet speed
drops to one third after suspend/resume cycle. Rebooting
is the only way to get the correct internet speed again.

Neon unstable edition always give me one third of the expected
internet speed when I use the ethernet adapter.
Wireless adapter always gives me the correct internet speed,
even after suspend/resume cycle.
Arch + Gnome installed on the same laptop always gives me
the correct internet speed even after resume/suspend cycle
regardless of whether I use ethernet or wireless adapter.

I solved the problem with slower internet speed after suspend/resume
on Arch + Plasma running on my desktop by replacing Network Manager with wicd.

Therefore, all systems running Plasma + Network Manager have issues
with the speed of wired network.
That's why I think that maybe there is some problem between Plasma and Network Manager.
Comment 2 Jan Grulich 2019-07-21 08:24:17 UTC
To me it looks like a problem somewhere in NetworkManager, plasma-nm can't really affect connection speed, unless there is wrong configuration. Maybe check your wired connection whether it has "Allow auto-negotiation" option checked, if it's unchecked, then "speed" and "duplex" can be set and it might be wrongly set in your case. I would also recommend trying to re-save your wired connection even if 'auto-negotiation" is checked, as the connection still may be wrongly configured. Just try to change its name or anything and re-save it, disconnect and connect again.
Comment 3 Patrick Silva 2019-07-21 12:39:37 UTC
"Allow auto-negotiation" was disabled and "Duplex" was configured as "Full" on all my systems. Is slower wired connection after resume/suspend expected when "Duplex" is "Full"? Or is there a bug with "Duplex" setting?
I solved the problem after suspend/resume on all my systems by enabling
"Allow auto-negotiation" option and disconnecting/reconnecting. \o/
Comment 4 Jan Grulich 2019-07-22 12:50:11 UTC
(In reply to Patrick Silva from comment #3)
> "Allow auto-negotiation" was disabled and "Duplex" was configured as "Full"
> on all my systems. Is slower wired connection after resume/suspend expected
> when "Duplex" is "Full"? Or is there a bug with "Duplex" setting?
> I solved the problem after suspend/resume on all my systems by enabling
> "Allow auto-negotiation" option and disconnecting/reconnecting. \o/

I think it might be some misconfiguration, there used to be different default values for "duplex" and I remember people were reporting similar issues. Either re-saving problematic connection or create a new one was solution for this.
Comment 5 Patrick Silva 2019-07-22 17:53:05 UTC
I disabled autonegotiation, configured "Duplex" to "Full", renamed the connection, disconnected and reconnected... Tested again and I got the same slower speed after suspend/resume. "ethtool enp4s0" command confirmed that "Duplex" was "Full".
So I removed the wired connection, a new connection was created automatically with Dulplex = Half. I changed it to "Full", disconnected/reconnected, another suspend/resume cycle and I got the same result again.
What do you think Jan? Is there a bug here?
Comment 6 Jan Grulich 2019-07-23 06:55:15 UTC
I'm not sure it's a bug or expected behavior, you would need to ask NM developers. Default value for "auto-negotiaion" is false, I don't know why, but it's weird that after suspend and resume your connection is slower, even with "duplex" being set to "full".
Comment 7 Patrick Silva 2019-08-02 13:03:36 UTC
Thank you Jan.

A few days ago I replaced my modem and stopped using a wireless router
and now I can't reproduce this problem on any of my systems previously affected.
Interesting...
Comment 8 Ben Cooksley 2024-12-23 18:23:50 UTC
Bulk transfer as requested in T17796