1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-21 11:13:30 +00:00
Mirror of the FreeBSD src repository https://git.FreeBSD.org/src.git .
Go to file
Alfred Perlstein 5ea487f34d Use only one mutex for the entire mbuf subsystem.
Don't use atomic operations for the stats updating, instead protect
the counts with the mbuf mutex.  Most twiddling of the stats was
done right before or after releasing a mutex.  By doing this we
reduce the number of locked ops needed as well as allow a sysctl
to gain a consitant view of the entire stats structure.

In the future...

  This will allow us to chain common mbuf operations that would
  normally need to aquire/release 2 or 3 of the locks to build an
  mbuf with a cluster or external data attached into a single op
  requiring only one lock.

  Simplify the per-cpu locks that are planned.

There's also some if (1) code that should check if the "how"
operation specifies blocking/non-blocking behavior, we _could_ make
it so that we hold onto the mutex through calls into kmem_alloc
when non-blocking requests are made, but for safety reasons we
currently drop and reaquire the mutex around the calls.

Also, note that calling kmem_alloc is rare and only happens during
a shortage so drop/re-getting the mutex will not be a common
occurance.

Remove some #define's that seemed to obfuscate the code to me.

Remove an extranious comment.

Remove an XXX, including mutex.h isn't a crime.

Reviewed by: bmilekic
2001-04-03 03:15:11 +00:00
bin Remove a comment which seemed to confuse makewhatis: 2001-03-29 01:25:06 +00:00
contrib Consistently space the output. 2001-03-31 09:26:03 +00:00
crypto Suggested by kris, OpenSSH shall have a version designated to note that 2001-03-20 02:11:25 +00:00
etc Change the order in which /etc files are copied into place; copy 2001-04-03 00:24:01 +00:00
games Axe out duplicate. 2001-03-28 11:10:50 +00:00
gnu Reduce the libiberty sources we build to those we actually need. 2001-03-31 20:00:18 +00:00
include It's not CUT (the french would accept that back in 1879) and TUC wasn't 2001-03-31 07:24:35 +00:00
kerberos5 Bye-bye /usr/lib/libtelnet.a. This should fix ``make release'' brokeness. 2001-03-28 12:08:22 +00:00
kerberosIV Bye-bye /usr/lib/libtelnet.a. This should fix ``make release'' brokeness. 2001-03-28 12:08:22 +00:00
lib There were a few error cases where the RPC code would return with 2001-04-02 22:14:13 +00:00
libexec Bye-bye /usr/lib/libtelnet.a. This should fix ``make release'' brokeness. 2001-03-28 12:08:22 +00:00
release New release notes: fsck(8) and /etc/fstab passes, newfs(8) -U, 2001-04-02 21:26:49 +00:00
sbin Document the newfs.c rev 1.33 changing the default c/g from 16 to 22. 2001-04-02 22:48:54 +00:00
secure Merged src/lib/libtelnet rev.1.9 (fixed removing of obsolete shared 2001-03-28 12:15:22 +00:00
share Introduce ${PROGNAME}, the name that the program will be installed as, 2001-04-02 11:44:20 +00:00
sys Use only one mutex for the entire mbuf subsystem. 2001-04-03 03:15:11 +00:00
tools Preceed/preceeding are not english words. Use precede and preceding. 2001-02-18 10:43:53 +00:00
usr.bin Do not override `realinstall' target, use ${PROGNAME}. 2001-04-02 12:06:00 +00:00
usr.sbin Backout revision 1.6 (removed the NOSHARED bit.) 2001-04-02 08:47:25 +00:00
COPYRIGHT Update to add the July 22, 1999 addendum. 1999-09-05 21:33:47 +00:00
Makefile Make it possible to build manpages for the entire source tree. 2001-03-27 08:43:28 +00:00
Makefile.inc1 Rewrite of the CAM error recovery code. 2001-03-27 05:45:52 +00:00
Makefile.upgrade $Id$ -> $FreeBSD$ 1999-08-28 01:35:59 +00:00
README Slightly improve the description of "crypto". "DES" is a subset of 2000-08-31 17:59:01 +00:00
UPDATING Spell deprecated correctly (dufault) 2001-03-02 00:36:13 +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
``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/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 have to build
world before.  More information is available in the handbook.

The sample kernel configuration files reside in the sys/i386/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.

kerberosIV	Kerberos package.

lib		System libraries.

libexec		System daemons.

release		Release building Makefile & associated tools.

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/handbook/synching.html