From: Jason Wang <jasowang@redhat.com>
To: Mike Rapoport <rapoport@il.ibm.com>, linux-kernel@vger.kernel.org
Subject: Re: [PATCH V2 0/3] basic busy polling support for vhost_net
Date: Mon, 25 Jan 2016 11:00:05 +0800 [thread overview]
Message-ID: <56A58FB5.8020101@redhat.com> (raw)
In-Reply-To: <loom.20160124T095157-151@post.gmane.org>
On 01/24/2016 05:00 PM, Mike Rapoport wrote:
> Hi Jason,
>
>> Jason Wang <jasowang <at> redhat.com> writes:
>>
>> Hi all:
>>
>> This series tries to add basic busy polling for vhost net. The idea is
>> simple: at the end of tx/rx processing, busy polling for new tx added
>> descriptor and rx receive socket for a while.
> There were several conciens Michael raised on the Razya's attempt to add
> polling to vhost-net ([1], [2]). Some of them seem relevant for these
> patches as well:
>
> - What happens in overcommit scenarios?
We have an optimization here: busy polling will end if more than one
processes is runnable on local cpu. This was done by checking
single_task_running() in each iteration. So at the worst case, busy
polling should be as fast as or only a minor regression compared to
normal case. You can see this from the last test result.
> - Have you checked the effect of polling on some macro benchmarks?
I'm not sure I get the question. Cover letters shows some benchmark
result of netperf. What do you mean by "macro benchmarks"?
>
>> The maximum number of time (in us) could be spent on busy polling was
>> specified ioctl.
> Although ioctl is definitely more appropriate interface to allow user to
> tune polling, it's still not clear for me how *end user* will interact with
> it and how easy it would be for him/her.
There will be qemu part of the codes for end user. E.g. a vhost_poll_us
parameter for tap like:
-netdev tap,id=hn0,vhost=on,vhost_pull_us=20
Thanks
>
> [1] http://thread.gmane.org/gmane.linux.kernel/1765593
> [2] http://thread.gmane.org/gmane.comp.emulators.kvm.devel/131343
>
> --
> Sincerely yours,
> Mike.
>
>
next prev parent reply other threads:[~2016-01-25 3:00 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-01 6:39 [PATCH V2 0/3] basic busy polling support for vhost_net Jason Wang
2015-12-01 6:39 ` [PATCH V2 1/3] vhost: introduce vhost_has_work() Jason Wang
2015-12-01 6:39 ` Jason Wang
2015-12-01 6:39 ` [PATCH V2 2/3] vhost: introduce vhost_vq_more_avail() Jason Wang
2016-01-20 14:09 ` Michael S. Tsirkin
2016-01-20 14:09 ` Michael S. Tsirkin
2016-01-22 5:43 ` Jason Wang
2016-01-22 5:43 ` Jason Wang
2015-12-01 6:39 ` Jason Wang
2015-12-01 6:39 ` [PATCH V2 3/3] vhost_net: basic polling support Jason Wang
2015-12-01 6:39 ` Jason Wang
2016-01-20 14:35 ` Michael S. Tsirkin
2016-01-20 14:35 ` Michael S. Tsirkin
2016-01-21 2:11 ` Yang Zhang
2016-01-21 2:11 ` Yang Zhang
2016-01-21 5:13 ` Michael S. Tsirkin
2016-01-21 5:13 ` Michael S. Tsirkin
2016-01-21 6:39 ` Yang Zhang
2016-01-21 6:39 ` Yang Zhang
2016-01-22 5:59 ` Jason Wang
2016-01-22 5:59 ` Jason Wang
2016-01-24 9:00 ` [PATCH V2 0/3] basic busy polling support for vhost_net Mike Rapoport
2016-01-25 3:00 ` Jason Wang [this message]
2016-01-25 7:58 ` Michael Rapoport
2016-01-25 8:41 ` Jason Wang
2016-01-25 8:41 ` Jason Wang
-- strict thread matches above, loose matches on Subject: below --
2015-12-01 6:39 Jason Wang
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=56A58FB5.8020101@redhat.com \
--to=jasowang@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=rapoport@il.ibm.com \
/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.