Re: [PATCH V3 2/2] vhost_net: conditionally enable tx polling

2016-06-07 Thread Jason Wang
On 2016年06月07日 20:26, Michael S. Tsirkin wrote: On Wed, Jun 01, 2016 at 01:56:34AM -0400, Jason Wang wrote: We always poll tx for socket, this is sub optimal since: - it will be only used when we exceed the sndbuf of the socket. - since we use two independent polls for tx and vq, this will sl

Re: [PATCH V3 2/2] vhost_net: conditionally enable tx polling

2016-06-07 Thread Michael S. Tsirkin
On Wed, Jun 01, 2016 at 01:56:34AM -0400, Jason Wang wrote: > We always poll tx for socket, this is sub optimal since: > > - it will be only used when we exceed the sndbuf of the socket. > - since we use two independent polls for tx and vq, this will slightly > increase the waitqueue traversing

[PATCH V3 2/2] vhost_net: conditionally enable tx polling

2016-05-31 Thread Jason Wang
We always poll tx for socket, this is sub optimal since: - it will be only used when we exceed the sndbuf of the socket. - since we use two independent polls for tx and vq, this will slightly increase the waitqueue traversing time and more important, vhost could not benefit from commit 9e641