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

Issue 4693042: code review 4693042: runtime: eliminate false sharing during stack growth (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 10 months ago by dvyukov
Modified:
13 years, 10 months ago
Reviewers:
CC:
rsc, golang-dev
Visibility:
Public.

Description

runtime: eliminate false sharing during stack growth Remove static variable from runtimeĀ·oldstack(). Benchmark results on HP Z600 (2 x Xeon E5620, 8 HT cores, 2.40GHz) are as follows (with CL 4657091 applied): benchmark old ns/op new ns/op delta BenchmarkStackGrowth 1183.00 1180.00 -0.25% BenchmarkStackGrowth-2 1249.00 1211.00 -3.04% BenchmarkStackGrowth-4 954.00 805.00 -15.62% BenchmarkStackGrowth-8 701.00 683.00 -2.57% BenchmarkStackGrowth-16 465.00 415.00 -10.75%

Patch Set 1 #

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

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

Patch Set 4 : diff -r 207a10acbc0f https://go.googlecode.com/hg/ #

Patch Set 5 : diff -r 207a10acbc0f https://go.googlecode.com/hg/ #

Total comments: 1

Patch Set 6 : diff -r 207a10acbc0f https://go.googlecode.com/hg/ #

Patch Set 7 : diff -r 207a10acbc0f https://go.googlecode.com/hg/ #

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

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

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

Messages

Total messages: 8
dvyukov
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
13 years, 10 months ago (2011-07-11 14:14:45 UTC) #1
rsc
Please revert this change. Then s/static // on the goid declaration and insert USED(goid) on ...
13 years, 10 months ago (2011-07-12 05:27:39 UTC) #2
dvyukov
Hello rsc@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
13 years, 10 months ago (2011-07-12 10:47:33 UTC) #3
rsc
http://codereview.appspot.com/4693042/diff/12001/src/pkg/runtime/proc.c File src/pkg/runtime/proc.c (left): http://codereview.appspot.com/4693042/diff/12001/src/pkg/runtime/proc.c#oldcode706 src/pkg/runtime/proc.c:706: //printf("oldstack m->cret=%p\n", m->cret); This printf isn't bothering anyone. Please ...
13 years, 10 months ago (2011-07-12 16:16:36 UTC) #4
dvyukov
Hello rsc@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
13 years, 10 months ago (2011-07-12 16:36:17 UTC) #5
rsc
LGTM
13 years, 10 months ago (2011-07-12 16:38:39 UTC) #6
dvyukov
Hello rsc@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
13 years, 10 months ago (2011-07-12 17:45:52 UTC) #7
rsc
13 years, 10 months ago (2011-07-12 17:56:26 UTC) #8
*** Submitted as c87c2f280a95 ***

runtime: eliminate false sharing during stack growth
Remove static variable from runtimeĀ·oldstack().
Benchmark results on HP Z600 (2 x Xeon E5620, 8 HT cores, 2.40GHz)
are as follows (with CL 4657091 applied):
benchmark                                        old ns/op    new ns/op    delta
BenchmarkStackGrowth                               1183.00      1180.00   -0.25%
BenchmarkStackGrowth-2                             1249.00      1211.00   -3.04%
BenchmarkStackGrowth-4                              954.00       805.00  -15.62%
BenchmarkStackGrowth-8                              701.00       683.00   -2.57%
BenchmarkStackGrowth-16                             465.00       415.00  -10.75%

R=rsc
CC=golang-dev
http://codereview.appspot.com/4693042

Committer: Russ Cox <rsc@golang.org>
Sign in to reply to this message.

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