kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@web.de>
To: Avi Kivity <avi@redhat.com>
Cc: "Alexander Graf" <agraf@suse.de>,
	"Michael Tokarev" <mjt@tls.msk.ru>,
	"René Pfeiffer" <lynx@luchs.at>,
	"kvm@vger.kernel.org" <kvm@vger.kernel.org>
Subject: Re: I/O performance of VirtIO
Date: Mon, 26 Oct 2009 09:12:44 +0100	[thread overview]
Message-ID: <4AE559FC.4060400@web.de> (raw)
In-Reply-To: <4AE3E5B0.5080700@redhat.com>

[-- Attachment #1: Type: text/plain, Size: 1155 bytes --]

Avi Kivity wrote:
> On 10/23/2009 12:06 AM, Alexander Graf wrote:
>>
>> Am 22.10.2009 um 18:29 schrieb Avi Kivity <avi@redhat.com>:
>>
>>> On 10/13/2009 08:35 AM, Jan Kiszka wrote:
>>>> It can be particularly slow if you use in-kernel irqchips and the
>>>> default NIC emulation (up to 10 times slower), some effect I always
>>>> wanted to understand on a rainy day. So, when you actually want -net
>>>> user, try -no-kvm-irqchip.
>>>>
>>>
>>> This might be due to a missing SIGIO or SIGALRM; -no-kvm-irqchip
>>> generates a lot of extra signals and thus polling opportunities.
>>
>> Isn't that what dedicated io threads are supposed to solve?
>>
> 
> No.  Dedicated I/O threads provide parallelism.  All latency needs is to
> have SIGIO sent on all file descriptors (or rather, in qemu-kvm with
> irqchip, to have all file descriptors in the poll() call).
> 
> Jan, does slirp add new connections to the select set?
> 

It should do so in slirp_select_fill (it iterates over all TCP&UDP
sockets of all instances). I think without doing this, slirp wouldn't
receive a single bit at all (no activity without FD_ISSET).

Jan


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 257 bytes --]

  reply	other threads:[~2009-10-26  8:12 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-12 20:49 I/O performance of VirtIO René Pfeiffer
2009-10-12 21:45 ` Michael Tokarev
2009-10-12 21:54   ` René Pfeiffer
2009-10-13  6:35   ` Jan Kiszka
2009-10-22 16:29     ` Avi Kivity
2009-10-22 22:06       ` Alexander Graf
2009-10-25  5:44         ` Avi Kivity
2009-10-26  8:12           ` Jan Kiszka [this message]
2009-10-26  8:35             ` Avi Kivity

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=4AE559FC.4060400@web.de \
    --to=jan.kiszka@web.de \
    --cc=agraf@suse.de \
    --cc=avi@redhat.com \
    --cc=kvm@vger.kernel.org \
    --cc=lynx@luchs.at \
    --cc=mjt@tls.msk.ru \
    /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).