From: Anthony Liguori <anthony@codemonkey.ws>
To: qemu-devel@nongnu.org
Cc: Aurelien Jarno <aurelien@aurel32.net>
Subject: Re: [Qemu-devel] [4341] qemu: generate signals on tap I/O
Date: Mon, 05 May 2008 17:50:51 -0500 [thread overview]
Message-ID: <481F8F4B.5030007@codemonkey.ws> (raw)
In-Reply-To: <481F8D57.40500@flac.kalibalik.dk>
Anders wrote:
> Aurelien Jarno wrote:
>
>> That's why I reverted that commit, it was for my local tree only, I
>> committed it accidentally (along with a few other patches).
>
> Ah, okay. I only read the subject of your reverts, which did not
> mention 4341.
>
>>> I posted a more complete implementation a few weeks ago, anything wrong
>>> with it?
>>>
>>> http://thread.gmane.org/gmane.comp.emulators.qemu/24567
>>
>> People saying it is not the way to go, and I have still haven't decided
>> myself if it is a correct solution or not.
>>
>
> The current code is also not a correct solution.
>
> Well, I will just keep it in my local tree.
BTW, the biggest problem with tap networking in QEMU seems to be packet
loss. The fd_can_read handler is completely ignored for tap which means
that if the device isn't ready to receive a packet, the packet is simply
dropped.
I have a patch that fixes this but the only driver that has a proper
fd_can_read handler right now is virtio-net. I plan on including this
tap fix in my next round of virtio patches.
Addressing the packet loss issue improves TCP streaming performance by
4x. In contrast, eliminating the copy in the virtio-net device only
improves performance by about 10% (although it will probably be a lot
more when tun/tap supports zero-copy).
Regards,
Anthony Liguori
>
> Cheers,
> Anders.
>
>
next prev parent reply other threads:[~2008-05-05 22:50 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-05 21:26 [Qemu-devel] [4341] qemu: generate signals on tap I/O Aurelien Jarno
2008-05-05 22:06 ` Anders
2008-05-05 22:15 ` Aurelien Jarno
2008-05-05 22:42 ` Anders
2008-05-05 22:44 ` Anthony Liguori
2008-05-05 22:49 ` Aurelien Jarno
2008-05-05 22:51 ` Aurelien Jarno
2008-05-05 22:57 ` Anthony Liguori
2008-05-05 23:00 ` Anthony Liguori
2008-05-05 23:12 ` Anders
2008-05-06 2:48 ` Anthony Liguori
2008-05-06 8:35 ` Anders
2008-05-05 22:50 ` Anthony Liguori [this message]
2008-05-05 22:43 ` Anthony Liguori
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=481F8F4B.5030007@codemonkey.ws \
--to=anthony@codemonkey.ws \
--cc=aurelien@aurel32.net \
--cc=qemu-devel@nongnu.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;
as well as URLs for NNTP newsgroup(s).