Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp3078878rwb; Mon, 16 Jan 2023 03:30:24 -0800 (PST) X-Google-Smtp-Source: AMrXdXuhIQDpgStdVQ+0RJD4WbjhZTkcjc77uegNt2QOrhwYcBvu4H7vIcly1ptlUQEdR8BHpRFs X-Received: by 2002:a17:906:a1d7:b0:815:8942:dde with SMTP id bx23-20020a170906a1d700b0081589420ddemr92497648ejb.23.1673868624640; Mon, 16 Jan 2023 03:30:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673868624; cv=none; d=google.com; s=arc-20160816; b=SjHsg8otRXU3ClNIcZaJ7vP7KC3gZj+TZWTsSdNTbrE9V3LJhwlYScIsbrps9HmZkX CkfNukmbI2bpJVg7OL5IeMvTEEGhuqdw3C4IaP6bHfgBXOc7aweh2QVJlAoUrWf6BVrs eByBwFXM4QcM58tKbf41i/c0syAEcV+SVhP5KHuvCUgomAM5NgIdog8Dkd5rjbJwua0I UBeBH7u+KqxtWlJDQLxMpWP9rGZxof6dryqAt3DlWGOBAw2FTbSWbmL6urRgJ8pKjOfp xYnxGEYHIM49a1ZutithwtPlHC7cLZq2TinLTWDt80dyWHQxDQsY439+uTRE5DvzI3Lh pAig== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Xk0ru0w9+e9EAkvTNXaYhN64TcjBSGHtatyySaOd8KM=; b=KzhsjkSLqtwU4Q8qEtBEsXd/77XQCOfUqQVgz0CvAzYSZm/TG22VDzU4nShjjEAZWY 67dCf+AzsRjPpsKPcOUR/1jIjdJHheU715QC9y0CkGiW/2C5NTFGNl1GNIAy8cqC2c0T 77FhdDOHeoeqUeRf9q1M2yp85sXDkSuMS8pBIYmFJY2XSKCNheE8+ezRudFFGdPwfxks 33dyUXGHZd3iq5GSTpeYO1tgaKkE9r6m/h3pyMYDKs51LXRjXB6DVdo9LtIab7KgVjtZ 4JGKJoCVcDIz/sJON24MrRm40KQ3lBvIuX18z9N9636AQX7TGxvvXdLuL7EG8nGbWBX8 c9BQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=YQIT1efE; 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 oz13-20020a1709077d8d00b008702a59fe03si4035928ejc.548.2023.01.16.03.30.11; Mon, 16 Jan 2023 03:30:24 -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=YQIT1efE; 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 S230045AbjAPLNW (ORCPT + 51 others); Mon, 16 Jan 2023 06:13:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42350 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229880AbjAPLNJ (ORCPT ); Mon, 16 Jan 2023 06:13:09 -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 AEF7C1C33A for ; Mon, 16 Jan 2023 03:12:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1673867534; 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: in-reply-to:in-reply-to:references:references; bh=Xk0ru0w9+e9EAkvTNXaYhN64TcjBSGHtatyySaOd8KM=; b=YQIT1efElICsjZff5Tkzo6Pc1Zj+u9kb4jbdLLhsdLU2AEpSBatEYcZm2fMfi5uP2NW7si NpOBprpJDGC82OtC342OAaydJAONkDTP5ickep41brS1zJNgOiKfldeekKLzT01TOzckck NrdfiEyrFyg5I32aH86lU0H8uGXeBq0= Received: from mail-qk1-f199.google.com (mail-qk1-f199.google.com [209.85.222.199]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-672-qdybCmuqO3OR3eNedgUzSQ-1; Mon, 16 Jan 2023 06:12:13 -0500 X-MC-Unique: qdybCmuqO3OR3eNedgUzSQ-1 Received: by mail-qk1-f199.google.com with SMTP id m9-20020a05620a290900b0070596994c7eso20530766qkp.7 for ; Mon, 16 Jan 2023 03:12:13 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to: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=Xk0ru0w9+e9EAkvTNXaYhN64TcjBSGHtatyySaOd8KM=; b=sdadv0ZK5r7xREMCBL7z3oRcBF5HGiRa8+T4MFuAtKB7vTplZ6IfS6jP5CcJ7/hshK kozuccl8TKZ11cRzKHWbA2sJm05NmY4233SxwjVpE1lU+iVYFN/YpwyixvNUWM1hI2W4 G45I0HSWQYzZQ9F1X6y26/NmddrpMDoHaajE7wfVnzmxT0lFGinx9Clp7/jvBaL+4XIG 2DyysjbzhCOTsuji4L89u6OiLfvrDHQ0cM33zJMR8wbNs8qyjuFbQRbUx2QzVnMt1GxQ 3HlUMyuQI4Lz+gLT6w9aQUn6gyds1/ZbaNMEx56lmUnOvOgfTJYVDqsvoCctOj6LpSeK N7hg== X-Gm-Message-State: AFqh2kpjBcRWDUnMiC4rVaQq+7rzQJ86YHFF2+wGkfqEIeddWAtEh8BO fjXLYuvCYEmvKJTerDHAhWoD9verWCabZaVAN6mj34UUDpNmczmL27hAfvb1/oDb3tc/U5SLZaV 9Rt+f0yYkfi3XbC/LGw+OVbQH X-Received: by 2002:a05:622a:4a15:b0:3af:b6bd:aba7 with SMTP id fv21-20020a05622a4a1500b003afb6bdaba7mr35212433qtb.43.1673867533201; Mon, 16 Jan 2023 03:12:13 -0800 (PST) X-Received: by 2002:a05:622a:4a15:b0:3af:b6bd:aba7 with SMTP id fv21-20020a05622a4a1500b003afb6bdaba7mr35212399qtb.43.1673867532964; Mon, 16 Jan 2023 03:12:12 -0800 (PST) Received: from sgarzare-redhat (host-79-46-200-72.retail.telecomitalia.it. [79.46.200.72]) by smtp.gmail.com with ESMTPSA id do26-20020a05620a2b1a00b0070648cf78bdsm3938908qkb.54.2023.01.16.03.12.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Jan 2023 03:12:12 -0800 (PST) Date: Mon, 16 Jan 2023 12:12:07 +0100 From: Stefano Garzarella To: Bobby Eshleman Cc: Bobby Eshleman , Cong Wang , Arseniy Krasnov , 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 Subject: Re: [PATCH net-next v10] virtio/vsock: replace virtio_vsock_pkt with sk_buff Message-ID: <20230116111207.yxlwh4jlejtn4ple@sgarzare-redhat> References: <20230113222137.2490173-1-bobby.eshleman@bytedance.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20230113222137.2490173-1-bobby.eshleman@bytedance.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 Fri, Jan 13, 2023 at 10:21:37PM +0000, 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: Uperf >Env: Phys Host + L1 Guest >Payload: 64k >Threads: 16 >Test Runs: 10 >Type: SOCK_STREAM >Before: commit b7bfaa761d760 ("Linux 6.2-rc3") > >Before >------ >g2h: 16.77Gb/s >h2g: 10.56Gb/s > >After >----- >g2h: 21.04Gb/s >h2g: 10.76Gb/s > >Signed-off-by: Bobby Eshleman > >--- >Changes in v10: >- vhost/vsock: use virtio_vsock_skb_dequeue() >- vhost/vsock: remove extra iov_length() call >- vhost/vsock: also consider hdr when evaluating that incoming size is > valid >- new uperf data Tests seem fine! Reviewed-by: Stefano Garzarella