Page 1 of 1

[INFO]SSD owners: Set Firefox to memory cache instead of disk

Posted: Mon Nov 27, 2017 3:21 am
by darknetmatrix
Small block disk writes are the bane of SSD's everywhere :), and Web browsers are one of the worst perpetrators of small block disk writes.
Set Firefox to use memory cache (thusly):

1. open up about:config (type it into the url bar)
2. type browser.cache into the filter bar at the top.
3. Find browser.cache.disk.enable and set it to false (by double clicking on it).
4. set browser.cache.memory.enable to true
5. create a new preference by right clicking anywhere, hit New, and choose Integer.
6. Call the new preference browser.cache.memory.capacity and hit OK.
7. In the next window, where it asks for the number of kilobytes you want to assign to the cache, just enter -1 to tell Firefox to dynamically determine the cache size.

Re: [INFO]SSD owners: Set Firefox to memory cache instead of disk

Posted: Sat Apr 07, 2018 11:53 pm
by chrisros
Thanks. Very useful. This config setting should be the default.

Re: [INFO]SSD owners: Set Firefox to memory cache instead of disk

Posted: Mon Apr 16, 2018 12:57 pm
by linusvanpelt
darknetmatrix wrote:
Mon Nov 27, 2017 3:21 am
Small block disk writes are the bane of SSD's everywhere :), and Web browsers are one of the worst perpetrators of small block disk writes.
Set Firefox to use memory cache (thusly):

1. open up about:config (type it into the url bar)
2. type browser.cache into the filter bar at the top.
3. Find browser.cache.disk.enable and set it to false (by double clicking on it).
4. set browser.cache.memory.enable to true
5. create a new preference by right clicking anywhere, hit New, and choose Integer.
6. Call the new preference browser.cache.memory.capacity and hit OK.
7. In the next window, where it asks for the number of kilobytes you want to assign to the cache, just enter -1 to tell Firefox to dynamically determine the cache size.
What would be uber-cool is if, during the Arco Linux installation, it detected if 1) the disk was an SSD, 2) Firefox is installed (which it would be since Arco Linux installs it), and 3) implements the above automatically. Does Chrome, Chromium, Vivaldi, etc. have similar settings?