Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* Half-open TCP connections under high load
@ 1995-09-08  4:00 Jeff Hayward
  1995-09-12  4:00 ` Jeffrey Mogul
  0 siblings, 1 reply; 3+ messages in thread
From: Jeff Hayward @ 1995-09-08  4:00 UTC (permalink / raw)


We have a 3000/700 running DU 3.2 which handles a lot of incoming
SMTP connections.  At times, when there's a high rate of incoming
connections (say, just after MCInet comes back from a long outage)
we see connection attempts 'stall' in a half-open state.

I'm assuming that this is because the TCP accept queue in the kernel
is being overflowed by the rate of incoming SYNs.

Has anyone else seen this problem, and is there some way I can give
the kernel more resources to handle our load?

Thanks,
--
Jeff Hayward					j.hayward@utexas.edu
The University of Texas System			+1 512 471 2432 (v)
Office of Telecommunication Services		+1 512 471 2449 (f)





^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Half-open TCP connections under high load
  1995-09-08  4:00 Half-open TCP connections under high load Jeff Hayward
@ 1995-09-12  4:00 ` Jeffrey Mogul
  1995-09-12  4:00   ` Jeff Hayward
  0 siblings, 1 reply; 3+ messages in thread
From: Jeffrey Mogul @ 1995-09-12  4:00 UTC (permalink / raw)


In article <42q4fn$r8o@geraldo.cc.utexas.edu> jah@mojo.ots.utexas.edu (Jeff Hayward) writes:
>We have a 3000/700 running DU 3.2 which handles a lot of incoming
>SMTP connections.  At times, when there's a high rate of incoming
>connections (say, just after MCInet comes back from a long outage)
>we see connection attempts 'stall' in a half-open state.
>
>I'm assuming that this is because the TCP accept queue in the kernel
>is being overflowed by the rate of incoming SYNs.
>
>Has anyone else seen this problem, and is there some way I can give
>the kernel more resources to handle our load?

There's a kernel global, somaxconn, that controls the queue limit.
I think the default value is "8".  You should set it to be much
larger.  I would imagine that setting it to 1000 wouldn't hurt,
unless you have almost no RAM on the system.  I think this has
to be done using dbx, but there might be another way.

This will have no effect, however, unless you ALSO change the
second argument of the listen() system call (done in your SMTP
listener) to be equally large, or larger.  I'd try something
huge, since the kernel does min(backlog, somaxconn) and so whatever
you do here can't hurt.

No guarantees, of course.  This is not an official statement by
Digital Equipment Corp.

-Jeff



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Half-open TCP connections under high load
  1995-09-12  4:00 ` Jeffrey Mogul
@ 1995-09-12  4:00   ` Jeff Hayward
  0 siblings, 0 replies; 3+ messages in thread
From: Jeff Hayward @ 1995-09-12  4:00 UTC (permalink / raw)


In article <432lel$3a4@usenet.pa.dec.com>,
Jeffrey Mogul <mogul@pa.dec.com> wrote:
>There's a kernel global, somaxconn, that controls the queue limit.
>I think the default value is "8".  You should set it to be much
>larger.  I would imagine that setting it to 1000 wouldn't hurt,
>unless you have almost no RAM on the system.  I think this has
>to be done using dbx, but there might be another way.
>
>This will have no effect, however, unless you ALSO change the
>second argument of the listen() system call (done in your SMTP
>listener) to be equally large, or larger. 


This seems to be the correct advice.  In case anyone else sees this
problem
	dbx -k /vmunix
	assign somaxconn=large #
	exit

sets the kernel variable, and

	OOListen=large #

in the sendmail config file tells sendmail 8 what number to use
for the "backlog" variable in the "listen" system call.

Thanks much for the help.

--
Jeff Hayward



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1995-09-12  4:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-09-08  4:00 Half-open TCP connections under high load Jeff Hayward
1995-09-12  4:00 ` Jeffrey Mogul
1995-09-12  4:00   ` Jeff Hayward

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox