Bug 416303

Summary: ksgrd_network_helper maxes out an entire CPU thread while qBittorrent is running
Product: [Unmaintained] ksysguard Reporter: Nicolas F. <kdebugs>
Component: ksysguardAssignee: KSysGuard Developers <ksysguard-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal CC: bugseforuns
Priority: NOR    
Version: 5.17.5   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: flamegraph of the ksgrd_network_helper process, captured with a 99 Hz interval for 60 seconds.

Description Nicolas F. 2020-01-15 16:15:37 UTC
Created attachment 125154 [details]
flamegraph of the ksgrd_network_helper process, captured with a 99 Hz interval for 60 seconds.

ksgrd_network_helper sits at full usage of one logical CPU core if qBittorrent is running in the background. If one closes qBittorrent, the CPU usage of ksgrd_network_helper drops.


STEPS TO REPRODUCE
1. Launch ksysguard
2. Launch qBittorrent with some torrents
3. Look at the CPU usage of ksgrd_network_helper

OBSERVED RESULT

Ridiculously high CPU usage because it presumably scales badly with the number of connections an application makes.


EXPECTED RESULT

Developer realises that more network applications than just web browsers exists and uses appropriately scaling algorithms.


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Linux 5.4.8 / Plasma 5.17.5
(available in About System)
KDE Plasma Version: 5.17.5
KDE Frameworks Version: 5.65.0
Qt Version: 5.14.0

ADDITIONAL INFORMATION

I'm tunnelling through wireguard while doing this, but I'm not sure if it matters at all.
Comment 1 Patrick Silva 2020-01-15 17:21:48 UTC
I noticed this problem on Arch Linux a few weeks ago while downloading a file with JDownloader. Download with internet browsers does not cause high cpu usage. I do not use tunnelling through wireguard.
Comment 2 Patrick Silva 2020-01-22 23:46:03 UTC

*** This bug has been marked as a duplicate of bug 414094 ***