I've been communicating with a user over Reddit for the past few weeks about a tab switch performance problem they've been experiencing for quite a while now. They've been very patient as I've done various diagnostics and requested various information. The information I've accumulated has become unwieldy enough in the Reddit messaging system that I feel it'd be best if I just dump it into a bug. So here's that bug.
A screen recording of what the user is experiencing: https://www.youtube.com/watch?v=8oUzPPrMSIk
Note that the Spotify tab is not required in order to reproduce this behaviour: https://www.youtube.com/watch?v=mOYSuGwoGGU&feature=youtu.be
This user has a pretty decent network connection. A run at speedtest.net gave: 21ms ping, 52.35 Mbps down, 1.22 Mbps up Disabling hardware acceleration did not help the user.
I don't see in our conversation thread a time where I asked the user to reproduce in safe mode, so I've asked them to do that.
Safe mode did not address this user's problem. The user is running MBAM. Hey RaresM: do you have any Windows 7+ machines in your testing lab with BitLocker encryption enabled? I'm curious to know what (if any) impact BitLocker disk encryption has on e10s tab switching performance. Would someone from SV be willing to investigate that scenario? See comment 2 and comment 3 for the behaviour we're attempting to reproduce. : Microsoft BitLocker Administration and Monitoring. See https://technet.microsoft.com/en-us/windows/hh826072.aspx
about:support screen shot: https://pageshot.net/KmYCiNfPl8zdUFXK/about From what I've seen in the two videos, this is what I believe the user is doing (I say I believe, because the videos don't show any information about the number of tabs or what's happening to them): 1. Have a session with a lot of tabs (30-50) 2. Open the browser and hold CTRL+TAB to go through all the tabs 3. While the tabs are loading: - switch through them and observe the behavior - open new tabs, search for keywords and observe the behavior I've used the above steps to try and reproduce the issue and I've encountered different behaviors on Firefox 50 and 53: - On Firefox 53 (the latest release), after going through all the tabs I only see white pages and no spinners. CPU usage is at about 90%. After about half of them are loaded, switching through tabs shows a white page for about 1-2 seconds and then the content is painted. After all tabs are loaded, content is shown immediately when tab switching. Screen recording https://goo.gl/J140Fh. - On Firefox 50 (the reported version), after going through all the tabs I see spinners on all pages, for a long time. CPU usage is just as above, at about 90%. After half of them are loaded, switching through tabs shows the spinner for 3-4 seconds and if I'm lucky content starts to be painted. After all tabs are loaded, visiting other tabs show spinners for about 1-2 seconds. Screen recording https://goo.gl/hP5q2N. While doing the steps above I've also had Spotify playing in background and I haven't observed any stuttering or hiccups in playback. I'm not entirely sure this is what the user is doing but based on the video in comment 2 (t=20s) you can see that a lot of URLs are displayed in a very quick succession. Mike, could you ask the reporter to verify/confirm this scenario before we investigate further? P.S. Mike, the laptop we have with BitLocker is a loaner laptop and we have to return it in about a week. Obtaining more details about this as fast as possible would be appreciated.
Flags: needinfo?(rares.macarie) → needinfo?(mconley)
(In reply to Ciprian Muresan [:cmuresan] from comment #7) Hey cmuresan, Thanks for your work on this. I've been having off and on communication with the user, and the scenario you're describing sounds extremely similar. At any rate, we should understand what you're seeing, even if it's not the same bug. Would you be willing to capture a profile using the Gecko Profiler add-on? Let me know if you need guidance doing that. In the meantime, I'll point the user at your bug comment for direct confirmation. : http://perf-html.io/ and https://developer.mozilla.org/en-US/docs/Mozilla/Performance/Reporting_a_Performance_Problem , if you've not done this before. : The user originally had some difficulty dumping profiles - I suspect the OS (or BitLocker) may have been blocking them in some way. You might experience similar difficulty, but let's find out.
Flags: needinfo?(mconley) → needinfo?(ciprian.muresan)
Apparently the Gecko Profiler doesn't work on Firefox 50, 51, and 52 x32 or x64 (it works on FF53 because bug 1185106 was fixed). But since the behavior is partially better on 53, do we still want to debug Firefox 50 for this? If it helps, this is the profile I've taken from Firefox 53 https://perfht.ml/2oZepkm just after I've loaded all the tabs and switched through a few of them. I've tried to get a profile after all the tabs were loaded and after I left the browser open a while (20 mins), but while switching tabs, one of them crashed. Might be related bp-9b12cb41-1d1c-4ddd-8ecd-572041170420. I've also took two profiles using the latest Nightly in the same circumstances as above: https://perfht.ml/2p2cYS5 and https://perfht.ml/2pK3vwB. Let me know If there's anything more I can do.
Flags: needinfo?(ciprian.muresan) → needinfo?(mconley)
Quote from the user on Reddit: "You can quote me - for some reason I can't access my bugzilla account: It's generally closer to 20 tabs Ctrl+Pg up and dn - amounts to the same? This is what I was doing in the video, just to show the thorough and general nature of the problem. Any browsing activity is likely to produce the response, although quickly opening and comparing tabs is part of my normal browsing activity. Significant improvements have been made between the build documented in the video (which I do not believe was 50 but rather the most recent nightly build as of the upload date) and the current nightly. The problem is nowhere near so frequent and so total but the current nightly is still far inferior to pre-e10s performance. Again, Bitlocker was never enabled." On that last bit, he had said earlier, "PowerShell says BitLocker is not enabled on this drive" (where this drive is the drive that Firefox is running on).
cmuresan, can you please provide the about:support from the machine you're testing on?
Flags: needinfo?(mconley) → needinfo?(ciprian.muresan)
Created attachment 8860415 [details] aboutsupport.txt Attached a .txt doc with the about:support info.
(In reply to Ciprian Muresan [:cmuresan], Desktop Engineering QA (on PTO until 2nd of May, please ni? :pauloiegasSV) from comment #12) > Created attachment 8860415 [details] > aboutsupport.txt > > Attached a .txt doc with the about:support info. Thanks! Does the behaviour change if AdBlock Plus is disabled?
I haven't tested specifically with AdBlock Plus disabled. But after a quick check, the behavior remains unchanged with AdBlock Plus disabled. https://perfht.ml/2p3qfd6 P.S. I'm about to leave the office for today and next week I'll be on PTO. Please redirect all further questions to either :pauloiegasSV or :emilpasca.
/u/djbluntmagic reports that the 55.0a1 (2017-05-03) (64-bit) build is considerably worse for his problem than the previous build (presumably 2017-05-02).
/u/djbluntmagic has confirmed that 2017-05-02 was the better build. Here's the commit range: https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=48c0fd9c9ec5d68061ea7b59358874ae8da72572&tochange=82c2d17e74ef9cdf38a5d5ac4eb3ae846ec30ba4
Update: waiting on a new profile from /u/djbluntmagic.
One thing we've noticed having examined a UIforETW trace is that the user has something called "BOINC" (see https://www.worldcommunitygrid.org) installed and running. I should ask the user to temporarily disable that and see if performance improves.
I was able to get a profile from this user now: https://perf-html.io/public/0d4b3022ecadae4dbeab55feb875d8b97708ff95/calltree/?hiddenThreads=&thread=0&threadOrder=0-2-3-4-5-6-1-7
In the profile in comment 19, /u/djbluntmagic's content processes 1, 2 and 3 seem to be garbage collecting a _lot_. I wonder if this is maybe related to bug 1374797 - especially since those 3 content processes have Facebook loaded. I've asked the user for: 1) Which version of Firefox they got this profile from 2) Whether or not they can supply an about:memory report when they're in this state
Status: NEW → RESOLVED
Last Resolved: a year ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.