Closed Bug 1442603 Opened 7 years ago Closed 7 years ago

Background Hang Reporter: increase timeouts when running on Valgrind

Categories

(Core :: Gecko Profiler, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla61
Tracking Status
firefox-esr60 --- fixed
firefox61 --- fixed

People

(Reporter: jseward, Assigned: jseward)

Details

Attachments

(1 file, 2 obsolete files)

If we're running on Valgrind, we'll be making forward progress at a rate of somewhere between 1/25th and 1/50th of normal. This causes the BHR to capture a lot of stacks, which slows us down even more. As an attempts to avoid the worst of this, scale up all presented timeouts by a factor of ten, and add two seconds so as to impose a two second floor on all timeouts.
Possibly related to (viz, is possibly the cause of) bug 1415917.
Attached patch bug1442603-1.diff (obsolete) — Splinter Review
Attachment #8955482 - Flags: feedback?(nika)
Comment on attachment 8955482 [details] [diff] [review] bug1442603-1.diff Review of attachment 8955482 [details] [diff] [review]: ----------------------------------------------------------------- I'm fine with this
Attachment #8955482 - Flags: feedback?(nika) → feedback+
Attached patch bug1442603-3t.diff (obsolete) — Splinter Review
Attachment #8955482 - Attachment is obsolete: true
Attachment #8956912 - Flags: review?(nika)
IIRC you were also planning to add a nsThread which the processing happens on? I'd like to review the changes together.
Flags: needinfo?(jseward)
(In reply to Nika Layzell [:mystor] from comment #5) Done, in bug 1443499.
Flags: needinfo?(jseward)
Attachment #8956912 - Attachment is obsolete: true
Attachment #8956912 - Flags: review?(nika)
Attachment #8957572 - Flags: review?(nika)
Comment on attachment 8957572 [details] [diff] [review] bug1442603-4.diff Review of attachment 8957572 [details] [diff] [review]: ----------------------------------------------------------------- ::: toolkit/components/backgroundhangmonitor/BackgroundHangMonitor.cpp @@ +689,5 @@ > + if (aTimeoutMs != BackgroundHangMonitor::kNoTimeout) { > + aTimeoutMs *= scaleUp; > + aTimeoutMs += extraMs; > + } > + if (aMaxTimeoutMs != BackgroundHangMonitor::kNoTimeout) { nit: there looks like there is some weird spacing in this condition and the condition above? @@ +699,1 @@ > if (!BackgroundHangManager::sDisabled && !mThread) { nit: Please add a newline before this line.
Attachment #8957572 - Flags: review?(nika) → review+
Pushed by jseward@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/4e71240c073d Background Hang Reporter: increase timeouts when running on Valgrind. r=mystor.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla61
Assignee: nobody → jseward
Comment on attachment 8957572 [details] [diff] [review] bug1442603-4.diff [Approval Request Comment] If this is not a sec:{high,crit} bug, please state case for ESR consideration: For automation runs on Valgrind, Valgrind slows down progress so much that the Background Hang Reporter kills the process unnecessarily, leading the test to fail. This patch increases the BHR timeouts only for builds which are configured --enable-valgind and which are actually running on Valgrind. User impact if declined: Zero, because it requires (1) config with --enable-valgind and (2) actually running on Valgrind. Fix Landed on Version: 61 Risk to taking this patch (and alternatives if risky): Very low risk (no end-user effect) String or UUID changes made by this patch: None. See https://wiki.mozilla.org/Release_Management/ESR_Landing_Process for more info.
Attachment #8957572 - Flags: approval-mozilla-esr60?
Attachment #8957572 - Flags: approval-mozilla-esr60? → approval-mozilla-esr60+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: