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

Issue 1053793004: Add a UseCounter that measures the amount of memory used in PartitionAlloc (Closed)

Created:
5 years, 8 months ago by haraken
Modified:
5 years, 8 months ago
CC:
blink-reviews, blink-reviews-wtf_chromium.org, aandrey+blink_chromium.org, Mikhail
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Add a UseCounter that measures the amount of memory used in PartitionAlloc This CL adds a UseCounter that is counted up when the memory usage of PartitionAlloc exceeds X MB, where X is 1, 2, 3, 4, ..., 4096. The UseCounter is counted up only once for each slot size for each renderer process. The UseCounter for X MB impiles the number of renderer proceses which will hit OOM under the assumption that all the devices in the world have X MB of memory. See https://groups.google.com/a/chromium.org/d/topic/blink-dev/_MOh3lZ8zxo/discussion for more background. BUG=471650 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=193240

Patch Set 1 #

Total comments: 13

Patch Set 2 : #

Patch Set 3 : #

Total comments: 6

Patch Set 4 : #

Patch Set 5 : #

Total comments: 5

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : #

Total comments: 4

Patch Set 9 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+69 lines, -33 lines) Patch
M Source/platform/heap/Heap.h View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -12 lines 0 comments Download
M Source/platform/heap/Heap.cpp View 1 2 3 4 5 6 7 8 3 chunks +4 lines, -1 line 0 comments Download
M Source/platform/testing/RunAllTests.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/web/WebKit.cpp View 1 2 chunks +6 lines, -1 line 0 comments Download
M Source/wtf/PartitionAlloc.cpp View 1 2 3 4 5 6 7 5 chunks +18 lines, -12 lines 0 comments Download
M Source/wtf/Partitions.h View 1 2 3 4 5 6 7 8 2 chunks +5 lines, -1 line 0 comments Download
M Source/wtf/Partitions.cpp View 1 2 3 4 5 6 7 8 4 chunks +26 lines, -1 line 0 comments Download
M Source/wtf/WTF.h View 1 chunk +3 lines, -1 line 0 comments Download
M Source/wtf/WTF.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/wtf/testing/RunAllTests.cpp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 17 (3 generated)
haraken
PTAL
5 years, 8 months ago (2015-04-02 12:26:18 UTC) #2
Chris Evans
https://codereview.chromium.org/1053793004/diff/1/Source/web/WebKit.cpp File Source/web/WebKit.cpp (right): https://codereview.chromium.org/1053793004/diff/1/Source/web/WebKit.cpp#newcode148 Source/web/WebKit.cpp:148: return Platform::current()->histogramEnumeration(name, sample, boundaryValue); Nit: not sure what the ...
5 years, 8 months ago (2015-04-02 15:53:01 UTC) #3
haraken
Thanks for review! https://codereview.chromium.org/1053793004/diff/1/Source/web/WebKit.cpp File Source/web/WebKit.cpp (right): https://codereview.chromium.org/1053793004/diff/1/Source/web/WebKit.cpp#newcode148 Source/web/WebKit.cpp:148: return Platform::current()->histogramEnumeration(name, sample, boundaryValue); On 2015/04/02 ...
5 years, 8 months ago (2015-04-02 23:31:32 UTC) #4
Chris Evans
https://codereview.chromium.org/1053793004/diff/40001/Source/wtf/PartitionAlloc.cpp File Source/wtf/PartitionAlloc.cpp (right): https://codereview.chromium.org/1053793004/diff/40001/Source/wtf/PartitionAlloc.cpp#newcode33 Source/wtf/PartitionAlloc.cpp:33: #include "wtf/Partitions.h" Nit: we can get rid of this ...
5 years, 8 months ago (2015-04-03 22:14:21 UTC) #5
haraken
Thanks for review! All comments addressed. https://codereview.chromium.org/1053793004/diff/80001/Source/wtf/PartitionAlloc.cpp File Source/wtf/PartitionAlloc.cpp (right): https://codereview.chromium.org/1053793004/diff/80001/Source/wtf/PartitionAlloc.cpp#newcode333 Source/wtf/PartitionAlloc.cpp:333: static void partitionIncreaseCommittedPages(PartitionRootBase* ...
5 years, 8 months ago (2015-04-05 15:01:52 UTC) #6
Chris Evans
LGTM but please do check the re-entrancy concern! (I wonder if it's possible to find ...
5 years, 8 months ago (2015-04-06 04:39:53 UTC) #7
haraken
https://codereview.chromium.org/1053793004/diff/80001/Source/wtf/PartitionAlloc.h File Source/wtf/PartitionAlloc.h (right): https://codereview.chromium.org/1053793004/diff/80001/Source/wtf/PartitionAlloc.h#newcode279 Source/wtf/PartitionAlloc.h:279: // This callback can be called on any thread. ...
5 years, 8 months ago (2015-04-06 06:14:14 UTC) #8
Chris Evans
On 2015/04/06 06:14:14, haraken wrote: > https://codereview.chromium.org/1053793004/diff/80001/Source/wtf/PartitionAlloc.h > File Source/wtf/PartitionAlloc.h (right): > > https://codereview.chromium.org/1053793004/diff/80001/Source/wtf/PartitionAlloc.h#newcode279 > ...
5 years, 8 months ago (2015-04-06 17:31:49 UTC) #9
haraken
On 2015/04/06 17:31:49, Chris Evans wrote: > On 2015/04/06 06:14:14, haraken wrote: > > > ...
5 years, 8 months ago (2015-04-07 00:42:38 UTC) #10
haraken
On 2015/04/07 00:42:38, haraken wrote: > On 2015/04/06 17:31:49, Chris Evans wrote: > > On ...
5 years, 8 months ago (2015-04-07 00:44:10 UTC) #11
Chris Evans
LGTM Thanks. I think this is safer and a stronger long-term design. Thanks for hitting ...
5 years, 8 months ago (2015-04-07 00:50:36 UTC) #12
haraken
Thanks for review! https://codereview.chromium.org/1053793004/diff/140001/Source/wtf/Partitions.cpp File Source/wtf/Partitions.cpp (right): https://codereview.chromium.org/1053793004/diff/140001/Source/wtf/Partitions.cpp#newcode75 Source/wtf/Partitions.cpp:75: void Partitions::notifyCommittedMemoryChanged() On 2015/04/07 00:50:36, Chris ...
5 years, 8 months ago (2015-04-07 01:02:56 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1053793004/160001
5 years, 8 months ago (2015-04-07 01:03:12 UTC) #16
commit-bot: I haz the power
5 years, 8 months ago (2015-04-07 04:01:47 UTC) #17
Message was sent while issue was closed.
Committed patchset #9 (id:160001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=193240

Powered by Google App Engine
This is Rietveld 408576698