freebsd kernel with SKQ
Go to file
Jake Burkholder d5a08a6065 Implement a unified run queue and adjust priority levels accordingly.
- All processes go into the same array of queues, with different
  scheduling classes using different portions of the array.  This
  allows user processes to have their priorities propogated up into
  interrupt thread range if need be.
- I chose 64 run queues as an arbitrary number that is greater than
  32.  We used to have 4 separate arrays of 32 queues each, so this
  may not be optimal.  The new run queue code was written with this
  in mind; changing the number of run queues only requires changing
  constants in runq.h and adjusting the priority levels.
- The new run queue code takes the run queue as a parameter.  This
  is intended to be used to create per-cpu run queues.  Implement
  wrappers for compatibility with the old interface which pass in
  the global run queue structure.
- Group the priority level, user priority, native priority (before
  propogation) and the scheduling class into a struct priority.
- Change any hard coded priority levels that I found to use
  symbolic constants (TTIPRI and TTOPRI).
- Remove the curpriority global variable and use that of curproc.
  This was used to detect when a process' priority had lowered and
  it should yield.  We now effectively yield on every interrupt.
- Activate propogate_priority().  It should now have the desired
  effect without needing to also propogate the scheduling class.
- Temporarily comment out the call to vm_page_zero_idle() in the
  idle loop.  It interfered with propogate_priority() because
  the idle process needed to do a non-blocking acquire of Giant
  and then other processes would try to propogate their priority
  onto it.  The idle process should not do anything except idle.
  vm_page_zero_idle() will return in the form of an idle priority
  kernel thread which is woken up at apprioriate times by the vm
  system.
- Update struct kinfo_proc to the new priority interface.  Deliberately
  change its size by adjusting the spare fields.  It remained the same
  size, but the layout has changed, so userland processes that use it
  would parse the data incorrectly.  The size constraint should really
  be changed to an arbitrary version number.  Also add a debug.sizeof
  sysctl node for struct kinfo_proc.
2001-02-12 00:20:08 +00:00
bin Use decimal point from locale 2001-02-11 02:25:56 +00:00
contrib Fixed the .St strings so that no single-character component of 2001-02-08 12:00:18 +00:00
crypto Note that crypto/ is not used to build in, people should see secure/ 2001-02-10 04:47:47 +00:00
etc Add en_NZ.ISO_8859-1. 2001-02-10 13:46:59 +00:00
games Remove spurious '"'. 2001-02-10 08:30:21 +00:00
gnu Finish draining any input prior to closing the pipe, to prevent unsightly 2001-02-05 01:24:40 +00:00
include libc MT-safety, part 2. 2001-02-11 22:04:18 +00:00
kerberos5 Fix ordering for real this time. 2000-08-30 03:44:30 +00:00
kerberosIV add strcollect.c to SRCS (new file in 1.0.5) 2000-12-29 23:44:24 +00:00
lib Remove (int) file descriptor locking. It should be up to the 2001-02-11 22:07:32 +00:00
libexec Synch: Properly constify sccsid[]. 2001-02-07 22:25:56 +00:00
release LSI/SYMBIOS/NCR 53C[8XX|10XX] supported hardware updated. 2001-02-11 18:13:15 +00:00
sbin Fix a cosmetic problem with some very defensive programming: The devfs 2001-02-08 22:07:08 +00:00
secure Define HAVE_PAM_GETENVLIST for build. Now environmental variables set 2001-02-08 21:16:34 +00:00
share Add ja_JP.EUC locale support for LC_MESSAGES, LC_MONETARY, and LC_NUMERIC. 2001-02-11 16:19:43 +00:00
sys Implement a unified run queue and adjust priority levels accordingly. 2001-02-12 00:20:08 +00:00
tools Look for modules in /boot/kernel these days. 2001-01-18 22:36:34 +00:00
usr.bin Uname is in section 3 of the manual pages. 2001-02-11 21:19:31 +00:00
usr.sbin A better fix for the PacketAliasProxyRule() call. 2001-02-10 17:26:14 +00:00
COPYRIGHT Update to add the July 22, 1999 addendum. 1999-09-05 21:33:47 +00:00
Makefile Add back displaying the `world' start time when displaying the stop time. 2000-12-06 04:35:45 +00:00
Makefile.inc1 Provide backwards compatable recognition of ${KERNEL}. You should be 2001-01-23 09:52:50 +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 Note change of KERNEL to KERNCONF for building instructions. Peter 2001-01-22 08:03: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