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)
Core
Gecko Profiler
Tracking
()
RESOLVED
FIXED
mozilla61
People
(Reporter: jseward, Assigned: jseward)
Details
Attachments
(1 file, 2 obsolete files)
|
2.21 KB,
patch
|
nika
:
review+
RyanVM
:
approval-mozilla-esr60+
|
Details | Diff | Splinter Review |
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.
| Assignee | ||
Comment 1•7 years ago
|
||
Possibly related to (viz, is possibly the cause of) bug 1415917.
| Assignee | ||
Comment 2•7 years ago
|
||
| Assignee | ||
Updated•7 years ago
|
Attachment #8955482 -
Flags: feedback?(nika)
Comment 3•7 years ago
|
||
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+
| Assignee | ||
Comment 4•7 years ago
|
||
Attachment #8955482 -
Attachment is obsolete: true
| Assignee | ||
Updated•7 years ago
|
Attachment #8956912 -
Flags: review?(nika)
Comment 5•7 years ago
|
||
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)
| Assignee | ||
Comment 6•7 years ago
|
||
(In reply to Nika Layzell [:mystor] from comment #5)
Done, in bug 1443499.
Flags: needinfo?(jseward)
| Assignee | ||
Comment 7•7 years ago
|
||
Attachment #8956912 -
Attachment is obsolete: true
Attachment #8956912 -
Flags: review?(nika)
| Assignee | ||
Updated•7 years ago
|
Attachment #8957572 -
Flags: review?(nika)
Comment 8•7 years ago
|
||
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.
Comment 10•7 years ago
|
||
| bugherder | ||
Status: NEW → RESOLVED
Closed: 7 years ago
status-firefox61:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla61
Updated•7 years ago
|
Assignee: nobody → jseward
| Assignee | ||
Comment 11•7 years ago
|
||
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?
Comment 12•7 years ago
|
||
Comment on attachment 8957572 [details] [diff] [review]
bug1442603-4.diff
Per bug 1443499 comment 9, taking for ESR60.
Attachment #8957572 -
Flags: approval-mozilla-esr60? → approval-mozilla-esr60+
Comment 13•7 years ago
|
||
| bugherder uplift | ||
status-firefox-esr60:
--- → fixed
You need to log in
before you can comment on or make changes to this bug.
Description
•