From: Andrew Theurer <habanero@linux.vnet.ibm.com>
To: Avi Kivity <avi@redhat.com>
Cc: kvm-devel <kvm@vger.kernel.org>
Subject: Re: KVM performance vs. Xen
Date: Thu, 30 Apr 2009 08:44:15 -0500 [thread overview]
Message-ID: <49F9AB2F.4020505@linux.vnet.ibm.com> (raw)
In-Reply-To: <49F9A160.3030609@redhat.com>
Avi Kivity wrote:
> Andrew Theurer wrote:
>> Avi Kivity wrote:
>>>>
>>>
>>> What's the typical I/O load (disk and network bandwidth) while the
>>> tests are running?
>> This is average thrgoughput:
>> network: Tx: 79 MB/sec Rx: 5 MB/sec
>
> MB as in Byte or Mb as in bit?
Byte. There are 4 x 1 Gb adapters, each handling about 20 MB/sec or 160
Mbit/sec.
>
>> disk: read: 17 MB/sec write: 40 MB/sec
>
> This could definitely cause the extra load, especially if it's many
> small requests (compared to a few large ones).
I don't have the request sizes at my fingertips, but we have to use a
lot of disks to support this I/O, so I think it's safe to assume there
are a lot more requests than a simple large sequential read/write.
>
>>>> The host hardware:
>>>> A 2 socket, 8 core Nehalem with SMT, and EPT enabled, lots of
>>>> disks, 4 x
>>>> 1 GB Ethenret
>>>
>>> CPU time measurements with SMT can vary wildly if the system is not
>>> fully loaded. If the scheduler happens to schedule two threads on a
>>> single core, both of these threads will generate less work compared
>>> to if they were scheduled on different cores.
>> Understood. Even if at low loads, the scheduler does the right thing
>> and spreads out to all the cores first, once it goes beyond 50% util,
>> the CPU util can climb at a much higher rate (compared to a linear
>> increase in work) because it then starts scheduling 2 threads per
>> core, and each thread can do less work. I have always wanted
>> something which could more accurately show the utilization of a
>> processor core, but I guess we have to use what we have today. I
>> will run again with SMT off to see what we get.
>
> On the other hand, without SMT you will get to overcommit much faster,
> so you'll have scheduling artifacts. Unfortunately there's no good
> answer here (except to improve the SMT scheduler).
>
>>> Yes, it is. If there is a lot of I/O, this might be due to the
>>> thread pool used for I/O.
>> I have a older patch which makes a small change to posix_aio_thread.c
>> by trying to keep the thread pool size a bit lower than it is today.
>> I will dust that off and see if it helps.
>
> Really, I think linux-aio support can help here.
Yes, I think that would work for real block devices, but would that help
for files? I am using real block devices right now, but it would be
nice to also see a benefit for files in a file-system. Or maybe I am
mis-understanding this, and linux-aio can be used on files?
-Andrew
>
>>>
>>> Yes, there is a scheduler tracer, though I have no idea how to
>>> operate it.
>>>
>>> Do you have kvm_stat logs?
>> Sorry, I don't, but I'll run that next time. BTW, I did not notice a
>> batch/log mode the last time I ram kvm_stat. Or maybe it was not
>> obvious to me. Is there an ideal way to run kvm_stat without a
>> curses like output?
>
> You're probably using an ancient version:
>
> $ kvm_stat --help
> Usage: kvm_stat [options]
>
> Options:
> -h, --help show this help message and exit
> -1, --once, --batch run in batch mode for one second
> -l, --log run in logging mode (like vmstat)
> -f FIELDS, --fields=FIELDS
> fields to display (regex)
>
>
next prev parent reply other threads:[~2009-04-30 13:44 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-29 14:41 KVM performance vs. Xen Andrew Theurer
2009-04-29 15:20 ` Nakajima, Jun
2009-04-29 15:33 ` Andrew Theurer
2009-04-30 8:56 ` Avi Kivity
2009-04-30 12:49 ` Andrew Theurer
2009-04-30 13:02 ` Avi Kivity
2009-04-30 13:44 ` Andrew Theurer [this message]
2009-04-30 13:47 ` Anthony Liguori
2009-04-30 13:52 ` Avi Kivity
2009-04-30 13:45 ` Anthony Liguori
2009-04-30 13:53 ` Avi Kivity
2009-04-30 15:08 ` Anthony Liguori
2009-04-30 13:59 ` Avi Kivity
2009-04-30 14:04 ` Andrew Theurer
2009-04-30 15:11 ` Anthony Liguori
2009-04-30 15:19 ` Avi Kivity
2009-04-30 15:59 ` Anthony Liguori
2009-05-01 0:40 ` Andrew Theurer
2009-05-03 16:20 ` Avi Kivity
2009-04-30 15:09 ` Anthony Liguori
2009-04-30 16:41 ` Marcelo Tosatti
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=49F9AB2F.4020505@linux.vnet.ibm.com \
--to=habanero@linux.vnet.ibm.com \
--cc=avi@redhat.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox