SSD owners: Set Firefox to memory cache instead of disk

Discussion in 'VAIO / Sony' started by Oscar2, Nov 14, 2010.

Thread Status:
Not open for further replies.
  1. Oscar2

    Oscar2 Notebook Deity

    Reputations:
    209
    Messages:
    1,030
    Likes Received:
    0
    Trophy Points:
    55
    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.

    Two ways to address this are: Create a RAM disk and point the browser cache to it, -OR-
    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.

    See: Speed Up Firefox by Moving Your Cache to RAM, No RAM Disk Required

    Truth in lending disclosure. The downsides (currently) are small but here they are:

    -Disk cache, unlike the memory cache, persists across restarts.
    -Size of memory cache is capped at a lower number than size of disk cache.
    -Possible slight slowdown for some plug-ins such as Adobe reader, which get to their data as a disk file.

    See: moving cache to RAM instructions making the rounds - mozilla.dev.apps.firefox | Google Groups

    Future Firefox may be able to have both disk and memory cache and so will have the best of both worlds.

    Edit: Accidentally wiped out the original post (intended to paste from it) :eek:. so here it is recreated (as best as I could)
     
  2. 18000rpm

    18000rpm Notebook Consultant

    Reputations:
    9
    Messages:
    136
    Likes Received:
    0
    Trophy Points:
    30
    Is this really a good idea? The SSD is still thousands of times slower than RAM.
     
  3. Blahman

    Blahman Notebook Consultant

    Reputations:
    25
    Messages:
    253
    Likes Received:
    3
    Trophy Points:
    31
    think about what you read, and then what you said. also it's not "thousands" of times slower than RAM.
     
  4. SurferJon

    SurferJon Notebook Evangelist

    Reputations:
    6
    Messages:
    626
    Likes Received:
    18
    Trophy Points:
    31
    I haven't really noticed any difference. :(

    Also, #4 was already set to true.
     
  5. TheBugMan

    TheBugMan Notebook Consultant

    Reputations:
    44
    Messages:
    234
    Likes Received:
    0
    Trophy Points:
    0
    I don't notice anything diff in while visiting flash intensive sites or watching vids through the browser. Everything is super snappy with 64bit 7 and SSD.

    Has anyone tried the E9 beta in comparison?
     
  6. thomaskc.dk

    thomaskc.dk Notebook Deity

    Reputations:
    84
    Messages:
    1,252
    Likes Received:
    0
    Trophy Points:
    55
    why would anyone use IE9 beta to begin with? :p

    Anyway I don't see the bigger break through here on the SSD / memory front?
     
  7. skagen

    skagen Notebook Deity

    Reputations:
    278
    Messages:
    885
    Likes Received:
    0
    Trophy Points:
    30
    Anyone know how to do this in Chrome?
     
  8. Oscar2

    Oscar2 Notebook Deity

    Reputations:
    209
    Messages:
    1,030
    Likes Received:
    0
    Trophy Points:
    55
  9. Oscar2

    Oscar2 Notebook Deity

    Reputations:
    209
    Messages:
    1,030
    Likes Received:
    0
    Trophy Points:
    55
    The main "break-through" is that you save the SSD from doing millions of small block writes, over the years.
     
  10. James D

    James D Notebook Prophet

    Reputations:
    2,300
    Messages:
    4,879
    Likes Received:
    1,110
    Trophy Points:
    231
    OK. But can I use this advise if I have slow HDD (5400 rpm) to make my Mozilla go faster???
     
Loading...
Thread Status:
Not open for further replies.

Share This Page