Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp6789691ybi; Mon, 22 Jul 2019 01:41:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqxgFtnqQoJNZTBA5EHJ48H3iDm8XDd+yGu2obhgnRMWiDe3GbPKm2owICcfp13AEfRg6Yth X-Received: by 2002:a65:42c6:: with SMTP id l6mr73887673pgp.442.1563784869734; Mon, 22 Jul 2019 01:41:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563784869; cv=none; d=google.com; s=arc-20160816; b=E/KL3I6g3SwMsJ6meiOeil8RKIkSNzWiiMqq/FYs0DdyQ+hvUqrQyALDOuVJXd4V5U PXUQsAknX4opHKq1Bjfe87LBiZ5ZquLfBi87Rqmcqg+QL+VZsMkWgUzkdkXWVFuQPgmh /DKYu+BpPs8WXrfHNJkhdsFE3kuXMsJRDd/OCMrviXSa4vAv0EMOWAVBBx4Rym9C0lVy QfJGBo6EjawxZ6thIbhYHVkQeVfqg0A3THo8sC8odWigBj+BMlzRVROfbBOU8BUCYGVs EcHH5XHSTVg0Zvr40eTFJ+3FG+CMSlgDuTz0FoWAY9zpIQNNy0w91LIKpbFgcd18LBRH cRQw== 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=1Dhc4DgnfEQSXRZcFd1zYw8s/xvSdxmhE4iQ65KGkZw=; b=hrjHJ28+vKjKO9j2nvyp8xAv17jEr/ag1ExuXt3g59lohkTtCCfHnQq0gbhAa6JzT/ 2Ddhy8IrRE2UVkSZcTjvQIg0DULi8j1KVpLCqeqrN6Mccsbt3tk84y8tilKKpcLbblhM 1ZFoWi3CfwPCvn3tollKlICReGP7BZg2j6rxrzqA/t5LWz1Ixh6khJ1W5ktnkHBlvgzk lF69Rs0Wgv+QDvfw78G8gA4RYyZPE2uNfVGFzEao3rePDXOcxW57Ji+rST9j/wxyIqMs wpQot1sIY3bTa1BBCA2ogSvAXw7lQPDcB+eq/5SVs9YabL7ztmVClW4JsELlx/G6IbuG kNyA== 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 t31si7733092pjb.25.2019.07.22.01.40.53; Mon, 22 Jul 2019 01:41:09 -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 S1728514AbfGVIgp (ORCPT + 99 others); Mon, 22 Jul 2019 04:36:45 -0400 Received: from mx1.redhat.com ([209.132.183.28]:34850 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725989AbfGVIgp (ORCPT ); Mon, 22 Jul 2019 04:36:45 -0400 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id AA7ED85365; Mon, 22 Jul 2019 08:36:44 +0000 (UTC) Received: from localhost (ovpn-117-250.ams2.redhat.com [10.36.117.250]) by smtp.corp.redhat.com (Postfix) with ESMTP id 8EC2819D71; Mon, 22 Jul 2019 08:36:41 +0000 (UTC) Date: Mon, 22 Jul 2019 09:36:40 +0100 From: Stefan Hajnoczi To: Stefano Garzarella Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, "David S. Miller" , virtualization@lists.linux-foundation.org, Jason Wang , kvm@vger.kernel.org, "Michael S. Tsirkin" Subject: Re: [PATCH v4 2/5] vsock/virtio: reduce credit update messages Message-ID: <20190722083640.GB24934@stefanha-x1.localdomain> References: <20190717113030.163499-1-sgarzare@redhat.com> <20190717113030.163499-3-sgarzare@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="qlTNgmc+xy1dBmNv" Content-Disposition: inline In-Reply-To: <20190717113030.163499-3-sgarzare@redhat.com> User-Agent: Mutt/1.12.0 (2019-05-25) X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.25]); Mon, 22 Jul 2019 08:36:44 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --qlTNgmc+xy1dBmNv Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jul 17, 2019 at 01:30:27PM +0200, Stefano Garzarella wrote: > In order to reduce the number of credit update messages, > we send them only when the space available seen by the > transmitter is less than VIRTIO_VSOCK_MAX_PKT_BUF_SIZE. >=20 > Signed-off-by: Stefano Garzarella > --- > include/linux/virtio_vsock.h | 1 + > net/vmw_vsock/virtio_transport_common.c | 16 +++++++++++++--- > 2 files changed, 14 insertions(+), 3 deletions(-) It's an arbitrary limit but the risk of regressions is low since the credit update traffic was so excessive: Reviewed-by: Stefan Hajnoczi --qlTNgmc+xy1dBmNv Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEhpWov9P5fNqsNXdanKSrs4Grc8gFAl01dZgACgkQnKSrs4Gr c8h/oQgAuTo0CerV6R9QtoxW4hcg6Tkq8sm7tBtXxSlRDhm5cvCYY3GKnhq1R/d0 Kg0hqcHUpqMsLT0yNza3j2F2USkvoxFm3wMgKijp5A0L15YVUQ+qZOwxVfBw9wDe RXeY5bMyEHE5MFFtMfGDAiNyL1umrZ0Cy2RSYdzc+JhvZEkFyvwqE/za5PmXhofP hF5u98zTLSjIxjxMAl7I7obkZIaJmU4A5XDUWwucqQm4wBP4QFQQqocM91RlQ7Gz slJK7JiLWEpd2ka1VDVK9AfgE6R0dnT6tZ1r306NaG0moJmgts9gm3ETffKce8bn OlHQa8PxT//6DYE3ghoFPTOpYxFqLw== =G3Rg -----END PGP SIGNATURE----- --qlTNgmc+xy1dBmNv--