linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3] nfs(5): adding new mount option 'fasc'
@ 2023-08-28  5:53 Chengen Du
  2023-11-10 16:54 ` Steve Dickson
  0 siblings, 1 reply; 5+ messages in thread
From: Chengen Du @ 2023-08-28  5:53 UTC (permalink / raw)
  To: steved; +Cc: linux-nfs, Chengen Du

Add an option that triggers the clearing of the file
access cache as soon as the cache timestamp becomes
older than the user's login time.

Signed-off-by: Chengen Du <chengen.du@canonical.com>
---
 utils/mount/nfs.man | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/utils/mount/nfs.man b/utils/mount/nfs.man
index 9b4bc9c9..2ac7b4ad 100644
--- a/utils/mount/nfs.man
+++ b/utils/mount/nfs.man
@@ -608,6 +608,19 @@ option is not specified,
 the default behavior depends on the kernel version,
 but is usually equivalent to
 .BR "xprtsec=none" .
+.TP 1.5i
+.BI fasc
+Triggers the clearing of the file access cache as soon as the cache 
+timestamp becomes older than the user's login time. It is supported 
+in kernels 6.4 and later.
+.IP
+NFS servers often refresh their users' group membership at their 
+own cadence, which means the NFS client's file access cache can 
+become stale if the user's group membership changes on the server 
+after they've logged in on the client. To align with the principles 
+of the POSIX design, which only refreshes the user's supplementary 
+group information upon login, the mechanism uses the user's login 
+time to determine whether the file access cache needs to be refreshed.
 .SS "Options for NFS versions 2 and 3 only"
 Use these options, along with the options in the above subsection,
 for NFS versions 2 and 3 only.
-- 
2.39.2


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH v3] nfs(5): adding new mount option 'fasc'
  2023-08-28  5:53 [PATCH v3] nfs(5): adding new mount option 'fasc' Chengen Du
@ 2023-11-10 16:54 ` Steve Dickson
  2023-11-10 19:08   ` Trond Myklebust
  0 siblings, 1 reply; 5+ messages in thread
From: Steve Dickson @ 2023-11-10 16:54 UTC (permalink / raw)
  To: Chengen Du; +Cc: linux-nfs

Hello,

My apologies on this delay...

On 8/28/23 1:53 AM, Chengen Du wrote:
> Add an option that triggers the clearing of the file
> access cache as soon as the cache timestamp becomes
> older than the user's login time.
> 
> Signed-off-by: Chengen Du <chengen.du@canonical.com>
On a 6.7-rc0 kernel I'm getting "nfs: Unknown parameter 'fasc'"
error... was this never implemented?

steved.

> ---
>   utils/mount/nfs.man | 13 +++++++++++++
>   1 file changed, 13 insertions(+)
> 
> diff --git a/utils/mount/nfs.man b/utils/mount/nfs.man
> index 9b4bc9c9..2ac7b4ad 100644
> --- a/utils/mount/nfs.man
> +++ b/utils/mount/nfs.man
> @@ -608,6 +608,19 @@ option is not specified,
>   the default behavior depends on the kernel version,
>   but is usually equivalent to
>   .BR "xprtsec=none" .
> +.TP 1.5i
> +.BI fasc
> +Triggers the clearing of the file access cache as soon as the cache
> +timestamp becomes older than the user's login time. It is supported
> +in kernels 6.4 and later.
> +.IP
> +NFS servers often refresh their users' group membership at their
> +own cadence, which means the NFS client's file access cache can
> +become stale if the user's group membership changes on the server
> +after they've logged in on the client. To align with the principles
> +of the POSIX design, which only refreshes the user's supplementary
> +group information upon login, the mechanism uses the user's login
> +time to determine whether the file access cache needs to be refreshed.
>   .SS "Options for NFS versions 2 and 3 only"
>   Use these options, along with the options in the above subsection,
>   for NFS versions 2 and 3 only.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH v3] nfs(5): adding new mount option 'fasc'
  2023-11-10 16:54 ` Steve Dickson
@ 2023-11-10 19:08   ` Trond Myklebust
  2023-11-11 14:44     ` Steve Dickson
  0 siblings, 1 reply; 5+ messages in thread
From: Trond Myklebust @ 2023-11-10 19:08 UTC (permalink / raw)
  To: chengen.du, steved; +Cc: linux-nfs

On Fri, 2023-11-10 at 11:54 -0500, Steve Dickson wrote:
> Hello,
> 
> My apologies on this delay...
> 
> On 8/28/23 1:53 AM, Chengen Du wrote:
> > Add an option that triggers the clearing of the file
> > access cache as soon as the cache timestamp becomes
> > older than the user's login time.
> > 
> > Signed-off-by: Chengen Du <chengen.du@canonical.com>
> On a 6.7-rc0 kernel I'm getting "nfs: Unknown parameter 'fasc'"
> error... was this never implemented?
> 

No. There are no plans to add any mount parameters for this
functionality.

-- 
Trond Myklebust
Linux NFS client maintainer, Hammerspace
trond.myklebust@hammerspace.com



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH v3] nfs(5): adding new mount option 'fasc'
  2023-11-10 19:08   ` Trond Myklebust
@ 2023-11-11 14:44     ` Steve Dickson
  2023-11-14  9:31       ` Daire Byrne
  0 siblings, 1 reply; 5+ messages in thread
From: Steve Dickson @ 2023-11-11 14:44 UTC (permalink / raw)
  To: Trond Myklebust, chengen.du; +Cc: linux-nfs



On 11/10/23 2:08 PM, Trond Myklebust wrote:
> On Fri, 2023-11-10 at 11:54 -0500, Steve Dickson wrote:
>> Hello,
>>
>> My apologies on this delay...
>>
>> On 8/28/23 1:53 AM, Chengen Du wrote:
>>> Add an option that triggers the clearing of the file
>>> access cache as soon as the cache timestamp becomes
>>> older than the user's login time.
>>>
>>> Signed-off-by: Chengen Du <chengen.du@canonical.com>
>> On a 6.7-rc0 kernel I'm getting "nfs: Unknown parameter 'fasc'"
>> error... was this never implemented?
>>
> 
> No. There are no plans to add any mount parameters for this
> functionality.
Thank you!

steved.

> 


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH v3] nfs(5): adding new mount option 'fasc'
  2023-11-11 14:44     ` Steve Dickson
@ 2023-11-14  9:31       ` Daire Byrne
  0 siblings, 0 replies; 5+ messages in thread
From: Daire Byrne @ 2023-11-14  9:31 UTC (permalink / raw)
  To: Steve Dickson; +Cc: Trond Myklebust, chengen.du, linux-nfs

On Sat, 11 Nov 2023 at 14:45, Steve Dickson <steved@redhat.com> wrote:
>
>
>
> On 11/10/23 2:08 PM, Trond Myklebust wrote:
> > On Fri, 2023-11-10 at 11:54 -0500, Steve Dickson wrote:
> >> Hello,
> >>
> >> My apologies on this delay...
> >>
> >> On 8/28/23 1:53 AM, Chengen Du wrote:
> >>> Add an option that triggers the clearing of the file
> >>> access cache as soon as the cache timestamp becomes
> >>> older than the user's login time.
> >>>
> >>> Signed-off-by: Chengen Du <chengen.du@canonical.com>
> >> On a 6.7-rc0 kernel I'm getting "nfs: Unknown parameter 'fasc'"
> >> error... was this never implemented?
> >>
> >
> > No. There are no plans to add any mount parameters for this
> > functionality.
> Thank you!

Just to add, we still revert the patches that changed the default
behaviour from v6.2 onwards.

We found that the access cache not only gets wiped by interactive user
logins, but also various automated processes (e.g. sar/systat
collection) that also frequently "login" across all our clients.

When you scale this up across thousands of clients (render farm), the
result was a 40% increase in (ACCESS) IOPs to our netapps and a 20%
increase in their CPU usage. So we will continue to revert the patches
for as long as we can.

Cheers,

Daire

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-11-14  9:32 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-28  5:53 [PATCH v3] nfs(5): adding new mount option 'fasc' Chengen Du
2023-11-10 16:54 ` Steve Dickson
2023-11-10 19:08   ` Trond Myklebust
2023-11-11 14:44     ` Steve Dickson
2023-11-14  9:31       ` Daire Byrne

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).