Cache Notes: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
Line 32: Line 32:
Here is a list of bugs filed on the cache. Many are resolved.
Here is a list of bugs filed on the cache. Many are resolved.


*https://bugzilla.mozilla.org/show_bug.cgi?id=513008  
*Eliminate synchronous reads from cache (make cache reads asynchronous): {{bug|513008}}
*https://bugzilla.mozilla.org/show_bug.cgi?id=513074
*Remove sync writes from current cache: {{bug|513074}}
*https://bugzilla.mozilla.org/show_bug.cgi?id=549767
*Write/flush cache metadata off main-thread: {{bug|549767}}
*https://bugzilla.mozilla.org/show_bug.cgi?id=548406
*xpcshell tests: assertion "mem cache leaking entries" in nsMemoryCacheDevice::Shutdown() causing abort test failed: {{bug|548406}}
*https://bugzilla.mozilla.org/show_bug.cgi?id=514213
*Replace necko cache with the Google Chrome cache: {{bug|514213}}
*https://bugzilla.mozilla.org/show_bug.cgi?id=512849
*Implement modern cache: {{bug|512849}}
*https://bugzilla.mozilla.org/show_bug.cgi?id=443067
*Disk Cache overflow when downloading large files: {{bug|443067}}
*https://bugzilla.mozilla.org/show_bug.cgi?id=321361
*Cache corruption when viewing sites with several large images (simultaneous hash collision & cache dooming by disk cache size limit): {{bug|321361}}
*https://bugzilla.mozilla.org/show_bug.cgi?id=193911
*https://bugzilla.mozilla.org/show_bug.cgi?id=193911
*https://bugzilla.mozilla.org/show_bug.cgi?id=290032
*https://bugzilla.mozilla.org/show_bug.cgi?id=290032
*https://bugzilla.mozilla.org/show_bug.cgi?id=355567
*https://bugzilla.mozilla.org/show_bug.cgi?id=355567

Revision as of 18:51, 13 July 2010

ToDo List

Here are some things we can investigate to gain more information about the current state of the cache:

  • Determine what the cache's average hit rate is.
  • See how performance varies by increasing the cache size.
  • Look into whether YouTube files are blowing out the cache.
  • Run a Test Pilot or a smaller experiment to gather user cache data
    • In order to gather info on the previous bullet points

Here are some ideas for improving the cache that need to be investigated:

  • Consider other eviction options
    • Prioritize by file type, giving css and js higher priority
    • Evict based on "frecency", not just recency (frequency + recency)
    • Use Adaptive Replacement Cache algorithm: http://en.wikipedia.org/wiki/Adaptive_replacement_cache
    • We could consider letting servers specify "cache-priority" with resources. This leads to other issues, like fairness.
  • Keep dimensions of evicted image files, so layout can still render before the image data arrives across the network
  • Compress cache entries?
    • This could save space and improve I/O time
  • Don't throw away the entire cache when the browser crashes.

And here are some miscellaneous items:

  • Add more info to about:cache, including hit rates and other info.

List of Other Cache Resources

Here are some links with other documentation on the cache.

Here is a list of bugs filed on the cache. Many are resolved.