Repository navigation
pnfs-common: shorten the metadata server's NFSv4 lease and grace time to 15 s - #32
Merged
Merged
Conversation
mxsrc
approved these changes
Nov 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The MDS guest's nfsd runs with the Linux defaults (lease 90 s, grace 90 s; boot log:
NFSD: starting 90-second grace period). After every MDS restart, every pNFS client is blocked for the grace period. In a reproduction the grace/reclaim segment was the largest part of a 93 s client-wide stall. Part of RCA pnfs_mds_not_in_eviction_targets_rca_20261111.Change
Add
lease-time=15andgrace-time=15to the[nfsd]section ofprototype/boards/pnfs-common/rootfs_overlay/etc/nfs.conf. The board builds nfs-utils 2.9.1 (buildroot submodule), whose rpc.nfsd and nfsdctl read both keys from[nfsd]and write them to /proc/fs/nfsd before starting the threads.Trade-off
Clients renew their lease about every 15 s instead of every 90 s, which is a small load for a metadata server. A client that cannot reach the MDS for more than ~15 s loses its state sooner.
Testing
Not built or verified on a cluster yet. Expected check: the guest boot log shows
NFSD: starting 15-second grace period.Related: simplyblock/simplyblock-operator#904