Page MenuHomeFreeBSD

kern/nullfs: Add the sysctl to control the vnode caching upon mounting nullfs. (stable/13)
AbandonedPublic

Authored by seigo.tanimura_gmail.com on Mar 5 2024, 6:32 AM.
Tags
None
Referenced Files
F83388778: D44218.id135398.diff
Thu, May 9, 7:37 PM
Unknown Object (File)
Sat, May 4, 1:19 PM
Unknown Object (File)
Thu, Apr 25, 8:34 PM
Unknown Object (File)
Sun, Apr 14, 5:46 PM
Unknown Object (File)
Apr 8 2024, 10:59 AM
Unknown Object (File)
Apr 7 2024, 7:09 PM
Unknown Object (File)
Mar 8 2024, 12:18 AM
Unknown Object (File)
Mar 7 2024, 5:10 PM
Subscribers

Details

Reviewers
None
Summary

This is an alternative solution to recycle the nullfs vnodes not in use.

  • New sysctl OID
  • vfs.nullfs.cache_nodes If true (default), a newly mounted nullfs filesystem caches its vnodes after finishing their uses. (0 == v_usecount) If false, a newly mounted nullfs filesystem recycles its vnodes immediately upon finishing their uses. The configuration affects the vnodes in the newly mounted nullfs filesystems only. The vnodes in the nullfs filesystems already mounted are not affected. (NB nullfs does not support updating the mount options.)

Based on: https://reviews.freebsd.org/D44177
Security: FreeBSD-EN-23:18.openzfs
Signed-off-by: Seigo Tanimura <seigo.tanimura@gmail.com>

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 56447
Build 53335: arc lint + arc unit

Event Timeline

Unlike https://reviews.freebsd.org/D44178, this fix does not depend on the ZFS fix and can be merged independently from it.