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

Issue 10692043: code review 10692043: undo CL 9776044 / 1e280889f997 (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years ago by dvyukov
Modified:
12 years ago
Reviewers:
r
CC:
golang-dev
Visibility:
Public.

Description

undo CL 9776044 / 1e280889f997 Failure on bot: http://build.golang.org/log/f4c648906e1289ec2237c1d0880fb1a8b1852a08 ««« original CL description runtime: fix CPU underutilization runtime.newproc/ready are deliberately sloppy about waking new M's, they only ensure that there is at least 1 spinning M. Currently to compensate for that, schedule() checks if the current P has local work and there are no spinning M's, it wakes up another one. It does not work if goroutines do not call schedule. With this change a spinning M wakes up another M when it finds work to do. It's also not ideal, but it fixes the underutilization. A proper check would require to know the exact number of runnable G's, but it's too expensive to maintain. Fixes issue 5586. R=rsc TBR=rsc CC=gobot, golang-dev https://codereview.appspot.com/9776044 »»»

Patch Set 1 #

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

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -51 lines) Patch
M src/pkg/runtime/proc.c View 1 3 chunks +14 lines, -27 lines 0 comments Download
M src/pkg/runtime/proc_test.go View 1 1 chunk +0 lines, -24 lines 0 comments Download

Messages

Total messages: 3
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-06-27 17:03:28 UTC) #1
dvyukov
*** Submitted as https://code.google.com/p/go/source/detail?r=4fe0404effd1 *** undo CL 9776044 / 1e280889f997 Failure on bot: http://build.golang.org/log/f4c648906e1289ec2237c1d0880fb1a8b1852a08 ««« ...
12 years ago (2013-06-27 17:03:39 UTC) #2
r
12 years ago (2013-06-27 17:12:59 UTC) #3
Message was sent while issue was closed.
LGTM
Sign in to reply to this message.

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