Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1120052pxu; Mon, 23 Nov 2020 12:09:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJygwYi2f83IHaFiH+BadCa56Qrg0J2bVvz1YVrTJIGc7z2Gn11TO4wvmmAFbKZiAkBnaXYU X-Received: by 2002:a50:fe14:: with SMTP id f20mr803312edt.61.1606162152469; Mon, 23 Nov 2020 12:09:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606162152; cv=none; d=google.com; s=arc-20160816; b=f5zXC+vhW6QN4bgk9SFP8MOXMIaJ8w/3v8lj+yMaRSpQKrMvwHnXxlHkLEkbGSgiyr HY2ysBY02/VSrJVtg7kQnvspZ0UNTLk/uoPyvOQ9FPLNXYcPgobG7nhzjPOAH5VbclEl 78vNyBDfJt8o2yUhwxdjnFm3+HtBpUAiAaxcFwJbuCXvZjvSKcmNkmwyOvxbnBeqIMBu AIUBsCCTjCPT6N9qxFpz2ZlaFac8f/k52RggkVwlBdPmZvmJtGnnvc6iFRe0vlPNLcwD ig/+s1WFtr4xZjTXP1c8bT8KHoP3LTUMOIheEUjMHyFD83JtxuHE7ulaNTCcl20vO5aj 7trg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:thread-index:thread-topic :content-transfer-encoding:mime-version:subject:references :in-reply-to:message-id:cc:to:from:date; bh=/QJbHN0sFK9IJsp2lLtIgEnubuqlPEmE2+TBQ+2Ob/g=; b=pWXhsSxxiH1etWWr3UmCT3tHnTdKy842Z7IJ5wVk95wpKJMNcNBOTHCRNn7R5j8yQH v7jtSHW6qQPOtJbcCj9DAW4r7gi2CQ0tKG5f2CsXLP5OXrAcoJirEd9jF6qNM2z+dndk fdg0GJzxroz6+Zws8H0cEQqijAFIaIUpdOzRw5bvN73I4i0oA/goKWvh9/IhxqA+Rs4Q vuccQdhBa1oG7MI+v7TxukwXCOR/5phi6KkmfMVh7qdAFAruboiRheapSw3Fm71tTevT othhLR1DQ3A+9Gro6/YQPhhcqjB+CEjd/OQjk5vTkdPXM5rck1c9R+1GnkyoU61Scszp 8M2g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b25si5108616eja.463.2020.11.23.12.08.49; Mon, 23 Nov 2020 12:09:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728363AbgKWUIB (ORCPT + 99 others); Mon, 23 Nov 2020 15:08:01 -0500 Received: from natter.dneg.com ([193.203.89.68]:51954 "EHLO natter.dneg.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727846AbgKWUIA (ORCPT ); Mon, 23 Nov 2020 15:08:00 -0500 Received: from localhost (localhost [127.0.0.1]) by natter.dneg.com (Postfix) with ESMTP id D9AAE1D992F6; Mon, 23 Nov 2020 20:07:58 +0000 (GMT) X-Virus-Scanned: amavisd-new at mx-dneg Received: from natter.dneg.com ([127.0.0.1]) by localhost (natter.dneg.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id ia1mRjTacRYp; Mon, 23 Nov 2020 20:07:58 +0000 (GMT) Received: from zrozimbrai.dneg.com (zrozimbrai.dneg.com [10.11.20.12]) by natter.dneg.com (Postfix) with ESMTPS id BDDF31D992F4; Mon, 23 Nov 2020 20:07:58 +0000 (GMT) Received: from localhost (localhost [127.0.0.1]) by zrozimbrai.dneg.com (Postfix) with ESMTP id ACA5882132F5; Mon, 23 Nov 2020 20:07:58 +0000 (GMT) Received: from zrozimbrai.dneg.com ([127.0.0.1]) by localhost (zrozimbrai.dneg.com [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id 8GuFKPXSpPoc; Mon, 23 Nov 2020 20:07:58 +0000 (GMT) Received: from localhost (localhost [127.0.0.1]) by zrozimbrai.dneg.com (Postfix) with ESMTP id 9063282132ED; Mon, 23 Nov 2020 20:07:58 +0000 (GMT) X-Virus-Scanned: amavisd-new at zimbra-dneg Received: from zrozimbrai.dneg.com ([127.0.0.1]) by localhost (zrozimbrai.dneg.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 1m4ohGwS5LnW; Mon, 23 Nov 2020 20:07:58 +0000 (GMT) Received: from zrozimbra1.dneg.com (zrozimbra1.dneg.com [10.11.16.16]) by zrozimbrai.dneg.com (Postfix) with ESMTP id 6DDAB82132E8; Mon, 23 Nov 2020 20:07:58 +0000 (GMT) Date: Mon, 23 Nov 2020 20:07:58 +0000 (GMT) From: Daire Byrne To: bfields Cc: Jeff Layton , "J. Bruce Fields" , Trond Myklebust , linux-cachefs , linux-nfs Message-ID: <279437663.92157874.1606162078305.JavaMail.zimbra@dneg.com> In-Reply-To: <20201122030339.GF3476@fieldses.org> References: <20201117031601.GB10526@fieldses.org> <20201120223831.GB7705@fieldses.org> <20201120224438.GC7705@fieldses.org> <5f8e9e0cb53c89a7d1c156a6799c6dbc6db96dae.camel@kernel.org> <1758069641.91412432.1605995069116.JavaMail.zimbra@dneg.com> <20201122000216.GE3476@fieldses.org> <1480128642.91427046.1606010150674.JavaMail.zimbra@dneg.com> <20201122030339.GF3476@fieldses.org> Subject: Re: [PATCH 2/4] nfsd: pre/post attr is using wrong change attribute MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Mailer: Zimbra 8.7.11_GA_1854 (ZimbraWebClient - GC78 (Linux)/8.7.11_GA_1854) Thread-Topic: nfsd: pre/post attr is using wrong change attribute Thread-Index: 7Dz02UZgM2RrjuJC1N5frq3V8NVryg== Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org ----- On 22 Nov, 2020, at 03:03, bfields bfields@fieldses.org wrote: >> The workload I have been looking at recently is a NFSv3 re-export of a NFSv4.2 >> mount. I can also say that it is generally when new files are being written to >> a directory. So yes, the files and dir are changing at the time but I still >> didn't expect to see so many repeated getattr neatly bundled together in short >> bursts, e.g. (re-export server = 10.156.12.1, originating server 10.21.22.117). > > Well, I guess the pre/post-op attributes could contribute to the > problem, in that they could unnecessarily turn a COMMIT into > > GETATTR > COMMIT > GETATTR > > And ditto for anything that modifies file or directory contents. But > I'd've thought some of those could have been cached. Also it looks like > you've got more GETATTRs than that. Hm. Yea, I definitely see those COMMITs surrounded by GETTATTRs with NFSv4.2... But as you say, I get way more repeat GETATTRs for the same filehandles. I switched to a NFSv4.2 re-export of a NFSv3 server and saw the kind of thing - sometimes the wire would see 4-5 GETTATRs for the same FH in tight sequence with nothing in between. So then I started thinking.... how does nconnect work again? Because my re-export server is mounting the originating server with nconnect=16 and the flurries of repeat GETATTRs often contain a count in that ballpark. I need to re-test without nconnect... Maybe that's how it's supposed to work and I'm just being over sensitive after this iversion issue. Daire