FreeBSD src
Go to file
Poul-Henning Kamp 7194d335cf Run a revision of the devstat interface:
Kernel:

Change statistics to use the *uptime() timescale (ie: relative to
boottime) rather than the UTC aligned timescale.  This makes the
device statistics code oblivious to clock steps.

Change timestamps to bintime format, they are cheaper.

Remove the "busy_count", and replace it with two counter fields:
"start_count" and "end_count", which are updated in the down and
up paths respectively.  This removes the locking constraint on
devstat.

Add a timestamp argument to devstat_start_transaction(), this will
normally be a timestamp set by the *_bio() function in bp->bio_t0.
Use this field to calculate duration of I/O operations.

Add two timestamp arguments to devstat_end_transaction(), one is
the current time, a NULL pointer means "take timestamp yourself",
the other is the timestamp of when this transaction started (see
above).

Change calculation of busy_time to operate on "the salami principle":
Only when we are idle, which we can determine by the start+end
counts being identical, do we update the "busy_from" field in the
down path.  In the up path we accumulate the timeslice in busy_time
and update busy_from.

Change the byte_* and num_* fields into two arrays: bytes[] and
operations[].

Userland:

Change the misleading "busy_time" name to be called "snap_time" and
make the time long double since that is what most users need anyway,
fill it using clock_gettime(CLOCK_MONOTONIC) to put it on the same
timescale as the kernel fields.

Change devstat_compute_etime() to operate on struct bintime.

Remove the version 2 legacy interface: the change to bintime makes
compatibility far too expensive.

Fix a bug in systat's "vm" page where boot relative busy times would
be bogus.

Bump __FreeBSD_version to 500107

Review & Collaboration by:	ken
2003-03-15 21:59:06 +00:00
bin ssize_t is not required to be the same width as size_t by the 2003-03-15 13:34:48 +00:00
contrib Local patches: 2003-03-12 20:20:22 +00:00
crypto KerberosIV deorbit sequence: Re-entry. Thank you, faithful friend. 2003-03-08 12:55:48 +00:00
etc Make it more clear how to disable keybell, and where its options are found. 2003-03-15 08:14:42 +00:00
games Add long-term view of astronomy. 2003-03-15 02:10:53 +00:00
gnu Only cross-tools may use TARGET_ARCH/TARGET, everyone else 2003-02-27 09:19:31 +00:00
include MFp4: Implementations of the wcstof() and wcstold() functions. 2003-03-13 06:29:53 +00:00
kerberos5 Post KerberosIV de-orbit: Clean up Kerberos5. We dont need KerberosIV 2003-03-09 21:56:55 +00:00
lib Run a revision of the devstat interface: 2003-03-15 21:59:06 +00:00
libexec Run a revision of the devstat interface: 2003-03-15 21:59:06 +00:00
release New release notes: DRM module update, MAJOR_AUTO device numbers, 2003-03-14 23:03:27 +00:00
sbin Update to use current version of devstat API. 2003-03-15 20:49:38 +00:00
secure Back out rev 1.60, taking the pointy hat away from nectar as 'rm -f' 2003-03-11 17:19:37 +00:00
share Document the net.inet.tcp.rfc3390 sysctl variable. 2003-03-13 01:44:58 +00:00
sys Run a revision of the devstat interface: 2003-03-15 21:59:06 +00:00
tools Allow the configuration to specify environment variables (passed on 2003-03-14 00:55:41 +00:00
usr.bin Run a revision of the devstat interface: 2003-03-15 21:59:06 +00:00
usr.sbin Run a revision of the devstat interface: 2003-03-15 21:59:06 +00:00
COPYRIGHT Update to add the July 22, 1999 addendum. 1999-09-05 21:33:47 +00:00
MAINTAINERS Nuke xargs, I haven't had to help anyone with it, so I assume it stands on 2003-02-18 00:07:06 +00:00
Makefile Don't make buildworld and buildkernel in parallel. 2003-02-27 13:11:33 +00:00
Makefile.inc1 Convert kgzip(8) to be an i386 cross-tool. This is needed for 2003-03-11 11:45:43 +00:00
Makefile.upgrade Removed "env" commands. "sh" is a real shell, so 2002-03-19 05:58:36 +00:00
README KerberosIV de-orbit burn continues. Disconnect from "make world". 2003-03-08 10:01:26 +00:00
UPDATING Acutally document how to make a LINT kernel config, besides telling all it 2003-02-13 17:55:12 +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/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.

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