Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp9145788rwb; Thu, 24 Nov 2022 08:38:44 -0800 (PST) X-Google-Smtp-Source: AA0mqf61ejBhTTANLv82Uf6ak+xrB+CK+MtSV3DfAioZG+Cx2PLDC7fuxvJTH9HdFHz46GdIJqt4 X-Received: by 2002:a17:90a:fc7:b0:218:aefe:60e3 with SMTP id 65-20020a17090a0fc700b00218aefe60e3mr21554177pjz.47.1669307924375; Thu, 24 Nov 2022 08:38:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669307924; cv=none; d=google.com; s=arc-20160816; b=cFvXCF8SS5DnmMGUw6sIFPonJaBGWg0VZkfErKfdWevRP4yd8zi2i+pYPWTlGH8tSl Xj6htwwhJqjEjVPsWZ/dyGXQ+tXfOknoygdhgxK+rbJJoGB3/Csw9HSn4jnh+BZafgYK yT3OrZt/trXKR14wxhtmvJNNNe8+1ngWIIvnJDTnXO9RomPNNpT4gN8shlg1vVHCESJV neweCKVc1OGk6gytdzOTc99fUz9U/yohwBt35KuK1nNer0NAp90gYSlCqTw9JP+KCUxO rJE+/9eEyS4AVvNsIgSUVaIvgAPTX+T0djAatSZfTJx2tsUyKx1n9duOz/jum1plid2Y vqMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=L0SFnyMJt/QKXqNsYANy2CzhozYJsECW+F48X0zh0KA=; b=CJuGs4COnuyZr+zrj/OVKhji0O5Lds8Taa9JCW41i7uvnP3c6IO/wg0SMV2ICgmLqd dEmX69NKKSuNp0oqmUkjFmBqdJ2YdQqInR60hfEFacBamdsh2LGbiJS4ciVF/EHai7OA M1FWWKH6TR7+qDnZV0GRV0Xu1LJrm4dx69HkknrcpdcC0u3q9Wy3SuSsYmJO25WAEOkV Hdz04ylVgcCWQWuD8MvPPFkip+QWY2wZ9f3BEcliSEtQkfaWL1L5oErDhHf7ZD/wBVOR 9MAIzCIXl6pMK6OvYKscRiSfKr5KqHZVLQ+RzYCDDcCOiM+Ep8Uo06TRPt2xrI1ike/J sVvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ADXu96OA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x24-20020a63db58000000b004750a252941si1614760pgi.774.2022.11.24.08.38.32; Thu, 24 Nov 2022 08:38:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ADXu96OA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229851AbiKXP3f (ORCPT + 86 others); Thu, 24 Nov 2022 10:29:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44548 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229459AbiKXP3e (ORCPT ); Thu, 24 Nov 2022 10:29:34 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F1467C4956 for ; Thu, 24 Nov 2022 07:28:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1669303716; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=L0SFnyMJt/QKXqNsYANy2CzhozYJsECW+F48X0zh0KA=; b=ADXu96OAj+KuufGoLengwAjk0SLKyvkGGGhRxSr3hmlALNUR8SomNqfJZoTfmFvO9PlmjV J3IzPoS1Gtucftl6EjMQ+vk8B5N6avko8XIKCmObcHoWqJRMDW+ODzBaFxNwVlhKqeMgmm v7BFezhKo3QE2w+MkLWMeNXaWeaE+jk= Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-352-olKMniPzM76tMKwc3jtTLw-1; Thu, 24 Nov 2022 10:28:35 -0500 X-MC-Unique: olKMniPzM76tMKwc3jtTLw-1 Received: by mail-wm1-f72.google.com with SMTP id l32-20020a05600c1d2000b003cfefa531c9so3093692wms.0 for ; Thu, 24 Nov 2022 07:28:34 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=L0SFnyMJt/QKXqNsYANy2CzhozYJsECW+F48X0zh0KA=; b=0DP1cj/8JhmRMiGhzUACwxjFIAk4qEoxc7t8ZSApsrCiQTq5PjzX7n4LtBcSLNuMmf zfCPtyKrwifmZaWT59GDPXUtbe5ZQ7e6TbRZa9/cGyv8E+xwVzBuKooWqqLxO1fNcE/S BnLP2cgANFixRUa7hnra/WBgDVivIjy8f0NOlVp/v2AE6MgPf0uDOLZY34iGP6kdykzH 2d2VD6pQTBzBLJ1B+n3kdz+4iPBGSW1OULtN8VQDA6HWPiys9lLcpw8yRb/hpOA3sf9k 1pq5ycjTiyIkAO07bv0N6Q9IQCWHV6EgDYQ3ZujmXcgIdAzrVq8UBJ1eRwLr4SQ1M7Dx U9wQ== X-Gm-Message-State: ANoB5plwRd0R4mix3miVXoA3fPh/0ey1uFlZKejEPcqxIoQlp6uSri5n NLHOYtoMzwukrt2ITID9qKL7ogRYjKLh5ave2svwA2eoiyptl55fnjhP5E0ngHEa7VvAX4wzfZX vwDQua1ntLbIM8nLPWuBKb2pO X-Received: by 2002:a05:600c:4f54:b0:3d0:2d56:eb55 with SMTP id m20-20020a05600c4f5400b003d02d56eb55mr9174243wmq.176.1669303713863; Thu, 24 Nov 2022 07:28:33 -0800 (PST) X-Received: by 2002:a05:600c:4f54:b0:3d0:2d56:eb55 with SMTP id m20-20020a05600c4f5400b003d02d56eb55mr9174213wmq.176.1669303713559; Thu, 24 Nov 2022 07:28:33 -0800 (PST) Received: from sgarzare-redhat (host-82-53-134-234.retail.telecomitalia.it. [82.53.134.234]) by smtp.gmail.com with ESMTPSA id az26-20020a05600c601a00b003d01b84e9b2sm2207408wmb.27.2022.11.24.07.28.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Nov 2022 07:28:33 -0800 (PST) Date: Thu, 24 Nov 2022 16:28:30 +0100 From: Stefano Garzarella To: Arseniy Krasnov Cc: Bobby Eshleman , Bobby Eshleman , Cong Wang , Jiang Wang , Stefan Hajnoczi , "Michael S. Tsirkin" , Jason Wang , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , kvm@vger.kernel.org, virtualization@lists.linux-foundation.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, AVKrasnov@sberdevices.ru Subject: Re: [PATCH v4] virtio/vsock: replace virtio_vsock_pkt with sk_buff Message-ID: <20221124152830.6qhbgujs6ssw2pqx@sgarzare-redhat> References: <20221124060750.48223-1-bobby.eshleman@bytedance.com> <20221124150005.vchk6ieoacrcu2gb@sgarzare-redhat> <03d74a68-91a3-04dd-613b-33e232937cbc@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <03d74a68-91a3-04dd-613b-33e232937cbc@gmail.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 24, 2022 at 06:13:49PM +0300, Arseniy Krasnov wrote: >Hello Stefano > >On 24.11.2022 18:00, Stefano Garzarella wrote: >> This is a net-next material, please remember to use net-next tag: >> https://www.kernel.org/doc/html/v6.0/process/maintainer-netdev.html#netdev-faq >> >> On Wed, Nov 23, 2022 at 10:07:49PM -0800, Bobby Eshleman wrote: >>> This commit changes virtio/vsock to use sk_buff instead of >>> virtio_vsock_pkt. Beyond better conforming to other net code, using >>> sk_buff allows vsock to use sk_buff-dependent features in the future >>> (such as sockmap) and improves throughput. >>> >>> This patch introduces the following performance changes: >>> >>> Tool/Config: uperf w/ 64 threads, SOCK_STREAM >>> Test Runs: 5, mean of results >>> Before: commit 95ec6bce2a0b ("Merge branch 'net-ipa-more-endpoints'") >>> >>> Test: 64KB, g2h >>> Before: 21.63 Gb/s >>> After: 25.59 Gb/s (+18%) >>> >>> Test: 16B, g2h >>> Before: 11.86 Mb/s >>> After: 17.41 Mb/s (+46%) >>> >>> Test: 64KB, h2g >>> Before: 2.15 Gb/s >>> After: 3.6 Gb/s (+67%) >>> >>> Test: 16B, h2g >>> Before: 14.38 Mb/s >>> After: 18.43 Mb/s (+28%) >>> >>> Signed-off-by: Bobby Eshleman >>> --- >> >> The patch LGTM. I run several tests (iperf3, vsock_test, >> vsock_diag_test, vhost-user-vsock, tcpdump) and IMO we are okay. >> >> I found the following problems that I would like to report: >> >> - vhost-user-vsock [1] is failing, but it is not an issue of this patch, >> ? but a spec violation in the rust-vmm/vm-virtio/virtio-vsock crate as I >> ? reported here [2]. We will fix it there, this patch is fine, indeed >> ? trying a guest with the new layout (1 descriptor for both header and >> ? data) with vhost-vsock in Linux 6.0, everything works perfectly. >> >> - the new "SOCK_SEQPACKET msg bounds" [3] reworked by Arseniy fails >> ? intermittently with this patch. >> >> ? Using the tests currently in the kernel tree everything is fine, so >> ? I don't understand if it's a problem in the new test or in this >> ? patch. I've looked at the code again and don't seem to see any >> ? criticisms. >> >> ? @Arseniy @Bobby can you take a look? >Seems i've found this problem here: > >https://lkml.org/lkml/2022/11/24/708 > >Being fixed - all tests passes Good catch! Thanks, Stefano