Go to file
John Baldwin 2498cf8c42 Add code to make default mutexes adaptive if the ADAPTIVE_MUTEXES kernel
option is used (not on by default).

- In the case of trying to lock a mutex, if the MTX_CONTESTED flag is set,
  then we can safely read the thread pointer from the mtx_lock member while
  holding sched_lock.  We then examine the thread to see if it is currently
  executing on another CPU.  If it is, then we keep looping instead of
  blocking.
- In the case of trying to unlock a mutex, it is now possible for a mutex
  to have MTX_CONTESTED set in mtx_lock but to not have any threads
  actually blocked on it, so we need to handle that case.  In that case,
  we just release the lock as if MTX_CONTESTED was not set and return.
- We do not adaptively spin on Giant as Giant is held for long times and
  it slows SMP systems down to a crawl (it was taking several minutes,
  like 5-10 or so for my test alpha and sparc64 SMP boxes to boot up when
  they adaptively spinned on Giant).
- We only compile in the code to do this for SMP kernels, it doesn't make
  sense for UP kernels.

Tested on:	i386, alpha, sparc64
2002-05-21 20:47:11 +00:00
bin Add the SUSv3 -L and -P options to the cd and pwd builtin utilities. `Logical' 2002-05-20 07:54:39 +00:00
contrib This commit was generated by cvs2svn to compensate for changes in r97055, 2002-05-21 06:52:47 +00:00
crypto Remove _PATH_CP now that it is defined in paths.h 2002-05-12 01:52:11 +00:00
etc There are still many broken nameservers out there in the wild. Even 2002-05-21 02:02:23 +00:00
games Do not guess what a bool is, just use it. 2002-05-21 08:34:18 +00:00
gnu Remove ptx. It is not used anywhere in the base system, has not been 2002-05-21 09:20:34 +00:00
include Move _PATH_WALL from dump and shutdown's local pathnames.h to paths.h. 2002-05-17 11:47:12 +00:00
kerberos5 Make this -j safe. 2002-05-14 15:27:13 +00:00
kerberosIV This code is no longer WARNS level 2 OK. 2002-05-15 06:32:29 +00:00
lib Make this a little easier to build standalone. (same change as libpanel) 2002-05-21 07:08:30 +00:00
libexec Include machine/ia64_cpu.h because we use ia64_mf(). 2002-05-21 00:04:08 +00:00
release New release notes: ls(1) -m/-p/-x, sh(1) -C/-u, tabs(1). 2002-05-21 03:26:42 +00:00
sbin Allow prefix/prefixlen syntax for IPv6 to have consistency 2002-05-21 18:11:31 +00:00
secure for OpenSSL 0.9.5a 2002-05-15 09:17:27 +00:00
share Add gx(4) to the SEE ALSO. 2002-05-20 23:39:25 +00:00
sys Add code to make default mutexes adaptive if the ADAPTIVE_MUTEXES kernel 2002-05-21 20:47:11 +00:00
tools Update to match kernel side. 2002-05-21 20:42:51 +00:00
usr.bin Make ReadMakefile() operate using the realpath(3) name for the file handed to 2002-05-21 20:24:46 +00:00
usr.sbin Added support for ia64 and sparc64. 2002-05-21 15:36:29 +00:00
COPYRIGHT
MAINTAINERS Use more common phrasing for the "request reviews" text. Add UFS EAs, 2002-05-20 13:08:32 +00:00
Makefile Added new bsd.incs.mk which handles installing of header files 2002-05-12 16:01:00 +00:00
Makefile.inc1 Bootstrap elf2aout(1) for sparc64; used to build sys/boot/sparc64/boot1. 2002-05-20 14:42:48 +00:00
Makefile.upgrade
README
UPDATING Add a note that NO_WERROR is a good idea for the time being due to the 2002-05-20 13:06:24 +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 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.

kerberosIV	KerberosIV (eBones) 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