From: M Kelly <mark.kelly@lexisnexis.com>
To: linux-perf-users@vger.kernel.org
Subject: Re: spin_lock cause ?
Date: Wed, 1 Jun 2016 19:25:20 +0000 (UTC) [thread overview]
Message-ID: <loom.20160601T211807-101@post.gmane.org> (raw)
In-Reply-To: 574F2F20.2090007@hpe.com
Rick Jones <rick.jones2 <at> hpe.com> writes:
>
> On 06/01/2016 11:49 AM, M Kelly wrote:
> > So that is helpful.
> > I do not understand the system_call_fastpath->futex->_spin_lock part
> > yet,
> > but that is a separate issue!
>
> Just a guess, but if your application is using threads, contention on
> the synchonrization primitives you use to keep things straight can
> end-up punting to the kernel.
>
> rick jones
>
Hi,
I think I recall you from hp, years ago when I was there :-)
Thanks for the info. I suspect we are too heavy on
pthread_mutex_lock()/unlock()
which could probably produce these call graphs:
--- _spin_lock
|
|--49.11%-- futex_wake
| do_futex
| sys_futex
| system_call_fastpath
| __lll_unlock_wake
|
|--44.31%-- futex_wait_setup
| futex_wait
| do_futex
| sys_futex
| system_call_fastpath
| __lll_lock_wait
thanks again,
mark
next prev parent reply other threads:[~2016-06-01 19:25 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
2016-06-01 18:49 ` M Kelly
2016-06-01 18:53 ` Rick Jones
2016-06-01 19:25 ` M Kelly [this message]
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=loom.20160601T211807-101@post.gmane.org \
--to=mark.kelly@lexisnexis.com \
--cc=linux-perf-users@vger.kernel.org \
/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.