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
Unknown Object (File)
Mon, Nov 11, 12:51 AM
Unknown Object (File)
Tue, Nov 5, 2:20 PM
Unknown Object (File)
Tue, Oct 29, 7:24 AM
Unknown Object (File)
Sat, Oct 26, 6:42 AM
Unknown Object (File)
Sat, Oct 26, 6:42 AM
Unknown Object (File)
Sat, Oct 26, 6:42 AM
Unknown Object (File)
Sat, Oct 26, 6:40 AM
Unknown Object (File)
Sat, Oct 26, 6:30 AM
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 56442
Build 53330: 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.