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

Issue 7816044: code review 7816044: runtime: faster parallel GC (Closed)

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

Description

runtime: faster parallel GC Use per-thread work buffers instead of global mutex-protected pool. This eliminates contention from parallel scan phase. benchmark old ns/op new ns/op delta garbage.BenchmarkTree2-8 97100768 71417553 -26.45% garbage.BenchmarkTree2LastPause-8 970931485 714103692 -26.45% garbage.BenchmarkTree2Pause-8 469127802 345029253 -26.45% garbage.BenchmarkParser-8 2880950854 2715456901 -5.74% garbage.BenchmarkParserLastPause-8 137047399 103336476 -24.60% garbage.BenchmarkParserPause-8 80686028 58922680 -26.97%

Patch Set 1 #

Patch Set 2 : diff -r e4e13824b6a3 https://dvyukov%40google.com@code.google.com/p/go/ #

Patch Set 3 : diff -r e4e13824b6a3 https://dvyukov%40google.com@code.google.com/p/go/ #

Patch Set 4 : diff -r e4e13824b6a3 https://dvyukov%40google.com@code.google.com/p/go/ #

Patch Set 5 : diff -r e4e13824b6a3 https://dvyukov%40google.com@code.google.com/p/go/ #

Patch Set 6 : diff -r ee1b8339ab04 https://dvyukov%40google.com@code.google.com/p/go/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -25 lines) Patch
M src/pkg/runtime/mgc0.c View 1 2 3 4 5 9 chunks +21 lines, -21 lines 0 comments Download
M src/pkg/runtime/proc.c View 1 4 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 14
dvyukov
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://dvyukov%40google.com@code.google.com/p/go/
12 years ago (2013-03-17 09:19:32 UTC) #1
atom
On 2013/03/17 09:19:32, dvyukov wrote: > Hello mailto:golang-dev@googlegroups.com, > > I'd like you to review ...
12 years ago (2013-03-17 09:30:43 UTC) #2
dave_cheney.net
Thank you, can you share any numbers for the single proc case? On 17/03/2013, at ...
12 years ago (2013-03-17 09:35:52 UTC) #3
dvyukov
On 2013/03/17 09:35:52, dfc wrote: > Thank you, can you share any numbers for the ...
12 years ago (2013-03-17 09:57:35 UTC) #4
dvyukov
There is another interesting point. I've modified the test to create N blocked goroutines in ...
12 years ago (2013-03-17 10:01:59 UTC) #5
dave_cheney.net
Excellent. I am pleased that there is no penalty for the single proc (*cough* arm ...
12 years ago (2013-03-17 11:02:06 UTC) #6
atom
On 2013/03/17 11:02:06, dfc wrote: > Excellent. I am pleased that there is no penalty ...
12 years ago (2013-03-17 11:05:03 UTC) #7
dvyukov
On Sun, Mar 17, 2013 at 3:02 PM, Dave Cheney <dave@cheney.net> wrote: > Excellent. I ...
12 years ago (2013-03-17 11:20:39 UTC) #8
dave_cheney.net
No, just before and after this CL. On 17/03/2013, at 10:05 PM, 0xE2.0x9A.0x9B@gmail.com wrote: > ...
12 years ago (2013-03-17 12:08:20 UTC) #9
adg
Could you please add a sentence or two to the change description, to explain what ...
12 years ago (2013-03-17 21:36:34 UTC) #10
dvyukov
On 2013/03/17 21:36:34, adg wrote: > Could you please add a sentence or two to ...
12 years ago (2013-03-18 03:59:45 UTC) #11
rsc
LGTM
12 years ago (2013-03-19 18:46:40 UTC) #12
iant
LGTM
12 years ago (2013-03-19 21:53:36 UTC) #13
dvyukov
12 years ago (2013-03-21 08:48:09 UTC) #14
*** Submitted as https://code.google.com/p/go/source/detail?r=0d7891ca5e06 ***

runtime: faster parallel GC
Use per-thread work buffers instead of global mutex-protected pool. This
eliminates contention from parallel scan phase.

benchmark                             old ns/op    new ns/op    delta
garbage.BenchmarkTree2-8               97100768     71417553  -26.45%
garbage.BenchmarkTree2LastPause-8     970931485    714103692  -26.45%
garbage.BenchmarkTree2Pause-8         469127802    345029253  -26.45%
garbage.BenchmarkParser-8            2880950854   2715456901   -5.74%
garbage.BenchmarkParserLastPause-8    137047399    103336476  -24.60%
garbage.BenchmarkParserPause-8         80686028     58922680  -26.97%

R=golang-dev, 0xe2.0x9a.0x9b, dave, adg, rsc, iant
CC=golang-dev
https://codereview.appspot.com/7816044
Sign in to reply to this message.

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