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

Issue 2782503002: Add new wired memory metric to memory-infra dumps. (Closed)

Created:
3 years, 9 months ago by erikchen
Modified:
3 years, 8 months ago
CC:
chromium-reviews, tracing+reviews_chromium.org, wfh+watch_chromium.org, mac-reviews_chromium.org, vmpstr+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Add new wired memory metric to memory-infra dumps. On macOS, wired memory cannot be evicted from physical memory [swapped, purged, compressed]. We are observing a reproducible instance where Chrome appears to be responsible for massive amounts of wired memory. It's unclear whether this wired memory is being allocated by the kernel for resources associated with the task, or by the task itself. This CL will help us distinguish between these cases. BUG=700928 Review-Url: https://codereview.chromium.org/2782503002 Cr-Original-Commit-Position: refs/heads/master@{#460924} Committed: https://chromium.googlesource.com/chromium/src/+/6a44d440a7e5057f2ad1637f26802e522eeb51ab Review-Url: https://codereview.chromium.org/2782503002 Cr-Commit-Position: refs/heads/master@{#461192} Committed: https://chromium.googlesource.com/chromium/src/+/863e4742a37cc39631f68b80408d1f32b408ef54

Patch Set 1 #

Patch Set 2 : Minor cleanup. #

Patch Set 3 : compile error. #

Total comments: 11

Patch Set 4 : Comments from mark, primiano. #

Patch Set 5 : update comment, fix bug. #

Patch Set 6 : Remove test iOS. #

Total comments: 9

Patch Set 7 : comments frmo thestig. #

Patch Set 8 : Disable locked bytes tests on ASAN. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+134 lines, -39 lines) Patch
M base/process/process_metrics.h View 1 2 3 4 1 chunk +5 lines, -2 lines 0 comments Download
M base/process/process_metrics_mac.cc View 1 2 3 4 5 6 6 chunks +85 lines, -35 lines 0 comments Download
M base/process/process_metrics_unittest.cc View 1 2 3 4 5 6 7 2 chunks +40 lines, -0 lines 0 comments Download
M chrome/browser/task_manager/sampling/task_group_sampler.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M components/tracing/common/process_metrics_memory_dump_provider.cc View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 49 (28 generated)
erikchen
primiano, mark: Please review.
3 years, 8 months ago (2017-03-28 17:18:47 UTC) #7
Primiano Tucci (use gerrit)
components/tracing/ LGTM minor comments below https://codereview.chromium.org/2782503002/diff/40001/base/process/process_metrics_mac.cc File base/process/process_metrics_mac.cc (right): https://codereview.chromium.org/2782503002/diff/40001/base/process/process_metrics_mac.cc#newcode171 base/process/process_metrics_mac.cc:171: if (!private_bytes && !shared_bytes) ...
3 years, 8 months ago (2017-03-28 20:32:54 UTC) #11
Mark Mentovai
LGTM otherwise https://codereview.chromium.org/2782503002/diff/40001/base/process/process_metrics.h File base/process/process_metrics.h (right): https://codereview.chromium.org/2782503002/diff/40001/base/process/process_metrics.h#newcode163 base/process/process_metrics.h:163: size_t* wired_bytes) const; I agree with Primiano, ...
3 years, 8 months ago (2017-03-28 20:56:12 UTC) #12
Primiano Tucci (use gerrit)
On 2017/03/28 20:56:12, Mark Mentovai wrote: > LGTM otherwise > > https://codereview.chromium.org/2782503002/diff/40001/base/process/process_metrics.h > File base/process/process_metrics.h ...
3 years, 8 months ago (2017-03-28 21:24:00 UTC) #13
erikchen
https://codereview.chromium.org/2782503002/diff/40001/base/process/process_metrics.h File base/process/process_metrics.h (right): https://codereview.chromium.org/2782503002/diff/40001/base/process/process_metrics.h#newcode163 base/process/process_metrics.h:163: size_t* wired_bytes) const; On 2017/03/28 20:56:11, Mark Mentovai wrote: ...
3 years, 8 months ago (2017-03-30 00:03:14 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2782503002/80001
3 years, 8 months ago (2017-03-30 00:05:21 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/180320) ios-device-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, ...
3 years, 8 months ago (2017-03-30 00:16:05 UTC) #19
erikchen
thestig: Please review chrome/
3 years, 8 months ago (2017-03-30 01:33:33 UTC) #21
Lei Zhang
lgtm https://codereview.chromium.org/2782503002/diff/100001/base/process/process_metrics_mac.cc File base/process/process_metrics_mac.cc (right): https://codereview.chromium.org/2782503002/diff/100001/base/process/process_metrics_mac.cc#newcode98 base/process/process_metrics_mac.cc:98: } else if (kr != KERN_SUCCESS) { nit: ...
3 years, 8 months ago (2017-03-30 04:26:35 UTC) #24
Mark Mentovai
https://codereview.chromium.org/2782503002/diff/100001/base/process/process_metrics_unittest.cc File base/process/process_metrics_unittest.cc (right): https://codereview.chromium.org/2782503002/diff/100001/base/process/process_metrics_unittest.cc#newcode74 base/process/process_metrics_unittest.cc:74: ASSERT_EQ(r, 0); Lei Zhang wrote: > ASSERT_EQ(expected, actual); That ...
3 years, 8 months ago (2017-03-30 11:56:15 UTC) #27
Lei Zhang
On 2017/03/30 11:56:15, Mark Mentovai wrote: > That won’t be necessary if we ever fix ...
3 years, 8 months ago (2017-03-30 16:34:40 UTC) #28
erikchen
https://codereview.chromium.org/2782503002/diff/100001/base/process/process_metrics_mac.cc File base/process/process_metrics_mac.cc (right): https://codereview.chromium.org/2782503002/diff/100001/base/process/process_metrics_mac.cc#newcode98 base/process/process_metrics_mac.cc:98: } else if (kr != KERN_SUCCESS) { On 2017/03/30 ...
3 years, 8 months ago (2017-03-30 18:02:48 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2782503002/120001
3 years, 8 months ago (2017-03-30 18:03:33 UTC) #32
commit-bot: I haz the power
Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/builds/183636)
3 years, 8 months ago (2017-03-30 19:35:48 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2782503002/120001
3 years, 8 months ago (2017-03-30 20:24:19 UTC) #36
commit-bot: I haz the power
Committed patchset #7 (id:120001) as https://chromium.googlesource.com/chromium/src/+/6a44d440a7e5057f2ad1637f26802e522eeb51ab
3 years, 8 months ago (2017-03-30 23:24:29 UTC) #39
findit-for-me
Findit identified this CL at revision 460924 as the culprit for failures in the build ...
3 years, 8 months ago (2017-03-31 01:04:41 UTC) #40
stgao
A revert of this CL (patchset #7 id:120001) has been created in https://codereview.chromium.org/2786313002/ by stgao@chromium.org. ...
3 years, 8 months ago (2017-03-31 01:06:02 UTC) #41
erikchen
On 2017/03/31 01:06:02, stgao(ping after 24h) wrote: > A revert of this CL (patchset #7 ...
3 years, 8 months ago (2017-03-31 18:08:35 UTC) #42
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2782503002/140001
3 years, 8 months ago (2017-03-31 18:20:11 UTC) #46
commit-bot: I haz the power
3 years, 8 months ago (2017-03-31 19:58:35 UTC) #49
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/863e4742a37cc39631f68b80408d...

Powered by Google App Engine
This is Rietveld 408576698