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

Issue 9699084: Try fixing virtual memory regression by new tcmalloc. (Closed)

Created:
8 years, 9 months ago by Dai Mikurube (NOT FULLTIME)
Modified:
8 years, 9 months ago
CC:
chromium-reviews, willchan no longer on Chromium
Visibility:
Public.

Description

Try fixing virtual memory regression by new tcmalloc. It uses the old values before tcmalloc update in r126412. BUG=118329 TEST=run perf tests.

Patch Set 1 #

Total comments: 6

Patch Set 2 : modified. #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -4 lines) Patch
M third_party/tcmalloc/chromium/src/common.h View 1 1 chunk +8 lines, -4 lines 3 comments Download

Messages

Total messages: 22 (0 generated)
Dai Mikurube (NOT FULLTIME)
This change is trying to fix http://crbug.com/118329.
8 years, 9 months ago (2012-03-15 18:12:54 UTC) #1
jar (doing other things)
http://codereview.chromium.org/9699084/diff/1/third_party/tcmalloc/chromium/src/common.h File third_party/tcmalloc/chromium/src/common.h (right): http://codereview.chromium.org/9699084/diff/1/third_party/tcmalloc/chromium/src/common.h#newcode84 third_party/tcmalloc/chromium/src/common.h:84: static const size_t kNumClasses = 86 - kSkippedClasses; I ...
8 years, 9 months ago (2012-03-15 19:36:49 UTC) #2
Dai Mikurube (NOT FULLTIME)
Thanks, Jim. Updated the patch. http://codereview.chromium.org/9699084/diff/1/third_party/tcmalloc/chromium/src/common.h File third_party/tcmalloc/chromium/src/common.h (right): http://codereview.chromium.org/9699084/diff/1/third_party/tcmalloc/chromium/src/common.h#newcode84 third_party/tcmalloc/chromium/src/common.h:84: static const size_t kNumClasses ...
8 years, 9 months ago (2012-03-15 20:17:32 UTC) #3
Dai Mikurube (NOT FULLTIME)
http://codereview.chromium.org/9699084/diff/6001/third_party/tcmalloc/chromium/src/common.h File third_party/tcmalloc/chromium/src/common.h (right): http://codereview.chromium.org/9699084/diff/6001/third_party/tcmalloc/chromium/src/common.h#newcode85 third_party/tcmalloc/chromium/src/common.h:85: static const size_t kNumClasses = 54 - kSkippedClasses; We ...
8 years, 9 months ago (2012-03-15 20:18:17 UTC) #4
jar (doing other things)
http://codereview.chromium.org/9699084/diff/6001/third_party/tcmalloc/chromium/src/common.h File third_party/tcmalloc/chromium/src/common.h (right): http://codereview.chromium.org/9699084/diff/6001/third_party/tcmalloc/chromium/src/common.h#newcode85 third_party/tcmalloc/chromium/src/common.h:85: static const size_t kNumClasses = 54 - kSkippedClasses; On ...
8 years, 9 months ago (2012-03-15 20:56:37 UTC) #5
Dai Mikurube (NOT FULLTIME)
http://codereview.chromium.org/9699084/diff/6001/third_party/tcmalloc/chromium/src/common.h File third_party/tcmalloc/chromium/src/common.h (right): http://codereview.chromium.org/9699084/diff/6001/third_party/tcmalloc/chromium/src/common.h#newcode85 third_party/tcmalloc/chromium/src/common.h:85: static const size_t kNumClasses = 54 - kSkippedClasses; On ...
8 years, 9 months ago (2012-03-15 21:00:12 UTC) #6
Dai Mikurube (NOT FULLTIME)
I tried to add Log(kLog, __FILE__, __LINE__, "SizeMap::Init -- ", sc, size, alignment); in common.cc:SizeMap::Init ...
8 years, 9 months ago (2012-03-15 21:32:00 UTC) #7
Dai Mikurube (NOT FULLTIME)
Code changes around line 125 might affect it. http://codereview.chromium.org/9584046/diff/10001/third_party/tcmalloc/chromium/src/common.cc
8 years, 9 months ago (2012-03-15 21:49:02 UTC) #8
jar (doing other things)
I believe that code impacts how many pages we use for an allocation class, and ...
8 years, 9 months ago (2012-03-15 22:33:29 UTC) #9
jar (doing other things)
Also notice, when I do an "about:tcmalloc" the page displays stats for 60 classes (at ...
8 years, 9 months ago (2012-03-15 22:40:35 UTC) #10
Dai Mikurube (NOT FULLTIME)
Though I don't still understand the behavior... (I'm trying): But, I think another idea could ...
8 years, 9 months ago (2012-03-15 23:53:45 UTC) #11
Dai Mikurube (NOT FULLTIME)
Found that changes in AlignmentForSize(common.cc) are the key of # of classes. Experimentally, with new ...
8 years, 9 months ago (2012-03-16 00:36:35 UTC) #12
jar (doing other things)
Interesting.... the alignment for size might be the difference. I assume the reason they did ...
8 years, 9 months ago (2012-03-16 01:18:20 UTC) #13
Dai Mikurube (NOT FULLTIME)
Link to the current common.cc: http://codereview.chromium.org/9584046/diff/10001/third_party/tcmalloc/chromium/src/common.cc Well, we have 3 options to try. 1) Keep ...
8 years, 9 months ago (2012-03-16 01:22:43 UTC) #14
Dai Mikurube (NOT FULLTIME)
Wow, sorry, we crossed in the post. ;)
8 years, 9 months ago (2012-03-16 01:26:39 UTC) #15
jar (doing other things)
The more I re-read the perf paper, the less convinced the optimizations are tuned for ...
8 years, 9 months ago (2012-03-16 02:37:03 UTC) #16
jar (doing other things)
The class sizes are very similar.. so my comment about the 1024 size class is ...
8 years, 9 months ago (2012-03-16 02:38:35 UTC) #17
Dai Mikurube (NOT FULLTIME)
I'm reading the code, but I created CLs for each fixing options in parallel. 1) ...
8 years, 9 months ago (2012-03-16 21:23:30 UTC) #18
Dai Mikurube (NOT FULLTIME)
Though we may have to investigate its behavior more, I found that the choice (1) ...
8 years, 9 months ago (2012-03-17 04:14:39 UTC) #19
Dai Mikurube (NOT FULLTIME)
r127301 is reverted in r127379. On 2012/03/17 04:14:39, Dai Mikurube wrote: > Though we may ...
8 years, 9 months ago (2012-03-17 22:06:20 UTC) #20
Dai Mikurube (NOT FULLTIME)
Finally, (1) was committed as a TBR change http://codereview.chromium.org/9722025/. I wonder if you could take ...
8 years, 9 months ago (2012-03-17 22:51:58 UTC) #21
Dai Mikurube (NOT FULLTIME)
8 years, 9 months ago (2012-03-20 17:36:39 UTC) #22
We chose the option (1) : http://codereview.chromium.org/9722025/.

Closing this change.

Powered by Google App Engine
This is Rietveld 408576698