After deleting many files with the `trash` command cpu usage of gvfsd-trash jumps to 50% and stays there. With the following bash script I could reproduce this in all of the cases I ran that script:
Thunar & sleep 2s && ( cd mktemp -d && for ((i=0;i<2000;i++)); do touch "$i.tmp"; done && trash *.tmp )
Please see these bugs:
> I am sorry, I forgot on this bug. Yes please, fill bug against xfdesktop.
> G_FILE_ATTRIBUTE_TRASH_ITEM_COUNT has to be used instead of enumeration...
I'm seeing this when trashing lots of large files (ie. image raw files) on an ntfs drive, where gvfsd-trash stays at 50% (and ntfs at 100%) for quite some time.
according to https://bugzilla.redhat.com/show_bug.cgi?id=1323079 there seems to be some fixes in gtk3 – is this something that will be fixed when xfce updates things to gtk3?
also mentioned in that report:
Hmm, from the bugreport it is not clear what is the minimum gtk3 version which has the fix.
However Thunar 1.8.4 requires already gtk3 v3.22 ... the bugs are all from 2016, so I guess thunar 1.8.5 already profits from the fix.
The reproducer script above does not work for me ( I tried with bash and shell ... something else ?).
Can you reproduce the problem as well with thunar 1.8.4 ?
Aha, I haven't tried 1.8.5 yet, I'm still on Thunar 1.6.15 (Xfce 4.12) on Xubuntu 18.04.2
What I do here (which has happened again and again since I got this ntfs usb drive) is that I'll select a bunch of files in Thunar and hit Delete, hear a beep and then xfdesktop and Thunar both freeze (panel and other programs fortunately work fine) while in htop I can see ntfs and gvfsd-trash spinning the cpu for quite some time.
(I've ended up hitting winkey-f while they're freezing, nothing happens immediately, but when gvfsd-trash was done I got a bunch of Thunar windows suddenly.)
I'll report back when I've upgraded to Xubuntu 18.10, which has Thunar 1.8.1.
You could test with the live session of Xubuntu 18.10 (or 19.04 which was recently released).
*** Bug 15871 has been marked as a duplicate of this bug. ***
In Bug #15871 trashing files only seems to be slow when tree-view is enabled.
Can you confirm that ?
I never use tree-view, but I still get slow trashing, so I can disconfirm that :-/
(In reply to unhammer+dill from comment #7)
> I never use tree-view, but I still get slow trashing, so I can disconfirm
> that :-/
Uh, so probably I was to fast to close it as a duplicate .. reopened
-- GitLab Migration Automatic Message --
This bug has been migrated to xfce.org's GitLab instance and has been closed from further activity.
You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.xfce.org/xfce/thunar/-/issues/141.
Please create an account or use an existing account on one of our supported OAuth providers.
If you want to fork to submit patches and merge requests please continue reading here: https://docs.xfce.org/contribute/dev/git/start#gitlab_forks_and_merge_requests
Also feel free to reach out to us on the mailing list https://mail.xfce.org/mailman/listinfo/xfce4-dev