HomeFreeBSD

vfs: vntblinit(): Rework comments on the computation of 'kern.maxvnodes'

Description

vfs: vntblinit(): Rework comments on the computation of 'kern.maxvnodes'

Remove the parts that describe what is already in the code formula. Add
hints about which of 'physvnodes'/'virtvnodes' takes precedence, and
when 'desiredvnodes' becomes smaller than 'maxfiles'. These were both
computed analytically and verified experimentally.

Reviewed by: kib (older version)
MFC after: 3 days
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D50310

Details

Provenance
olceAuthored on May 12 2025, 11:20 AM
Reviewer
kib
Differential Revision
D50310: vfs: vntblinit(): Rework comments on the computation of 'kern.maxvnodes'
Parents
rG1fd80186c91d: Revert commit 1935cc945642 ("vfs: vntblinit(): Rework comments on...")
Branches
Unknown
Tags
Unknown