Public bug reported: When I use thunar to open the image folders on a cell phone, and then I delete or mv files away from the phone, this is what happens: 1) First, the thumbnail folder gets moved away / deleted. 2) Next, thunar attempts to create and re-fill the thumbnail folder as the files are being deleted. 3) Amusingly, the thumbnailing process and the deletion process happen in the same order, so if you watch carefully, you can see this: 3a) The upper left file starts out as a default icon. 3b) It is replaced with a thumbnail image 3c) It is deleted/moved away. 3d) A new file, with a default icon then fills the space.
On a slowish USB connection to a typical camera, you can see this happening with the naked eye. Clearly, a lot of bandwidth is being wasted writing and deleting thumbnail files on the camera. Remember, thumbnails are stored on the device itself, so they eat USB bandwidth, and they also trigger writes to the flash memory, and these writes can be very slow. If thunar runs the thumbnailing in a separate thread, and if ionice (or the syscall equivalent) can operate on just the thumbnailing thread (and not the rest of thunar), then setting the thumbnailing thread to the "Idle" service class would probably do a fairly good job of solving the problem. And it should nice itself, too. Or, when thunar detects that the thumbnail folder is missing, the thumbnailing thread could sleep several seconds before starting to re- fill itself. ProblemType: Bug DistroRelease: Ubuntu 11.04 Package: thunar 1.2.1-3ubuntu2 ProcVersionSignature: Ubuntu 2.6.38-10.46-generic 2.6.38.7 Uname: Linux 2.6.38-10-generic x86_64 Architecture: amd64 Date: Mon Jul 18 18:57:35 2011 InstallationMedia: Xubuntu 11.04 "Natty Narwhal" - Release amd64 (20110427) ProcEnviron: LANGUAGE=en_GB:en PATH=(custom, user) LANG=en_GB.UTF-8 SHELL=/bin/bash SourcePackage: thunar UpgradeStatus: No upgrade log present (probably fresh install) ** Affects: thunar (Ubuntu) Importance: Undecided Status: New ** Tags: amd64 apport-bug natty -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/812461 Title: thunar thumbnailing very inefficient under rm To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/thunar/+bug/812461/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs