Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp5780901ioo; Wed, 1 Jun 2022 12:27:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy2gpcfsgUEd3DbWyTi/mIdoZWhM4gewof/Q4ef+gcmJkfKyAB5pCfKea0agxrHeBRnGKjn X-Received: by 2002:a17:902:aa4a:b0:163:d48d:5e99 with SMTP id c10-20020a170902aa4a00b00163d48d5e99mr963691plr.156.1654111636537; Wed, 01 Jun 2022 12:27:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654111636; cv=none; d=google.com; s=arc-20160816; b=vObxJq6ChIZADsghd/RP2g01PmqT9fjIbXfwmwPwayBmf3gzMVTkqhy/ESyz7UCfDt UttpWF9QgpgcVNSheCWHaT199VlgCeMomqUEnPMNFQyU6GC5lUFhrfC6YtfQrEv/kkCe 2owe4xmpFn1xMqSqt+NANQkKiVTyeGq8T68lufHgejgWuvC2lwnvPUou9UjEmjXDjT1S eYdwP22j/8C9jyhQ9zy44cnErt84Sv6AH56c/S+V/zN+6uzlcQqkkP2It7ImSjIUYNgd 1NW7OGKHt+/EdR60SJ977/FTzM95B59TBQWGWtqSs4/qXTSRxCmRqZR3+gHeXrmLJ6NK GOsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:cc:to:from:date:subject :dkim-signature; bh=6NbvgqSx8K4tqnN8O/xHkvNOAwGmcXSlcMLEnelM2/Q=; b=LDINIr/sxU+CYLZ7xbafe6a/HR4nL84CAV+p75MgFvHuKVQsl4DajZtCPrQvs40qQF rA49DTEskrEmz5lXVwXFf/CRRhymO8daar+RAzEVd+0X2cT6zce8C1zAO5jRkdK4VxIq gO8jHQ9CK0WkjS1wg1usYeMEFhcr7+K9/lyzh+Op5mVuJLifYHrpSpVesB7fqUkjNSc3 14LTV1o/P2+vGxPVSP8wtAha97xU/nzSEnsO4qZZ7VDd1dxWz3Cp2dnQMdkTjGUNZ3S3 KhYhE2kyKBohiNtgVW+sVLdkp9hfhQo3n8VAQLFIWXU46m1+rmqqwDZTPtkDe1tXbpO8 RTUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=s+uXpc3N; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id e18-20020a17090301d200b0015ce8cd506asi3915481plh.325.2022.06.01.12.27.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jun 2022 12:27:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=s+uXpc3N; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id ADDCBEBEB2; Wed, 1 Jun 2022 11:59:49 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1355090AbiFAQKk (ORCPT + 99 others); Wed, 1 Jun 2022 12:10:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49042 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349045AbiFAQKj (ORCPT ); Wed, 1 Jun 2022 12:10:39 -0400 Received: from smtp-fw-9103.amazon.com (smtp-fw-9103.amazon.com [207.171.188.200]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E98D7A502D for ; Wed, 1 Jun 2022 09:10:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1654099838; x=1685635838; h=date:from:to:cc:message-id:references:mime-version: in-reply-to:subject; bh=6NbvgqSx8K4tqnN8O/xHkvNOAwGmcXSlcMLEnelM2/Q=; b=s+uXpc3N8JHVodZqhMarRbvNTVX5TqWkLceGVUsM2OSR4L+RZ0Huzge+ p4Onyq58COx7oKJt9KdoTetJE86ctqAn/WqiO/lIudJI7yo1XjiJx5Ik2 WNZnEjY/53KRppZV+UcoYtRlvdgcfyBPcIr+1Vhv+ByFeHTciWaWYJDxQ U=; X-IronPort-AV: E=Sophos;i="5.91,268,1647302400"; d="scan'208";a="1020759995" Subject: Re: filecache LRU performance regression Received: from pdx4-co-svc-p1-lb2-vlan2.amazon.com (HELO email-inbound-relay-iad-1d-35b1f9a2.us-east-1.amazon.com) ([10.25.36.210]) by smtp-border-fw-9103.sea19.amazon.com with ESMTP; 01 Jun 2022 16:10:06 +0000 Received: from EX13MTAUEE002.ant.amazon.com (iad12-ws-svc-p26-lb9-vlan2.iad.amazon.com [10.40.163.34]) by email-inbound-relay-iad-1d-35b1f9a2.us-east-1.amazon.com (Postfix) with ESMTPS id 253CC2014FB; Wed, 1 Jun 2022 16:10:04 +0000 (UTC) Received: from EX13D21UEE004.ant.amazon.com (10.43.62.91) by EX13MTAUEE002.ant.amazon.com (10.43.62.24) with Microsoft SMTP Server (TLS) id 15.0.1497.36; Wed, 1 Jun 2022 16:10:04 +0000 Received: from EX13MTAUEE002.ant.amazon.com (10.43.62.24) by EX13D21UEE004.ant.amazon.com (10.43.62.91) with Microsoft SMTP Server (TLS) id 15.0.1497.36; Wed, 1 Jun 2022 16:10:04 +0000 Received: from dev-dsk-fllinden-2c-d7720709.us-west-2.amazon.com (172.19.206.175) by mail-relay.amazon.com (10.43.62.224) with Microsoft SMTP Server id 15.0.1497.36 via Frontend Transport; Wed, 1 Jun 2022 16:10:04 +0000 Received: by dev-dsk-fllinden-2c-d7720709.us-west-2.amazon.com (Postfix, from userid 6262777) id 0A335F5; Wed, 1 Jun 2022 16:10:03 +0000 (UTC) Date: Wed, 1 Jun 2022 16:10:03 +0000 From: Frank van der Linden To: Chuck Lever III CC: Wang Yugui , Linux NFS Mailing List , Matthew Wilcox , "Liam Howlett" Message-ID: <20220601161003.GA20483@dev-dsk-fllinden-2c-d7720709.us-west-2.amazon.com> References: <5C7024DA-A792-4091-BFDE-CEED59BC1B69@oracle.com> <20220527203721.GA10628@dev-dsk-fllinden-2c-d7720709.us-west-2.amazon.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 On Wed, Jun 01, 2022 at 12:34:34AM +0000, Chuck Lever III wrote: > > On May 27, 2022, at 5:34 PM, Chuck Lever III wrote: > > > > > > > >> On May 27, 2022, at 4:37 PM, Frank van der Linden wrote: > >> > >> On Fri, May 27, 2022 at 06:59:47PM +0000, Chuck Lever III wrote: > >>> > >>> > >>> Hi Frank- > >>> > >>> Bruce recently reminded me about this issue. Is there a bugzilla somewhere? > >>> Do you have a reproducer I can try? > >> > >> Hi Chuck, > >> > >> The easiest way to reproduce the issue is to run generic/531 over an > >> NFSv4 mount, using a system with a larger number of CPUs on the client > >> side (or just scaling the test up manually - it has a calculation based > >> on the number of CPUs). > >> > >> The test will take a long time to finish. I initially described the > >> details here: > >> > >> https://lore.kernel.org/linux-nfs/20200608192122.GA19171@dev-dsk-fllinden-2c-c1893d73.us-west-2.amazon.com/ > >> > >> Since then, it was also reported here: > >> > >> https://lore.kernel.org/all/20210531125948.2D37.409509F4@e16-tech.com/T/#m8c3e4173696e17a9d5903d2a619550f352314d20 > > > > Thanks for the summary. So, there isn't a bugzilla tracking this > > issue? If not, please create one here: > > > > https://bugzilla.linux-nfs.org/ > > > > Then we don't have to keep asking for a repeat summary ;-) > > I can easily reproduce this scenario in my lab. I've opened: > > https://bugzilla.linux-nfs.org/show_bug.cgi?id=386 > Thanks for taking care of that. I'm switching jobs, so I won't have much time to look at it or test for a few weeks. I think the basic problem is that the filecache is a clear win for v3, since that's stateless and it avoids a lookup for each operation. For v4, it's not clear to me that it's much of a win, and in this case it definitely gets in the way. Maybe the best thing is to not bother at all with the caching for v4, although that might hurt mixed v3/v4 clients accessing the same fs slightly. Not sure how common of a scenario that is, though. - Frank