Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#22242 - thunar extreme disk usage

Attached to Project: Arch Linux
Opened by Gajo Petrovic (gajop) - Tuesday, 28 December 2010, 17:48 GMT
Last edited by Andreas Radke (AndyRTR) - Thursday, 24 March 2011, 18:14 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Andreas Radke (AndyRTR)
Architecture All
Severity Critical
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details


After a couple of seconds (usually less then 15~), thunar starts using 100% disk IO and makes the entire system, including itself unresponsive.
strace suggests slowdown comes from repeated calls like this:
writev(3, [{"&\3\2\0\3\0`\3", 8}, {NULL, 0}, {"", 0}], 3) = 8
poll([{fd=3, events=POLLIN}], 1, -1) = 1 ([{fd=3, revents=POLLIN}])
read(3, "\1\1J\v\0\0\0\0Z\1\0\0\0\0\0\0\313\4%\3\312\4\371\2\20\0\0\0\0\0\0\0", 4096) = 32
read(3, 0xc680f4, 4096) = -1 EAGAIN (Resource temporarily unavailable)
poll([{fd=3, events=POLLIN|POLLOUT}], 1, -1) = 1 ([{fd=3, revents=POLLOUT}])
writev(3, [{"(\3\4\0\3\0`\3Z\1\0\0\312\4\371\2", 16}, {NULL, 0}, {"", 0}], 3) = 16
poll([{fd=3, events=POLLIN}], 1, -1) = 1 ([{fd=3, revents=POLLIN}])
read(3, "\1\1K\v\0\0\0\0\263~\363\1\313\4%\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0", 4096) = 32
read(3, 0xc680f4, 4096) = -1 EAGAIN (Resource temporarily unavailable)
read(3, 0xc680f4, 4096) = -1 EAGAIN (Resource temporarily unavailable)
read(3, 0xc680f4, 4096) = -1 EAGAIN (Resource temporarily unavailable)
poll([{fd=4, events=POLLIN}, {fd=3, events=POLLIN}, {fd=7, events=POLLIN}, {fd=8, events=POLLIN}, {fd=9, events=POLLIN}, {fd=6, events=POLLIN}], 6, 1838) = 1 ([{fd=3, revents=POLLIN}])
read(3, "\2\33K\v\31\210&4Z\1\0\0\4\0`\3\0\0\0\0\313\4%\3\313\4\372\2\20\0\1\0", 4096) = 32
read(3, 0xc680f4, 4096) = -1 EAGAIN (Resource temporarily unavailable)
poll([{fd=3, events=POLLIN|POLLOUT}], 1, -1) = 1 ([{fd=3, revents=POLLOUT}])




not completely sure but the 3 fd might be:
connect(3, {sa_family=AF_FILE, path=@"/tmp/.X11-unix/X0"}, 20) = 0
anyhow, the entire strace log is given

pacman -Qi thunar
Name : thunar
Version : 1.0.2-1
URL : http://thunar.xfce.org
Licenses : GPL2 LGPL2.1
Groups : xfce4
Provides : None
Depends On : desktop-file-utils libexif>=0.6.19 hicolor-icon-theme fam
gtk2 exo>=0.3.107 libxfce4util>=4.6.2 hal>=0.5.14 libpng
libjpeg>=8.0.1 startup-notification
Optional Deps : gamin: a fam replacement to make thunar monitor changes to
files on the fly
xfce4-panel: for trash applet
Required By : thunar-archive-plugin thunar-audio-thumbnailer
thunar-media-tags-plugin thunar-vcs-plugin thunar-volman
Conflicts With : None
Replaces : None
Installed Size : 15380.00 K
Packager : AndyRTR <andyrtr@archlinux.org>
Architecture : x86_64
Build Date : Sat 22 May 2010 04:15:41 PM CEST
Install Date : Fri 08 Oct 2010 07:48:22 PM CEST
Install Reason : Explicitly installed
Install Script : Yes
Description : new modern file manager for Xfce

i'm putting this as critical as it's been around for a while and makes me have no decent fm on linux :(
   thun_strace (812.9 KiB)
This task depends upon

Closed by  Andreas Radke (AndyRTR)
Thursday, 24 March 2011, 18:14 GMT
Reason for closing:  Works for me
Additional comments about closing:  no fam or gamin needed anymore
Comment by Connor Behan (connorbehan) - Friday, 31 December 2010, 21:55 GMT
The classic cause of this is using fam instead of gamin. Is that what you're doing?
Comment by Gajo Petrovic (gajop) - Friday, 31 December 2010, 22:49 GMT
well, i am using fam, but i also just tried gamin and it has the same problem - the thing is, thunar used to work well with fam for about a year, problems started some a little more than 1-2 months, not sure when exactly
Comment by Leonid Isaev (lisaev) - Monday, 24 January 2011, 18:50 GMT
I can't observe this bug in thunar 1.2.0. It requires neither fam, nor gamin. Gajo, is this still an issue?
Comment by Gajo Petrovic (gajop) - Monday, 24 January 2011, 19:00 GMT
while i haven't looked into it thoroughly it's still there, and it happens when i have the tree view open (doesn't happen the rest of the time)
http://bugzilla.xfce.org/show_bug.cgi?id=5110 seems similar to my problem
it could be that it's having trouble with one of the folders in my tree structure - although it's not expanded, it has a couple of thousand of entries, so i guess it could be slowing it down
Comment by Leonid Isaev (lisaev) - Monday, 24 January 2011, 23:05 GMT
Yes, that must be the case, because I have no problems with tree view and directories with ~100 files... You might also give an update at the upstream link, you mentioned.
Comment by dmitry (Dr.X) - Saturday, 19 February 2011, 18:06 GMT
I haven't that problem, Thunar v1.0.2, both Tree and Shortcuts Side pane, filesystems are ext3 and XFS, using Gamin, kernel 2.6.36.3. In bug, which is above (http://bugzilla.xfce.org/show_bug.cgi?id=5110) authon have reiserfs, maybe you too?
Comment by Andreas Radke (AndyRTR) - Sunday, 20 February 2011, 09:15 GMT
This is not a thunar issue. Latest thunar doesn't need any file monitoring anymore. It works through gvfs. So disable fam or gamin and everything should be fine. Can we close this?

Loading...