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

Issue 128820043: code review 128820043: net: improve behavior of unix native Go DNS queries

Can't Edit
Can't Publish+Mail
Start Review
Created:
9 years, 8 months ago by axaxs
Modified:
9 years, 8 months ago
Reviewers:
gobot, mikio
CC:
golang-codereviews, mikio, bradfitz, josharian, abursavich
Visibility:
Public.

Description

net: implement query-response fast failover in builtin dns stub resolver Speed improvements via code cleanup, and changes to make go dns behave more like glibc resolver. See https://groups.google.com/forum/#!topic/golang-dev/lV-0aHqxVeo Fixes issue 6579. Benchmark results on linux/amd64 benchmark old ns/op new ns/op delta BenchmarkGoLookupIP 4831903 2572937 -46.75% BenchmarkGoLookupIPNoSuchHost 10114105 2419641 -76.08% BenchmarkGoLookupIPWithBrokenNameServer 20007735624 5004490730 -74.99% benchmark old allocs new allocs delta BenchmarkGoLookupIP 287 288 0.35% BenchmarkGoLookupIPNoSuchHost 204 102 -50.00% BenchmarkGoLookupIPWithBrokenNameServer 410 358 -12.68% benchmark old bytes new bytes delta BenchmarkGoLookupIP 13181 13271 0.68% BenchmarkGoLookupIPNoSuchHost 17260 8714 -49.51% BenchmarkGoLookupIPWithBrokenNameServer 28160 22432 -20.34%

Patch Set 1 #

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

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

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

Total comments: 16

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

Total comments: 8

Patch Set 6 : diff -r 277f98d885558a00e899f6e89958e97470fd8ab4 https://code.google.com/p/go #

Total comments: 6

Patch Set 7 : diff -r 173175ba9eb71f00f69da09c738523eb4fab36a6 https://code.google.com/p/go #

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

Patch Set 9 : diff -r 173175ba9eb71f00f69da09c738523eb4fab36a6 https://code.google.com/p/go #

Total comments: 2

Patch Set 10 : diff -r 173175ba9eb71f00f69da09c738523eb4fab36a6 https://code.google.com/p/go #

Total comments: 1

Patch Set 11 : diff -r e5c87cefb57fffc5767209542be5c4e58123e3c6 https://code.google.com/p/go #

Patch Set 12 : diff -r e5c87cefb57fffc5767209542be5c4e58123e3c6 https://code.google.com/p/go #

Patch Set 13 : diff -r e5c87cefb57fffc5767209542be5c4e58123e3c6 https://code.google.com/p/go #

Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -41 lines) Patch
M src/pkg/net/dnsclient_unix.go View 1 2 3 4 5 6 7 8 9 10 2 chunks +33 lines, -41 lines 0 comments Download
M src/pkg/net/dnsclient_unix_test.go View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +21 lines, -0 lines 0 comments Download

Messages

