Necko/MobileCache: Difference between revisions

m
no edit summary
mNo edit summary
Line 16: Line 16:
== Collecting data to figure out why HTTP disk cache is slow on fennec ==
== Collecting data to figure out why HTTP disk cache is slow on fennec ==


So far we only have aggregate data (tp4 runs) that shows the cache is often a perf loss on mobile.  We need much more detailed information about what's going on.  So we need to write and run some microbenchmarks that will test our current theories and quantify what (if any) performance cost they may have. For further details please visit  [[current state of microbenchmarks]].
So far we only have aggregate data (tp4 runs) that shows the cache is often a perf loss on mobile.  We need much more detailed information about what's going on.  So we need to write and run some microbenchmarks that will test our current theories and quantify what (if any) performance cost they may have. For further details please visit  [[Necko/MobileCache/MicroBenchmarks]].


At some point we're also going to want to have not just microbenchmarks, but also tests that run against a "realistic browsing history", so we can see if various code improvements actually help things, and by how much.  We should start building that infrastructure now.
At some point we're also going to want to have not just microbenchmarks, but also tests that run against a "realistic browsing history", so we can see if various code improvements actually help things, and by how much.  We should start building that infrastructure now.
Line 25: Line 25:
Right now this TODO list is mostly focused on getting more info about what's going on, since it'll be hard to make progress until we know why we're slow.
Right now this TODO list is mostly focused on getting more info about what's going on, since it'll be hard to make progress until we know why we're slow.


* ''Bjarne/Michal'': continue work on scripts to get performance data (see  [[current state of microbenchmarks]])
* ''Bjarne/Michal'': continue work on scripts to get performance data (see  [[Necko/MobileCache/MicroBenchmarks]])
** Figure out a way to turn disk caching on/off for xpcshell tests (I believe an env variable already exists: $NECKO_DEV_ENABLE_DISK_CACHE).  If need be, revisit {{bug|584283}}.
** Figure out a way to turn disk caching on/off for xpcshell tests (I believe an env variable already exists: $NECKO_DEV_ENABLE_DISK_CACHE).  If need be, revisit {{bug|584283}}.
** If cache miss takes longer on mobile when disk cache on, presumably it's from the disk IO we do to check for entry, which delays network request.  Measure to see how much that's true.
** If cache miss takes longer on mobile when disk cache on, presumably it's from the disk IO we do to check for entry, which delays network request.  Measure to see how much that's true.
Confirmed users
431

edits