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

Issue 2743563004: Stop reporting metadata_fragmentation_caches for macOS. (Closed)

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

Description

Stop reporting metadata_fragmentation_caches for macOS. Resident size is approximated pretty well by stats.max_size_in_use. However, on macOS, freed blocks are both resident and reusable, which is semantically equivalent to deallocated. The implementation of libmalloc will also only hold a fixed number of freed regions before actually starting to deallocate them, so stats.max_size_in_use is also not representative of the peak size. As a result, stats.max_size_in_use is typically somewhere between actually resident [non-reusable] pages, and peak size. This is not very useful, so we just use stats.size_in_use for resident_size, even though it's an underestimate and fails to account for fragmentation. BUG=695263 Review-Url: https://codereview.chromium.org/2743563004 Cr-Commit-Position: refs/heads/master@{#456106} Committed: https://chromium.googlesource.com/chromium/src/+/792525bd0feedcc111f8f9ff583cc6dd6d4e2d3d

Patch Set 1 #

Patch Set 2 : nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -6 lines) Patch
M base/trace_event/malloc_dump_provider.cc View 1 1 chunk +12 lines, -6 lines 0 comments Download

Messages

Total messages: 15 (5 generated)
erikchen
primiano: Please review. ssid, mark on cc, in case either want to comment.
3 years, 9 months ago (2017-03-10 02:10:33 UTC) #2
ssid
I think the resident size here should be the best estimate of the current resident ...
3 years, 9 months ago (2017-03-10 02:32:02 UTC) #4
erikchen
On 2017/03/10 02:32:02, ssid wrote: > I think the resident size here should be the ...
3 years, 9 months ago (2017-03-10 03:37:45 UTC) #5
Primiano Tucci (use gerrit)
you have my full trust here -> LGTM. I left some questions in the bug. ...
3 years, 9 months ago (2017-03-10 11:16:23 UTC) #6
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/2743563004/20001
3 years, 9 months ago (2017-03-10 17:00:51 UTC) #8
ssid
On 2017/03/10 17:00:51, commit-bot: I haz the power wrote: > CQ is trying da patch. ...
3 years, 9 months ago (2017-03-10 17:12:17 UTC) #9
erikchen
On 2017/03/10 17:12:17, ssid wrote: > On 2017/03/10 17:00:51, commit-bot: I haz the power wrote: ...
3 years, 9 months ago (2017-03-10 17:29:48 UTC) #10
ssid
On 2017/03/10 17:29:48, erikchen wrote: > On 2017/03/10 17:12:17, ssid wrote: > > On 2017/03/10 ...
3 years, 9 months ago (2017-03-10 17:35:17 UTC) #11
erikchen
On 2017/03/10 17:29:48, erikchen wrote: > On 2017/03/10 17:12:17, ssid wrote: > > On 2017/03/10 ...
3 years, 9 months ago (2017-03-10 17:45:03 UTC) #12
commit-bot: I haz the power
3 years, 9 months ago (2017-03-10 18:07:07 UTC) #15
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/792525bd0feedcc111f8f9ff583c...

Powered by Google App Engine
This is Rietveld 408576698