DPDK usage discussions
 help / color / mirror / Atom feed
From: "Tan, Jianfeng" <jianfeng.tan@intel.com>
To: 王志克 <wangzhike@jd.com>, "users@dpdk.org" <users@dpdk.org>
Subject: Re: [dpdk-users] VIRTIO for containers
Date: Wed, 1 Nov 2017 10:58:09 +0800	[thread overview]
Message-ID: <44eae57a-d487-1ff7-0a72-5a7325beb0da@intel.com> (raw)
In-Reply-To: <6DAF063A35010343823807B082E5681F41D31C79@mbx05.360buyAD.local>

Hi Zhike,

On 10/31/2017 12:25 PM, 王志克 wrote:
> Hi,
>
> I tested KNI, and compared with virtio-user. The result is beyond my 
> expectation:
>
> The KNI performance is better (+30%) in simpe netperf test with TCP 
> and different size UDP. I though they have similar performance, but it 
> proved that KNI performed better in my test. Not sure why.

This is expected. As KNI has a better thread model, its kthread only 
processes user->kernel path; the kernel->user path is processed in 
ksoftirq thread.


>
> Note in my test, I did not enable checksum/gso/… offloading and 
> multi-queue, since we need do vxLan encapsulation using SW. I am using 
> ovs2.8.1 and dpdk 17.05.2.


And below is the feature table. Note that OVS (mainstream) so far does 
not integrate LRO/TSO etc.

                                                         KNI             
virtio-user
Multi-seg (user->kernel)              Y    Y
Multi-seg (kernel->user)              N     Y
Multi-queue                                  N         Y
Csum offload (user->kernel)       Y Y
Csum offload (kernel->user)       N                             Y
Zero copy (user->kernel) N                             Experimental
Zero copy (kernel->user) N                             N


>
> In addition, one queue pair on virtio-user would create one vhost 
> thread. If we have many containters, it seems hard to manage the CPU 
> usage. Is there any proposal/practice to limit the vhost kthread CPU 
> resource?

Yes, this is another thread model problem.

There is proposal from Redhat and IBM on this: 
http://events.linuxfoundation.org/sites/events/files/slides/kvm_forum_2015_vhost_sharing_is_better.pdf.
But not sure when it will be ready.

Thanks,
Jianfeng

>
> Br,
> Wang Zhike

  reply	other threads:[~2017-11-01  2:58 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
  -- strict thread matches above, loose matches on Subject: below --
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)

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=44eae57a-d487-1ff7-0a72-5a7325beb0da@intel.com \
    --to=jianfeng.tan@intel.com \
    --cc=users@dpdk.org \
    --cc=wangzhike@jd.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 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).