From: Mike Galbraith <efault@gmx.de>
To: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Avi Kivity <avi@redhat.com>,
ben@iagu.net, Eric Dumazet <eric.dumazet@gmail.com>,
Thomas Gleixner <tglx@linutronix.de>,
KVM list <kvm@vger.kernel.org>,
linux-kernel <linux-kernel@vger.kernel.org>,
John Stultz <johnstul@us.ibm.com>,
Richard Cochran <richard.cochran@omicron.at>
Subject: Re: [PATCH] posix-timers: RCU conversion
Date: Tue, 05 Apr 2011 10:56:22 +0200 [thread overview]
Message-ID: <1301993782.11410.3.camel@marge.simson.net> (raw)
In-Reply-To: <1301993300.2225.26.camel@twins>
On Tue, 2011-04-05 at 10:48 +0200, Peter Zijlstra wrote:
> On Tue, 2011-03-22 at 12:35 +0200, Avi Kivity wrote:
> >> Here's top with 96 idle guests running:
>
> On some hacked up 2.6.38 kernel...
>
> > > Start of perf report -g
> > > 55.26% kvm [kernel.kallsyms] [k] __ticket_spin_lock
> > > |
> > > --- __ticket_spin_lock
> > > |
> > > |--94.68%-- _raw_spin_lock
> > > | |
> > > | |--97.55%-- double_rq_lock
> > > | | load_balance
> > > | | idle_balance
> > > | | schedule
> > > | | |
> > > | | |--60.56%-- schedule_hrtimeout_range_clock
> > > | | | schedule_hrtimeout_range
> > > | | | poll_schedule_timeout
> > > | | | do_select
> > > | | | core_sys_select
> > > | | | sys_select
> > > | | | system_call_fastpath
>
> Looks like your workload and idle balancing don't much like each-other.
>
> What I think is happening is that all your 'idle' qemu thingies keep
> waking up frequently and because you've got like twice the number of
> qemu instances as you've got cpus there's a fair chance you'll have a
> cpu with a pending task while another one goes idle.
>
> (Why does qemu keep waking if its idle? broken NOHZ?)
>
> So idle balancing is called when the cpu goes idle (context switch to
> the idle thread) and tries to steal a pending task from another cpu,
> clearly it keeps finding these tasks otherwise it wouldn't try to take
> that lock.
>
> Mike, you build in some idle balance throttle logic, but that seems
> defeated here (possible because it keeps finding pending tasks to
> migrate? still need morning juice).
Hm. Maybe someone set sysctl_sched_migration_cost to 0, or wakeups
aren't arriving that frequently is all that pops to mind atm.
-Mike
next prev parent reply other threads:[~2011-04-05 8:56 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <AANLkTikZZ4MXZjx_+6u-vKVSgxULQo2BkQKRO6K_vzFy@mail.gmail.com>
[not found] ` <20110318123031.GB6066@8bytes.org>
[not found] ` <AANLkTin2k1ZSLa0NG6pKBvHYnKEV21t8pEqzeJWNn_rR@mail.gmail.com>
[not found] ` <4D871F6C.40207@redhat.com>
[not found] ` <AANLkTintxnKRQ4rD4Wo8_MHU4yJVzYaRhR=GjnDMGwNj@mail.gmail.com>
[not found] ` <AANLkTin8ZoUAVR2ajoV6cBFiUSe_Dof0_k60dcAGW3r-@mail.gmail.com>
[not found] ` <4D875842.9050308@redhat.com>
[not found] ` <AANLkTikWQS281kTtJ32-qo5U+w_BAak7qUwVhUQgOxxv@mail.gmail.com>
[not found] ` <4D8773AA.8030408@redhat.com>
[not found] ` <AANLkTin3Si1EAa=Va6f45vW-tYQ1Yk8dETXpHJHHHkxe@mail.gmail.com>
[not found] ` <1300726498.2884.493.camel@edumazet-laptop>
[not found] ` <4D8784A9.8040303@redhat.com>
[not found] ` <1300727545.2884.513.camel@edumazet-laptop>
[not found] ` <AANLkTinn7OKKKvBYe7KWsrReuYDdma5+8gHJHXdCacDY@mail.gmail.com>
2011-03-21 22:27 ` [RFC] " 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 [this message]
2011-04-03 16:54 ` Eric Dumazet
2011-04-04 18:08 ` john stultz
2011-04-04 19:47 ` Eric Dumazet
2011-04-05 14:48 ` Oleg Nesterov
2011-04-05 15:18 ` [PATCH v2] " Eric Dumazet
2011-04-05 15:43 ` Oleg Nesterov
2011-05-16 15:10 ` Avi Kivity
2011-05-16 15:30 ` Eric Dumazet
2011-04-08 18:28 ` [PATCH] " Paul E. McKenney
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=1301993782.11410.3.camel@marge.simson.net \
--to=efault@gmx.de \
--cc=a.p.zijlstra@chello.nl \
--cc=avi@redhat.com \
--cc=ben@iagu.net \
--cc=eric.dumazet@gmail.com \
--cc=johnstul@us.ibm.com \
--cc=kvm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=richard.cochran@omicron.at \
--cc=tglx@linutronix.de \
/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
Powered by JetHome