After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 141073 - No limit on thumbnail cache - big disk space waste
No limit on thumbnail cache - big disk space waste
Status: RESOLVED FIXED
Product: nautilus
Classification: Core
Component: Thumbnails
2.22.x
Other All
: Normal normal
: ---
Assigned To: Nautilus Maintainers
Nautilus Maintainers
: 149668 151216 335776 (view as bug list)
Depends on: 523159
Blocks:
 
 
Reported: 2004-04-25 14:38 UTC by Sebastien Bacher
Modified: 2008-04-04 19:22 UTC
See Also:
GNOME target: ---
GNOME version: 2.21/2.22


Attachments
another crasher (eler ep065 :) (4.21 KB, application/x-gzip)
2007-04-08 00:22 UTC, John Leach
Details

Description Sebastien Bacher 2004-04-25 14:38:23 UTC
This bug was reported in the Debian BTS : http://bugs.debian.org/235067

"Nautilus generates preview icons, but it does not erase icons for deleted files
or age out old icons to limit cache size. This adds up fast -- I found that my
thumbnail directory was eating nearly 2gig
space. (Our project includes many texture maps with a build revision built into
all names - that means thousands of new file names with each nightly build.)

My local fix is a nightly cron job that erases thumbnail files over a week old,
but this should really be done by Nautilus.
Limiting by total size, file date, or even an option to purge all thumbnails on
shutdown/startup would be ideal."
Comment 1 Sebastien Bacher 2004-08-17 22:00:26 UTC
*** Bug 149668 has been marked as a duplicate of this bug. ***
Comment 2 Christian Neumair 2004-08-18 08:32:25 UTC
Maybe if the disk usage of the cache dir exceeds a particular limit (settable
through gconf), a dialog should pop up asking you whether you want to delete all
cache files, or defer deletion until the space exceeds current_limit + n bytes
where n is reasonably calculated (probably through some mod magic). You can use
GConf to set it to 0 as well, meaning that you don't want any thumbnailing limit.

regs,
 Chris
Comment 3 Alexander Larsson 2004-09-07 07:11:51 UTC
*** Bug 151216 has been marked as a duplicate of this bug. ***
Comment 4 Sebastien Bacher 2004-10-19 21:29:55 UTC
"150483: No UI for deleting thumbnails, which never go away on their own" has a
patch, could fix this bug too (not sure if we just want an UI, or also a limit
and an autoclean system) ... 
Comment 5 aigarius 2005-01-28 04:03:11 UTC
I think that it would be Gnomish to "just work" and that would mean an
autocleaner based on a percentage of the partition users home is on or of his
quote there.
Comment 6 Jaap A. Haitsma 2005-01-28 18:50:38 UTC
Would be also nice if the failed directory would be removed say every 3 months.
A user then might have updated his thumbnailer software and that software then
maybe is able to thumbnail files it could not thumbnail before. I had this issue
for a while with the totem thumbnailer which was broken for a while.
Comment 7 Luis Villa 2006-01-08 02:12:56 UTC
See bug 304184 for a patch that would reduce the impact of this a bit.
Comment 8 Fabio Bonelli 2006-03-24 09:30:01 UTC
*** Bug 335776 has been marked as a duplicate of this bug. ***
Comment 9 Simon Law 2006-04-29 16:03:46 UTC
There should be a sensible default maximum size for the thumbnail cache, which shrinks when disk space or quota used gets too close to the limit.

When it reaches that limit, a LRU expiry algorithm would probably be the sensible behaviour.
Comment 10 John Leach 2007-04-08 00:22:05 UTC
Created attachment 85971 [details]
another crasher (eler ep065 :)
Comment 11 John Leach 2007-04-08 00:26:16 UTC
(In reply to comment #10)
> Created an attachment (id=85971) [edit]
> another crasher (eler ep065 :)
> 

sorry, attached this to the wrong bug report.  ignore.

Too many gnome bugzilla tabs open at once!
Comment 12 Cosimo Cecchi 2008-03-23 18:10:07 UTC
It seems work on this is going on in gnome-settings-daemon (bug #523159), so I'm marking this as depending on the g-s-d bug.
Comment 13 Michael Chudobiak 2008-04-04 18:59:47 UTC
Closing as fixed. gnome-settings-daemon will purge the thumbnail cache when items are older than 60 days, or the cache exceeds 64 MB, by default. Will appear in Gnome 2.24.

- Mike
Comment 14 Luis Villa 2008-04-04 19:09:04 UTC
awwwesome. Someone need to give a per-release award for 'oldest bug fixed in this release'... thanks :)
Comment 15 Michael Chudobiak 2008-04-04 19:22:13 UTC
I'm hoping someone will fix bug 80925, so don't give out any awards yet...

- Mike