From: Arnaldo Carvalho de Melo <acme@kernel.org>
To: M Kelly <mark.kelly@lexisnexis.com>
Cc: linux-perf-users@vger.kernel.org
Subject: Re: spin_lock cause ?
Date: Wed, 1 Jun 2016 15:11:53 -0300 [thread overview]
Message-ID: <20160601181153.GU2563@kernel.org> (raw)
In-Reply-To: <loom.20160601T194103-83@post.gmane.org>
Em Wed, Jun 01, 2016 at 05:43:12PM +0000, M Kelly escreveu:
> Milian Wolff <milian.wolff <at> kdab.com> writes:
> > On Wednesday, June 1, 2016 1:05:40 PM CEST Kelly, Mark (RIS-BCT) wrote:
> > > Perf report for our application shows:
> > >
> > > 34.27% [kernel] [k] _spin_lock
> > > 8.19% libjlib.so [.] CLZWExpander::expand(void*)
> > > 4.62% libjhtree.so [.] CMRUCacheOf<CKeyIdAndPos,
> > > 1.97% [kernel] [k] futex_wait_setup
> > > Any suggestion for how to trace where/who is responsible for the
> spin_lock ?
> > For both cases, you should collect backtraces which should allow you
> > to find culprits. Have you tried:
> > perf record --call-graph dwarf
> > or similar?
> ok, I will try it, thank you. I will have to upgrade perf or move to a
> newer kernel ? because dwarf does not seem to be supported on my current
> system. I will report back what it shows once I get it working.
No need for DWARF if you want to know what leads to the spinlock just up
to the syscall layer or if your userland components have frame pointers.
So first try with:
perf record -g ./workload
Or:
perf record -g -p `pidof workload`
- Arnaldo
next prev parent reply other threads:[~2016-06-01 18:11 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-01 17:05 spin_lock cause ? Kelly, Mark (RIS-BCT)
2016-06-01 17:37 ` Milian Wolff
2016-06-01 17:43 ` M Kelly
2016-06-01 18:11 ` Arnaldo Carvalho de Melo [this message]
2016-06-01 18:49 ` M Kelly
2016-06-01 18:53 ` Rick Jones
2016-06-01 19:25 ` M Kelly
2016-06-01 20:24 ` Rick Jones
2016-06-01 21:10 ` David Ahern
2016-06-02 9:18 ` Milian Wolff
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=20160601181153.GU2563@kernel.org \
--to=acme@kernel.org \
--cc=linux-perf-users@vger.kernel.org \
--cc=mark.kelly@lexisnexis.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).