Closed Bug 1051230 Opened 10 years ago Closed 7 years ago

Enable leak logging for content processes on desktop

Categories

(Core :: DOM: Content Processes, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
Tracking Status
e10s - ---

People

(Reporter: billm, Assigned: mccr8)

References

(Depends on 1 open bug, Blocks 1 open bug)

Details

(Keywords: meta, Whiteboard: [MemShrink:meta])

Attachments

(1 obsolete file)

It actually works right now, but the content process usually crashes so we never see any leaks.
Thanks, Bill. Just for some context here, given the plans for a single content process this really needs to work for reals in order to ship e10s. Without it, we'll have no visibility into severe permanent leaks. (If we were using process-per-tab it wouldn't be as big of a deal, because content process leaks would only last until somebody closed a tab, but as it is, these leaks are just as bad as pre-e10s.)
tracking-e10s: --- → ?
OS: Linux → All
Hardware: x86_64 → All
Whiteboard: [MemShrink]
Depends on: 1045847
Depends on: 1035454
Apparently bug 1035454 is enough that we start getting child process leak checking. But there are a bunch of leaks, so bug 1052224 is going to disable the leak checking.
Whiteboard: [MemShrink] → [MemShrink:P1]
try run with leak checking enabled: https://tbpl.mozilla.org/?tree=Try&rev=32bf41cea397 (ignore the M3 asserts)
Leak logging works once bug 1035454 is landed, so the bigger issue is fixing the content process leaks, so I'm changing this to be about letting us re-enable it. The actual enabling (once bug 1035454 is landed) is basically just going to be backing out bug 1052224.
Summary: Get leak logging working in content processes → Enable leak logging for content processes
I guess I'm working on this the most, so I'll take the bug.
Assignee: nobody → continuation
Does the testharness automatically do sane things with multiple logs?
(In reply to Kyle Huey [:khuey] (khuey@mozilla.com) from comment #6) > Does the testharness automatically do sane things with multiple logs? Yeah, it seems like it. Check out M2 here: https://tbpl.mozilla.org/?tree=Try&rev=32bf41cea397
(In reply to Kyle Huey [:khuey] (khuey@mozilla.com) from comment #6) > Does the testharness automatically do sane things with multiple logs? It seems to: http://mxr.mozilla.org/mozilla-central/source/build/automationutils.py#376
Depends on: 1059480
Depends on: 1060526
Attached patch Produce an error for larger child process leaks. WIP (obsolete) (deleted) — — Splinter Review
This is a hacky work in progress, but it is useful when locally investigating leaks. This patch makes it so that we error when a content child leaks, but only if it is larger than 5kb, which is what we always leak.
Depends on: 831223
Depends on: 1063312
On top of my hacky pile of patches, e10s M4 has about 620kb of leaks and M5 has about 200kb. Across a few runs, the size of the former is pretty stables, and the latter was identical in all runs, which is a good sign. https://tbpl.mozilla.org/?tree=Try&rev=6ce2c7636985
Does the large one include JS? My experience with b2g was that once we got rid of the JS we were leaking the # was extremely stable.
Well, it is only varying by a few hundred bytes, so that's pretty stable. M2 and M3 hit asserts I added because they are running the GMPService in a content process, so I'm not sure how bad those are going to be once I fix that. I haven't looked at M1 yet.
No longer depends on: 1063312
Blocks: 931285
No longer blocks: 931285
Depends on: 931285
Depends on: 1064587
Depends on: 1065098
Depends on: 1065117
Depends on: 1065536
Depends on: 1067633
Depends on: 1067664
Blocks: 1070068
B2G has a number of special issues of its own, so I'm splitting that out into a separate bug, bug 1070068.
Summary: Enable leak logging for content processes → Enable leak logging for content processes on desktop
Comment on attachment 8483012 [details] [diff] [review] Produce an error for larger child process leaks. WIP Leak thresholds can now be configured by process type by changing options.leakThresholds, and what processes we error on when they don't produce a log can be adjusted by changing options.ignoreMissingLeaks.
Attachment #8483012 - Attachment is obsolete: true
Depends on: 1062472
Depends on: 1062443
e10s M3 has gone from leaking about 11kb in the tab process to leaking 942kb.
Good: https://hg.mozilla.org/try/rev/d7ec36a77534 Bad: https://hg.mozilla.org/try/rev/388e101e75c8 So that's only a window of a few days. I'll try to narrow it down to a test and then a regressing changeset at some point. I tried running the tests that are leaking URLs, but nothing useful came up. leaking try run: https://tbpl.mozilla.org/?tree=Try&rev=5f123e75dc9c (I could have also somehow caused the leaks with the patches I added in the try push.)
Depends on: 1080301
Depends on: 1081415
Depends on: 1081453
Depends on: 1073310
Depends on: 1083897
Depends on: 1087509
Depends on: 1087518
No longer depends on: 1062443
No longer depends on: 1062472
No longer depends on: 1087509
No longer depends on: 1087518
Depends on: 1087613
Blocks: 1089816
Depends on: 1080096
No longer depends on: 1067633
Depends on: 1067585
No longer depends on: 1067585
Depends on: 1091917
No longer depends on: 1073310
Depends on: 1103068
Depends on: 1116261
Depends on: 1117203
Depends on: 845982
Depends on: 1121670
No longer blocks: 1089816
Bug 1057908 should make us not run the GeckoMediaPluginService in the content process, where it doesn't shut down properly, and thus leaks.
Depends on: 1057908
requesting retriage on this tracker.
(In reply to Jim Mathies [:jimm] from comment #18) > requesting retriage on this tracker. This has sort of degenerated into a tracking bug, so I'm not sure it needs to be tracked or not. We're running XPCOM leak checking on Linux. Last I checked, it was working on OSX, but we're not actually running it. Windows has a known issue that needs to be fixed, but that work is being tracked in its own bug, bug 1091917.
(We're not running leak checking on OSX, because it only runs in debug builds, and we're not running e10s debug OSX builds on TreeHerder.)
Depends on: 1150147
Depends on: 1137999
Depends on: 1128486
Depends on: 1157308
Depends on: 1157467
Depends on: 1157468
Depends on: 1157515
Depends on: 1158404
Depends on: 1193917
Depends on: 1193922
We're doing this testing now, so no need to leave it as a P1.
Whiteboard: [MemShrink:P1] → [MemShrink:meta]
Depends on: 1215265
Depends on: 1215684
Depends on: 1219369
Depends on: 1401764
Depends on: 1401763
This has been done for a while, so I'll mark it as fixed.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: