From: Joerg Roedel <joro@8bytes.org>
To: Ben Nagy <ben@iagu.net>
Cc: kvm@vger.kernel.org
Subject: Re: KVM lock contention on 48 core AMD machine
Date: Fri, 18 Mar 2011 13:30:31 +0100 [thread overview]
Message-ID: <20110318123031.GB6066@8bytes.org> (raw)
In-Reply-To: <AANLkTikZZ4MXZjx_+6u-vKVSgxULQo2BkQKRO6K_vzFy@mail.gmail.com>
Hi Ben,
On Fri, Mar 18, 2011 at 07:02:40PM +0700, Ben Nagy wrote:
> Here's some output from perf top while the system is locky:
> 263832.00 46.3% delay_tsc
> [kernel.kallsyms]
> 231491.00 40.7% __ticket_spin_trylock
> [kernel.kallsyms]
> 14609.00 2.6% native_read_tsc
> [kernel.kallsyms]
> 9414.00 1.7% do_raw_spin_lock
> [kernel.kallsyms]
> 8041.00 1.4% local_clock
> [kernel.kallsyms]
> 6081.00 1.1% native_safe_halt
> [kernel.kallsyms]
> 3901.00 0.7% __lock_acquire.clone.18
> [kernel.kallsyms]
> 3665.00 0.6% do_raw_spin_unlock
> [kernel.kallsyms]
> 3042.00 0.5% __delay
> [kernel.kallsyms]
> 2484.00 0.4% lock_contended
> [kernel.kallsyms]
> 2484.00 0.4% sched_clock_cpu
> [kernel.kallsyms]
> 1906.00 0.3% sched_clock_local
> [kernel.kallsyms]
> 1419.00 0.2% lock_acquire
> [kernel.kallsyms]
> 1332.00 0.2% lock_release
> [kernel.kallsyms]
> 987.00 0.2% tg_load_down
> [kernel.kallsyms]
> 895.00 0.2% _raw_spin_lock_irqsave
> [kernel.kallsyms]
> 686.00 0.1% find_busiest_group
> [kernel.kallsyms]
Can you try to run
# perf record -a -g
for a while when your VMs are up and unresponsive? This will monitor the
whole system and collects stack-traces. When you have done so
please run
# perf report > locks.txt
and upload the locks.txt file somewhere. The result might give us some
glue where the high lock-contention comes from.
Regards,
Joerg
next prev parent reply other threads:[~2011-03-18 12:39 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-18 12:02 KVM lock contention on 48 core AMD machine Ben Nagy
2011-03-18 12:30 ` Joerg Roedel [this message]
2011-03-19 4:45 ` Ben Nagy
2011-03-21 9:50 ` Avi Kivity
2011-03-21 11:43 ` Ben Nagy
2011-03-21 13:41 ` Ben Nagy
2011-03-21 13:53 ` Avi Kivity
[not found] ` <AANLkTikWQS281kTtJ32-qo5U+w_BAak7qUwVhUQgOxxv@mail.gmail.com>
2011-03-21 15:50 ` Avi Kivity
2011-03-21 16:16 ` Ben Nagy
2011-03-21 16:33 ` Avi Kivity
2011-03-21 16:54 ` Eric Dumazet
2011-03-21 17:02 ` Avi Kivity
2011-03-21 17:12 ` Eric Dumazet
2011-03-21 18:12 ` Ben Nagy
2011-03-21 22:27 ` [RFC] posix-timers: RCU conversion Eric Dumazet
2011-03-22 7:09 ` [PATCH] " Eric Dumazet
2011-03-22 8:59 ` Ben Nagy
2011-03-22 10:35 ` Avi Kivity
2011-04-04 3:30 ` Ben Nagy
2011-04-04 7:18 ` Avi Kivity
2011-04-05 7:49 ` Peter Zijlstra
2011-04-05 8:16 ` Avi Kivity
2011-04-05 8:48 ` Peter Zijlstra
2011-04-05 8:56 ` Avi Kivity
2011-04-05 9:03 ` Peter Zijlstra
2011-04-05 9:08 ` Avi Kivity
2011-04-05 9:50 ` Ben Nagy
2011-04-05 8:56 ` Mike Galbraith
2011-03-21 18:14 ` KVM lock contention on 48 core AMD machine Avi Kivity
2011-03-21 18:48 ` Michael Tokarev
2011-03-21 18:53 ` Avi Kivity
2011-03-18 12:44 ` Stefan Hajnoczi
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=20110318123031.GB6066@8bytes.org \
--to=joro@8bytes.org \
--cc=ben@iagu.net \
--cc=kvm@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 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).