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

Issue 140110043: code review 140110043: runtime/pprof: adjust cpuHogger so that tests pass on w... (Closed)

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

Description

runtime/pprof: adjust cpuHogger so that tests pass on windows builders

Patch Set 1 #

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

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

Total comments: 4

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -4 lines) Patch
M src/pkg/runtime/pprof/pprof_test.go View 1 2 3 1 chunk +4 lines, -4 lines 0 comments Download

Messages

Total messages: 9
brainman
Hello dvyukov@google.com (cc: golang-codereviews@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
10 years, 6 months ago (2014-09-01 11:36:17 UTC) #1
dvyukov
Freebsd-race is still not happy as well: --- FAIL: TestCPUProfileMultithreaded (0.51s) pprof_test.go:165: runtime/pprof_test.cpuHog1: 10 pprof_test.go:165: ...
10 years, 6 months ago (2014-09-01 14:25:14 UTC) #2
dvyukov
https://codereview.appspot.com/140110043/diff/40001/src/pkg/runtime/pprof/pprof_test.go File src/pkg/runtime/pprof/pprof_test.go (right): https://codereview.appspot.com/140110043/diff/40001/src/pkg/runtime/pprof/pprof_test.go#newcode29 src/pkg/runtime/pprof/pprof_test.go:29: // thread is scheduled during the 1000ms period. s/1000ms/1 ...
10 years, 6 months ago (2014-09-01 14:26:36 UTC) #3
dvyukov
This test will now run for 2 seconds, which is long for short tests. Can ...
10 years, 6 months ago (2014-09-01 14:28:04 UTC) #4
brainman
> This test will now run for 2 seconds, which is long for short tests. ...
10 years, 6 months ago (2014-09-02 00:42:47 UTC) #5
brainman
Hello dvyukov@google.com (cc: golang-codereviews@googlegroups.com), Please take another look.
10 years, 6 months ago (2014-09-02 00:43:01 UTC) #6
rsc
LGTM but I think there is something we don't understand about thread scheduling on windows. ...
10 years, 6 months ago (2014-09-02 03:04:57 UTC) #7
rsc
*** Submitted as https://code.google.com/p/go/source/detail?r=17b5fc2aa130 *** runtime/pprof: adjust cpuHogger so that tests pass on windows builders ...
10 years, 6 months ago (2014-09-02 03:06:24 UTC) #8
brainman
10 years, 6 months ago (2014-09-03 02:46:33 UTC) #9
Message was sent while issue was closed.
On 2014/09/02 03:04:57, rsc wrote:
> 
> I think there is something we don't understand about thread scheduling on
> windows. If we have two runnable threads, how is it that one might run for a
> full second before the other gets a chance?

I did some investigations on our builders. I think the reason for failure is
simple enough. See CLs 133500043 and 134360043 for details.

Alex
Sign in to reply to this message.

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