Bug 456388 - Plasma extremely slow just after boot and high disk usage
Summary: Plasma extremely slow just after boot and high disk usage
Status: REOPENED
Alias: None
Product: plasmashell
Classification: Plasma
Component: generic-performance (show other bugs)
Version: 5.24.5
Platform: Manjaro Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-07-06 08:54 UTC by mnrbn
Modified: 2022-09-07 07:29 UTC (History)
1 user (show)

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


Attachments
plasmashell process in ksysguard (5.79 KB, image/png)
2022-07-06 10:28 UTC, mnrbn
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mnrbn 2022-07-06 08:54:09 UTC
SUMMARY
***
Some times, randomly, when I boot the system and login, the plasmashell session is unusable because of lag. Trying to open the main menu or a window in the task manager is impossible.
This comes with a very high disk usage of the root disk by plasmashell process, which makes that disk also unusable. The CPU usage of that process is also a bit higher that it should be.
I don't know what is plasmashell doing to consume all that disk and CPU, but when I kill plasmashell process, everything returns to normal. That said, if I try to run it again, everything starts to lag again.
All the windows, the mouse, the browser... everything works fine but the plasma things (dock, desktop, app menu...).
And if I just wait without killing plasmashell, after a couple minutes it randomly fixes everything and the desktop becomes usable...
Again, this whole problem only happens "some times", randomly, which makes it harder to detect what's causing it.
***


STEPS TO REPRODUCE
1. Boot
2. Login


OBSERVED RESULT

The whole plasma session is unusable some times

EXPECTED RESULT

Everything should be as fast as always

SOFTWARE/OS VERSIONS

I have this bug since like 2 years ago, so it's probably in older versions too.

Linux/KDE Plasma: 5.24.5 
(available in About System)
KDE Plasma Version: 5.24.5
KDE Frameworks Version: 5.95.0
Qt Version: 5.15.5

ADDITIONAL INFORMATION

This is the output of plasmashell and lsof:

https://pastebin.pl/view/515b766e

Things I've tried:
- Removing plasma cache
- Removing all applets
- Unmounting all disks but the root one
Comment 1 mnrbn 2022-07-06 10:28:27 UTC
Created attachment 150438 [details]
plasmashell process in ksysguard
Comment 2 mnrbn 2022-07-06 10:30:21 UTC
Comment on attachment 150438 [details]
plasmashell process in ksysguard

name/user/pid/CPU%/Ram/Time/Disk IO Write/Command
Comment 3 David Edmundson 2022-07-06 13:29:07 UTC
Removing  "critical" tag if you've had the bug for 2 years and still use Plasma. 
Neither stderr or lsof show anything abnormal.

Best thing will be to capture log from perf/hotspot when it's in the high usage mode.
Comment 4 Bug Janitor Service 2022-07-21 04:36:41 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 5 Bug Janitor Service 2022-08-05 04:35:32 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!
Comment 6 mnrbn 2022-09-07 07:22:37 UTC
It's still a problem, it shouldn't be closed
Comment 7 mnrbn 2022-09-07 07:26:04 UTC
It won't be useful probably, but here is the perf.data. Tell me what else to do to get a log of the problem.
https://pastebin.pl/view/c3ba086d
Comment 8 mnrbn 2022-09-07 07:29:00 UTC
Also, I do think it's a critical bug. I still use plasma, but if some random days I can't use it after 10 minutes from login, and the disk is being used so much for that time that it will wear down my ssd a lot more than what should be necessary, that's critical.