virtualization.lists.linux-foundation.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 net-next 0/2] rx busy polling support for virtio-net
@ 2014-07-23  8:33 Jason Wang
  2014-07-23  8:33 ` [PATCH v3 net-next 1/2] virtio-net: introduce virtnet_receive() Jason Wang
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Jason Wang @ 2014-07-23  8:33 UTC (permalink / raw)
  To: rusty, mst, virtualization, netdev, linux-kernel

Hi all:

This series introduces the support for rx busy polling support. This
was useful for reduing the latency for a kvm guest. Instead of
introducing new states and spinlocks, this series re-uses NAPI state
to synchonrize between NAPI and busy polling. This grealy simplified
the codes and reduce the overheads of spinlocks for normal NAPI fast
path.

Test was done between a kvm guest and an external host. Two hosts were
connected through 40gb mlx4 cards. With both busy_poll and  busy_read
are set to 50 in guest, 1 byte netperf tcp_rr shows 127% improvement:
transaction rate was increased from 8353.33 to 18966.87.

Changes from V2:
- Avoid introducing new states and spinlocks by reusuing the NAPI
  state
- Fix the budget calculation in virtnet_poll()
- Drop patch 1/3 from V2 since it was useless

Changes from V1:
- split the patch info smaller ones
- add more details about test setup/configuration

Jason Wang (2):
  virtio-net: introduce virtnet_receive()
  virtio-net: rx busy polling support

 drivers/net/virtio_net.c | 67 +++++++++++++++++++++++++++++++++++++++++++-----
 1 file changed, 61 insertions(+), 6 deletions(-)

-- 
1.8.3.1

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-07-23 22:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-23  8:33 [PATCH v3 net-next 0/2] rx busy polling support for virtio-net Jason Wang
2014-07-23  8:33 ` [PATCH v3 net-next 1/2] virtio-net: introduce virtnet_receive() Jason Wang
2014-07-23  8:33 ` [PATCH v3 net-next 2/2] virtio-net: rx busy polling support Jason Wang
2014-07-23 22:12 ` [PATCH v3 net-next 0/2] rx busy polling support for virtio-net David Miller

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).