Closed Bug 724553 Opened 10 years ago Closed 8 years ago

Memory usage spike caused by Private Browsing endurance test


(Mozilla QA Graveyard :: Mozmill Tests, defect)

Not set


(Not tracked)



(Reporter: mihaelav, Unassigned)


(Depends on 1 open bug)


(Whiteboard: [endurance])


(1 file)

Interesting to note that this spike has more or less sustained over the last couple of days. I'm also seeing an increased duration of the testruns. The only thing that changed in our Endruance tests recently was disabling tests (we did not actually add any new code).
Of all the changes between the 2nd and 3rd on mozilla-central, I would expect this:
Bug 716014 - Use CompartmentGC more often
According to the following report, we see a huge spike when the Private Browsing test executes:

testFlash_SWFVideoObject.i50 = 120MB
testPrivateBrowsing_EnterAndLeave.i3 = 125MB
testPrivateBrowsing_EnterAndLeave.i17 = 174MB
testPrivateBrowsing_EnterAndLeave.i24 = 197MB
testPrivateBrowsing_EnterAndLeave.i38 = 232MB
testPrivateBrowsing_EnterAndLeave.i45 = 243MB
testTabbedBrowsing_OpenNewTab.i1 = 113MB
Note that before Feb 3rd, testPrivateBrowsing_EnterAndLeave goes from 120MB at i1 to 160MB at i45. It's possible that we have always had this regression in the test but that something recent has caused the memory footprint to be exaggerated.
Running this test in a sandbox (ie. alone) memory starts at 119MB in i1 and grows to 262MB by i50.
And one more test, on Firefox Nightly from Feb 2nd, memory starts at 124MB and grows to 195MB when run in a local sandbox.
I can manually reproduce this behaviour.

1) Start Firefox Nightly on a new profile and install memchaser
2) Open 10 new tabs to different pages (I just CMD+click open links from the first run page)
3) Enter private browsing mode
4) Quit private browsing mode

After step 1: 124MB
After step 2: 191MB
After step 3: 166MB
After step 4: 262MB, trickles down to 194MB after a minute

I would say there is a probably memory regression when immediately exiting Private Browsing mode. I don't think the changeset in comment 2 caused this, it merely makes it more visible.

Dave Hunt, what do you think?
Attached file Memchaser Log
(In reply to Anthony Hughes, Mozilla QA (irc: ashughes) from comment #8)
> Created attachment 594794 [details]
> Memchaser Log

Some interesting highlights from the attached log file:

21:28:46 149MB (starting the test)
21:29:50 200MB (10 tabs loaded, enter PB mode)
21:30:09 176MB (PB mode on)
21:30:17 259MB (Exit PB mode)
21:32:44 157MB (Memory has settled after exiting PB mode)

Main take-away: 
50% spike in ~10s upon exiting PB mode, taking ~150s to clear.
Depends on: 724677
Duplicate of this bug: 725701
OS: Mac OS X → All
Hardware: x86_64 → All
Summary: Memory usage spike detected in Mozmill Endurance tests for Mac OS X 10.6.8 x86_64 → Memory usage spike caused by Private Browsing endurance test
Anthony, what happens if you manually force a reduce memory action via about:memory? Does it drop immediately or how many times you have to repeat the action?
No amount of clicking "Minimize Memory Usage" in about:memory reduces the memory footprint.
Shouldn't we dupe this to bug 724677?
(In reply to Henrik Skupin (:whimboo) from comment #13)
> Shouldn't we dupe this to bug 724677?

No, this is not a dupe. At best it could be a "fixed by".

I'd like to see what the fix for bug 724677 does to this test.
Whiteboard: [mozmill-endurance]
Component: General → Mozmill Tests
Product: Firefox → Mozilla QA
QA Contact: general → mozmill-tests
Version: 13 Branch → unspecified
No action happened here in over 2 years. Closing as incomplete.
Closed: 8 years ago
Resolution: --- → INCOMPLETE
Whiteboard: [mozmill-endurance] → [endurance]
Product: Mozilla QA → Mozilla QA Graveyard
You need to log in before you can comment on or make changes to this bug.