Browser.cache.memory.capacity: Difference between revisions
From MozillaZine Knowledge Base
Jump to navigationJump to search
(→Caveats: even if something's not memory cached, it can be disk cached) |
m (→Related bugs: added bug 296538) |
||
Line 64: | Line 64: | ||
* [https://bugzilla.mozilla.org/show_bug.cgi?id=105344 Bug 105344 - Memory cache pref should be a percentage of physical RAM] | * [https://bugzilla.mozilla.org/show_bug.cgi?id=105344 Bug 105344 - Memory cache pref should be a percentage of physical RAM] | ||
* [https://bugzilla.mozilla.org/show_bug.cgi?id=204164 Bug 204164 - Calculating memory cache as percentage of physical memory may not be such a good idea] | * [https://bugzilla.mozilla.org/show_bug.cgi?id=204164 Bug 204164 - Calculating memory cache as percentage of physical memory may not be such a good idea] | ||
* [https://bugzilla.mozilla.org/show_bug.cgi?id=296538 Bug 296538 - limit the memory cache to a reasonable value] | |||
==Related preferences== | ==Related preferences== |
Revision as of 21:57, 27 December 2005
Background
When a page is loaded, it is cached so it doesn't need to be downloaded to be redisplayed. This preference controls the maximum amount of memory to use for caching purposes.
Possible values and their effects
-1
Automatically decide the maximum memory to use for cache based on the total amount of RAM. (Default in all but Thunderbird and Minimo)
RAM | Cache |
---|---|
32MB | 2MB |
64MB | 4MB |
128MB | 8MB |
256MB | 14MB |
512MB | 22MB |
1GB | 32MB |
2GB | 44MB |
4GB | 58MB |
0
Do not cache files in memory.
Any positive integer
Maximum amount of memory in KB to use for cache. (Thunderbird default: 4096. Minimo default: 256)
Caveats
- browser.cache.memory.enable must be true for this preference to take effect.
- Lowering this value causes less memory to be used but also causes more previously visited pages to have to be loaded from disk cache or be redownloaded, thus increasing their load time. Raising it has the opposite effect.
Recommended settings
Users who are having problems with memory consumption can try setting the value to something lower than specified in the table above to lower memory consumption. Users who have no problems with memory should leave it at -1.
First checked in
Has an effect in
- Netscape (all versions since 6.1)
- Mozilla Suite (all versions since 0.9.1)
- Phoenix (all versions)
- Firebird (all versions)
- Firefox (all versions)
- Thunderbird (all versions)
- Minimo (all versions)
- Seamonkey (all versions)
Related bugs
- Bug 85054 - Hard Drive grinds when disk cache set to zero.
- Bug 105344 - Memory cache pref should be a percentage of physical RAM
- Bug 204164 - Calculating memory cache as percentage of physical memory may not be such a good idea
- Bug 296538 - limit the memory cache to a reasonable value