From: "Avi Cohen (A)" <avi.cohen@huawei.com>
To: "Tan, Jianfeng" <jianfeng.tan@intel.com>,
"dpdk-ovs@lists.01.org" <dpdk-ovs@lists.01.org>,
"users@dpdk.org" <users@dpdk.org>
Subject: Re: [dpdk-users] VIRTIO for containers
Date: Mon, 10 Jul 2017 06:49:00 +0000 [thread overview]
Message-ID: <B84047ECBD981D4B93EAE5A6245AA361013C987A@FRAEML521-MBX.china.huawei.com> (raw)
In-Reply-To: <ED26CBA2FAD1BF48A8719AEF02201E365122E47D@SHSMSX103.ccr.corp.intel.com>
> -----Original Message-----
> From: Tan, Jianfeng [mailto:jianfeng.tan@intel.com]
> Sent: Monday, 10 July, 2017 6:28 AM
> To: Avi Cohen (A); dpdk-ovs@lists.01.org; users@dpdk.org
> Subject: RE: VIRTIO for containers
> > [Avi Cohen (A)]
> > Thanks you Jianfeng
> > I've tested it and the performance looks very good compared to native ovs.
> > I have 1 more question:
> > You wrote " there's a vhost kthread to push the data out to user space
> > " - Is that mean a copy from userspace to kernel (and viceversa) or
> > there is a zero-copy mmap like in AF_PACKET which handles TX/RX rings in
> userspace ?
> > Best Regards
> > avi
>
> So far it needs data copy at least from kernel to user path; there's an
> experimental feature, named experimental_zcopytx, to avoid data copy, but
> not very useful due to the implementation limitation.
[Avi Cohen (A)]
Thanks Jianfeng
The penalty here that this vhost-kthread consumes very much CPU on a high throughput scenario - more than 80% CPU on ~ 10Gbps throughput
And this is in addition to the 100% CPU of the PMD threads
Also when PMD threads can be shared between multiple containers - the vhost-kthread is per container.
Best Regards
avi
>
> Packet mmap (similar to AF_PACKET) is exactly the direction we were
> discussing for the further optimization. Plus, an optimized vhost thread
> model (current thread model is: one thread for one rx-tx queue pair) is also
> considered.
>
> Thanks,
> Jianfeng
>
next prev parent reply other threads:[~2017-07-10 6:49 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-25 15:13 Avi Cohen (A)
2017-06-26 3:14 ` Tan, Jianfeng
2017-06-26 6:16 ` Avi Cohen (A)
2017-06-26 11:58 ` Tan, Jianfeng
2017-06-26 12:06 ` Avi Cohen (A)
2017-06-27 14:22 ` Tan, Jianfeng
2017-06-28 6:45 ` Avi Cohen (A)
2017-07-03 7:21 ` Tan, Jianfeng
2017-07-09 15:32 ` Avi Cohen (A)
2017-07-10 3:28 ` Tan, Jianfeng
2017-07-10 6:49 ` Avi Cohen (A) [this message]
2017-10-20 9:24 王志克
2017-10-20 16:54 ` Tan, Jianfeng
2017-10-24 3:15 ` 王志克
2017-10-24 9:45 ` 王志克
2017-10-25 7:34 ` Tan, Jianfeng
2017-10-25 9:58 ` 王志克
2017-10-26 8:53 ` Tan, Jianfeng
2017-10-26 12:53 ` 王志克
2017-10-27 1:58 ` Tan, Jianfeng
2017-10-31 4:25 ` 王志克
2017-11-01 2:58 ` Tan, Jianfeng
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=B84047ECBD981D4B93EAE5A6245AA361013C987A@FRAEML521-MBX.china.huawei.com \
--to=avi.cohen@huawei.com \
--cc=dpdk-ovs@lists.01.org \
--cc=jianfeng.tan@intel.com \
--cc=users@dpdk.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).