| Summary: | setting a limit on thumbnail cache does not work | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | Matthew Mosesohn <mmosesoh> |
| Component: | nautilus | Assignee: | Tomáš Bžatek <tbzatek> |
| Status: | CLOSED INSUFFICIENT_DATA | QA Contact: | Desktop QE <desktop-qa-list> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 6.2 | CC: | msanders, syeghiay, tpelka, tsmetana |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-12-13 15:37:37 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Bug Depends On: | |||
| Bug Blocks: | 637248 | ||
|
Description
Matthew Mosesohn
2011-06-20 19:06:51 UTC
Correction: The cache doesn't always seem to balloon beyond 512mb. Instead, it seems to stop at 248904kb and won't make any new thumbnails. Still, the cache limit I set of 10mb is not being honored. Matthew, reading nautilus code, it seems everything is correct. Settings from gconf is reflected in runtime. There might be a confusion about the key you're using (and corresponding GUI settings in nautilus-file-management-properties) - the key actually limits thumbnailing on files (images) larger than the specified value. It's applied on every single file assigned for thumbnailing. No cache directory management. This is the key description: <short>Maximum image size for thumbnailing</short> <long>Images over this size (in bytes) won't be thumbnailed. The purpose of this setting is to avoid thumbnailing large images that may take a long time to load or use lots of memory.</long> The correct key for your needs is /desktop/gnome/thumbnail_cache/maximum_size with default of 512MB. Can you please try if changing this one works? The only occurrence of this key usage I've found so far is the housekeeping plugin in gnome-settings-daemon - i.e. apps would let you exceed the limit and after some time the housekeeping plugin is activated and proceeds with cleaning. Perhaps because applications are free to use ~/.thumbnails without going through gnome libs (think of gqview/geeqie). Tomas, Can you tell me if it's possible to trigger the housekeeping plugin to see if it actually works? (In reply to comment #5) > Can you tell me if it's possible to trigger the housekeeping plugin to see if > it actually works? Not sure how to trigger cleanup manually, but at least you can watch messages by running `/usr/libexec/gnome-settings-daemon --no-daemon --debug` and replacing the running g-s-d. Reading the code there's a two-minute cleanup timeout after start, then next periodical cleanups every day. Or, simple logoff & logon should trigger cache cleaning as well. |