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

Issue 12429045: code review 12429045: runtime/pprof: test multithreaded profile, remove OS X ... (Closed)

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

Description

runtime/pprof: test multithreaded profile, remove OS X workarounds This means that pprof will no longer report profiles on OS X. That's unfortunate, but the profiles were often wrong and, worse, it was difficult to tell whether the profile was wrong or not. The workarounds were making the scheduler more complex, possibly caused a deadlock (see issue 5519), and did not actually deliver reliable results. It may be possible for adventurous users to apply a patch to their kernels to get working results, or perhaps having no results will encourage someone to do the work of creating a profiling thread like on Windows. Issue 6047 has details. Fixes issue 5519. Fixes issue 6047.

Patch Set 1 #

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

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

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

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

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

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

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+68 lines, -136 lines) Patch
M src/pkg/runtime/cpuprof.c View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/runtime/lock_futex.c View 1 2 3 4 3 chunks +0 lines, -13 lines 0 comments Download
M src/pkg/runtime/lock_sema.c View 1 2 3 4 3 chunks +0 lines, -13 lines 0 comments Download
M src/pkg/runtime/os_darwin.c View 1 2 3 4 3 chunks +0 lines, -33 lines 0 comments Download
M src/pkg/runtime/os_freebsd.c View 1 2 3 4 1 chunk +0 lines, -6 lines 0 comments Download
M src/pkg/runtime/os_linux.c View 1 2 3 4 1 chunk +0 lines, -6 lines 0 comments Download
M src/pkg/runtime/os_netbsd.c View 1 2 3 4 1 chunk +0 lines, -6 lines 0 comments Download
M src/pkg/runtime/os_openbsd.c View 1 2 3 4 1 chunk +0 lines, -6 lines 0 comments Download
M src/pkg/runtime/os_plan9.c View 1 2 3 4 1 chunk +0 lines, -6 lines 0 comments Download
M src/pkg/runtime/os_windows.c View 1 2 3 4 1 chunk +0 lines, -6 lines 0 comments Download
M src/pkg/runtime/pprof/pprof.go View 1 2 3 4 1 chunk +1 line, -2 lines 0 comments Download
M src/pkg/runtime/pprof/pprof_test.go View 1 2 3 4 5 6 7 5 chunks +66 lines, -16 lines 0 comments Download
M src/pkg/runtime/proc.c View 1 2 3 4 3 chunks +0 lines, -10 lines 0 comments Download
M src/pkg/runtime/runtime.h View 1 2 3 4 1 chunk +0 lines, -10 lines 0 comments Download
M src/pkg/runtime/signal_unix.c View 1 2 3 4 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 8
rsc
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go/
11 years, 7 months ago (2013-08-05 20:09:56 UTC) #1
bradfitz
LGTM I like deletions. On Mon, Aug 5, 2013 at 1:09 PM, <rsc@golang.org> wrote: > ...
11 years, 7 months ago (2013-08-05 20:39:24 UTC) #2
r
I like profiles. Is there any hope of profiles coming back on OS X? -rob
11 years, 7 months ago (2013-08-05 22:19:15 UTC) #3
bradfitz
Issue 6047 discusses that. On Mon, Aug 5, 2013 at 3:18 PM, Rob Pike <r@golang.org> ...
11 years, 7 months ago (2013-08-05 22:22:47 UTC) #4
rsc
On Mon, Aug 5, 2013 at 6:18 PM, Rob Pike <r@golang.org> wrote: > I like ...
11 years, 7 months ago (2013-08-05 22:56:20 UTC) #5
r
A tear. -rob
11 years, 7 months ago (2013-08-05 22:56:23 UTC) #6
rsc
*** Submitted as https://code.google.com/p/go/source/detail?r=0539958c11bb *** runtime/pprof: test multithreaded profile, remove OS X workarounds This means ...
11 years, 7 months ago (2013-08-05 23:49:06 UTC) #7
dvyukov
11 years, 7 months ago (2013-08-06 09:14:37 UTC) #8
Message was sent while issue was closed.
On 2013/08/05 22:56:20, rsc wrote:
> On Mon, Aug 5, 2013 at 6:18 PM, Rob Pike <mailto:r@golang.org> wrote:
> 
> > I like profiles. Is there any hope of profiles coming back on OS X?
> >
> 
> Yes, if only because so many of us depend on OS X. I started this because I
> want to look into the json speed CLs, which means profiling, and I don't
> want to pull out my Linux laptop yet again to do it.
> 
> There are two plausible ways forward.
> 
> I have accurate profiles on my OS X laptop today, for the first time ever.
> I applied a tiny change to the kernel. If nothing terrible happens for the
> next week or so I will post instructions for others to try.


Apple does not allow to view and vote for other people bugs. But the internet
says that they count how many times the same bug was submitted by different
people. People who are interested in profiling on darwin (including me) can
report this bug meaning "I am also interested in this working".
Sign in to reply to this message.

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