Re: How can I get and set the default FreeBSD NFSv4 server TCP block size?

From: Rick Macklem <rick.macklem_at_gmail.com>
Date: Tue, 17 Mar 2026 00:36:17 UTC
On Mon, Mar 16, 2026 at 12:59 AM Cedric Blancher
<cedric.blancher@gmail.com> wrote:
>
> Good morning!
>
> How can I get and set the default FreeBSD NFSv4 server TCP block size?
I assume you mean the maximum read/write data size..
# sysctl vfs.nfsd.srvmaxio
It can be set up to 1Mbyte via this line in /etc/rc.conf
nfs_server_maxio=<N>

> What is the current limit (LInux uses 1MB, Windows Server 2025 16MB)?
128Kbytes and can be increased to 1Mbyte.
(Setting greater than 1Mbyte will require a patch to ZFS, since it
crashes when set to greater than 1Mbyte. That is why you cannot
currently set it to greater than 1Mbyte.)

rick

>
> Ced
> --
> Cedric Blancher <cedric.blancher@gmail.com>
> [https://plus.google.com/u/0/+CedricBlancher/]
> Institute Pasteur
>