FAQ
My attempt at profiling seems to have dropped almost 2/3 of the data points.
I have less confidence in the remaining results.
I have a program that takes 17 minutes of cpu time, and I would like to
improve on that.

HOW do I get profiling to not drop so much data?
All I could find on the web was an excuse about 'slow writers'.

--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Search Discussions

  • Dave Cheney at Sep 27, 2013 at 12:30 pm
    Which operating system are you using ?
    On 27 Sep 2013, at 22:28, RickyS wrote:

    My attempt at profiling seems to have dropped almost 2/3 of the data points.
    I have less confidence in the remaining results.
    I have a program that takes 17 minutes of cpu time, and I would like to improve on that.

    HOW do I get profiling to not drop so much data?
    All I could find on the web was an excuse about 'slow writers'.
    --
    You received this message because you are subscribed to the Google Groups "golang-nuts" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/groups/opt_out.
    --
    You received this message because you are subscribed to the Google Groups "golang-nuts" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/groups/opt_out.
  • RickyS at Sep 27, 2013 at 12:32 pm
    Linux sda8 3.8.0-30-generic #44-Ubuntu SMP Thu Aug 22 20:52:24 UTC 2013
    x86_64 GNU/Linux

    On Friday, September 27, 2013 3:30:44 PM UTC+3, Dave Cheney wrote:

    Which operating system are you using ?
    --
    You received this message because you are subscribed to the Google Groups "golang-nuts" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/groups/opt_out.
  • Dmitry Vyukov at Sep 27, 2013 at 6:03 pm

    On Fri, Sep 27, 2013 at 5:28 AM, RickyS wrote:
    My attempt at profiling seems to have dropped almost 2/3 of the data points.
    What exactly do you mean? How do you know that something was dropped?
    What profiler are you using?

    I have less confidence in the remaining results.
    I have a program that takes 17 minutes of cpu time, and I would like to
    improve on that.

    HOW do I get profiling to not drop so much data?
    All I could find on the web was an excuse about 'slow writers'.

    --
    You received this message because you are subscribed to the Google Groups
    "golang-nuts" group.
    To unsubscribe from this group and stop receiving emails from it, send an
    email to golang-nuts+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/groups/opt_out.
    --
    You received this message because you are subscribed to the Google Groups "golang-nuts" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/groups/opt_out.
  • RickyS at Sep 28, 2013 at 7:26 pm
    Go runtime/pprof is the profiler.
    Then: go tool pprof program <profile output file>

    top
    Total: 102650 samples
        62464 60.9% 60.9% 62464 60.9% *LostProfileData*
        27033 26.3% 87.2% 27033 26.3% cypher.Score3
         6266 6.1% 93.3% 6424 6.3% cypher.Data2Frequencies
         5189 5.1% 98.3% 6313 6.2% cypher.OneByteXor
          867 0.8% 99.2% 867 0.8% runtime.memclr
          116 0.1% 99.3% 183 0.2% scanblock
          115 0.1% 99.4% 115 0.1% cypher.AbsFrequencies
           81 0.1% 99.5% 83 0.1% cypher.RmsFrequencies
           64 0.1% 99.6% 64 0.1% runtime.xchg
           52 0.1% 99.6% 68 0.1% cypher.TransposeBlocks

    On Friday, September 27, 2013 9:02:34 PM UTC+3, Dmitry Vyukov wrote:

    ...
    What exactly do you mean? How do you know that something was dropped?
    What profiler are you using?

    --
    You received this message because you are subscribed to the Google Groups "golang-nuts" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/groups/opt_out.
  • Miroslav Puda at Sep 28, 2013 at 11:32 pm
    From src/pkg/runtime/cpuprof.c:
    // LostProfileData is a no-op function used in profiles
    // to mark the number of profiling stack traces that were
    // discarded due to slow data writers.
    static void
    LostProfileData(void)
    {
    }

    --
    You received this message because you are subscribed to the Google Groups "golang-nuts" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/groups/opt_out.
  • RickyS at Sep 29, 2013 at 3:54 pm
    Yes, I am aware of the 'slow data writers' comment in the code. The
    problems are that I don't know how much to trust my results, nor do I know
    how to reduce the LostProfileData number, or even if it's possible.
    On Sunday, September 29, 2013 2:32:05 AM UTC+3, Miroslav Puda wrote:

    From src/pkg/runtime/cpuprof.c:
    // LostProfileData is a no-op function used in profiles
    // to mark the number of profiling stack traces that were
    // discarded due to slow data writers.
    ...
    --
    You received this message because you are subscribed to the Google Groups "golang-nuts" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/groups/opt_out.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupgolang-nuts @
categoriesgo
postedSep 27, '13 at 12:28p
activeSep 29, '13 at 3:54p
posts7
users4
websitegolang.org

People

Translate

site design / logo © 2021 Grokbase