Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(133)

Issue 7204002: Increase the KillProcess timeout when running under Valgrind (Closed)

Created:
9 years, 6 months ago by Timur Iskhodzhanov
Modified:
9 years, 6 months ago
CC:
chromium-reviews, pam+watch_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

Increase the KillProcess timeout when running under Valgrind BUG=17453 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=89593

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -0 lines) Patch
M base/process_util_posix.cc View 2 chunks +8 lines, -0 lines 4 comments Download

Messages

Total messages: 7 (0 generated)
Timur Iskhodzhanov
9 years, 6 months ago (2011-06-17 14:33:34 UTC) #1
Lei Zhang
LGTM Let's keep an eye on the tree after it lands and see what happens.
9 years, 6 months ago (2011-06-17 18:32:26 UTC) #2
Timur Iskhodzhanov
Probably I need a "LG" from an OWNER. Evan, can you have a look? // ...
9 years, 6 months ago (2011-06-17 20:14:07 UTC) #3
Timur Iskhodzhanov
Darin, can you please have a look instead of Evan and Will? :) // both ...
9 years, 6 months ago (2011-06-17 20:15:49 UTC) #4
darin (slow to review)
LGTM http://codereview.chromium.org/7204002/diff/2002/base/process_util_posix.cc File base/process_util_posix.cc (right): http://codereview.chromium.org/7204002/diff/2002/base/process_util_posix.cc#newcode30 base/process_util_posix.cc:30: #include "base/third_party/dynamic_annotations/dynamic_annotations.h" nit: it seems a bit unintuitive ...
9 years, 6 months ago (2011-06-17 20:54:42 UTC) #5
Timur Iskhodzhanov
Thanks! http://codereview.chromium.org/7204002/diff/2002/base/process_util_posix.cc File base/process_util_posix.cc (right): http://codereview.chromium.org/7204002/diff/2002/base/process_util_posix.cc#newcode30 base/process_util_posix.cc:30: #include "base/third_party/dynamic_annotations/dynamic_annotations.h" That's a good point. However, currently ...
9 years, 6 months ago (2011-06-17 21:02:46 UTC) #6
darin (slow to review)
9 years, 6 months ago (2011-06-17 23:31:43 UTC) #7
On Fri, Jun 17, 2011 at 2:02 PM, <timurrrr@chromium.org> wrote:

> Thanks!
>
>
>
> http://codereview.chromium.**org/7204002/diff/2002/base/**
>
process_util_posix.cc<http://codereview.chromium.org/7204002/diff/2002/base/process_util_posix.cc>
> File base/process_util_posix.cc (right):
>
> http://codereview.chromium.**org/7204002/diff/2002/base/**
>
process_util_posix.cc#**newcode30<http://codereview.chromium.org/7204002/diff/2002/base/process_util_posix.cc#newcode30>
> base/process_util_posix.cc:30: #include
> "base/third_party/dynamic_**annotations/dynamic_**annotations.h"
> That's a good point.
> However, currently dynamic_annotations are C headers (not C++) and maybe
> having a namespace is an overkill (it mentions Valgrind after all)
>
>
I see.  Convention is usually to prefix function names with Module_ or
something to help
consumers keep track of where various symbols are coming from.

Anyways, this is just food for thought.  In a large codebase like Chromium,
naming conventions
can really help.

-Darin


>
> On 2011/06/17 20:54:42, darin wrote:
>
>> nit: it seems a bit unintuitive that RunningOnValgrind() would be
>>
> buried in this
>
>> header file.  it might help if dynamic_annotations.h declared a
>>
> namespace :)
>
> http://codereview.chromium.**org/7204002/diff/2002/base/**
>
process_util_posix.cc#**newcode228<http://codereview.chromium.org/7204002/diff/2002/base/process_util_posix.cc#newcode228>
> base/process_util_posix.cc:**228: if (RunningOnValgrind()) {
> On 2011/06/17 20:54:42, darin wrote:
>
>> OK...
>>
>
>  In my experience 2x might not even be enough :-)
>>
> Totally agree - average Valgrind slowdown is ~20x.
>
> But the idea right now is to increase the timout by just a bit and see
> how it changes things.
>
> I expect more leak reports to appear = good (because earlier the
> children Valgrind processes were sometimes killed in the middle of the
> leak check)
> but some tests may become slower or even flaky = bad.
>
> That's why I don't want to increase the timeout by 20x immediately :)
> After all, maybe 2x or 5x would be enough for 99% of tests.
>
>
>
http://codereview.chromium.**org/7204002/<http://codereview.chromium.org/7204...
>

Powered by Google App Engine
This is Rietveld 408576698