Bug 398699 - File copy or even download indicator cause 100% CPU load
Summary: File copy or even download indicator cause 100% CPU load
Status: RESOLVED WORKSFORME
Alias: None
Product: plasmashell
Classification: Plasma
Component: System Tray widget (show other bugs)
Version: 5.13.4
Platform: Neon Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2018-09-16 07:39 UTC by Gunter Ohrner
Modified: 2018-11-29 09:47 UTC (History)
3 users (show)

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


Attachments
Xorg log (32.97 KB, text/x-log)
2018-09-16 07:39 UTC, Gunter Ohrner
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gunter Ohrner 2018-09-16 07:39:34 UTC
Created attachment 114997 [details]
Xorg log

(I tried to find already existing reports referring to the observed problem, but could not find any. I attached my Xorg.0.log for details. System is a, in comparison still not-that-slow, 3.0 GHz Intel Core i7 3540M. OpenGL and 3D effects are enabled and run smoothly.)

As soon as plasmashell shows an indicator for an ongoing copy or even download operation, using the spinning circle, the CPU load goes up to nearly 100% on one core, split between the plasmashell and the Xorg processes.

This seems to indicate an overly large and frequent amount of repaint requests being made, possibly for the spinning indicator.

It's sufficient to download a larger file using Chrome via a slow internet connection (I'm currently on a slow mobile link during this weekend.) and the load will go to 100%, even though the download is just drippling / sometimes even stalled for several seconds.

I'd assume updating the indicator 25 or 30 times a second would be more than enough for a smooth animation, so why the high load?
Comment 1 Patrick Silva 2018-09-16 16:04:45 UTC
Supposedly fixed. See bug 356479
Comment 2 Gunter Ohrner 2018-09-17 08:25:30 UTC
(In reply to Dr. Chapatin from comment #1)
> Supposedly fixed. See bug 356479

This other bug was marked as "Fixed" in 2016 and a second time (after reopening) in 2017. I'm using Plasma 5.13.4, however, and the problem still persists.

Bug 356479 comment 90 even requests to open a new bug if the symptoms still occur, as they will probably have a different cause in this case.

I'm not sure how to provide any additional meaningful information to debug this issue, though...
Comment 3 David Edmundson 2018-09-28 08:01:00 UTC
>I'm not sure how to provide any additional meaningful information to debug this issue, though...

Then we may as well close this. There are some other more specific bugs about CPU usage that we are working on.
Comment 4 Gunter Ohrner 2018-10-03 14:58:30 UTC
(In reply to David Edmundson from comment #3)
> > I'm not sure how to provide any additional meaningful information to debug
> > this issue, though...
> Then we may as well close this. There are some other more specific bugs
> about CPU usage that we are working on.

I'm willing to provide any additional information which you need, I just have no idea what this might be.

To reproduce this issue, it's sufficient to download a file using Chromium and CPU-usage of Plasmashell will skyrocket.
Comment 5 David Edmundson 2018-10-09 00:36:44 UTC
Ok, can you provide a perf trace
Comment 6 Andrew Crouthamel 2018-10-27 04:09:54 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days, the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please set the bug status as REPORTED so that the KDE team knows that the bug is ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 7 Gunter Ohrner 2018-10-27 09:59:04 UTC
@David: Do you mean this by "perf": https://perf.wiki.kernel.org/index.php/Main_Page ?

Never used it but will try if it's the right tool for the purpose.
Comment 8 Christoph Feck 2018-10-30 12:18:56 UTC
Yes, the kernel "perf" tool.
Comment 9 Bug Janitor Service 2018-11-14 11:33:30 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 10 Bug Janitor Service 2018-11-29 09:47:50 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!