Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp556122imn; Fri, 29 Jul 2022 15:43:26 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sPlkMqH9VuC0gbssmavCmTeNWixcxlLBckFoE2XGCpteo82x9q/R8jDB8pPfnCeRGO69If X-Received: by 2002:a17:907:7da6:b0:72f:136d:dba4 with SMTP id oz38-20020a1709077da600b0072f136ddba4mr4490061ejc.472.1659134606167; Fri, 29 Jul 2022 15:43:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659134606; cv=none; d=google.com; s=arc-20160816; b=tUNN4ao3EZFik1nKy2b8ZOYM7f6lJUXR8HowmdhBTdV+GgB0pTOEMoUMFbonLQ8o4H 1q6k3XHRtqCVmS1pxmOPtYes0cuRYXHQtqCNS1yrm589CdMEjlhRzm6+izuomKrKa7PZ UzraFiwmj0RrdHBAtC48oALV1f/Rr2OHnA/DdvgEc2yBSsCN1r5u3Aw/kMsobaHBmF3A +IezvlaPRT3tD+dULOUB4ZruBJb1iGPb9cz36bxjYfdhFFVgbQzMMhhh1XrN8Xv8LP7e sLHb03R5i0gsHsdxaF2GWnx/AagS3UIXQ+hiRcsu9sLQzN1lw31YZm+bJ+DBLuBv/DCK yY+w== 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=4Es6oahoL8X2+DMxVu/SdQ0jNLLZ6Kgj+9p7jRAKFBc=; b=y+xnBhbEP8s9/mTzt965XPR4yuWxKn9LpKBjPaT6kYpPCbA8AOXirXyksbNe3q00q0 kgl5NO3TZ53UgyoiqblNRrXKvMraxFp54BRVvCjVh8tlM82zWk4Dvmqc1Py8UTcqRCdn ApOiAgdLlAh4AxPFWxTQPYrYacO6rIGVbvWRPb0uCGqicWSmPpNKMJ4RduHZkIq7LkqE hlwcWzV9ut58ME2M/8UEj6EoxiEV8GafkIbGyt5LsXrAdu7lifADq5uKT/2pi4wRRAMp CiNXziQgEIlK27kEJMY2UZ9fBJwgh7wM/O2OfEKeRVET9+4J84l/JSUr880zJaoz/fZc ZmsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=L9GhQYV8; 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 eb7-20020a0564020d0700b0043bcd11ffc1si5018185edb.305.2022.07.29.15.43.01; Fri, 29 Jul 2022 15:43:26 -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=L9GhQYV8; 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 S239378AbiG2WbB (ORCPT + 99 others); Fri, 29 Jul 2022 18:31:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58712 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229950AbiG2Wa6 (ORCPT ); Fri, 29 Jul 2022 18:30:58 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EDB6B2BB19; Fri, 29 Jul 2022 15:30:57 -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 ams.source.kernel.org (Postfix) with ESMTPS id A61D4B829DA; Fri, 29 Jul 2022 22:30:56 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E1FFFC433D6; Fri, 29 Jul 2022 22:30:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1659133855; bh=L99nrOz0sOglljuGihJFxiAQVZKNS3MgPeVmrXowoVw=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=L9GhQYV8A3+t5rNpM67VQWjY//MnPcOaqesyri44DTsf+HZ/CAGnCSKgNad/RI1vm kXN21xlUTzou6XlfxAEtYSWyxkgJElYUWLvlNVZ+cChvEruuRaFwZjv76S4pbmu7l1 wSDbovunqVMehYA4Wst0254gv2SrxgErgqRjy3bC442iNf2uFPGj+SRAGbVKPMqzbR FTVP55b6WOo/YozZVCT1aHyp6UCjaVUmRrNciSzOx2RLzwhhCp+YfMVp/EfGNSTw2a ydvJItwZNEIngS+chGG6Mef1/HD7FyRiyGqcnqWVIhiQkfKDoVs9wzuO+Yguz52Gtt hS9CYZgyVUd/w== Message-ID: Date: Fri, 29 Jul 2022 16:30:54 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.11.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> <0a3b7166-5f86-f808-e26d-67966bd521fe@gmail.com> From: David Ahern In-Reply-To: <0a3b7166-5f86-f808-e26d-67966bd521fe@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.7 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 7/27/22 4:51 AM, Pavel Begunkov wrote: >> With your zc_v5 branch (plus the init fix on using msg->sg_from_iter), >> iperf3 with io_uring support (non-ZC case) no longer shows completions >> with incomplete sends. So that is good improvement over the last time I >> tried it. >> >> However, adding in the ZC support and that problem resurfaces - a lot of >> completions are for an incomplete size. > > Makes sense, it explicitly retries with normal sends but I didn't > implement it for zc. Might be a good thing to add. > Yes, before this goes it. It will be confusing to users to get incomplete completions when using the ZC option.