Re: Surprising observations on the NetBSD TCP stack

[email protected] (Michael van Elst) Thu, 9 Oct 2025 20:51:29 -0000 (UTC)
Newsgroups gmane.os.netbsd.devel.network
Organization Serpens User Group
Message-ID <[email protected]>
[email protected] (Frank Kardel) writes:

>Maybe there are issues in the igc driver. sending from there does not 
>look completely perfect.

Yes. I have a igc (I226-V) here, but so far it's not very stable
and sending often stalls completely.


>net.inet.tcp.keepinit = 150
>net.inet.tcp.recvbuf_auto = 1
>net.inet.tcp.recvbuf_inc = 131072
>net.inet.tcp.recvbuf_max = 1048576
>net.inet.tcp.sendbuf_auto = 1
>net.inet.tcp.sendbuf_inc = 131072
>net.inet.tcp.sendbuf_max = 1048576

kern.sbmax is another global limit and needs to be at least as large
as the max values.

With large buffers you may need to increase kern.somaxkva (total
memory limit for networking) too.