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

Issue 146530043: runtime: use vDSO page for time on FreeBSD/amd64.

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years ago by wathiede
Modified:
11 years ago
Reviewers:
iant
Visibility:
Public.

Description

runtime: use vDSO page for time on FreeBSD/amd64. This is similar in spirit to the Linux work done in https://codereview.appspot.com/6454046/ Using this test http://play.golang.org/p/QUwb_r1d0G Performance of go tip vs this patch with 'sysctl kern.timecounter.fast_gettime=0': benchmark old ns/op new ns/op delta BenchmarkStdTime 277 283 +2.17% Performance of this patch with 'sysctl kern.timecounter.fast_gettime=0' vs 'sysctl kern.timecounter.fast_gettime=1': benchmark old ns/op new ns/op delta BenchmarkStdTime 283 37.3 -86.82%

Patch Set 1 #

Patch Set 2 : diff -r 8f36a32a9d036f86fb956c8538142eb384bd1a4a https://code.google.com/p/go #

Total comments: 12

Patch Set 3 : diff -r 8f36a32a9d036f86fb956c8538142eb384bd1a4a https://code.google.com/p/go #

Total comments: 22

Patch Set 4 : diff -r 8f36a32a9d036f86fb956c8538142eb384bd1a4a https://code.google.com/p/go #

Total comments: 26

Patch Set 5 : diff -r 8f36a32a9d036f86fb956c8538142eb384bd1a4a https://code.google.com/p/go #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+245 lines, -0 lines) Patch
M src/runtime/sys_freebsd_amd64.s View 1 2 3 4 2 chunks +40 lines, -0 lines 0 comments Download
A src/runtime/vdso_freebsd_amd64.c View 1 2 3 4 1 chunk +205 lines, -0 lines 1 comment Download

Messages

Total messages: 13
Ivan Krasin
Hi Bill, there's a few initial comments. Let's start with them. I would be grateful ...
11 years ago (2014-09-30 17:51:33 UTC) #1
wathiede
https://codereview.appspot.com/146530043/diff/20001/src/runtime/sys_freebsd_amd64.s File src/runtime/sys_freebsd_amd64.s (right): https://codereview.appspot.com/146530043/diff/20001/src/runtime/sys_freebsd_amd64.s#newcode153 src/runtime/sys_freebsd_amd64.s:153: TEXT rdtsc(SB), NOSPLIT, $0 On 2014/09/30 17:51:33, Ivan Krasin ...
11 years ago (2014-09-30 19:32:21 UTC) #2
Ivan Krasin
https://codereview.appspot.com/146530043/diff/20001/src/runtime/vdso_freebsd_amd64.c File src/runtime/vdso_freebsd_amd64.c (right): https://codereview.appspot.com/146530043/diff/20001/src/runtime/vdso_freebsd_amd64.c#newcode134 src/runtime/vdso_freebsd_amd64.c:134: if(tk->tk_enabled == 0) { On 2014/09/30 19:32:21, wathiede wrote: ...
11 years ago (2014-09-30 20:29:50 UTC) #3
wathiede
https://codereview.appspot.com/146530043/diff/20001/src/runtime/vdso_freebsd_amd64.c File src/runtime/vdso_freebsd_amd64.c (right): https://codereview.appspot.com/146530043/diff/20001/src/runtime/vdso_freebsd_amd64.c#newcode134 src/runtime/vdso_freebsd_amd64.c:134: if(tk->tk_enabled == 0) { On 2014/09/30 20:29:50, Ivan Krasin ...
11 years ago (2014-09-30 22:35:41 UTC) #4
Ivan Krasin
https://codereview.appspot.com/146530043/diff/40001/src/runtime/sys_freebsd_amd64.s File src/runtime/sys_freebsd_amd64.s (right): https://codereview.appspot.com/146530043/diff/40001/src/runtime/sys_freebsd_amd64.s#newcode162 src/runtime/sys_freebsd_amd64.s:162: CALL runtime·__vdso_timekeep(SB) On 2014/09/30 22:35:41, wathiede wrote: > On ...
11 years ago (2014-09-30 22:46:36 UTC) #5
Ivan Krasin
Hi Ian Lance, Bill has been working on vDSO support for FreeBSD and he has ...
11 years ago (2014-09-30 22:49:46 UTC) #6
iant
https://codereview.appspot.com/146530043/diff/40001/src/runtime/sys_freebsd_amd64.s File src/runtime/sys_freebsd_amd64.s (right): https://codereview.appspot.com/146530043/diff/40001/src/runtime/sys_freebsd_amd64.s#newcode151 src/runtime/sys_freebsd_amd64.s:151: // TODO(reviewer): I have no idea what the correct ...
11 years ago (2014-10-01 00:22:14 UTC) #7
iant
I added some comments on the CL. Ian On Tue, Sep 30, 2014 at 3:49 ...
11 years ago (2014-10-01 00:22:49 UTC) #8
wathiede
I will request you PTAL when I implement all the comments. https://codereview.appspot.com/146530043/diff/40001/src/runtime/sys_freebsd_amd64.s File src/runtime/sys_freebsd_amd64.s (right): ...
11 years ago (2014-10-01 04:51:45 UTC) #9
wathiede
I have updated the CL to address iant@'s comments. I have also emailed the FreeBSD ...
11 years ago (2014-10-07 03:39:44 UTC) #10
iant
https://codereview.appspot.com/146530043/diff/60001/src/runtime/vdso_freebsd_amd64.c File src/runtime/vdso_freebsd_amd64.c (right): https://codereview.appspot.com/146530043/diff/60001/src/runtime/vdso_freebsd_amd64.c#newcode6 src/runtime/vdso_freebsd_amd64.c:6: // obviously borrows code (which I cite) from FreeBSD's ...
11 years ago (2014-10-09 04:01:32 UTC) #11
wathiede
PTAL https://codereview.appspot.com/146530043/diff/60001/src/runtime/vdso_freebsd_amd64.c File src/runtime/vdso_freebsd_amd64.c (right): https://codereview.appspot.com/146530043/diff/60001/src/runtime/vdso_freebsd_amd64.c#newcode6 src/runtime/vdso_freebsd_amd64.c:6: // obviously borrows code (which I cite) from ...
11 years ago (2014-10-19 00:50:29 UTC) #12
iant
11 years ago (2014-10-21 16:19:04 UTC) #13
Ping when you are ready for a final review. https://codereview.appspot.com/146530043/diff/80001/src/runtime/vdso_freebsd_... File src/runtime/vdso_freebsd_amd64.c (right): https://codereview.appspot.com/146530043/diff/80001/src/runtime/vdso_freebsd_... src/runtime/vdso_freebsd_amd64.c:1: // Copyright 2012 The Go Authors. All rights reserved. s/2012/2014/
Sign in to reply to this message.

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