Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp1270677rdg; Fri, 11 Aug 2023 16:08:55 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEmysRW68hTogzT6sL5Q2/oxlo9gg71TEg2l5LlpdFeJ7y3H18BhijNYkaAeo99Ik/nb65k X-Received: by 2002:a05:6512:acf:b0:4fe:5860:7abf with SMTP id n15-20020a0565120acf00b004fe58607abfmr2697245lfu.13.1691795334673; Fri, 11 Aug 2023 16:08:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691795334; cv=none; d=google.com; s=arc-20160816; b=KmzBPnB1tr5zX6OPOGfctV+MsMnBMWnN3tNfcdlCZf13qWr02Ooc/Y2PPcoFuA2ZyL HkRYUnAMnQPsbipuUZ3GcBEZk3b6tPnmzd4h3Ybjz9Nkhqend05KfBV98bJZqNP6ZDLZ WsLqrGupVgehZD2GLsa+Jl8M3BWSFIum3sHrcOZar5d/49sW+gNm26iszewQhNGu+A/3 UQLMQr/xGIJOOGx6TuFqkACzZZaXkatRJhYVhjG6xnjRsTxVXBEGUPJycszbB+Jy8moJ +8P6ascC+nYJO0RwKfl2RA/78vObo5nqh8jcBl7fo79d57BmeXs2gdc/1OnsypVJUAFF snvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:in-reply-to :date:cc:to:from:subject:message-id:dkim-signature; bh=MpIKOqmRvsplEcAFkM+fk+7Axr2+GfApnBbeOXIkaOA=; fh=27vl5+4et7E6nzNpEGPd5ochXCqlzx7Rvx87aFlOrRE=; b=zff/0fEAy7Et1LVVnoiOXSVsm5MIAl8Ywssr1mhGvZVwatlcphU03d+OD4sV4eOAQ7 exqQO0cJqm63jTVNIYSKSlwkr4uwEyj2SKaDIHOUQzm0ICFcHInqlyEo8r7dADqE6Bis TXdYYaXlU87zjvb+OUwwlHmCGyV2dCOEYFhNNdgc7LTvCXXfxN3xlNllKupQGuDlg0cg 7xVyenNv4azzFBI3VL2Dw2gqLDse8QjnS8PsQ6dOtmS7ur6/rYBb1mZ3lKb83gYFNBNk dv0Umy0HwjQhj7PTid8U+LfVX04gexuceH2QcNWKUq5SH3y9qp5L4uQ6YXyMPdUFHEdD eDqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="HNs5pY/k"; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-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 z26-20020aa7d41a000000b005218c27b18csi3929123edq.498.2023.08.11.16.08.28; Fri, 11 Aug 2023 16:08:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-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="HNs5pY/k"; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-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 S233769AbjHKXHw (ORCPT + 99 others); Fri, 11 Aug 2023 19:07:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37512 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237178AbjHKXHm (ORCPT ); Fri, 11 Aug 2023 19:07:42 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8857E4231; Fri, 11 Aug 2023 16:07:12 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 1923766423; Fri, 11 Aug 2023 23:07:12 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 19D19C433C7; Fri, 11 Aug 2023 23:07:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691795231; bh=Jg6SfSia66ZZ2eZpi8qheHBeAjBxlbz/Vi7O7QuO+As=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=HNs5pY/kENsEt3sbDpePBLBbOJUkn7AtQzQ7dQ5XfMadDBEFuTpoT81wv6Ijf8r2G teDfswlcaHiehF439uhXRL98rCkPmiK12tRqLrRKUQk3socUV54BcsP6TDAt3W4y3Y 59FnxP2bNkmiaVHglWRNqcM3niY6axwPUy0U08UlhMWI/HG91WdldeAc3cIrLKrcR5 5AfkKqhgdCq99gGkJL9gYMyI+tkM8BT/RtpePxDf+S0rpgpSwOeYJXtLKrQP1XUXcP sNgPlwQbe3FLuU+pDhSmYbfnRYCzd281W3VQQtl6nTLnPQUeXfwsY6H26MWrQwPaEa mLuf1+ShyjD2g== Message-ID: Subject: Re: [PATCH net-next 3/6] sunrpc: Use sendmsg(MSG_SPLICE_PAGES) rather then sendpage From: Jeff Layton To: David Howells , netdev@vger.kernel.org Cc: Jakub Kicinski , "David S. Miller" , Eric Dumazet , Paolo Abeni , Willem de Bruijn , David Ahern , Matthew Wilcox , Jens Axboe , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Chuck Lever , Trond Myklebust , Anna Schumaker , linux-nfs@vger.kernel.org Date: Fri, 11 Aug 2023 19:07:08 -0400 In-Reply-To: <104f68073d00911668ed6ea38239ef5f1d15567d.camel@kernel.org> References: <20230609100221.2620633-1-dhowells@redhat.com> <20230609100221.2620633-4-dhowells@redhat.com> <104f68073d00911668ed6ea38239ef5f1d15567d.camel@kernel.org> Content-Type: multipart/mixed; boundary="=-nBq/uFlI/d+eUFIfxxcy" User-Agent: Evolution 3.48.4 (3.48.4-1.fc38) MIME-Version: 1.0 X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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-nfs@vger.kernel.org --=-nBq/uFlI/d+eUFIfxxcy Content-Type: text/plain; charset="ISO-8859-15" Content-Transfer-Encoding: quoted-printable On Fri, 2023-08-11 at 18:50 -0400, Jeff Layton wrote: > On Fri, 2023-06-09 at 11:02 +0100, David Howells wrote: > > When transmitting data, call down into TCP using sendmsg with > > MSG_SPLICE_PAGES to indicate that content should be spliced rather than > > performing sendpage calls to transmit header, data pages and trailer. > >=20 > > Signed-off-by: David Howells > > Acked-by: Chuck Lever > > cc: Trond Myklebust > > cc: Anna Schumaker > > cc: Jeff Layton > > cc: "David S. Miller" > > cc: Eric Dumazet > > cc: Jakub Kicinski > > cc: Paolo Abeni > > cc: Jens Axboe > > cc: Matthew Wilcox > > cc: linux-nfs@vger.kernel.org > > cc: netdev@vger.kernel.org > > --- > > include/linux/sunrpc/svc.h | 11 +++++------ > > net/sunrpc/svcsock.c | 38 ++++++++++++-------------------------- > > 2 files changed, 17 insertions(+), 32 deletions(-) > >=20 >=20 > I'm seeing a regression in pynfs runs with v6.5-rc5. 3 tests are failing > in a similar fashion. WRT1b is one of them >=20 > [vagrant@jlayton-kdo-nfsd nfs4.0]$ ./testserver.py --rundeps --maketree = --uid=3D0 --gid=3D0 localhost:/export/pynfs/4.0/ WRT1b = =20 > ************************************************** = = =20 > WRT1b st_write.testSimpleWrite2 : FAILU= RE = =20 > READ returned = = =20 > b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00= ', = =20 > expected b'\x00\x00\x00\x00\x00write data' = = =20 > INIT st_setclientid.testValid : PASS = = =20 > MKFILE st_open.testOpen : PASS = = =20 > ************************************************** = = =20 > Command line asked for 3 of 679 tests = = =20 > Of those: 0 Skipped, 1 Failed, 0 Warned, 2 Passed = =20 FWIW, here's a capture that shows the problem. See frames 109-112 in particular. If no one has thoughts on this one, I'll plan to have a look early next week. Thanks, --=20 Jeff Layton --=-nBq/uFlI/d+eUFIfxxcy Content-Type: application/x-xz; name="nfs.pcap.xz" Content-Disposition: attachment; filename="nfs.pcap.xz" Content-Transfer-Encoding: base64 /Td6WFoAAATm1rRGAgAhARYAAAB0L+Wj4Is/DntdAGow0ch9i/gJm65Yq+BXRMRzjeIUxmDbZ0g+ cX4g10EHcDNoXYucfov/ZrHAQcrdbm4FKnE0cxFeqxa/WsSk6bT2p0SHQuSbkgbFi9wd4crfQIap sKDqwRN+YXAkTZ5Ky5mFSXelT6MS5zk+6p4v0elEjQazZOpkqBZHtOy9Is02W7cNnwYbzBTHDjwI WzFWzr8PQAeceNg++nrXBpk3WSO3XxWvhO8kAFCSh1YHoMLR/IGa93XbVBEDHE9jZlF7/2QFaEzn QY3W4WgzdMUYmvJ39i/rNuxpnpHXZiGTbbtMU/KVkdGyaCFgciTfMpCPAiXi3h6vviR5D7vG/00/ HdRaZJ2VuGjYbBz1h6f2iqvSQBlavM45YYUq90lcVUHn6+oHBygcE1DfV711OwtASbyY/FG6lhJi zhiuV+xVyLUL/o1OxRkl5UP6W7eCRvef04M5DjaEJCiFtzmyO7+1V1nS0+HXoaiZKMTzENXSsUn1 syJE6L/6s5Ee4OLd80NSMLz7FFbcQDG9m4djhXQYy/X+r9TrxHA3r0qtBaMWLs/Ke8EIJIH4qvcT D2cHYlfuQ5miFNyO+RiSJLhuYa+c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