Open
Bug 1275678
Opened 10 years ago
Updated 4 years ago
Regression in FX_SESSION_RESTORE_STARTUP_ONLOAD_INITIAL_WINDOW_MS (May 20, 2016)
Categories
(Firefox :: Session Restore, defect)
Tracking
()
NEW
| Tracking | Status | |
|---|---|---|
| firefox49 | --- | affected |
People
(Reporter: chutten, Unassigned)
Details
FX_SESSION_RESTORE_STARTUP_ONLOAD_INITIAL_WINDOW_MS regressed in Nightly 49 on May 20.
Telemetry Alert (which shows the increase in measurements around 200ms): http://alerts.telemetry.mozilla.org/index.html#/detectors/1/metrics/24/alerts/?from=2016-05-20&to=2016-05-20
Changeset (which shows likely culprits): https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=c4449eab07d39e20ea315603f1b1863eeed7dcfe&tochange=c67dc1f9fab86d4f2cf3224307809c44fe3ce820
View over time (which shows the sudden and prolonged increase in the median value): http://mzl.la/1WTUsH4
Possibly related: a sessionrestore tpaint regression on windows, tracked by bug 1273628
Next Steps: Determine what caused the regression, then decide if this is anticipated and can become the "new normal" or must be backed out to prevent regressing this measure (or, far less likely, that this measure no longer measures something relevant and should be removed)
Comment 1•10 years ago
|
||
Avi, can you please take the initial investigation here and see if we can narrow down a culprit?
Flags: needinfo?(avihpit)
Comment 2•10 years ago
|
||
(In reply to Chris H-C :chutten from comment #0)
> Possibly related: a sessionrestore tpaint regression on windows, tracked by
> bug 1273628
FWIW, jmaher is pointing the finger at bug 1267923 for the talos regression, which landed a couple days prior to the regression range given here.
Comment 3•10 years ago
|
||
(In reply to Chris H-C :chutten from comment #0)
> FX_SESSION_RESTORE_STARTUP_ONLOAD_INITIAL_WINDOW_MS regressed in Nightly 49
> on May 20.
>
> Telemetry Alert (which shows the increase in measurements around 200ms):
> http://alerts.telemetry.mozilla.org/index.html#/detectors/1/metrics/24/
> alerts/?from=2016-05-20&to=2016-05-20
I would first like to understand these numbers better:
You say the measurement increased by ~200ms but I don't think I can find a view where it's represented, mostly in order to understand what kind of increase it is in percentages.
I.e. if it increased from 20 to 200, then it's 10 times worse, but if it increased from 2000 to 2200 then it's 10% worse.
The view which you linked to shows two peaks at 0.286 and 0.383 . I realize it's not the value itself, but when I click the link at the top to get the histograms, and then click the "evolution" view, I think I can see that in FX49 on May 20th the median increases from ~30 (stable) to ~45 (and more noisy).
Assuming the values are in ms, then I see a 15ms increase at the median, which represents a sizable percentage (50%) but not very critical in practical terms (I dare anyone to notice 15ms increase in startup time).
So where is this 200ms increase visible?
Flags: needinfo?(avihpit) → needinfo?(chutten)
Comment 4•10 years ago
|
||
(In reply to Chris H-C :chutten from comment #0)
> Telemetry Alert (which shows the increase in measurements around 200ms):
Ah, I misinterpreted that statement apparently.
I thought it means that the median or average etc has increased by 200ms, but what Chris really said is that of the several buckets at the histogram, the 200ms bucket just became taller.
He didn't say how much taller (in absolute terms or percentage), nor which percentage of the overall submissions ended up at the 200ms bucket before and after the regression.
The "summary" view of that change is seemingly that the median of this probe (taking all buckets into account) increased from 30ms to ~45ms.
It's a sizeable change in percentage and probably worth following up in the session restore department, though it means little in practical terms, as 15ms of extra startup time would not be noticed by anyone, and I'd guess counts as only a small fraction of the overall startup time anyway.
| Reporter | ||
Comment 5•10 years ago
|
||
There is an increase in the proportional number of measurements around 200ms. [1] shows the new peak around 200ms which previously wasn't in evidence. I'm sorry my language wasn't clear.
This results in an increase in the median of about 15ms, as you say.
So, there are three possibilities for this:
1) There are new events and they are taking 200ms ("bad" news - could be that we're measuring more things now, or a product change results in more user engagement of the feature this tracks)
2) There are no new events, and some 20ms events are now taking 200ms (Bad News - almost certainly a performance regression)
3) There are fewer events that were taking 20ms, resulting in a proportional increase in the 200ms bucket ("good" news - generally happens when we stop doing light work and start doing no work for events that require no work. Can also be a mistake where we're supposed to be doing work, but now we're missing those cases completely. Can also be a product change that is driving down user engagement.)
We can test these by checking sample volumes on the edge. We were seeing around 66M samples on 2016-05-19 [2], and started seeing only 58M samples starting 2016-05-20 [3]. This points to case #3.
So we need to track down the change that caused the decrease in the number of measurements. It could be that the feature is being used less, resulting in fewer measurements (should be easy to find a product change like this); there is a change that accidentally stops running this code which we ought to be running (harder to find, as it could be unrelated); or there is a deliberate change that stops running this code which we didn't need to be running (easier to find).
[1]: http://alerts.telemetry.mozilla.org/index.html#/detectors/1/metrics/24/alerts/?from=2016-05-20&to=2016-05-20
[2]: http://mzl.la/22vDmP7
[3]: http://mzl.la/22vDGgH
Flags: needinfo?(chutten)
| Reporter | ||
Comment 6•10 years ago
|
||
Looking at the relevant piece of code [1], it seems as though there are a multitude of ways for this to happen:
aWindow.closed could be true, this._sessionInitialized could be true, _promiseReadyForInitialization could have rejected instead of accepting, or onBeforeBrowserWindowShown could just not be called as often (either because users are somehow dissuaded from doing it as much as before, or because of some code change)
Maybe someone familiar with the code could be brought in to chime in on the likeliness of these situations (and to look at the changeset to scan for likely suspects)?
[1]: https://dxr.mozilla.org/mozilla-central/source/browser/components/sessionstore/SessionStore.jsm#1189
| Reporter | ||
Comment 7•10 years ago
|
||
Oh, bother. One sample per submission. This means it isn't #3 at all, it's #2 "There are no new events. Some 20ms events are now taking 200ms". You can see this most clearly if you compare May 19 (Friday)[1] to May 22 (Monday)[2]
[1]: http://mzl.la/22vDmP7
[2]: http://mzl.la/1XcTJRm
Comment 8•10 years ago
|
||
All right, then as of now, this summary still holds:
> The "summary" view of that change is seemingly that the median of this probe
> (taking all buckets into account) increased from 30ms to ~45ms.
>
> It's a sizeable change in percentage and probably worth following up in the
> session restore department, though it means little in practical terms, as
> 15ms of extra startup time would not be noticed by anyone, and I'd guess
> counts as only a small fraction of the overall startup time anyway.
Comment 9•10 years ago
|
||
If it's #2, doesn't that mean users are seeing a ~180ms regression? That seems like something which could be perceptible.
Component: Untriaged → Session Restore
| Reporter | ||
Comment 10•10 years ago
|
||
But it's only some, so it might only be visible in populations.
Updated•4 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•