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

Issue 1954443002: [tracing] Reduce number of buckets in AllocationRegister. (Closed)

Created:
4 years, 7 months ago by Dmitry Skiba
Modified:
4 years, 7 months ago
CC:
chromium-reviews, tracing+reviews_chromium.org, wfh+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[tracing] Reduce number of buckets in AllocationRegister. Recent changes caused AllocationRegister::Cell to grow 4x, and with 0x40000 buckets it was allocating ~1 GiB on 64-bit systems. That caused flakiness of AllocationRegister unittests on 64-bit iOS bots. Also 32-bit Android sometimes refuses to mmap ~512 MiB when --enable-heap-profiling flag is used. BUG=608354 Committed: https://crrev.com/260bd00f1c3636b8596172a9c16868f078edad78 Cr-Commit-Position: refs/heads/master@{#391767}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -2 lines) Patch
M base/trace_event/heap_profiler_allocation_register.h View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 10 (3 generated)
Dmitry Skiba
4 years, 7 months ago (2016-05-04 18:16:32 UTC) #2
Primiano Tucci (use gerrit)
lgtm
4 years, 7 months ago (2016-05-04 18:17:26 UTC) #3
Dmitry Skiba
So I realized that number of cells (allocations) is (number of buckets) x 10. So ...
4 years, 7 months ago (2016-05-05 04:31:52 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1954443002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1954443002/1
4 years, 7 months ago (2016-05-05 04:32:27 UTC) #6
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 7 months ago (2016-05-05 05:43:11 UTC) #7
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/260bd00f1c3636b8596172a9c16868f078edad78 Cr-Commit-Position: refs/heads/master@{#391767}
4 years, 7 months ago (2016-05-05 05:44:35 UTC) #9
Primiano Tucci (use gerrit)
4 years, 7 months ago (2016-05-05 08:29:21 UTC) #10
Message was sent while issue was closed.
On 2016/05/05 05:44:35, commit-bot: I haz the power wrote:
> Patchset 1 (id:??) landed as
> https://crrev.com/260bd00f1c3636b8596172a9c16868f078edad78
> Cr-Commit-Position: refs/heads/master@{#391767}

Thanks for checking.
I just realized that we should have updated the comment that says
  // A value of ~3M entries is large enough to handle spikes in
  // the number of allocations, and modest enough to require no more than a few
  // dozens of MiB of address space.

It's definitely not "a few dozens" anymore :)
Not worth another CL, maybe let's keep in mind for the next ones.

Powered by Google App Engine
This is Rietveld 408576698