Bug 413560

Summary: kioworker process causes high cpu usage while Dolphin sends thousands of files to Trash
Product: [Frameworks and Libraries] frameworks-kio Reporter: Patrick Silva <bugseforuns>
Component: TrashAssignee: David Faure <faure>
Status: REPORTED ---    
Severity: normal CC: cesphd, kdelibs-bugs, mclemoret97, r2b2x3+kdebug, tagwerk19
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=434175
https://bugs.kde.org/show_bug.cgi?id=422142
Latest Commit: Version Fixed In:
Attachments: screenshot showing trash.so cpu usage
screenshot taken while Dolphin 21.04 sends thousands of files to Trash

Description Patrick Silva 2019-10-28 17:23:04 UTC
Created attachment 123544 [details]
screenshot showing trash.so cpu usage

SUMMARY
trash.so always causes high cpu usage while Dolphin sends thousands of files (jpg files when the attached screenshot was taken) to Trash.

STEPS TO REPRODUCE
1. open Dolphin
2. open a folder containing thousands of files
3. press ctrl+a to select all files and send them to Trash
4.  press ctrl+esc to open System Activity and observe the cpu usage

OBSERVED RESULT
trash.so process causes high cpu usage

EXPECTED RESULT
normal cpu usage

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 5.17.1
KDE Frameworks Version: 5.63.0
Qt Version: 5.13.1
Kernel Version: 5.3.7-arch1-1-ARCH
OS Type: 64-bit
Processors: 2 × Intel® Celeron® CPU G1820 @ 2.70GHz
Memory: 7,7 GiB
Comment 1 Patrick Silva 2021-05-01 13:53:02 UTC
This issue persists even when Dolphin 21.04 sends deleted files to .Trash-<userid> folder located in source partition instead of home/myusername/.local/share/Trash/

Operating System: Arch Linux
KDE Plasma Version: 5.21.4
KDE Frameworks Version: 5.81.0
Qt Version: 5.15.2
Graphics Platform: Wayland
Comment 2 Patrick Silva 2021-05-01 13:53:48 UTC
Created attachment 138057 [details]
screenshot taken while Dolphin 21.04 sends thousands of files to Trash
Comment 3 Patrick Silva 2021-09-18 19:34:05 UTC
Currently the process that causes high cpu usage is called kioslave5.

Operating System: Arch Linux
KDE Plasma Version: 5.22.90
KDE Frameworks Version: 5.86.0
Qt Version: 5.15.2
Graphics Platform: Wayland
Comment 4 Patrick Silva 2021-10-13 15:39:36 UTC
*** Bug 443668 has been marked as a duplicate of this bug. ***
Comment 5 Patrick Silva 2023-07-28 23:29:35 UTC
*** Bug 472731 has been marked as a duplicate of this bug. ***
Comment 6 Patrick Silva 2024-02-29 14:07:42 UTC
kioworker process uses 21% of cpu while Dolphin 22.02 sends thousands of .jpg files to Trash.

Operating System: Arch Linux 
KDE Plasma Version: 6.0.0
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2
Kernel Version: 6.7.6-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 4 × Intel® Core™ i5-4670K CPU @ 3.40GHz
Memory: 15,5 GiB of RAM