All of lore.kernel.org
 help / color / mirror / Atom feed
From: Avi Kivity <avi@redhat.com>
To: Eric Dumazet <eric.dumazet@gmail.com>
Cc: ben@iagu.net, KVM list <kvm@vger.kernel.org>
Subject: Re: KVM lock contention on 48 core AMD machine
Date: Mon, 21 Mar 2011 19:02:33 +0200	[thread overview]
Message-ID: <4D8784A9.8040303@redhat.com> (raw)
In-Reply-To: <1300726498.2884.493.camel@edumazet-laptop>

On 03/21/2011 06:54 PM, Eric Dumazet wrote:
> Le lundi 21 mars 2011 à 22:01 +0545, Ben Nagy a écrit :
> >  >>  On Mon, Mar 21, 2011 at 7:38 PM, Avi Kivity<avi@redhat.com>   wrote:
> >  >>  >   In the future, please post the binary perf.dat.
> >  >>
> >  >>  Hi Avi,
> >  >>
> >  >>  How do I do that?
> >  >
> >  >  'make nconfig' and go to the kernel hacking section.
> >
> >  Imprecise question sorry, I meant how do I get the perf.dat not how do
> >  I disable the debugging.
> >
> >  On the non-debug kernel: Linux eax 2.6.38-7-server #36-Ubuntu SMP Fri
> >  Mar 18 23:36:13 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux
> >
> >             150512.00 67.8% __ticket_spin_lock
> >  [kernel.kallsyms]
> >              11126.00  5.0% memcmp_pages
> >  [kernel.kallsyms]
> >               9563.00  4.3% native_safe_halt
> >  [kernel.kallsyms]
> >               8965.00  4.0% svm_vcpu_run
> >  /lib/modules/2.6.38-7-server/kernel/arch/x86/kvm/kvm-amd.ko
> >               6489.00  2.9% tg_load_down
> >  [kernel.kallsyms]
> >               4676.00  2.1% kvm_get_cs_db_l_bits
> >  /lib/modules/2.6.38-7-server/kernel/arch/x86/kvm/kvm.ko
> >               1931.00  0.9% load_balance_fair
> >  [kernel.kallsyms]
> >               1917.00  0.9% ktime_get
> >  [kernel.kallsyms]
> >               1624.00  0.7% walk_tg_tree.clone.129
> >  [kernel.kallsyms]
> >               1542.00  0.7% find_busiest_group
> >  [kernel.kallsyms]
> >               1326.00  0.6% find_next_bit
> >  [kernel.kallsyms]
> >                673.00  0.3% lock_hrtimer_base.clone.25
> >  [kernel.kallsyms]
> >                624.00  0.3% copy_user_generic_string    [kernel.kallsyms]
> >
> >  top now says:
> >
> >  top - 00:11:35 up 22 min,  4 users,  load average: 0.11, 6.15, 7.78
> >  Tasks: 491 total,   3 running, 488 sleeping,   0 stopped,   0 zombie
> >  Cpu(s):  0.9%us, 15.4%sy,  0.0%ni, 83.7%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st
> >  Mem:  99068660k total, 70831760k used, 28236900k free,    10036k buffers
> >  Swap:  2438140k total,  2173652k used,   264488k free,  3396144k cached
> >
> >  With average 'resting cpu' per idle guest 8%, 96 guests running.
> >
> >  Is this as good as I am going to get? It seems like I can't really
> >  debug that lock contention without blowing stuff up because of the
> >  load of the lock debugging...
> >
> >  Don't know if I mentioned this before, but those guests are each
> >  pinned to a cpu (cpu guestnum%48) with taskset.
> >
> >  Cheers,
>
> It seems you hit idr_lock contention (used in kernel/posix-timers.c)
>

Any ideas on how to fix it?  We could pre-allocate IDs and batch them in 
per-cpu caches, but it seems like a lot of work.

-- 
error compiling committee.c: too many arguments to function


  reply	other threads:[~2011-03-21 17:02 UTC|newest]

Thread overview: 46+ 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
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 [this message]
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-03-22 10:35                                   ` Avi Kivity
2011-04-04  3:30                                   ` Ben Nagy
2011-04-04  7:18                                     ` Avi Kivity
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:16                                       ` Avi Kivity
2011-04-05  8:48                                   ` Peter Zijlstra
2011-04-05  8:56                                     ` Avi Kivity
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:08                                           ` Avi Kivity
2011-04-05  9:50                                         ` Ben Nagy
2011-04-05  8:56                                     ` Mike Galbraith
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
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=4D8784A9.8040303@redhat.com \
    --to=avi@redhat.com \
    --cc=ben@iagu.net \
    --cc=eric.dumazet@gmail.com \
    --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 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.