Re: [PATCH] vhost-net: set packet weight of tx polling to 2 * vq size

2018-04-08 Thread Michael S. Tsirkin
On Mon, Apr 09, 2018 at 04:09:20AM +, haibinzhang(张海斌) wrote: > > > On Fri, Apr 06, 2018 at 08:22:37AM +, haibinzhang(张海斌) wrote: > > > handle_tx will delay rx for tens or even hundreds of milliseconds when tx > > > busy > > > polling udp packets with small length(e.g. 1byte udp payload),

Re: [PATCH] vhost-net: set packet weight of tx polling to 2 * vq size

2018-04-08 Thread 张海斌
> On Fri, Apr 06, 2018 at 08:22:37AM +, haibinzhang(张海斌) wrote: > > handle_tx will delay rx for tens or even hundreds of milliseconds when tx > > busy > > polling udp packets with small length(e.g. 1byte udp payload), because > > setting > > VHOST_NET_WEIGHT takes into account only sent-byte

Re: [PATCH] vhost-net: set packet weight of tx polling to 2 * vq size

2018-04-08 Thread Michael S. Tsirkin
On Fri, Apr 06, 2018 at 08:22:37AM +, haibinzhang(张海斌) wrote: > handle_tx will delay rx for tens or even hundreds of milliseconds when tx busy > polling udp packets with small length(e.g. 1byte udp payload), because setting > VHOST_NET_WEIGHT takes into account only sent-bytes but no single pac

Re: [PATCH] vhost-net: set packet weight of tx polling to 2 * vq size

2018-04-08 Thread David Miller
From: haibinzhang(张海斌) Date: Fri, 6 Apr 2018 08:22:37 + > handle_tx will delay rx for tens or even hundreds of milliseconds when tx busy > polling udp packets with small length(e.g. 1byte udp payload), because setting > VHOST_NET_WEIGHT takes into account only sent-bytes but no single packet

[PATCH] vhost-net: set packet weight of tx polling to 2 * vq size

2018-04-06 Thread 张海斌
handle_tx will delay rx for tens or even hundreds of milliseconds when tx busy polling udp packets with small length(e.g. 1byte udp payload), because setting VHOST_NET_WEIGHT takes into account only sent-bytes but no single packet length. Ping-Latencies shown below were tested between two Virtual