Subject: Re: New sysctl "net.listen_backlog"?
To: Jonathan Stone <jonathan@DSG.Stanford.EDU>
From: Perry E. Metzger <perry@piermont.com>
List: tech-net
Date: 09/14/1998 23:39:43
Jonathan Stone writes:
> how about this:
> sysctl names:
> 	net.socket.listenq_min
> 	net.socket.listenq_max
> 	    (anything else in the socket layer itself that's sysctlable?)

This seems reasonable. maybe listen_qlen_ would be be better, but it
is fine as is.

> CPP/option names for the boot-time default values for so{min,max}conn:
> 	SOMINCONN_DEFAULT	(defaults to 5? 10?)

zero is better -- default behavior is "believe the application". Matt
indicated D.U. works this way (with a default of zero), and it seems
reasonable to me. If you want to forceably raise it because you have a
specific application that isn't performing well, then you can. "We
supply the rope..."

> BTW, this  has the nice side-effect that changing "most" daemons to do
> 
> 	listen(fd, 0)
> 
> gives them a backlog of whatever sominconn is, and we can bump that
> value in one place.  Nice.

Hmmm. Not sure we want to force things to be done that way.

I agree with all the other things said that I didn't specifically
comment on.

Perry