From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jason Wang Subject: Re: [RFC] VSOCK: The performance problem of vhost_vsock. Date: Mon, 15 Oct 2018 10:33:08 +0800 Message-ID: <30d7c370-b206-cdac-dc85-53e9be1e1c63@redhat.com> References: <5BC3F0D4.60409@huawei.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Cc: kvm@vger.kernel.org, virtualization@lists.linux-foundation.org, netdev@vger.kernel.org To: jiangyiwen , stefanha@redhat.com Return-path: Received: from mx1.redhat.com ([209.132.183.28]:44016 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726098AbeJOKQ1 (ORCPT ); Mon, 15 Oct 2018 06:16:27 -0400 In-Reply-To: <5BC3F0D4.60409@huawei.com> Content-Language: en-US Sender: netdev-owner@vger.kernel.org List-ID: On 2018年10月15日 09:43, jiangyiwen wrote: > Hi Stefan & All: > > Now I find vhost-vsock has two performance problems even if it > is not designed for performance. > > First, I think vhost-vsock should faster than vhost-net because it > is no TCP/IP stack, but the real test result vhost-net is 5~10 > times than vhost-vsock, currently I am looking for the reason. TCP/IP is not a must for vhost-net. How do you test and compare the performance? Thanks > Second, vhost-vsock only supports two vqs(tx and rx), that means > if multiple sockets in the guest will use the same vq to transmit > the message and get the response. So if there are multiple applications > in the guest, we should support "Multiqueue" feature for Virtio-vsock. > > Stefan, have you encountered these problems? > > Thanks, > Yiwen. >