Bug 215014 - Performance issue when trashing files
Summary: Performance issue when trashing files
Status: RESOLVED WORKSFORME
Alias: None
Product: kio
Classification: Unmaintained
Component: general (other bugs)
Version First Reported In: 4.3
Platform: Arch Linux Unspecified
: NOR normal
Target Milestone: ---
Assignee: David Faure
URL:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2009-11-17 20:03 UTC by Mark
Modified: 2018-10-27 04:20 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mark 2009-11-17 20:03:13 UTC
Version:            (using KDE 4.3.3)
Installed from:    Archlinux Packages

Hi,

I seem to be on a bug posting spree here. Third one for today.

On Gnome i had this exact same issue. There i traced it down and helped the gnome people fix it. You can find that the bug here: https://bugzilla.gnome.org/show_bug.cgi?id=591363 The issue was in fsync which is now avoided all together when just trashing files.

Now on KDE i sadly experience the exact same issue i had in gnome. When i delete a huge folder by selecting all the files inside the folder the deletion progress is just a few files per seconds which takes minutes with 2000 files (my test case). When i just delete the parent folder (either DEL or SHIFT + DEL) the delete seems to be instant.

So, there is an issue here. I don't have the time to trace this down but my next step would be to check if the issue is in Qt by making a test program that trashes all the files using Qt calls. If that's not the issue then it's somewhere in KDE and.. and since KIO is the KDE IO manager (right?) i made the report under KIO. I sadly don't have the time to figure out where the problem is within KDE so i hope someone else can hunt this down and patch it?

Thanx,
Mark
Comment 1 Mark 2010-02-26 21:13:06 UTC
I tested this again on KDE 4.4 and i must say that the performance is WAY better then what it used to be.

Now it's not taking minutes anymore like on kde 4.3.3 but now it takes 13 till 16 seconds. That is with the kde-mv utility and also by simply selecting all files in dolphin and pressing the "delete" button.

HOWEVER.. On gnome the same folder is deleted under a second! So, there still is a bug here since kde still is ~13x till ~16x slower then gnome with this specific test case.

I also deleted the same files with iostat on just to see if there is a lot of iowait since every file causes a hidden trash file to be created in case you want to.. undo the trash action. On my system it resulted in barely no iowait at all. Just sometimes jumps to 2% but most of the time 0% or close to 0%

I hope this helped a bit.

Regards,
Mark
Comment 2 Dawit Alemayehu 2013-06-17 03:38:25 UTC
Does this still apply to the latest stable version of KDE, v4.10 or higher? There has been a lot of work done KIO, some related to performance, since version 4.4.
Comment 3 Mark 2013-06-17 06:49:38 UTC
Oh wow! Thank you for replying on this somewhat ancient bug report of myself. It's kinda funny to see how i was fresh and new in KDE at that time. Now i even make patches to fix exactly the issues like i described in my first post :)

Anyway, i don't know if my original issue is still valid for today's KDE. I will test it out and report back.
Comment 4 Andrew Crouthamel 2018-09-24 01:55:08 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 5 Andrew Crouthamel 2018-10-27 04:20:53 UTC
Dear Bug Submitter,

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!