Results 1 to 7 of 7

Thread: Deleting files takes a really long time

  1. #1

    Default Deleting files takes a really long time

    I'm currently experiencing a really annoying problem when deleting files, I'm using a fully updated Tumbleweed with KDE.

    When I try to delete files i.e. from Dolphin, it takes a really long time to perform this action.

    When I say "delete", I mean pressing "del" and moving them to trash; then, the notification area on the tray shows that the process is running, but it takes a really long time to complete, even 4 or 5 minutes. And I'm talking about a simple folder containing just a few files whose total size was about 5 Mb. This happens basically everytime that I try to delete a file, so it is not a problem of these specific files.

    Checking the running processes, I've noted that "trash.so" and "file.so" use a lot of CPU during these operations.

    If I run a "rm -R folder" command, everything works fine and the directory and the containing files are deleted instantly.

    How can I diagnose and solve this problem?

  2. #2
    Join Date
    Sep 2013
    Location
    Norfolk, UK
    Posts
    1,265

    Default Re: Deleting files takes a really long time

    I'm guessing that in Dolphin's settings you have "Limit to maximum size" set for trash, that used to be (still is?) quite buggy and could cause appreciable delays, I recall seeing several bug reports about it, albeit quite a while ago.

    Try with the limit disabled to see if that's the case you're seeing.
    Regards, Paul

    2x Tumbleweed (Snapshot: 20191012) KDE Plasma 5
    2x Leap 15.1 KDE Plasma 5

  3. #3
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    25,142

    Default Re: Deleting files takes a really long time

    And please note that rm is not the equivalent of what Folphin does. Dolphin moves to trash. Thus a mv command is much more like what Dolphin does.
    Henk van Velden

  4. #4
    Join Date
    Jan 2014
    Location
    Erlangen
    Posts
    990

    Default Re: Deleting files takes a really long time

    Quote Originally Posted by sekhemty View Post
    I'm currently experiencing a really annoying problem when deleting files, I'm using a fully updated Tumbleweed with KDE.

    When I try to delete files i.e. from Dolphin, it takes a really long time to perform this action.

    When I say "delete", I mean pressing "del" and moving them to trash; then, the notification area on the tray shows that the process is running, but it takes a really long time to complete, even 4 or 5 minutes. And I'm talking about a simple folder containing just a few files whose total size was about 5 Mb. This happens basically everytime that I try to delete a file, so it is not a problem of these specific files.

    Checking the running processes, I've noted that "trash.so" and "file.so" use a lot of CPU during these operations.

    If I run a "rm -R folder" command, everything works fine and the directory and the containing files are deleted instantly.

    How can I diagnose and solve this problem?
    Check your partition:

    Code:
    karl@erlangen:~> LANG=C df -h /home/karl
    Filesystem      Size  Used Avail Use% Mounted on
    /dev/nvme0n1p3  407G  208G  198G  52% /home
    karl@erlangen:~>
    Check for trash storage:

    Code:
    karl@erlangen:~> du /home/karl/.local/share/Trash/
    8       /home/karl/.local/share/Trash/info
    4       /home/karl/.local/share/Trash/files
    16      /home/karl/.local/share/Trash/
    karl@erlangen:~>
    Trash indeed resides on a partition with reasonable usage ( <= 90% will be fine). Opening dolphin and deleting files to Trash works smoothly.
    AMD Athlon 4850e (2009), openSUSE 13.1, KDE 4, Intel i3-4130 (2014), i7-6700K (2016), i5-8250U (2018), openSUSE Tumbleweed, KDE Plasma 5

  5. #5

    Default Re: Deleting files takes a really long time

    Quote Originally Posted by tannington View Post
    I'm guessing that in Dolphin's settings you have "Limit to maximum size" set for trash, that used to be (still is?) quite buggy and could cause appreciable delays, I recall seeing several bug reports about it, albeit quite a while ago.

    Try with the limit disabled to see if that's the case you're seeing.
    I've disabled this option and the problem is now solved, I would never been able to figure this out.

    Thanks for your help, and to all others that have answered to me.

  6. #6
    Join Date
    Sep 2013
    Location
    Norfolk, UK
    Posts
    1,265

    Default Re: Deleting files takes a really long time

    Quote Originally Posted by sekhemty View Post
    I've disabled this option and the problem is now solved, ...
    OK... But at best that "solution" is only a workaround.

    Don't forget you'll now need to manually empty the trash folder periodically, or alternatively set the "Delete files older than" option.


    Quote Originally Posted by karlmistelberger View Post
    ... Trash indeed resides on a partition with reasonable usage ( <= 90% will be fine). Opening dolphin and deleting files to Trash works smoothly.
    As I wrote earlier, this is a bug that has been reported numerous times in the past, (certainly as far back as 2009). From what I've read of it, the problem seems to be on dolphin's check of available free space, rather than having limited space on the partition, although most users don't appear to experience it. The problem is apparently worse if trash resides on a different partition, or if the deleted files are from an ntfs partition.

    For my own part I always shift-delete, so far I've not had an "Oh No!" moment ...
    Regards, Paul

    2x Tumbleweed (Snapshot: 20191012) KDE Plasma 5
    2x Leap 15.1 KDE Plasma 5

  7. #7
    Join Date
    Jan 2014
    Location
    Erlangen
    Posts
    990

    Default Re: Deleting files takes a really long time

    Quote Originally Posted by tannington View Post
    As I wrote earlier, this is a bug that has been reported numerous times in the past, (certainly as far back as 2009). From what I've read of it, the problem seems to be on dolphin's check of available free space, rather than having limited space on the partition, although most users don't appear to experience it. The problem is apparently worse if trash resides on a different partition, or if the deleted files are from an ntfs partition.
    To my experience moving to trash always works if move occurs on the same partition. Moving a name is indeed an atomic operation, adding an entry to the destination directory (e.g. maildir format) and then removing it from source directory. The data actually don't move. Moving large amount of data across partitions is risky.
    AMD Athlon 4850e (2009), openSUSE 13.1, KDE 4, Intel i3-4130 (2014), i7-6700K (2016), i5-8250U (2018), openSUSE Tumbleweed, KDE Plasma 5

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •