Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp6020198ioo; Wed, 1 Jun 2022 18:51:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxG1gdoQDcVfDnXwOO8b4GCZPPC8YFD6iIikyFCQ6o7n0/GaMdygyFUxV3P4qeVCyF2jTh+ X-Received: by 2002:a05:6a00:ad0:b0:4f7:a357:6899 with SMTP id c16-20020a056a000ad000b004f7a3576899mr2531533pfl.80.1654134682550; Wed, 01 Jun 2022 18:51:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654134682; cv=none; d=google.com; s=arc-20160816; b=aOJsdkYc7DcqOKgt4JvNECM6M4Uz6erfRjgVcpblhnwmzqKWZKyNiXqSew3/c2lYI/ 6YF7ePttKq+9bySCzT+6/Jltpgx09sf9OLaqYgDq4ISoKI7BLOwIlWdS8lruuwht+Zz0 5pD2MbK8ZPMm9qJxEyIaoMB91NcYk7N6cDtsvcXCfnr/aEehs27PgonyuYXc6uWr0vAG 479HZ2w2tK8fXzA5ATt4KMNEqfi354Z6NlFQxpmrSDohcpk00+deA/nxs84/XipDRixU 08VKUULk6f1Rsb8FRrSUpVt7YDwD129/xF6kk+zre5YYT4N4c+ZMH4I2UbWt1SkcPsZ+ OYmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:references:in-reply-to:cc:subject:to:from:date; bh=dzwGPmJ2wNcdUVBTiXDLndCWjwZxvzFOojTXtfLBFg4=; b=eojVZeev0QTSySEpgBOew1t2Dhh/XeId03n7mJlh7GP5A6v3p6NobtLB0V2PIGjmoo VFVzcPamyQI2YT/15aCM+Ax90tuA9BTDcfiu2SaAIf/jLPpbOUUWKzloPr+UidJQIKQx rHRc//THUqqDA2TvIeT/qrOIYD9eShUQQslZ3Pfn+Tfif82fgVNxRWV49IeVYmTepBXx KC6nEkpzBEdlubVI/wJfboxegFLH8KAnv3IbvzMUrGbuBKPl1ggBDutW+4uYyACnBOYk HTQx+4WktZRUowDjsTSRDhVPub/eNGupRNMzUQXnO/Tq7Zu+qNJXPH4f3nfqSuolBW+z kEWA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id b27-20020a630c1b000000b003fb194f55f8si3681798pgl.432.2022.06.01.18.51.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jun 2022 18:51:22 -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; 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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 56AD5213294; Wed, 1 Jun 2022 18:50:11 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232986AbiFBBuJ (ORCPT + 99 others); Wed, 1 Jun 2022 21:50:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54834 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232949AbiFBBuI (ORCPT ); Wed, 1 Jun 2022 21:50:08 -0400 Received: from out20-110.mail.aliyun.com (out20-110.mail.aliyun.com [115.124.20.110]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4390B212571 for ; Wed, 1 Jun 2022 18:49:58 -0700 (PDT) X-Alimail-AntiSpam: AC=CONTINUE;BC=0.3048671|-1;CH=green;DM=|CONTINUE|false|;DS=CONTINUE|ham_news_journal|0.0168223-0.000627065-0.982551;FP=0|0|0|0|0|-1|-1|-1;HT=ay29a033018047213;MF=wangyugui@e16-tech.com;NM=1;PH=DS;RN=5;RT=5;SR=0;TI=SMTPD_---.NxZ.-1b_1654134595; Received: from 192.168.2.112(mailfrom:wangyugui@e16-tech.com fp:SMTPD_---.NxZ.-1b_1654134595) by smtp.aliyun-inc.com(33.37.75.176); Thu, 02 Jun 2022 09:49:55 +0800 Date: Thu, 02 Jun 2022 09:49:57 +0800 From: Wang Yugui To: Chuck Lever III Subject: Re: filecache LRU performance regression Cc: Frank van der Linden , Linux NFS Mailing List , Matthew Wilcox , Liam Howlett In-Reply-To: <4C14DB3A-A5C1-41A9-8293-DF4FC2459600@oracle.com> References: <20220601161003.GA20483@dev-dsk-fllinden-2c-d7720709.us-west-2.amazon.com> <4C14DB3A-A5C1-41A9-8293-DF4FC2459600@oracle.com> Message-Id: <20220602094956.A396.409509F4@e16-tech.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Becky! ver. 2.75.04 [en] X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY autolearn=no 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 Hi, > Certainly, though, the filecache plays somewhat different roles > for legacy NFS and NFSv4. I've been toying with the idea of > maintaining separate filecaches for NFSv3 and NFSv4, since > the garbage collection and shrinker rules are fundamentally > different for the two, and NFSv4 wants a file closed completely > (no lingering open) when it does a CLOSE or DELEGRETURN. if NFSv4 closed a file completely (no lingering open) when it does a CLOSE or DELEGRETURN, then the flowing problem seems to be fixed too. https://lore.kernel.org/linux-nfs/20211002111419.2C83.409509F4@e16-tech.com/ Best Regards Wang Yugui (wangyugui@e16-tech.com) 2022/06/02