* tcp connections/sec
@ 1998-02-26 5:00 matsjo
1998-02-27 5:00 ` Joel Gallun
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: matsjo @ 1998-02-26 5:00 UTC (permalink / raw)
Doing some networking related benchmarking on Digital UNIX 4.0B. Seems that
something limits the number of tcp connections the box can handle to
exactly 100 connections/second.
Anyone aware of any kernel/internal parameters which fixes this.
/Cheers, Mats
Mats Johansson
-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/ Now offering spam-free web-based newsreading
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: tcp connections/sec
1998-02-26 5:00 tcp connections/sec matsjo
@ 1998-02-27 5:00 ` Joel Gallun
1998-03-03 5:00 ` Jeffrey Mogul
1998-03-03 5:00 ` Rick Jones
2 siblings, 0 replies; 4+ messages in thread
From: Joel Gallun @ 1998-02-27 5:00 UTC (permalink / raw)
To: matsjo
Take a look at this URL:
http://www.digital.com:80/internet/document/ias/tuning.html
--
Joel Gallun joel@tux.org
Open system and Internet consulting Washington, D.C.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: tcp connections/sec
1998-02-26 5:00 tcp connections/sec matsjo
1998-02-27 5:00 ` Joel Gallun
@ 1998-03-03 5:00 ` Jeffrey Mogul
1998-03-03 5:00 ` Rick Jones
2 siblings, 0 replies; 4+ messages in thread
From: Jeffrey Mogul @ 1998-03-03 5:00 UTC (permalink / raw)
In article <6d3o77$g21$1@nnrp2.dejanews.com>, matsjo@ainigma.com writes:
|> Doing some networking related benchmarking on Digital UNIX 4.0B. Seems that
|> something limits the number of tcp connections the box can handle to
|> exactly 100 connections/second.
|>
|> Anyone aware of any kernel/internal parameters which fixes this.
Getting good TCP performance often requires understanding a lot
of complex details. (For example, using the write system calls
and buffer sizes.) It's more than I can possibly describe in
a short message, especially without seeing your source code.
However, one should easily be able to get 10 times as many TCP
connections per second. For example, published benchmark results
for SPECWeb96 on a 1-CPU Alphaserver 1200 5/533 show 1631 HTTP
requests (= TCP connections, in this benchmark) per second. See
http://www.specbench.org/osg/web96/results/res97q4/web96-971103-02229.html
Note that this result was obtained with V4.0D, which might help
your numbers somewhat, but V4.0B should easily exceed 100 connections
per second.
For some tuning information, check out
http://www.digital.com/internet/document/ias/tuning.html
-Jeff
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: tcp connections/sec
1998-02-26 5:00 tcp connections/sec matsjo
1998-02-27 5:00 ` Joel Gallun
1998-03-03 5:00 ` Jeffrey Mogul
@ 1998-03-03 5:00 ` Rick Jones
2 siblings, 0 replies; 4+ messages in thread
From: Rick Jones @ 1998-03-03 5:00 UTC (permalink / raw)
matsjo@ainigma.com wrote:
: Doing some networking related benchmarking on Digital UNIX
: 4.0B. Seems that something limits the number of tcp connections the
: box can handle to exactly 100 connections/second.
How are you "generating" client port numbers and/or what is the size
of the anonymous port number range on your client?
A well-written TCP stack will not allow you to establish connections
between a client operating over a range of port numbers and a server
at a well-known port number any faster than
sizeof(clientportnumberrange)/length(TIME_WAIT). (I am discounting the
possibility of getting the initial sequence number just right to
transition from TIME_WAIT to ESTABLISHED)
This was an issue for SPECweb load generating code. It asked the
system to assign a client port number, and on many systems, that was
limited to 3975 ports. The minimum TIME_WAIT time SPEC allowsd is 60
seconds so they were initially limited to ~66 connections per second.
The SPECweb code was modified to explicitly select client port number
in the range 5000-65535 which meant that at a 60 second TIME_WAIT the
limit would be roughly 1000 connections per second.
The TCP_CRR test in netperf does something similar.
Some systems have different anonymous port number ranges, some systems
have different TIME_WAIT lengths.
Some systems (no Unix systems I am aware of though) will actually
short-circuit TIME_WAIT connections to establish new connections (even
to differnet address tuples) Such systems would not exhibit the
performance limitation, but they do so by short circuiting a
fundamental part of TCP's correctness algorithms.
rick jones
--
these opinions are mine, all mine; HP might not want them anyway... :)
feel free to email, or post, but please do not do both...
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~1998-03-03 5:00 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-02-26 5:00 tcp connections/sec matsjo
1998-02-27 5:00 ` Joel Gallun
1998-03-03 5:00 ` Jeffrey Mogul
1998-03-03 5:00 ` Rick Jones
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox