NetBSD/distrib
dyoung c2e43be1c5 Reduces the resources demanded by TCP sessions in TIME_WAIT-state using
methods called Vestigial Time-Wait (VTW) and Maximum Segment Lifetime
Truncation (MSLT).

MSLT and VTW were contributed by Coyote Point Systems, Inc.

Even after a TCP session enters the TIME_WAIT state, its corresponding
socket and protocol control blocks (PCBs) stick around until the TCP
Maximum Segment Lifetime (MSL) expires.  On a host whose workload
necessarily creates and closes down many TCP sockets, the sockets & PCBs
for TCP sessions in TIME_WAIT state amount to many megabytes of dead
weight in RAM.

Maximum Segment Lifetimes Truncation (MSLT) assigns each TCP session to
a class based on the nearness of the peer.  Corresponding to each class
is an MSL, and a session uses the MSL of its class.  The classes are
loopback (local host equals remote host), local (local host and remote
host are on the same link/subnet), and remote (local host and remote
host communicate via one or more gateways).  Classes corresponding to
nearer peers have lower MSLs by default: 2 seconds for loopback, 10
seconds for local, 60 seconds for remote.  Loopback and local sessions
expire more quickly when MSLT is used.

Vestigial Time-Wait (VTW) replaces a TIME_WAIT session's PCB/socket
dead weight with a compact representation of the session, called a
"vestigial PCB".  VTW data structures are designed to be very fast and
memory-efficient: for fast insertion and lookup of vestigial PCBs,
the PCBs are stored in a hash table that is designed to minimize the
number of cacheline visits per lookup/insertion.  The memory both
for vestigial PCBs and for elements of the PCB hashtable come from
fixed-size pools, and linked data structures exploit this to conserve
memory by representing references with a narrow index/offset from the
start of a pool instead of a pointer.  When space for new vestigial PCBs
runs out, VTW makes room by discarding old vestigial PCBs, oldest first.
VTW cooperates with MSLT.

It may help to think of VTW as a "FIN cache" by analogy to the SYN
cache.

A 2.8-GHz Pentium 4 running a test workload that creates TIME_WAIT
sessions as fast as it can is approximately 17% idle when VTW is active
versus 0% idle when VTW is inactive.  It has 103 megabytes more free RAM
when VTW is active (approximately 64k vestigial PCBs are created) than
when it is inactive.
2011-05-03 18:28:44 +00:00
..
acorn26 Adjust file lists for recent move: 2011-01-14 10:26:28 +00:00
acorn32 Adjust file lists for recent move: 2011-01-14 10:26:28 +00:00
alpha Adjust file lists for recent move: 2011-01-14 10:26:28 +00:00
amd64 On install CDs: make ^C and ^Z work (mostly) as they used to do on 2011-04-17 12:18:19 +00:00
amiga Adjust file lists for recent move: 2011-01-14 10:26:28 +00:00
arc Adjust file lists for recent move: 2011-01-14 10:26:28 +00:00
atari Adjust file lists for recent move: 2011-01-14 10:26:28 +00:00
bebox use ${PRINTOBJDIR} to find the ../kernel-ramdisk/netbsd-INSTALL.gz, don't 2011-01-25 08:19:39 +00:00
cats Adjust file lists for recent move: 2011-01-14 10:26:28 +00:00
cdrom netbsd.aout-INSTALL for cats is renamed to netbsd-INSTALL.aout. 2010-10-05 14:16:19 +00:00
cobalt Deal with 64 bit versions of kernels 2011-02-20 08:26:08 +00:00
common Document MDSET_NOIMAGE. 2011-01-01 16:56:18 +00:00
dreamcast Adjust file lists for recent move: 2011-01-14 10:26:28 +00:00
emips Add support for the Extensible MIPS ("eMIPS") platform. The 2011-01-26 01:18:43 +00:00
evbarm Adjust file lists for recent move: 2011-01-14 10:26:28 +00:00
evbmips Deal with 64 bit versions of kernels 2011-02-20 08:26:08 +00:00
evbppc Switch to using tmpfs. 2011-01-18 01:27:16 +00:00
evbsh3 Adjust file lists for recent move: 2011-01-14 10:26:28 +00:00
ews4800mips Adjust file lists for recent move: 2011-01-14 10:26:28 +00:00
hp300 Switch NetBSD/hp300 to wscons with rasops. Simply ported from OpenBSD/hp300. 2011-02-06 18:26:51 +00:00
hp700 Adjust file lists for recent move: 2011-01-14 10:26:28 +00:00
hpcarm Build install ramdisk kernel for JORNADA720. 2010-09-04 01:16:49 +00:00
hpcmips Remove mount_kernfs(8) and use dmesg(8) directly. 2010-05-01 12:14:11 +00:00
hpcsh Enable dhcpcd(8) in hpcsh sysinst. 2010-05-15 05:08:53 +00:00
i386 On install CDs: make ^C and ^Z work (mostly) as they used to do on 2011-04-17 12:18:19 +00:00
ibmnws Adjust file lists for recent move: 2011-01-14 10:26:28 +00:00
landisk Adjust file lists for recent move: 2011-01-14 10:26:28 +00:00
mac68k Adjust file lists for recent move: 2011-01-14 10:26:28 +00:00
macppc Adjust file lists for recent move: 2011-01-14 10:26:28 +00:00
miniroot Adjust file lists for recent move: 2011-01-14 10:26:28 +00:00
mipsco Adjust file lists for recent move: 2011-01-14 10:26:28 +00:00
mvme68k Relegate edlabel to use in extremely memory constrained install 2010-03-10 23:13:09 +00:00
mvmeppc
news68k Bump the install image size from 1.5 to 1.6M so that it fits again. 2011-03-13 12:58:02 +00:00
newsmips Adjust file lists for recent move: 2011-01-14 10:26:28 +00:00
notes add myself 2011-04-28 21:39:34 +00:00
ofppc Adjust file lists for recent move: 2011-01-14 10:26:28 +00:00
pmax Adjust file lists for recent move: 2011-01-14 10:26:28 +00:00
prep Adjust file lists for recent move: 2011-01-14 10:26:28 +00:00
rs6000 Adjust file lists for recent move: 2011-01-14 10:26:28 +00:00
sandpoint altboot.img: altboot as U-Boot image to fake a Linux kernel module 2011-02-26 20:38:49 +00:00
sets Reduces the resources demanded by TCP sessions in TIME_WAIT-state using 2011-05-03 18:28:44 +00:00
sgimips Deal with 64 bit versions of kernels 2011-02-20 08:26:08 +00:00
shark Adjust file lists for recent move: 2011-01-14 10:26:28 +00:00
sparc Remove obsolete message: 2010-09-25 14:30:34 +00:00
sparc64 On install CDs: make ^C and ^Z work (mostly) as they used to do on 2011-04-17 12:18:19 +00:00
sun2 Adjust file lists for recent move: 2011-01-14 10:26:28 +00:00
sun3 Adjust file lists for recent move: 2011-01-14 10:26:28 +00:00
syspkg
utils Add an "exitstring" to the utility menu, so translations can provide 2011-04-17 12:33:42 +00:00
vax Adjust file lists for recent move: 2011-01-14 10:26:28 +00:00
x68k Adjust file lists for recent move: 2011-01-14 10:26:28 +00:00
zaurus Adjust file lists for recent move: 2011-01-14 10:26:28 +00:00
Makefile
Makefile.inc