freebsd kernel with SKQ
Go to file
lstewart 91a790ee6e Retire the system-wide, per-reassembly queue segment limit. The mechanism is far
too coarse grained to be useful and the default value significantly degrades TCP
performance on moderate to high bandwidth-delay product paths with non-zero loss
(e.g. 5+Mbps connections across the public Internet often suffer).

Replace the outgoing mechanism with an individual per-queue limit based on the
number of MSS segments that fit into the socket's receive buffer. This should
strike a good balance between performance and the potential for resource
exhaustion when FreeBSD is acting as a TCP receiver. With socket buffer
autotuning (which is enabled by default), the reassembly queue tracks the
socket buffer and benefits too.

As the XXX comment suggests, my testing uncovered some unexpected behaviour
which requires further investigation. By using so->so_rcv.sb_hiwat
instead of sbspace(&so->so_rcv), we allow more segments to be held across both
the socket receive buffer and reassembly queue than we probably should. The
tradeoff is better performance in at least one common scenario, versus a devious
sender's ability to consume more resources on a FreeBSD receiver.

Sponsored by:	FreeBSD Foundation
Reviewed by:	andre, gnn, rpaulo
MFC after:	2 weeks
2010-10-16 07:12:39 +00:00
bin We only need to look as far as '..' to find 'test/'. 2010-10-13 23:31:17 +00:00
cddl Properly handle IO with B_FAILFAST 2010-09-27 09:42:31 +00:00
contrib Actually, check for any kind of "C string type". 2010-10-13 17:01:33 +00:00
crypto Remove copyright strings printed at login time via login(1) or sshd(8). 2010-09-28 20:57:14 +00:00
etc No longer install /etc/manpath.config since the BSDL man utilities 2010-10-04 01:07:04 +00:00
games mdoc: drop redundant .Pp and .LP calls 2010-10-08 12:40:16 +00:00
gnu Add FreeBSD 8.2. 2010-10-14 14:48:11 +00:00
include Also the stop function should accept 64-bit exception class. 2010-09-30 03:16:35 +00:00
kerberos5 Fix a typo. 2010-01-09 18:53:03 +00:00
lib Remove two .endp's without matching .proc in lib/csu/ia64/crtn.S. 2010-10-15 21:40:20 +00:00
libexec mdoc: drop redundant .Pp and .LP calls 2010-10-08 12:40:16 +00:00
release Replace an obsolete flag -L in an mkisofs(1) command line with 2010-10-03 13:13:10 +00:00
rescue MFtbemd: 2010-08-23 22:24:11 +00:00
sbin document logging through bpf 2010-10-13 22:07:57 +00:00
secure Revert changes of 'assure' to 'ensure' made in r211936. 2010-09-11 10:49:56 +00:00
share Change uma_zone_set_max to return the effective value of "nitems" after 2010-10-16 04:41:45 +00:00
sys Retire the system-wide, per-reassembly queue segment limit. The mechanism is far 2010-10-16 07:12:39 +00:00
tools sh: Allow running 'prove' from tools/regression/bin/sh again 2010-10-15 20:01:35 +00:00
usr.bin Update manual with regarding to the status of calendars/calendar.judaic. 2010-10-14 21:53:25 +00:00
usr.sbin Enable the shared memory reference clock driver. The GPS devices are 2010-10-14 11:20:23 +00:00
COPYRIGHT Happy New Year 2010! :-) 2009-12-31 10:00:37 +00:00
LOCKS Update LOCKS syntax. 2008-06-05 19:47:58 +00:00
MAINTAINERS Add a comment to MAINTAINERS indicating that sbin/routed is in fact 2010-04-10 12:29:09 +00:00
Makefile Connect FDT infrastructure to the build system. 2010-06-13 13:02:43 +00:00
Makefile.inc1 Check TARGET_ARCH as well as TARGET to determine if we are doing a cross 2010-09-08 19:53:16 +00:00
Makefile.mips Guard against TARGET_ABI being undefined (TARGET_ABI will go away soon) 2010-08-26 14:54:12 +00:00
ObsoleteFiles.inc Prevent the ofwdump manpage from being deleted by make delete-old on 2010-10-15 14:34:34 +00:00
README Vendor import of xz (stripped) 2010-10-11 12:43:51 +00:00
UPDATING Add a note on the removal of copyright strings from login(1) and sshd(8). 2010-10-07 17:26:22 +00:00

This is the top level of the FreeBSD source directory.  This file
was last revised on:
$FreeBSD$

For copyright information, please see the file COPYRIGHT in this
directory (additional copyright information also exists for some
sources in this tree - please see the specific source directories for
more information).

The Makefile in this directory supports a number of targets for
building components (or all) of the FreeBSD source tree, the most
commonly used one being ``world'', which rebuilds and installs
everything in the FreeBSD system from the source tree except the
kernel, the kernel-modules and the contents of /etc.  The ``world''
target should only be used in cases where the source tree has not
changed from the currently running version.  See:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/makeworld.html
for more information, including setting make(1) variables.

The ``buildkernel'' and ``installkernel'' targets build and install
the kernel and the modules (see below).  Please see the top of
the Makefile in this directory for more information on the
standard build targets and compile-time flags.

Building a kernel is a somewhat more involved process, documentation
for which can be found at:
   http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig.html
And in the config(8) man page.
Note: If you want to build and install the kernel with the
``buildkernel'' and ``installkernel'' targets, you might need to build
world before.  More information is available in the handbook.

The sample kernel configuration files reside in the sys/<arch>/conf
sub-directory (assuming that you've installed the kernel sources), the
file named GENERIC being the one used to build your initial installation
kernel.  The file NOTES contains entries and documentation for all possible
devices, not just those commonly used.  It is the successor of the ancient
LINT file, but in contrast to LINT, it is not buildable as a kernel but a
pure reference and documentation file.


Source Roadmap:
---------------
bin		System/user commands.

contrib		Packages contributed by 3rd parties.

crypto		Cryptography stuff (see crypto/README).

etc		Template files for /etc.

games		Amusements.

gnu		Various commands and libraries under the GNU Public License.
		Please see gnu/COPYING* for more information.

include		System include files.

kerberos5	Kerberos5 (Heimdal) package.

lib		System libraries.

libexec		System daemons.

release		Release building Makefile & associated tools.

rescue		Build system for statically linked /rescue utilities.

sbin		System commands.

secure		Cryptographic libraries and commands.

share		Shared resources.

sys		Kernel sources.

tools		Utilities for regression testing and miscellaneous tasks.

usr.bin		User commands.

usr.sbin	System administration commands.


For information on synchronizing your source tree with one or more of
the FreeBSD Project's development branches, please see:

  http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/synching.html