Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(170)

Issue 6223050: code review 6223050: runtime: faster GC mark phase (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 10 months ago by dvyukov
Modified:
12 years, 9 months ago
Reviewers:
CC:
rsc, 0xe2.0x9a.0x9b_gmail.com, golang-dev
Visibility:
Public.

Description

runtime: faster GC mark phase Also bump MaxGcproc to 8. benchmark old ns/op new ns/op delta Parser 3796323000 3763880000 -0.85% Parser-2 3591752500 3518560250 -2.04% Parser-4 3423825250 3334955250 -2.60% Parser-8 3304585500 3267014750 -1.14% Parser-16 3313615750 3286160500 -0.83% Tree 984128500 942501166 -4.23% Tree-2 932564444 883266222 -5.29% Tree-4 835831000 799912777 -4.30% Tree-8 819238500 789717333 -3.73% Tree-16 880837833 837840055 -5.13% Tree2 604698100 579716900 -4.13% Tree2-2 372414500 356765200 -4.20% Tree2-4 187488100 177455900 -5.56% Tree2-8 136315300 102086700 -25.11% Tree2-16 93725900 76705800 -22.18% ParserPause 157441210 166202783 +5.56% ParserPause-2 93842650 85199900 -9.21% ParserPause-4 56844404 53535684 -5.82% ParserPause-8 35739446 30767613 -16.15% ParserPause-16 32718255 27212441 -16.83% TreePause 29610557 29787725 +0.60% TreePause-2 24001659 20674421 -13.86% TreePause-4 15114887 12842781 -15.03% TreePause-8 13128725 10741747 -22.22% TreePause-16 16131360 12506901 -22.47% Tree2Pause 2673350920 2651045280 -0.83% Tree2Pause-2 1796999200 1709350040 -4.88% Tree2Pause-4 1163553320 1090706480 -6.67% Tree2Pause-8 987032520 858916360 -25.11% Tree2Pause-16 864758560 809567480 -6.81% ParserLastPause 280537000 289047000 +3.03% ParserLastPause-2 183030000 166748000 -8.90% ParserLastPause-4 105817000 91552000 -13.48% ParserLastPause-8 65127000 53288000 -18.18% ParserLastPause-16 45258000 38334000 -15.30% TreeLastPause 45072000 51449000 +12.39% TreeLastPause-2 39269000 37866000 -3.57% TreeLastPause-4 23564000 20649000 -12.37% TreeLastPause-8 20881000 15807000 -24.30% TreeLastPause-16 23297000 17309000 -25.70% Tree2LastPause 6046912000 5797120000 -4.13% Tree2LastPause-2 3724034000 3567592000 -4.20% Tree2LastPause-4 1874831000 1774524000 -5.65% Tree2LastPause-8 1363108000 1020809000 -12.79% Tree2LastPause-16 937208000 767019000 -22.18%

Patch Set 1 #

Patch Set 2 : diff -r b0dd97867c83 https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r 9e5ed0741dc8 https://go.googlecode.com/hg/ #

Patch Set 4 : diff -r 9e5ed0741dc8 https://go.googlecode.com/hg/ #

Patch Set 5 : diff -r 9e5ed0741dc8 https://go.googlecode.com/hg/ #

Patch Set 6 : diff -r 9e5ed0741dc8 https://go.googlecode.com/hg/ #

Patch Set 7 : diff -r 9e5ed0741dc8 https://go.googlecode.com/hg/ #

Total comments: 6

Patch Set 8 : diff -r 9e5ed0741dc8 https://go.googlecode.com/hg/ #

Patch Set 9 : diff -r 9e5ed0741dc8 https://go.googlecode.com/hg/ #

Patch Set 10 : diff -r 8c0f26decc1b https://go.googlecode.com/hg/ #

Patch Set 11 : diff -r 8c0f26decc1b https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+113 lines, -155 lines) Patch
M src/pkg/runtime/malloc.h View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M src/pkg/runtime/mgc0.c View 1 2 3 4 5 6 7 8 19 chunks +111 lines, -153 lines 0 comments Download

Messages

Total messages: 12
dvyukov
Hello rsc@golang.org (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
12 years, 9 months ago (2012-05-23 13:58:24 UTC) #1
dvyukov
I've also collected additional stats on tree benchmark. BEFORE: GOMAXPROCS=1: exec time 16690ms, GC 5846ms ...
12 years, 9 months ago (2012-05-23 14:46:54 UTC) #2
atom
http://codereview.appspot.com/6223050/diff/12001/src/pkg/runtime/mgc0.c File src/pkg/runtime/mgc0.c (right): http://codereview.appspot.com/6223050/diff/12001/src/pkg/runtime/mgc0.c#newcode261 src/pkg/runtime/mgc0.c:261: // If another proc wants a pointer, give it ...
12 years, 9 months ago (2012-05-23 18:29:25 UTC) #3
dvyukov
http://codereview.appspot.com/6223050/diff/12001/src/pkg/runtime/mgc0.c File src/pkg/runtime/mgc0.c (right): http://codereview.appspot.com/6223050/diff/12001/src/pkg/runtime/mgc0.c#newcode261 src/pkg/runtime/mgc0.c:261: // If another proc wants a pointer, give it ...
12 years, 9 months ago (2012-05-23 18:36:49 UTC) #4
atom
http://codereview.appspot.com/6223050/diff/12001/src/pkg/runtime/mgc0.c File src/pkg/runtime/mgc0.c (right): http://codereview.appspot.com/6223050/diff/12001/src/pkg/runtime/mgc0.c#newcode261 src/pkg/runtime/mgc0.c:261: // If another proc wants a pointer, give it ...
12 years, 9 months ago (2012-05-23 19:17:39 UTC) #5
rsc
On Wed, May 23, 2012 at 3:17 PM, <0xE2.0x9A.0x9B@gmail.com> wrote: > In any case, my ...
12 years, 9 months ago (2012-05-23 19:20:41 UTC) #6
rsc
LGTM It is interesting to me that the Parser pause times went down so noticeably ...
12 years, 9 months ago (2012-05-23 19:59:04 UTC) #7
dvyukov
http://codereview.appspot.com/6223050/diff/12001/src/pkg/runtime/mgc0.c File src/pkg/runtime/mgc0.c (right): http://codereview.appspot.com/6223050/diff/12001/src/pkg/runtime/mgc0.c#newcode261 src/pkg/runtime/mgc0.c:261: // If another proc wants a pointer, give it ...
12 years, 9 months ago (2012-05-24 06:32:21 UTC) #8
dvyukov
> http://codereview.appspot.com/6223050/diff/12001/src/pkg/runtime/mgc0.c#newcode609 > src/pkg/runtime/mgc0.c:609: default: > Please unindent these cases, like they were before. The ...
12 years, 9 months ago (2012-05-24 06:38:29 UTC) #9
dvyukov
On 2012/05/23 19:59:04, rsc wrote: > LGTM > > It is interesting to me that ...
12 years, 9 months ago (2012-05-24 06:49:07 UTC) #10
dvyukov
*** Submitted as http://code.google.com/p/go/source/detail?r=0ed15bfbe0f4 *** runtime: faster GC mark phase Also bump MaxGcproc to 8. ...
12 years, 9 months ago (2012-05-24 06:59:01 UTC) #11
rsc
12 years, 9 months ago (2012-05-24 14:00:58 UTC) #12
Thank you so much for seeing this through. I am more than happy to put
off concurrent sweep for now.

Russ
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b