Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1335177yba; Thu, 4 Apr 2019 08:45:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqzT3gdOsu23H4DCVrxI435BKUFep2WdNEdkRSYGhVvK0h/bb8rY8xShE4KfoEVPEoZoFu4f X-Received: by 2002:aa7:8b08:: with SMTP id f8mr6537832pfd.146.1554392741913; Thu, 04 Apr 2019 08:45:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554392741; cv=none; d=google.com; s=arc-20160816; b=GFIfxD9Bm8NAJ/MamBwYReqAL/jijaHJ0KRGaPOOKbdn9F2GKbLJ9W9/Iw8B4Nnahl TN5XJ4aeO4tSteQ3aYOPyH45GVfCtnO13bYEZ6quL5ZEEcNZNDsCboSCk7QgjEXYfrBA YhWJkIry5Ckj3e9zfsz/25ECKi64S8ArJyxqDAPOX01tClLwRBF4JS2fo/mbpDA6o5wQ EMTP5YhJk12vc7Y1QIIzfztigoyeH+aKSVIudfJ0S1j6fMj8WVPcGweUff6BPXbK5BQ9 pR6I6XuQUCDfZGOmM1qu+OLWxnjhWCsDJDEeJvb9mcUmFgu4/eq9ww0NRUtC0UWQML1J HJ/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=quvEgu5wfACbSNtM098KbjbidKz06p0TY4PFtqIhRfU=; b=MNy1+Z+hofhrbcY4Z00lFtePJjfVsmp2S9hdPTAt5fFyuYlBU/o+pQMyke5bZ5ifWZ 6lXFdEiPJDuifQLtIMCYgNECpPfLkPYBRQHVmN/+NMap+L1tbur02QCfD7v1amye+1ml m0PHzi1G2dm1I6Cy+RUqq1R2+FBai5AurtTiYSWatfBXalvl3/9NRftP2q7ryDilpD0t qLVdTvXfEdIA67VwixGDax8YcdiQthNWvVOvcwx7UqrA+aGX0j22CyfB+euj/bZh16pk HPBoqtBYayQu0l/AIoCARFhWS3veF7u/Eub9yuFYGZvnjdA6b0iqffEsRUws6BXa9+hp q2QA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e193si13042741pgc.339.2019.04.04.08.45.26; Thu, 04 Apr 2019 08:45:41 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727212AbfDDPok (ORCPT + 99 others); Thu, 4 Apr 2019 11:44:40 -0400 Received: from mail-wm1-f67.google.com ([209.85.128.67]:36363 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726942AbfDDPoj (ORCPT ); Thu, 4 Apr 2019 11:44:39 -0400 Received: by mail-wm1-f67.google.com with SMTP id h18so3985355wml.1 for ; Thu, 04 Apr 2019 08:44:37 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=quvEgu5wfACbSNtM098KbjbidKz06p0TY4PFtqIhRfU=; b=XjbZdAALihbQVVJiujAYmnOPJVX5C0W6z1J6gnFVuuJ8D4CP3aqjNQb5JGlYT2jeg/ Kl0D3T+vUkkzhClIgy1cbNpaJywsJJeNNJWBfi5RrClJbqI7Ppcwt4fF52ANKkLZD59f +dN0Zp5O6f/BTinj5I922T2+IN71dAjhwBZXkbxpJCv3G5jX7NX3sQ8ewkmVi7hOykmF 8oCL0xcAMgXV7pzfNgI1XwefL43f8Gtc4Xo/Lvky+qhzQvKkpyDtj1t3//fZIQ0J+Wui WhX4pPribl/gMR+63NwzPgZ1610z0t9Nh+XlvybdEaZV5dV14JLEIgBH2jSegDOphBqf NyLw== X-Gm-Message-State: APjAAAUBVd1jca6QBT/OH+CDkIzhuSBV6dceMh+oduXPBTMBP6mZkdDt 1ylLQxCQ1kQXMJ4bTizN2PgnzQ== X-Received: by 2002:a1c:df89:: with SMTP id w131mr2500408wmg.82.1554392677297; Thu, 04 Apr 2019 08:44:37 -0700 (PDT) Received: from steredhat (host35-203-static.12-87-b.business.telecomitalia.it. [87.12.203.35]) by smtp.gmail.com with ESMTPSA id j7sm26063448wrt.96.2019.04.04.08.44.36 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 04 Apr 2019 08:44:36 -0700 (PDT) Date: Thu, 4 Apr 2019 17:44:34 +0200 From: Stefano Garzarella To: Stefan Hajnoczi Cc: netdev@vger.kernel.org, Jason Wang , "Michael S. Tsirkin" , Stefan Hajnoczi , kvm@vger.kernel.org, virtualization@lists.linux-foundation.org, linux-kernel@vger.kernel.org, "David S. Miller" Subject: Re: [PATCH RFC 0/4] vsock/virtio: optimizations to increase the throughput Message-ID: <20190404154434.shaxqzfzacfqqyzx@steredhat> References: <20190404105838.101559-1-sgarzare@redhat.com> <20190404141410.GA25152@stefanha-x1.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190404141410.GA25152@stefanha-x1.localdomain> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 04, 2019 at 03:14:10PM +0100, Stefan Hajnoczi wrote: > On Thu, Apr 04, 2019 at 12:58:34PM +0200, Stefano Garzarella wrote: > > This series tries to increase the throughput of virtio-vsock with slight > > changes: > > - patch 1/4: reduces the number of credit update messages sent to the > > transmitter > > - patch 2/4: allows the host to split packets on multiple buffers, > > in this way, we can remove the packet size limit to > > VIRTIO_VSOCK_DEFAULT_RX_BUF_SIZE > > - patch 3/4: uses VIRTIO_VSOCK_MAX_PKT_BUF_SIZE as the max packet size > > allowed > > - patch 4/4: increases RX buffer size to 64 KiB (affects only host->guest) > > > > RFC: > > - maybe patch 4 can be replaced with multiple queues with different > > buffer sizes or using EWMA to adapt the buffer size to the traffic > > > > - as Jason suggested in a previous thread [1] I'll evaluate to use > > virtio-net as transport, but I need to understand better how to > > interface with it, maybe introducing sk_buff in virtio-vsock. > > > > Any suggestions? > > Great performance results, nice job! :) > > Please include efficiency numbers (bandwidth / CPU utilization) in the > future. Due to the nature of these optimizations it's unlikely that > efficiency has decreased, so I'm not too worried about it this time. Thanks for the suggestion! I'll measure also the efficiency for future optimizations. Cheers, Stefano