On 2014/09/29 17:19:48, Luigi Semenzato wrote:
> On 2014/09/29 16:54:09, tonyg wrote:
> > The way tab switching is implemented prior to this patch isn't ideal.
> This
> patch
> > adds more complexity on top of that system. I'd like to try to see if
> we can
> > come up with a way to make this measurement fit a little better and
> simpler
> > instead of more complex. Dave might have ideas along those lines too.
> >
> > Luigi, could you please explain your requirements so we can figure out
> the
> best
> > way to do this.
> Sure. I am happy to revisit this. I agree it's different enough from page
> cycling that it would benefit from some changes to that framework.
> Our requirements are:
> 1. open enough tabs to trigger various amounts of memory compression;
> 2. simulate the action of switching tabs cyclically (which is the worst
> case
> scenario with respect to paging)
> 3. decide when a tab switch has completed, as a trigger for starting the
> following tab switch
> We don't want to have to generate a different page set for each level of
memory
> pressure. The two options --pageset-replicate and --pageset-truncate
> give us
> the ability to adjust the pressure with a one-tab resolution. (We don't
> care
if
> some of the tabs are the same as long as there is a good mix.)
I'm curious how many levels of memory pressure you are interested in running
this on, and how disparate they are. Do you actually need a one-tab
resolution?
> --pageset-repeat is a page cycler option, and causes the pages to be
> reloaded.
> The reloading of the last page triggers the switching. But we want to go
> through multiple cycles of switching without reloading pages. This is
provided
> by --cycle-count (maybe it should be --tab-switch-cycle-count). This may
> be
due
> to the mismatched infrastructure.
> If you want I can attempt to write a tab switch infrastructure similar to
> the
> page cycler, say "tab switcher".
That would be a better approach.
> > It's not clear from this description why this is different from
> > --pageset-repeat. Perhaps we should just change the behavior of the tab
> > switching measurement given a pageset repeat? Or perhaps we should just
> make
a
> > new page set for the case you have in mind?
https://codereview.chromium.org/606683005/