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

Issue 11438044: code review 11438044: [release-branch.go1.1] runtime: prevent sysmon from pol... (Closed)

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

Description

[release-branch.go1.1] runtime: prevent sysmon from polling network excessivly ««« CL 11569043 / 6b3c351c7fe6 runtime: prevent sysmon from polling network excessivly If the network is not polled for 10ms, sysmon starts polling network on every iteration (every 20us) until another thread blocks in netpoll. Fixes issue 5922 . R=golang-dev, iant CC=golang-dev https://codereview.appspot.com/11569043 »»» Update issue 5928

Patch Set 1 #

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -0 lines) Patch
M src/pkg/runtime/proc.c View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 11
adg
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go
10 years, 9 months ago (2013-07-22 23:46:25 UTC) #1
bradfitz
LGTM On Mon, Jul 22, 2013 at 4:46 PM, <adg@golang.org> wrote: > Reviewers: golang-dev1, > ...
10 years, 9 months ago (2013-07-22 23:48:40 UTC) #2
rsc
Please wait.
10 years, 9 months ago (2013-07-22 23:50:15 UTC) #3
adg
*** Submitted as https://code.google.com/p/go/source/detail?r=6efaa14e2e7f *** [release-branch.go1.1] runtime: prevent sysmon from polling network excessivly ««« CL ...
10 years, 9 months ago (2013-07-22 23:50:37 UTC) #4
rsc
Dmitriy, are you absolutely sure this is okay? I am worried about unintended consequences of ...
10 years, 9 months ago (2013-07-22 23:50:52 UTC) #5
adg
Sorry, just missed it. We can roll back if necessary (obviously). On 23 July 2013 ...
10 years, 9 months ago (2013-07-22 23:51:54 UTC) #6
adg
I'm no familiar with the issue, but is it possible to write a good test ...
10 years, 9 months ago (2013-07-22 23:53:06 UTC) #7
iant
On Mon, Jul 22, 2013 at 4:50 PM, Russ Cox <rsc@golang.org> wrote: > Dmitriy, are ...
10 years, 9 months ago (2013-07-23 00:11:08 UTC) #8
dvyukov
On Tue, Jul 23, 2013 at 4:11 AM, Ian Lance Taylor <iant@golang.org> wrote: > On ...
10 years, 9 months ago (2013-07-23 08:44:13 UTC) #9
dvyukov
On Tue, Jul 23, 2013 at 12:43 PM, Dmitry Vyukov <dvyukov@google.com> wrote: > On Tue, ...
10 years, 9 months ago (2013-07-23 08:45:33 UTC) #10
adg
10 years, 9 months ago (2013-07-24 23:07:07 UTC) #11
That patch doesn't compile:

proc.c:2018 argument prototype mismatch "IND VLONG" for "IND UVLONG":
runtime.cas64

because lastpoll is an int64, but cas64 wants a uint64. By changing
lastpoll to uint64 it appears to work (and all.bash completes).

https://codereview.appspot.com/11796043


On 23 July 2013 18:45, Dmitry Vyukov <dvyukov@google.com> wrote:

> On Tue, Jul 23, 2013 at 12:43 PM, Dmitry Vyukov <dvyukov@google.com>
> wrote:
> > On Tue, Jul 23, 2013 at 4:11 AM, Ian Lance Taylor <iant@golang.org>
> wrote:
> >> On Mon, Jul 22, 2013 at 4:50 PM, Russ Cox <rsc@golang.org> wrote:
> >>> Dmitriy, are you absolutely sure this is okay? I am worried about
> unintended
> >>> consequences of this fix making Go 1.1.2 worse than Go 1.1.1.
> >>
> >> I'd like to hear Dmitriy's opinion, but I'm pretty sure this patch is
> OK.
> >
> >
> > Yes, this patch is OK.
> > It's very difficult to write a test for it. Alex Brainman reported
> > potential busy spinning on some version of windows on a single core
> > box, but we don't know how exactly it happens and how to test for it.
>
> it will be different in Go1.1.2:
> -runtime·cas64(&runtime·sched.lastpoll, lastpoll, now);
> +runtime·cas64(&runtime·sched.lastpoll, &lastpoll, now);
>
Sign in to reply to this message.

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