Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1424543
| From | David Miller <davem@davemloft.net> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH net-next V2] tun: introduce tx skb ring |
| Date | 2016-06-17 02:10 +0200 |
| Message-ID | <rKPwe-7h2-3@gated-at.bofh.it> (permalink) |
| References | <rKewF-a9-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
From: Jason Wang <jasowang@redhat.com> Date: Wed, 15 Jun 2016 16:38:17 +0800 > We used to queue tx packets in sk_receive_queue, this is less > efficient since it requires spinlocks to synchronize between producer > and consumer. > > This patch tries to address this by: > > - introduce a new mode which will be only enabled with IFF_TX_ARRAY > set and switch from sk_receive_queue to a fixed size of skb > array with 256 entries in this mode. > - introduce a new proto_ops peek_len which was used for peeking the > skb length. > - implement a tun version of peek_len for vhost_net to use and convert > vhost_net to use peek_len if possible. > > Pktgen test shows about 18% improvement on guest receiving pps for small > buffers: > > Before: ~1220000pps > After : ~1440000pps > > The reason why I stick to new mode is because: > > - though resize is supported by skb array, in multiqueue mode, it's > not easy to recover from a partial success of queue resizing. > - tx_queue_len is a user visible feature. > > Signed-off-by: Jason Wang <jasowang@redhat.com> Michael, can you please review this, especially as this is the first user of your new infrastructure :-)
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH net-next V2] tun: introduce tx skb ring Jason Wang <jasowang@redhat.com> - 2016-06-15 10:40 +0200
Re: [PATCH net-next V2] tun: introduce tx skb ring Jamal Hadi Salim <jhs@mojatatu.com> - 2016-06-15 14:00 +0200
Re: [PATCH net-next V2] tun: introduce tx skb ring Jason Wang <jasowang@redhat.com> - 2016-06-16 09:10 +0200
Re: [PATCH net-next V2] tun: introduce tx skb ring Jamal Hadi Salim <jhs@mojatatu.com> - 2016-06-15 14:00 +0200
Re: [PATCH net-next V2] tun: introduce tx skb ring David Miller <davem@davemloft.net> - 2016-06-17 02:10 +0200
Re: [PATCH net-next V2] tun: introduce tx skb ring "Michael S. Tsirkin" <mst@redhat.com> - 2016-06-17 02:50 +0200
Re: [PATCH net-next V2] tun: introduce tx skb ring Jason Wang <jasowang@redhat.com> - 2016-06-17 09:30 +0200
Re: [PATCH net-next V2] tun: introduce tx skb ring "Michael S. Tsirkin" <mst@redhat.com> - 2016-06-22 20:20 +0200
Re: [PATCH net-next V2] tun: introduce tx skb ring Jason Wang <jasowang@redhat.com> - 2016-06-23 07:20 +0200
csiph-web