[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <49D49986.3060303@novell.com>
Date: Thu, 02 Apr 2009 06:55:02 -0400
From: Gregory Haskins <ghaskins@...ell.com>
To: Avi Kivity <avi@...hat.com>
CC: Herbert Xu <herbert@...dor.apana.org.au>, anthony@...emonkey.ws,
andi@...stfloor.org, linux-kernel@...r.kernel.org, agraf@...e.de,
pmullaney@...ell.com, pmorreale@...ell.com, rusty@...tcorp.com.au,
netdev@...r.kernel.org, kvm@...r.kernel.org
Subject: Re: [RFC PATCH 00/17] virtual-bus
Avi Kivity wrote:
> Herbert Xu wrote:
>> Avi Kivity <avi@...hat.com> wrote:
>>
>>> virtio is already non-kvm-specific (lguest uses it) and
>>> non-pci-specific (s390 uses it).
>>>
>>
>> I think Greg's work shows that putting the backend in the kernel
>> can dramatically reduce the cost of a single guest->host transaction.
>> I'm sure the same thing would work for virtio too.
>>
>
> Virtio suffers because we've had no notification of when a packet is
> actually submitted. With the notification, the only difference should
> be in the cost of a kernel->user switch, which is nowhere nearly as
> dramatic.
>
>>> If you have a good exit mitigation scheme you can cut exits by a
>>> factor of 100; so the userspace exit costs are cut by the same
>>> factor. If you have good copyless networking APIs you can cut the
>>> cost of copies to zero (well, to the cost of get_user_pages_fast(),
>>> but a kernel solution needs that too).
>>>
>>
>> Given the choice of having to mitigate or not having the problem
>> in the first place, guess what I would prefer :)
>>
>
> There is no choice. Exiting from the guest to the kernel to userspace
> is prohibitively expensive, you can't do that on every packet.
>
Now you are making my point ;) This is part of the cost of your
signaling path, and it directly adds to your latency time. You can't
buffer packets here if the guest is only going to send one and wait for
a response and expect that to perform well. And this is precisely what
drove me to look at avoiding going back to userspace in the first place.
-Greg
Download attachment "signature.asc" of type "application/pgp-signature" (258 bytes)
Powered by blists - more mailing lists