Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1134429rwb; Wed, 28 Sep 2022 13:47:13 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7gYQIdpONpaDU0TU6JBftPDOHpp64VehUMv5mMkzMm/YPVPyiaieolgRoHE0HNeyGMzQBf X-Received: by 2002:aa7:c158:0:b0:457:1fb3:fd63 with SMTP id r24-20020aa7c158000000b004571fb3fd63mr22398776edp.263.1664398032754; Wed, 28 Sep 2022 13:47:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664398032; cv=none; d=google.com; s=arc-20160816; b=uOqv3SGwoztMG45cjaBbiWWOqgSp29F8oX+W+GlsqeSwA6uWsLwx4LsCE9CsjyD2/V VxFKeWfoKXbH8CD2ePHAO2x/VWXeD0Ig8x3jGo/bT45z7uGg15FtclaOjKc3KOTPvUFn UUyBH9exOMBOGBhkBu1+ZzHea5s9yFDRGz+UpNmikbwLUgtCjqaeln0dWxBFOogXXACb APkTbJNonZ2Jm09Fa8xCUbN7LFQnqIBc1KtGVdVBviUBWhrJvgRHz6nAyE5VqKHj2gFQ +TN8RDXtUGHt5/sL9XVszwh6IRtmlG6XGRzv2EY1JnYmFR1Da6HRy56SN26YAV2/AacI HD0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=4VHyL0uNZMkqvdwL5mQ5d9tithzmyh9UPdW2aMU0Qtg=; b=KQmGZWGJqhq/mblGqnJwPpiigTob11bN2u+rTOvuJom9/xpYlfjK0CYlGlkaNMmJW7 B5Mk6rUQ2MigdKBwoOwlMm3j76AVc6TXPMzbAbKOWbMmpg262DmTmIvL/4fP8uM2V3UA WMrqr/rS1SAPWfUnL7+rbtg9vsgcBU5FOmj7TppSKOaVYNw6DHwi2jYA3OMRbyE8ehVb Ip8gnTQO1vR05SIlb/0jBXRPt5APuw6vUzMCDKez90bGBARSn43X5oepwFF87jtHtA20 p2e6I8mhTKSfpCPMBFO6vRKzTflR+ClDnkb2lmzm1rjKEe1ze8vI9MUZ7KiJOZscphA1 h9rw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gEDpm3l8; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i5-20020a1709064fc500b007709d264a08si6131598ejw.738.2022.09.28.13.46.47; Wed, 28 Sep 2022 13:47:12 -0700 (PDT) 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=@kernel.org header.s=k20201202 header.b=gEDpm3l8; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234278AbiI1Tbm (ORCPT + 99 others); Wed, 28 Sep 2022 15:31:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33170 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233913AbiI1Tbk (ORCPT ); Wed, 28 Sep 2022 15:31:40 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6DA788A1DF; Wed, 28 Sep 2022 12:31:39 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 0AD5461F8E; Wed, 28 Sep 2022 19:31:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 014AEC433D6; Wed, 28 Sep 2022 19:31:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1664393498; bh=hdeDfn+4pOe+cjXoOHjt47jgTjJlielsJd73t5oAtfA=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=gEDpm3l8olKcZrpGrz+Gxg/Pceyk6OtW1tIPK7C6LDOWYxyzs6+JmnJl6vThyVcfO dvbtJUrT1gcl3ikauRhekHxOCMQVS/7wHY5GNi9Y82ucKNS6/VOJTNocrh+em7Q2WA ZFL8/IZWeK3JSvSKhJE5bJKps+RZ5LjRKCGA3qqlYAmdkUKDFgLWHr8Kca3FGuJFAq cQEN4cuuO5tVi3+cLDQ+0DXXYJ7BKT0dRTwoM6k4lJypq+Q+Xdlxud9ZVr9g/Tj35Y 6Q8QG6D4nVT6johW9zqG+WG8dJfZm9BjkgnsJGyYO/hYdsP309ScTe3827B3D3lkrS jl4DdD5V6LRKg== Message-ID: <3cccec37-ef58-cccb-7ab8-499ebfe133be@kernel.org> Date: Wed, 28 Sep 2022 13:31:37 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.13.0 Subject: Re: [PATCH net-next v4 00/27] io_uring zerocopy send Content-Language: en-US To: Pavel Begunkov , io-uring@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Cc: "David S . Miller" , Jakub Kicinski , Jonathan Lemon , Willem de Bruijn , Jens Axboe , kernel-team@fb.com References: <2c49d634-bd8a-5a7f-0f66-65dba22bae0d@kernel.org> <0f54508f-e819-e367-84c2-7aa0d7767097@gmail.com> <812c3233-1b64-8a0d-f820-26b98ff6642d@kernel.org> <3b81b3e1-2810-5125-f4a0-d6ba45c1fbd3@kernel.org> <24b050e0-433f-dc97-7aab-15c9175f49fa@gmail.com> From: David Ahern In-Reply-To: <24b050e0-433f-dc97-7aab-15c9175f49fa@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-9.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS 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 9/26/22 1:08 PM, Pavel Begunkov wrote: > Tried it out, the branch below fixes a small problem, adds a couple > of extra optimisations and now it actually uses registered buffers. > >     https://github.com/isilence/iperf iou-sendzc thanks for the patch; will it pull it in. > > Still, the submission loop looked a bit weird, i.e. it submits I/O > to io_uring only when it exhausts sqes instead of sending right > away with some notion of QD and/or sending in batches. The approach > is good for batching (SQ size =16 here), but not so for latency. > > I also see some CPU cycles being burnt in select(2). io_uring wait > would be more natural and perhaps more performant, but I didn't > spend enough time with iperf to say for sure. ok. It will be a while before I have time to come back to it. In the meantime it seems like some io_uring changes happened between your dev branch and what was merged into liburing (compile worked on your branch but fails with upstream). Is the ZC support in liburing now?