Re: squid, DNS and no buffer space

Michael van Elst <[email protected]>
Newsgroups gmane.os.netbsd.devel.network
Message-ID <[email protected]>
On Fri, Dec 06, 2024 at 02:49:03PM +0000, Stephen Borrill wrote:
> At 13:17 I doubled the values again:
> 13:17   sysctl -w kern.somaxkva=134217728
> 13:17   sysctl -w kern.sbmax=134217728
> 
> The warnings continued:

sbmax is the limit for a single socket buffer.
somaxkva is the limit for the whole network stack.

If you make the same size, this allows one socket buffer to
eat all allowed memory. I doubt that this is the problem,
otherwise you'd need more mbufs allocated to fill the
larger somaxkva now, but the netstat output didn't change.

But please verify with somaxkva >> sbmax (and a much
smaller sbmax).


Greetings,
-- 
                                Michael van Elst
Internet: [email protected]
                                "A potential Snark may lurk in every tree."
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.