! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
gvfsd-trash 50% cpu usage for minutes, even hours after trashing many files
Status:
RESOLVED: MOVED

Comments

Description xyzdr4gon333 2016-06-07 21:37:30 CEST
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:
  https://bugzilla.gnome.org/show_bug.cgi?id=763394
  https://bugzilla.gnome.org/show_bug.cgi?id=763218

> 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...
Comment 1 unhammer+dill 2019-03-20 20:03:30 CET
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:
https://bugzilla.gnome.org/show_bug.cgi?id=763600
https://bugzilla.gnome.org/show_bug.cgi?id=711459
Comment 2 alexxcons editbugs 2019-03-20 22:15:23 CET
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 ?
Comment 3 unhammer+dill 2019-03-20 22:33:05 CET
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.
Comment 4 Theo Linkspfeifer editbugs 2019-04-20 21:36:19 CEST
You could test with the live session of Xubuntu 18.10 (or 19.04 which was recently released).
Comment 5 alexxcons editbugs 2020-05-11 00:38:09 CEST
*** Bug 15871 has been marked as a duplicate of this bug. ***
Comment 6 alexxcons editbugs 2020-05-11 00:39:18 CEST
In Bug #15871  trashing files only seems to be slow when tree-view is enabled.

@ unhammer+dill@mm.st
Can you confirm that ?
Comment 7 unhammer+dill 2020-05-11 10:04:26 CEST
I never use tree-view, but I still get slow trashing, so I can disconfirm that :-/
Comment 8 alexxcons editbugs 2020-05-11 15:12:29 CEST
(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
Comment 9 Git Bot editbugs 2020-05-26 23:27:16 CEST
-- 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

Bug #12635

Reported by:
xyzdr4gon333
Reported on: 2016-06-07
Last modified on: 2020-05-26

People

Assignee:
Xfce Bug Triage
CC List:
7 users

Version

Version:
1.6.10

Attachments

Additional information