Re: network outages

[email protected] (Michael van Elst) Sat, 21 Mar 2026 16:54:36 -0000 (UTC)
Newsgroups gmane.os.netbsd.current
Organization Serpens User Group
Message-ID <[email protected]>
[email protected] (Greg Troxel) writes:

>I then did binary search on just changing sendspace.  The highest value
>that works exactly is 209715 which is 0x33333.

262144 * 2048 / ( 512 + 2048 ) = 209715.

The relevant setting is kern.sbmax. Setting a socket buffer beyond
sbmax * MCLBYTES / (MSIZE + MCLBYTES) fails and the TCP protocol
no longer attaches.

The correction factor obviously should make kern.sbmax show the
total memory used for a buffer including the headers.  But it's
just confusing.