Total messages: 21
axaxs
Hello golang-codereviews@googlegroups.com (cc: mikioh.mikioh@gmail.com), I'd like you to review this change to https://code.google.com/p/go
9 years, 8 months ago (2014-08-09 19:51:28 UTC) #1
mikio
https://codereview.appspot.com/128820043/diff/60001/src/pkg/net/dnsclient_unix.go File src/pkg/net/dnsclient_unix.go (right): https://codereview.appspot.com/128820043/diff/60001/src/pkg/net/dnsclient_unix.go#newcode174 src/pkg/net/dnsclient_unix.go:174: server += ":53" use JoinHostPort https://codereview.appspot.com/128820043/diff/60001/src/pkg/net/dnsclient_unix.go#newcode184 src/pkg/net/dnsclient_unix.go:184: } else ...
9 years, 8 months ago (2014-08-20 12:46:51 UTC) #2
axaxs
Hi, PTAL. Thanks, Alex https://codereview.appspot.com/128820043/diff/60001/src/pkg/net/dnsclient_unix.go File src/pkg/net/dnsclient_unix.go (right): https://codereview.appspot.com/128820043/diff/60001/src/pkg/net/dnsclient_unix.go#newcode174 src/pkg/net/dnsclient_unix.go:174: server += ":53" On 2014/08/20 ...
9 years, 8 months ago (2014-08-24 19:26:45 UTC) #3
bradfitz
Mikio, Josh, could you review? The tree closes in a few days.
9 years, 8 months ago (2014-08-28 15:40:41 UTC) #4
josharian
> Mikio, Josh, could you review? Here are a few superficial comments. I don't have ...
9 years, 8 months ago (2014-08-28 16:24:30 UTC) #5
axaxs
Thanks Josh, made suggested edits if you want to peek again. Mikio? Thanks, Alex https://codereview.appspot.com/128820043/diff/80001/src/pkg/net/dnsclient_unix.go ...
9 years, 8 months ago (2014-08-28 23:40:24 UTC) #6
mikio
On 2014/08/28 15:40:41, bradfitz wrote: > Mikio, Josh, could you review? will try this afternoon. ...
9 years, 8 months ago (2014-08-28 23:48:13 UTC) #7
mikio
thanks. can you please change the cl descr something like; implement query-response fast failover in ...
9 years, 8 months ago (2014-08-29 14:33:01 UTC) #8
axaxs
Thanks. Made recommended changes and will move suggested logic cleanup and associated test into another ...
9 years, 8 months ago (2014-08-29 18:16:30 UTC) #9
josharian
https://codereview.appspot.com/128820043/diff/160001/src/pkg/net/dnsclient_unix.go File src/pkg/net/dnsclient_unix.go (right): https://codereview.appspot.com/128820043/diff/160001/src/pkg/net/dnsclient_unix.go#newcode385 src/pkg/net/dnsclient_unix.go:385: lane := make(chan racer, 1) If you're going to ...
9 years, 8 months ago (2014-08-29 22:47:48 UTC) #10
axaxs
Hi, PTAL. Mikio/Josh - please see below, your thoughts on hopefully this last blocker very ...
9 years, 8 months ago (2014-08-29 23:04:00 UTC) #11
josharian
> If however this introduces possibility of leak, I will revert to lastErr method > ...
9 years, 8 months ago (2014-08-30 00:55:57 UTC) #12
abursavich
On Friday, August 29, 2014 4:04:00 PM UTC-7, Alex Skinner wrote: > My only goal ...
9 years, 8 months ago (2014-08-30 01:21:09 UTC) #13
mikio
On 2014/08/29 18:16:30, axaxs wrote: > Done with two caveats. First, this cause 20% jump ...
9 years, 8 months ago (2014-08-30 01:40:05 UTC) #14
axaxs
Absolutely right! I was just complaining about this recently on a golang-dev thread. Thank you ...
9 years, 8 months ago (2014-08-30 01:53:32 UTC) #15
axaxs
I think(hope) it is finalized now after a mix of edits from advice from Mikio, ...
9 years, 8 months ago (2014-08-30 01:54:54 UTC) #16
mikio
On Sat, Aug 30, 2014 at 10:53 AM, Alex Skinner <alex@lx.lc> wrote: > Mikio - ...
9 years, 8 months ago (2014-08-30 02:29:44 UTC) #17
mikio
LGTM
9 years, 8 months ago (2014-08-30 02:31:18 UTC) #18
mikio
On 2014/08/30 02:31:18, mikio wrote: > LGTM will submit after lunch
9 years, 8 months ago (2014-08-30 02:33:16 UTC) #19
mikio
*** Submitted as https://code.google.com/p/go/source/detail?r=a32faf936e45 *** net: implement query-response fast failover in builtin dns stub resolver ...
9 years, 8 months ago (2014-08-30 04:12:53 UTC) #20
gobot
9 years, 8 months ago (2014-08-30 04:14:06 UTC) #21
This CL appears to have broken the windows-amd64-perf builder.
See http://build.golang.org/log/00c238ffcf2b69bebca242d0f56172d7dbc97016
Sign in to reply to this message.

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