freebsd kernel with SKQ
Go to file
pjd 6fa8fbd029 GEOM has an internal mechanism to deal with ENOMEM errors returned via
g_io_deliver(). In such case it increases 'pace' counter on each ENOMEM and
reschedules the request. The 'pace' counter is decreased for each request going
down, but until 'pace' is greater than zero, GEOM will handle at most 10
requests per second. For GEOM GATE users that are proxy to local GEOM providers
(like ggatel(8) and HAST) we can end up with almost permanent slow down of GEOM
down queue. This is because once we reach GEOM GATE queue limit, we return
ENOMEM to the GEOM. This means that we have, eg. 1024 I/O requests in the GEOM
GATE queue. To make room in the queue and stop returning ENOMEM we need to
proceed the requests of course, but those requests are handled by userland
daemons that handle them by reading/writing also from/to local GEOM providers.
For example with HAST, a new requests comes to /dev/hast/data, which is GEOM
GATE provider. GEOM GATE passes the request to hastd(8) and hastd(8)
reads/writes from/to /dev/da0. Once we reach GEOM GATE queue limit, to free up
a slot in GEOM GATE queue, hastd(8) has to read/write from/to /dev/da0, but
this request will also be very slow, because GEOM now slows down all the
requests. We end up with full queue that we can unload at the speed of 10
requests per second. This simply looks like a deadlock.

Fix it by allowing userland daemons that work with both GEOM GATE and local
GEOM providers to specify unlimited queue size, so GEOM GATE will never return
ENOMEM to the GEOM.

MFC after:	1 week
2011-04-02 06:56:06 +00:00
bin Add proper width calculation for time fields (time, cputime and usertime). 2011-03-24 20:15:42 +00:00
cddl Properly print characters larger than 127. 2011-03-24 14:12:41 +00:00
contrib Upgrade of base gcc and libstdc++ to the last GPLv2-licensed revision 2011-03-29 20:53:51 +00:00
crypto Fix Incorrectly formatted ClientHello SSL/TLS handshake messages could 2011-02-12 21:30:46 +00:00
etc Add example devd.conf entry. 2011-03-30 18:35:02 +00:00
games Improve the distributeworld target in Makefile.inc1 and update the release 2011-03-02 14:39:26 +00:00
gnu Print the raw value of si_code, that is esp. useful for undecoded values. 2011-03-26 21:12:53 +00:00
include MFgraid/head: 2011-03-24 21:31:32 +00:00
kerberos5 Fix a typo. 2010-01-09 18:53:03 +00:00
lib Fix mdoc errors. 2011-04-01 19:57:27 +00:00
libexec rtld: eliminate double call to close(2) that may occur in load_object 2011-03-25 18:23:10 +00:00
release Copy all generated ISO images into the release area. 2011-03-27 23:46:52 +00:00
rescue Finally... Import the latest open-source ZFS version - (SPA) 28. 2011-02-27 19:41:40 +00:00
sbin Add mapsize to the header just before sending the packet. 2011-03-25 20:19:15 +00:00
secure Fix some leftover binaries and shared libraries in the system that still 2011-02-15 22:03:09 +00:00
share Added myself as src committer. 2011-04-02 00:08:32 +00:00
sys GEOM has an internal mechanism to deal with ENOMEM errors returned via 2011-04-02 06:56:06 +00:00
tools Use ${NANO_WORLDDIR}/var/empty as copy source since it has no schg flag set. 2011-03-28 07:00:41 +00:00
usr.bin Overhaul locale handling. 2011-04-02 05:01:09 +00:00
usr.sbin Remove $Log$ keyword and associated history, which can cause annoyance in 2011-03-31 14:33:27 +00:00
COPYRIGHT Happy New Year 2011. 2010-12-31 18:07:16 +00:00
LOCKS Update LOCKS syntax. 2008-06-05 19:47:58 +00:00
MAINTAINERS - Initial release of bxe(4) to support Broadcom NetXtreme II 10GbE. 2011-03-14 22:42:41 +00:00
Makefile Improve the distributeworld target in Makefile.inc1 and update the release 2011-03-02 14:39:26 +00:00
Makefile.inc1 Fix the delete-old/check-old targets to work with arbitrarily long 2011-04-01 20:59:23 +00:00
Makefile.mips Retire TARGET_ABI. 2011-01-07 20:26:33 +00:00
ObsoleteFiles.inc Add sticky.8 to the obsolete files since it had been 2011-02-24 18:13:53 +00:00
README Add the cddl/ directory. 2010-11-14 11:32:56 +00:00
UPDATING Document the ath glue changes. 2011-03-31 08:32:53 +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.

cddl		Various commands and libraries under the Common Development
		and Distribution License.

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