Bug 416303 - ksgrd_network_helper maxes out an entire CPU thread while qBittorrent is running
Summary: ksgrd_network_helper maxes out an entire CPU thread while qBittorrent is running
Status: RESOLVED DUPLICATE of bug 414094
Alias: None
Product: ksysguard
Classification: Applications
Component: ksysguard (show other bugs)
Version: 5.17.5
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: KSysGuard Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-01-15 16:15 UTC by Nicolas F.
Modified: 2020-01-22 23:46 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
flamegraph of the ksgrd_network_helper process, captured with a 99 Hz interval for 60 seconds. (374.13 KB, image/svg+xml)
2020-01-15 16:15 UTC, Nicolas F.
Details

Note You need to log in before you can comment on or make changes to this bug.
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 ***