All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jason Wang <jasowang@redhat.com>
To: Greg Kurz <groug@kaod.org>
Cc: famz@redhat.com, qemu-devel@nongnu.org,
	"Michael S. Tsirkin" <mst@redhat.com>
Subject: Re: [Qemu-devel] [PATCH V3] tap: vhost busy polling support
Date: Wed, 8 Jun 2016 14:43:01 +0800	[thread overview]
Message-ID: <5757BE75.7040204@redhat.com> (raw)
In-Reply-To: <20160607193904.3df382b4@bahia.huguette.org>



On 2016年06月08日 01:39, Greg Kurz wrote:
> On Tue, 31 May 2016 12:43:11 +0800
> Jason Wang<jasowang@redhat.com>  wrote:
>
>> >On 2016年05月31日 12:19, Michael S. Tsirkin wrote:
>>> > >On Tue, May 31, 2016 at 11:04:18AM +0800, Jason Wang wrote:
>>>> > >>
>>>> > >>On 2016年05月31日 02:07, Michael S. Tsirkin wrote:
>>>>> > >>>On Thu, Apr 07, 2016 at 12:56:24PM +0800, Jason Wang wrote:
>>>>>> > >>>>This patch add the capability of basic vhost net busy polling which is
>>>>>> > >>>>supported by recent kernel. User could configure the maximum number of
>>>>>> > >>>>us that could be spent on busy polling through a new property of tap
>>>>>> > >>>>"vhost-poll-us".
>>>>> > >>>I applied this but now I had a thought - should we generalize this to
>>>>> > >>>"poll-us"? Down the road tun could support busy olling just like
>>>>> > >>>sockets do.
>>>> > >>Looks two different things. Socket busy polling depends on the value set by
>>>> > >>sysctl or SO_BUSY_POLL, which should be transparent to qemu.
>>> > >This is what I am saying.  qemu can set SO_BUSY_POLL if poll-us is specified,
>>> > >can it not?
>> >
>> >With CAP_NET_ADMIN, it can. Without it, it can only decrease the value.
>> >
>>> > >   Onthe one hand this suggests a more generic name
>>> > >for the option.
>> >
>> >I see, but there're some differences:
>> >
>> >- socket busy polling only poll for rx, vhost busy polling poll for both
>> >tx and rx.
>> >- vhost busy polling does not depends on socket busy polling, it can
>> >work with socket busy polling disabled.
>> >
> FWIW since these are different things, maybe the user would want to use
> both (?)... in which case a single API could be painful.
>

Yes, but since technically we can do busy polling from qemu, so I will 
post a patch on top to change the name to "poll-us" instead. For now, we 
will ignore this for userspace network, we may want to add it in the future.

Thanks

      reply	other threads:[~2016-06-08  6:43 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-07  4:56 [Qemu-devel] [PATCH V3] tap: vhost busy polling support Jason Wang
2016-04-07 16:07 ` Greg Kurz
2016-05-23  9:29   ` Greg Kurz
2016-05-30 18:07 ` Michael S. Tsirkin
2016-05-31  3:04   ` Jason Wang
2016-05-31  4:19     ` Michael S. Tsirkin
2016-05-31  4:43       ` Jason Wang
2016-06-07 17:39         ` Greg Kurz
2016-06-08  6:43           ` Jason Wang [this message]

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=5757BE75.7040204@redhat.com \
    --to=jasowang@redhat.com \
    --cc=famz@redhat.com \
    --cc=groug@kaod.org \
    --cc=mst@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.