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

Issue 437163006: base/allocator: Hardcode TCMalloc optimization level to 2 on Windows. (Closed)

Created:
6 years, 4 months ago by willchan no longer on Chromium
Modified:
6 years, 4 months ago
Reviewers:
Nico, DaleCurtis
CC:
chromium-reviews, wfh+watch_chromium.org, erikwright+watch_chromium.org, dmikurube+memory_chromium.org
Project:
chromium
Visibility:
Public.

Description

base/allocator: Hardcode TCMalloc optimization level to 2 on Windows. TCMalloc is very slow in debug mode. Testing this out on Linux demonstrates clear wins, so I'm hopeful Windows will similarly improve. This change mostly copies the same configuration from ffmpeg, which unifies the setting of the optimization level variables in target_defaults. BUG=388949 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=287454

Patch Set 1 #

Total comments: 4

Patch Set 2 : Address Dale's comments. Also ditch mac settings. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -3 lines) Patch
M base/allocator/allocator.gyp View 1 2 chunks +10 lines, -3 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
willchan no longer on Chromium
6 years, 4 months ago (2014-08-04 18:33:13 UTC) #1
DaleCurtis
https://codereview.chromium.org/437163006/diff/1/base/allocator/allocator.gyp File base/allocator/allocator.gyp (right): https://codereview.chromium.org/437163006/diff/1/base/allocator/allocator.gyp#newcode12 base/allocator/allocator.gyp:12: # In addition to the above reasons, /Od optimization ...
6 years, 4 months ago (2014-08-04 18:58:17 UTC) #2
willchan no longer on Chromium
I addressed your comments and also ditched Mac since I didn't want to add a ...
6 years, 4 months ago (2014-08-04 19:05:22 UTC) #3
Nico
Do you have a link to the experiment results on linux somewhere? lgtm
6 years, 4 months ago (2014-08-04 19:14:38 UTC) #4
willchan no longer on Chromium
See the bug thread.
6 years, 4 months ago (2014-08-04 19:17:32 UTC) #5
willchan no longer on Chromium
The CQ bit was checked by willchan@chromium.org
6 years, 4 months ago (2014-08-04 19:26:44 UTC) #6
DaleCurtis
lgtm
6 years, 4 months ago (2014-08-04 19:27:03 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/willchan@chromium.org/437163006/20001
6 years, 4 months ago (2014-08-04 19:28:38 UTC) #8
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_gpu_triggered_tests on tryserver.chromium.gpu ...
6 years, 4 months ago (2014-08-04 21:19:44 UTC) #9
commit-bot: I haz the power
Change committed as 287454
6 years, 4 months ago (2014-08-05 04:55:36 UTC) #10
Nico
Looks like this didn't help: http://build.chromium.org/p/chromium.win/stats/Win7%20Tests%20%28dbg%29%282%29 Do you want to revert?
6 years, 4 months ago (2014-08-05 16:57:59 UTC) #11
willchan no longer on Chromium
Yeah, I updated the bug thread about it. I kinda think it makes sense to ...
6 years, 4 months ago (2014-08-05 17:05:50 UTC) #12
Nico
6 years, 4 months ago (2014-08-05 17:06:33 UTC) #13
I'm happy with leaving it in, just wanted to hear your thoughts on it.
Thanks!


On Tue, Aug 5, 2014 at 10:05 AM, William Chan (ι™ˆζ™Ίζ˜Œ) <willchan@chromium.org>
wrote:

> Yeah, I updated the bug thread about it. I kinda think it makes sense to
> keep it in place. The reason it didn't help is as wfh@ said, our Windows
> builders primarily use component builds which don't use TCMalloc. But if we
> ever switched back to using TCMalloc on Windows by changing the bot
> configurations, then we'd regress debug builder performance. And this kind
> of change probably just makes sense in general for a malloc implementation.
>
> I'm open to reverting though if people disagree.
>
>
> On Tue, Aug 5, 2014 at 9:57 AM, <thakis@chromium.org> wrote:
>
>> Looks like this didn't help:
>> http://build.chromium.org/p/chromium.win/stats/Win7%
>> 20Tests%20%28dbg%29%282%29
>>
>> Do you want to revert?
>>
>> https://codereview.chromium.org/437163006/
>>
>
>

To unsubscribe from this group and stop receiving emails from it, send an email
to chromium-reviews+unsubscribe@chromium.org.

Powered by Google App Engine
This is Rietveld 408576698