From: Dor Laor <dor.laor@qumranet.com>
To: Anthony Liguori <aliguori@us.ibm.com>
Cc: kvm-devel@lists.sourceforge.net,
Marcelo Tosatti <mtosatti@redhat.com>,
Avi Kivity <avi@qumranet.com>
Subject: Re: [PATCH 3/3] Stop dropping so many RX packets in tap (v2)
Date: Mon, 05 May 2008 01:13:49 +0300 [thread overview]
Message-ID: <1209939229.24261.81.camel@localhost.localdomain> (raw)
In-Reply-To: <1209932475-7042-3-git-send-email-aliguori@us.ibm.com>
On Sun, 2008-05-04 at 15:21 -0500, Anthony Liguori wrote:
> Normally, tap always reads packets and simply lets the client drop them if it
> cannot receive them. For virtio-net, this results in massive packet loss and
> about an 80% performance loss in TCP throughput.
>
> This patch modifies qemu_send_packet() to only deliver a packet to a VLAN
> client if it doesn't have a fd_can_read method or the fd_can_read method
> indicates that it can receive packets. We also return a status of whether
> any clients were able to receive the packet.
>
> If no clients were able to receive a packet, we buffer the packet until a
> client indicates that it can receive packets again.
>
> This patch also modifies the tap code to only read from the tap fd if at least
> one client on the VLAN is able to receive a packet.
>
> Finally, this patch changes the tap code to drain all possible packets from
> the tap device when the tap fd is readable.
>
> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Patchset looks good and reduces some nasty hacks. It probably also
improves other devices like e1000 et al.
Cheers,
Dor
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
next prev parent reply other threads:[~2008-05-04 22:13 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-04 20:21 [PATCH 1/3] Revert virtio tap hack (v2) Anthony Liguori
2008-05-04 20:21 ` [PATCH 2/3] Make virtio-net can_receive more accurate (v2) Anthony Liguori
2008-05-04 20:21 ` [PATCH 3/3] Stop dropping so many RX packets in tap (v2) Anthony Liguori
2008-05-04 22:13 ` Dor Laor [this message]
2008-05-04 22:53 ` 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=1209939229.24261.81.camel@localhost.localdomain \
--to=dor.laor@qumranet.com \
--cc=aliguori@us.ibm.com \
--cc=avi@qumranet.com \
--cc=kvm-devel@lists.sourceforge.net \
--cc=mtosatti@redhat.com \
/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