Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1548101rwl; Wed, 5 Apr 2023 19:59:14 -0700 (PDT) X-Google-Smtp-Source: AKy350Zk8ZjfiO5UnO1zpUTWd57TY1GSMY1BWuCqq6fBLy3qTVSZvVKjagqk2j2Q762ZYEIPu4Ny X-Received: by 2002:a05:6a20:dc9e:b0:d9:4c19:fe69 with SMTP id ky30-20020a056a20dc9e00b000d94c19fe69mr1289280pzb.25.1680749954638; Wed, 05 Apr 2023 19:59:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680749954; cv=none; d=google.com; s=arc-20160816; b=XPBMj5MUMX29TPMPzLsf8B/M2S+/ksuoyOgYMsRNbNeGKrUVHjhjZbkbEMN2p/FhVo Bo/I8Q7WiPoZaCL7hZ1MuPPzTFfouNoYS6hR3X4aMm3PDo28ej9FSnFtu8kLBFaMZ01r vDnpgzW9F2R0f6QgcSb8bcF2BgOAujwZOpSxIi95t6VBzKSSR3GWt8x+Lum65uwB3Edc WBJtG7WDVOM2XDwoxmS9ClTv68U23nk32P4LfbaOVvXjKkge59cSYscNbhggNXMjFB83 L1NI6yWo0nBUrdV9LVqedDKbwApww5HeuxdrwBUEo95T1Pqf4+qKhlkNGz3yN3B38upy cV8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=yd4nOb4A8S0cIwUdQixaUvZic+AC6Ir3/vF0pHmrh8k=; b=VkfuUWAtsMPwNtVT5W5QqSAL9XouO/+iBrjLZiRtU2Y/4UezgtK0vewQDucStqOsfj LDuB7hCiRSzdQ+Df0PbfU3Q6jxYf4K96Ib3fHakjcwlfLn3GrRnJYZ57r+OZYcaL7RDc ueliWK3OTv/Hed7Ao+i0TSTorkngOEqokHkrw3CwV589e/lLWM9T8k1zueXamq7cCV08 tdACN+XqiSFDbu6stt6mr2sMlrwW7vsjnDEa5X0bquGcyFfkwysXwORQgzHnjr/lRdqt lsbSm4FK8kO3r5bMiilt3lDtfGJ/JyLGpD59M0l1uysxhqvt5kHrp5uVOubqckGumwP6 s57A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=e6V6DKLW; 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=canonical.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 141-20020a621793000000b005907558613bsi329198pfx.17.2023.04.05.19.58.54; Wed, 05 Apr 2023 19:59:14 -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=@canonical.com header.s=20210705 header.b=e6V6DKLW; 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=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234262AbjDFC4e (ORCPT + 99 others); Wed, 5 Apr 2023 22:56:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52176 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235230AbjDFC4Y (ORCPT ); Wed, 5 Apr 2023 22:56:24 -0400 Received: from smtp-relay-internal-0.canonical.com (smtp-relay-internal-0.canonical.com [185.125.188.122]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BAFE1B3 for ; Wed, 5 Apr 2023 19:56:00 -0700 (PDT) Received: from mail-yb1-f200.google.com (mail-yb1-f200.google.com [209.85.219.200]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-0.canonical.com (Postfix) with ESMTPS id 4E7573F20A for ; Thu, 6 Apr 2023 02:55:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1680749758; bh=yd4nOb4A8S0cIwUdQixaUvZic+AC6Ir3/vF0pHmrh8k=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=e6V6DKLW6JewSQkm0bGuJwHNZAG9iAi0gKLgW7FjqTNNLD1g1Npc63PH9wsv4qSB6 sVq3BMAtv6EmyBeERM3wBi3IJ8d1lOfht+nAr2a5/dVdm7C2grTZLj/PX8LkKzlJMo kUsGQaWbaAi6cGDXhJER8gKdfHyt1GXAbPTJ/uHDBlArMAX4Zai4y93PBEhfzeWE6y mk74WMs+tJhmZJXFc7CcbttzWIlMuppNZAXYg6lIaeo1KF1611FrSBWzszLLfCcDq0 pJf4qx+bgGVwT59cVoqF85lC4Vc6i1mi6lU2tnwyPiCt1RWlNCbmSEHC43+TWLRuWr J7CINHvNdlZsQ== Received: by mail-yb1-f200.google.com with SMTP id i11-20020a256d0b000000b0086349255277so37650782ybc.8 for ; Wed, 05 Apr 2023 19:55:58 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680749757; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=yd4nOb4A8S0cIwUdQixaUvZic+AC6Ir3/vF0pHmrh8k=; b=1AdkXLTNoqd+jI2S1aQltWp04Kb/eUhkmpJgWxh3ruK3444igoQRUiGZW0L4iwaSNf aEqyRhTsI0ebo4tdWU8rYi5x7U8NKt4IJjts2s/FeulHuotW9TEvy2tBWTJi2AreHF7u p2Vyc28DF0F65MH8Y59YQ6QIcd4elV9Z92ikBC1qkCBMERi6kRRmNKuLCZM/4YEutvX4 6RHQgr8BKTvJGFchUfYpGtvRe+yYLJ3OOaYFdrbu0YC/npGk0V42rfloeMa5lmp322fA ZBuXyJhbPwTl0AIaj6wW1BYadoLJUvNnKGXOX22VbuDr2i3vHb49zeDXRY7wsL9pAfqu lzHQ== X-Gm-Message-State: AAQBX9c66pvihP+FAsxjX8w/il59iCDxLnpVTUNtiOVXqklz/nojnlJz uN86DfGhAkw99HPrhGfw0yZRsLA00kA4N104fjMwi6nOLLU88HZqQPLGI6L7JpfEE9KgyC7TzhU 2riMlW7krMdjOE8knRd0Xc26gxC4yEvK3Ho6JiaQbY+GZypjvmBFuYQ== X-Received: by 2002:a25:d711:0:b0:b7c:1144:a708 with SMTP id o17-20020a25d711000000b00b7c1144a708mr1067081ybg.12.1680749757318; Wed, 05 Apr 2023 19:55:57 -0700 (PDT) X-Received: by 2002:a25:d711:0:b0:b7c:1144:a708 with SMTP id o17-20020a25d711000000b00b7c1144a708mr1067074ybg.12.1680749757044; Wed, 05 Apr 2023 19:55:57 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Chengen Du Date: Thu, 6 Apr 2023 10:55:46 +0800 Message-ID: Subject: Re: [NFS] Performance degradation due to commit 0eb43812c027 (NFS: Clear the file access cache upon login) To: trond.myklebust@hammerspace.com, Anna Schumaker Cc: linux-nfs@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS 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 Hi Trond / Anna, I apologize for disturbing you, as I understand that you may be occupied with other tasks. However, I wanted to bring to your attention that several users have reported a performance issue, and are eagerly awaiting a possible solution. I have proposed a potential solution and I would be grateful if you could provide me with some feedback. Your input would be highly appreciated, as it will allow me to continue working on this issue and finding a resolution for our users. Thank you for your time and consideration. Best regards, Chengen Du On Wed, Mar 29, 2023 at 1:48=E2=80=AFPM Chengen Du wrote: > > Hi Trond / Anna, > > I wanted to provide you with additional feedback regarding the > performance issue that was addressed in commit 21fd9e8700de (NFS: > Correct timing for assigning access cache timestamp). > I apologize for reaching out to you frequently, but I believe this > information is important to share. > > Although the commit appears to have resolved the issue, I have > received reports from some community users who are experiencing a > significant increase in NFS ACCESS operations. > If you are interested, you can find further details regarding this > feedback here: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/20093= 25 > > After conducting a survey, I have discovered that this issue may be > attributed to suexec-like mechanisms. > Specifically, applications or users may use the 'su' command to switch > to other privileged users and operate on NFS-mounted folders. > In these instances, the login time will be renewed, and NFS ACCESS > operations will need to be resent. > > While I believe the new mechanism adheres to POSIX design and the > performance overhead seems reasonable, > I think it would be beneficial to provide a mount option that allows > users to decide whether to renew access cache after login. > In some production environments where access cache can be trusted due > to the stable group membership, this option could be particularly > useful. > > In my humble opinion, the option could be enabled by default for most > personal users who can afford the overhead. > However, I am open to hearing your thoughts on this approach or any > alternative ideas you may have. > I would be willing to contribute to this effort if there is an opportunit= y. > > Thank you for your time and consideration. > > Best regards, > Chengen Du