From: Mark Nelson <mnelson@redhat.com>
To: Sage Weil <sweil@redhat.com>
Cc: ceph-devel@vger.kernel.org
Subject: Re: -fno-omit-frame-pointer
Date: Sat, 21 Feb 2015 17:27:05 -0600 [thread overview]
Message-ID: <54E91449.4090000@redhat.com> (raw)
In-Reply-To: <alpine.DEB.2.00.1502211252520.27009@cobra.newdream.net>
On 02/21/2015 03:43 PM, Sage Weil wrote:
> Hey Mark,
>
> I just watched Brendan Gregg's talk at SCALE (which was extremely good)
> and one of the things he mentioned is the importance of
> -fno-omit-frame-pointer. I notice we are setting it via do_autogen.sh
> (i.e., for developers) but not in the production builds. Should we be?
> I think it's important to be able to get meaningful callgraph output from
> production deployments and I suspect there is minimal performance impact.
>
> http://www.slideshare.net/brendangregg/scale2015-linux-perfprofiling
>
> sage
>
Ah, Brendan Gregg is quite good. He moved over to the Linux world when
he went to work for Netflix after being a Solaris guy forever at Joyent.
He's probably one of the most knowledgeable people in the world
regarding dtrace and in a short time has become very good with perf as
well. He wrote a very nice perf cheat sheet here:
http://www.brendangregg.com/perf.html
I didn't realize our production builds skip -fno-omit-frame-pointer. I
swear we looked at that like 2 years ago and enabled it to try and make
perf show symbols properly. Maybe I'm misremembering. The performance
impact discussion is interesting. I've seen some people say up to 20%
with GCC but others say it really doesn't matter. I'd be curious to
hear what people's opinions these days are.
I've still had the best luck using DWARF though. I was able to get much
better stack traces with it. A semi-modern kernel with libunwind
support in perf is needed though. I just checked one of our RHEL7 and
it sadly doesn't look like they have it linked. We really should hassle
them to get this in. Perf on our Ubuntu 14.04 does use libunwind,
primarily due to the kernel bug we submitted:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1248289
Mark
next prev parent reply other threads:[~2015-02-21 23:27 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-21 21:43 -fno-omit-frame-pointer Sage Weil
2015-02-21 22:09 ` -fno-omit-frame-pointer Alex Elsayed
2015-02-21 23:27 ` Mark Nelson [this message]
2015-02-23 18:28 ` -fno-omit-frame-pointer Sage Weil
2015-02-23 18:30 ` -fno-omit-frame-pointer Sage Weil
2015-02-23 21:35 ` -fno-omit-frame-pointer Mark Nelson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=54E91449.4090000@redhat.com \
--to=mnelson@redhat.com \
--cc=ceph-devel@vger.kernel.org \
--cc=sweil@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.