Page MenuHomeFreeBSD

p9fs: Implement msize mount option and bump default to 128 KiB
ClosedPublic

Authored by arichardson on Apr 18 2026, 5:59 AM.
Tags
None
Referenced Files
F159234314: D56496.diff
Thu, Jun 11, 4:09 PM
Unknown Object (File)
Wed, Jun 10, 2:19 PM
Unknown Object (File)
Mon, Jun 8, 4:15 PM
Unknown Object (File)
Wed, May 13, 6:22 PM
Unknown Object (File)
May 12 2026, 5:33 PM
Unknown Object (File)
May 12 2026, 7:29 AM
Unknown Object (File)
May 12 2026, 1:41 AM
Unknown Object (File)
May 10 2026, 9:00 AM
Subscribers

Details

Summary

QEMU warns when msize is <= 8192 due to degraded performance.
This change bumps our default msize to 128 KiB, matching the
Linux Kernel v5.15 and newer default. Linux supports even larger values,
but 128 KiB is a sensible default.

We also add a new 'msize' mount option to allow users to override
this value, and we validate it against our maximum supported MTU
(currently fixed by the UMA zone size).

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable