* Digital UNIX V3.2C Internet tuning patch info
@ 1996-05-31 4:00 Jeffrey Mogul
1996-06-07 4:00 ` Ong Beng Hui
0 siblings, 1 reply; 4+ messages in thread
From: Jeffrey Mogul @ 1996-05-31 4:00 UTC (permalink / raw)
Something that probably few people are aware of is that Digital
has a patch kit available for Digital UNIX V3.2C that may improve
Internet performance, especially for busy web servers.
This patch kit is one way to increase the value of somaxconn,
which I discussed in a message here a day or two ago.
I've included in this message the revised README file for this
patch kit below. Note that the original README file in the patch
kit itself may be an earlier version; I'm told that the version
below is the right one.
Sorry, this patch kit is NOT available for other versions of Digital
UNIX. Most (but not quite all) of these changes also made it into V4.0,
so the description of the various tuning parameters in this README
file might be useful to people running V4.0 systems.
This patch kit does not appear to be available (yet?) from
http://www.service.digital.com/html/patch_service.html
so I guess you'll have to call Digital's Customer Support to get it.
-Jeff
DESCRIPTION: Digital UNIX Network tuning patch
Patch ID: OSF350-146
SUPERSEDED PATCHES: OSF350-151, OSF350-158
This set of files improves the performance of the network
subsystem on a system being used as a web server. There are
additional tunable parameters included here, to be used
cautiously by an informed system administrator.
TUNING
To tune the web server, the number of simultaneous socket
connection requests are limited by:
somaxconn Sets the maximum number of pending requests
allowed to wait on a listening socket. The
default value in Digital UNIX V3.2 is 8.
This patch kit increases the default to 1024,
which matches the value in Digital UNIX V4.0.
sominconn Sets the minimum number of pending connections
allowed on a listening socket. When a user
process calls listen with a backlog less
than sominconn, the backlog will be set to
sominconn. sominconn overrides somaxconn.
The default value is 1.
The effectiveness of tuning these parameters can be monitored by
the sobacklog variables available in the kernel:
sobacklog_hiwat Tracks the maximum pending requests to any
socket. The initial value is 0.
sobacklog_drops Tracks the number of drops exceeding the
socket set backlog limit. The initial
value is 0.
somaxconn_drops Tracks the number of drops exceeding the
somaxconn limit. When sominconn is larger
than somaxconn, tracks the number of drops
exceeding sominconn. The initial value is 0.
TCP timer parameters also affect performance. Tuning the following
require some knowledge of the characteristics of the network.
tcp_msl Sets the tcp maximum segment lifetime.
This is the maximum lifetime in half
seconds that a packet can be in transit
on the network. This value, when doubled,
is the length of time a connection remains
in the TIME_WAIT state after a incoming
close request is processed. The unit is
specified in 1/2 seconds, the initial
value is 60.
tcp_rexmit_interval_min
Sets the minimum TCP retransmit interval.
For some WAN networks the default value may
be too short, causing unnecessary duplicate
packets to be sent. The unit is specified
in 1/2 seconds, the initial value is 1.
tcp_keepinit This is the amount of time a partially
established connection will sit on the listen
queue before timing out (e.g. if a client
sends a SYN but never answers our SYN/ACK).
Partially established connections tie up slots
on the listen queue. If the queue starts to
fill with connections in SYN_RCVD state,
tcp_keepinit can be decreased to make those
partial connects time out sooner. This should
be used with caution, since there might be
legitimate clients that are taking a while
to respond to SYN/ACK. The unit is specified
in 1/2 seconds, the default value is 150
(ie. 75 seconds).
The hashlist size for the TCP inpcb lookup table is regulated by:
tcbhashsize The number of hash buckets used for the
TCP connection table used in the kernel.
The initial value is 32. For best results,
should be specified as a power of 2. For
busy Web servers, set this to 2048 or more.
The hashlist size for the interface alias table is regulated by:
inifaddr_hsize The number of hash buckets used for the
interface alias table used in the kernel.
The initial value is 32. For best results,
should be specified as a power of 2.
ipport_userreserved The maximum number of concurrent non-reserved,
dynamically allocated ports. Default range
is 1025-5000. The maximum value is 65535.
This limits the numer of times you can
simultaneously telnet or ftp out to connect
to other systems.
tcpnodelack Don't delay acknowledging TCP data; this
can sometimes improve performance of locally
run CAD packages. Default is value is 0,
the enabled value is 1.
Digital UNIX version:
V3.2C
Feature V3.2C patch V4.0
======= ===== ===== ====
somaxconn X X X
sominconn - X X
sobacklog_hiwat - X -
sobacklog_drops - X -
somaxconn_drops - X -
tcpnodelack X X X
tcp_keepidle X X X
tcp_keepintvl X X X
tcp_keepcnt - X X
tcp_keepinit - X X
TCP keepalive per-socket - - X
tcp_msl - X -
tcp_rexmit_interval_min - X -
TCP inpcb hashing - X X
tcbhashsize - X X
interface alias hashing - X X
inifaddr_hsize - X X
ipport_userreserved - X -
sysconfig -q inet - - X
sysconfig -q socket - - X
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: Digital UNIX V3.2C Internet tuning patch info
1996-05-31 4:00 Digital UNIX V3.2C Internet tuning patch info Jeffrey Mogul
@ 1996-06-07 4:00 ` Ong Beng Hui
1996-06-21 4:00 ` Jeffrey Mogul
0 siblings, 1 reply; 4+ messages in thread
From: Ong Beng Hui @ 1996-06-07 4:00 UTC (permalink / raw)
Jeffrey Mogul (mogul@pa.dec.com) wrote:
: Something that probably few people are aware of is that Digital
: has a patch kit available for Digital UNIX V3.2C that may improve
: Internet performance, especially for busy web servers.
Hi, I read couples of your article frmo WRL. They are
very interesting and provide great insight to operating
a high hit system.
Here, we are using a 4100 to run a Proxy Server. But
I couldn't find any online documentations on performance
tuning on Digital Unix 3.2F. I wonder if you provide
some tips on such available information.
--
*8)
Ong Beng Hui
ongbh@singnet.com.sg
...and they lived happily ever after
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Digital UNIX V3.2C Internet tuning patch info
1996-06-07 4:00 ` Ong Beng Hui
@ 1996-06-21 4:00 ` Jeffrey Mogul
1996-06-25 4:00 ` Ong Beng Hui
0 siblings, 1 reply; 4+ messages in thread
From: Jeffrey Mogul @ 1996-06-21 4:00 UTC (permalink / raw)
In article <4p963t$613@lantana.singnet.com.sg> ongbh@singnet.com.sg (Ong Beng Hui) writes:
>Jeffrey Mogul (mogul@pa.dec.com) wrote:
>: Something that probably few people are aware of is that Digital
>: has a patch kit available for Digital UNIX V3.2C that may improve
>: Internet performance, especially for busy web servers.
>
>Here, we are using a 4100 to run a Proxy Server. But
>I couldn't find any online documentations on performance
>tuning on Digital Unix 3.2F. I wonder if you provide
>some tips on such available information.
Sorry for the delay in responding. It took me a while to find
out the status of these patch kits (since I'm 3000 miles from
the people who deal with them).
The official story is that:
V3.2C systems should be patched with Patch ID OSF350-195.
This is an updated version of the patch ID I mentioned
earlier (OSF350-146).
V3.2D systems should use Patch ID OSF360-350195.
In "a week or so" there should be Patch IDs suitable
for use with V3.2E and V3.2F.
The unofficial story is that all of these patch kits have exactly
the same contents, as far as I can tell, and there is no known
reason why you can't use the OSF360-350195 patch on a V3.2F system.
On the other hand, "Digital does not recommend the use of patches
meant for one release on a system running a different release."
In other words, we haven't tested the OSF360-350195 patch on a V3.2F
system and if it doesn't work, I didn't tell you to use it :-).
Finally, this whole saga ends at V3.2F. V3.2G, when it ships,
will have essentially the same Web-server-related fixes as in
V4.0, and should not require any of these patches.
-Jeff
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Digital UNIX V3.2C Internet tuning patch info
1996-06-21 4:00 ` Jeffrey Mogul
@ 1996-06-25 4:00 ` Ong Beng Hui
0 siblings, 0 replies; 4+ messages in thread
From: Ong Beng Hui @ 1996-06-25 4:00 UTC (permalink / raw)
Jeffrey Mogul (mogul@pa.dec.com) wrote:
: Sorry for the delay in responding. It took me a while to find
: out the status of these patch kits (since I'm 3000 miles from
: the people who deal with them).
It's okay. We all understand the jobs that we take.
: The official story is that:
: V3.2C systems should be patched with Patch ID OSF350-195.
: This is an updated version of the patch ID I mentioned
: earlier (OSF350-146).
:
: V3.2D systems should use Patch ID OSF360-350195.
:
: In "a week or so" there should be Patch IDs suitable
: for use with V3.2E and V3.2F.
I dunno if the Patch information is available
online, www.digital.com ?? I couldn'd find anything
with the online search.
: The unofficial story is that all of these patch kits have exactly
: the same contents, as far as I can tell, and there is no known
: reason why you can't use the OSF360-350195 patch on a V3.2F system.
: On the other hand, "Digital does not recommend the use of patches
: meant for one release on a system running a different release."
: In other words, we haven't tested the OSF360-350195 patch on a V3.2F
: system and if it doesn't work, I didn't tell you to use it :-).
Gee...
: Finally, this whole saga ends at V3.2F. V3.2G, when it ships,
: will have essentially the same Web-server-related fixes as in
: V4.0, and should not require any of these patches.
It will be nice to know exactly what are the Web Server
related fixes, rather and Plug and Pray.
--
*8)
Ong Beng Hui
ongbh@singnet.com.sg
...Yet Another Day in a ISP Business
...and they lived happily ever after
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~1996-06-25 4:00 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-05-31 4:00 Digital UNIX V3.2C Internet tuning patch info Jeffrey Mogul
1996-06-07 4:00 ` Ong Beng Hui
1996-06-21 4:00 ` Jeffrey Mogul
1996-06-25 4:00 ` Ong Beng Hui
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox