freebsd with flexible iflib nic queues
Go to file
Alan Cox 7cd53fdda8 Utilize sf_buf_alloc() and sf_buf_free() to implement the ephemeral
mappings required by mdstart_swap().  On i386, if the ephemeral mapping
is already in the sf_buf mapping cache, a swap-backed md performs
similarly to a malloc-backed md.  Even if the ephemeral mapping is not
cached, this implementation is still faster.  On 64-bit platforms, this
change has the effect of using the direct virtual-to-physical mapping,
avoiding ephemeral mapping overheads, such as TLB shootdowns on SMPs.

On a 2.4GHz, 400MHz FSB P4 Xeon configured with 64K sf_bufs and
"mdmfs -S -o async -s 128m md /mnt"

before:
dd if=/dev/md0 of=/dev/null bs=64k
134217728 bytes transferred in 0.430923 secs (311465697 bytes/sec)

after with cold sf_buf cache:
dd if=/dev/md0 of=/dev/null bs=64k
134217728 bytes transferred in 0.367948 secs (364773576 bytes/sec)

after with warm sf_buf cache:
dd if=/dev/md0 of=/dev/null bs=64k
134217728 bytes transferred in 0.252826 secs (530870010 bytes/sec)

malloc-backed md:
dd if=/dev/md0 of=/dev/null bs=64k
134217728 bytes transferred in 0.253126 secs (530240978 bytes/sec)
2004-03-18 18:23:37 +00:00
bin Install /bin/sh safely. This allows a shell script to be used 2004-03-18 10:55:47 +00:00
contrib This commit was generated by cvs2svn to compensate for changes in r127105, 2004-03-17 07:58:36 +00:00
crypto Resolve conflicts after import of OpenSSL 0.9.7d. 2004-03-17 17:44:39 +00:00
etc Echo and pass dumpdev as the device argument to savecore. 2004-03-18 15:18:20 +00:00
games Fixed a mispelling of 0 as NULL. 2004-03-14 05:28:29 +00:00
gnu Configure as --enable-64-bit-bfd. 2004-03-18 04:45:29 +00:00
include Re-add macro versions of getc(), getchar(), putc(), putchar(), feof(), 2004-03-17 01:43:08 +00:00
kerberos5 style.Makefile(5). 2004-02-05 18:51:52 +00:00
lib Update list of macros defined in <stdio.h>. 2004-03-17 12:54:06 +00:00
libexec Fixed a misspelling of 0 as NULL. 2004-03-14 05:27:26 +00:00
release New release note: 2004-03-18 17:51:55 +00:00
rescue Remove dangling raidctl reference 2004-03-16 13:42:23 +00:00
sbin NULL -> 0. 2004-03-17 20:50:25 +00:00
secure Update manual pages for OpenSSL 0.9.7d. 2004-03-17 16:15:46 +00:00
share Add bus_alloc_resource_any(9), which does bus_alloc_resource() with the 2004-03-17 17:40:34 +00:00
sys Utilize sf_buf_alloc() and sf_buf_free() to implement the ephemeral 2004-03-18 18:23:37 +00:00
tools Braino in previous commit. 2004-03-18 03:01:28 +00:00
usr.bin More cleanups: 2004-03-18 07:21:31 +00:00
usr.sbin Fixed a warning. 2004-03-17 20:10:59 +00:00
COPYRIGHT Update the COPYRIGHT file to include FreeBSD's compilation copyright 2003-12-31 22:35:22 +00:00
installworld_newk Commit the first set of files for changing time_t on freebsd/sparc64 2004-03-03 19:36:20 +00:00
installworld_oldk Commit the first set of files for changing time_t on freebsd/sparc64 2004-03-03 19:36:20 +00:00
MAINTAINERS Update for reality. 2004-03-01 16:34:39 +00:00
Makefile Protect shell expansions. 2004-03-02 14:32:23 +00:00
Makefile.inc1 Comment various stages of buildkernel, symmetrical to buildworld. 2004-03-18 10:17:03 +00:00
README KerberosIV de-orbit burn continues. Disconnect from "make world". 2003-03-08 10:01:26 +00:00
UPDATING Mention the user account for 'pf' is "proxy". 2004-03-18 00:50:40 +00:00
UPDATING.64BTT Add a tip for people who are using database-related ports on a sparc64 2004-03-17 01:59:47 +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