freebsd_amp_hwpstate/share
Christian S.J. Peron 4d621040ff Introduce support for zero-copy BPF buffering, which reduces the
overhead of packet capture by allowing a user process to directly "loan"
buffer memory to the kernel rather than using read(2) to explicitly copy
data from kernel address space.

The user process will issue new BPF ioctls to set the shared memory
buffer mode and provide pointers to buffers and their size. The kernel
then wires and maps the pages into kernel address space using sf_buf(9),
which on supporting architectures will use the direct map region. The
current "buffered" access mode remains the default, and support for
zero-copy buffers must, for the time being, be explicitly enabled using
a sysctl for the kernel to accept requests to use it.

The kernel and user process synchronize use of the buffers with atomic
operations, avoiding the need for system calls under load; the user
process may use select()/poll()/kqueue() to manage blocking while
waiting for network data if the user process is able to consume data
faster than the kernel generates it. Patchs to libpcap are available
to allow libpcap applications to transparently take advantage of this
support. Detailed information on the new API may be found in bpf(4),
including specific atomic operations and memory barriers required to
synchronize buffer use safely.

These changes modify the base BPF implementation to (roughly) abstrac
the current buffer model, allowing the new shared memory model to be
added, and add new monitoring statistics for netstat to print. The
implementation, with the exception of some monitoring hanges that break
the netstat monitoring ABI for BPF, will be MFC'd.

Zerocopy bpf buffers are still considered experimental are disabled
by default. To experiment with this new facility, adjust the
net.bpf.zerocopy_enable sysctl variable to 1.

Changes to libpcap will be made available as a patch for the time being,
and further refinements to the implementation are expected.

Sponsored by:		Seccuris Inc.
In collaboration with:	rwatson
Tested by:		pwood, gallatin
MFC after:		4 months [1]

[1] Certain portions will probably not be MFCed, specifically things
    that can break the monitoring ABI.
2008-03-24 13:49:17 +00:00
..
colldef Fix collation order for accented characters. 2008-02-04 10:25:28 +00:00
dict Correct typos containing my login name (plus one more in expr.y). 2007-02-18 19:48:59 +00:00
doc Link wpi(4) into the build. 2007-11-08 22:09:37 +00:00
examples Add projects-all collection to cvs-supfile 2008-03-13 22:36:02 +00:00
info
isdn
man Introduce support for zero-copy BPF buffering, which reduces the 2008-03-24 13:49:17 +00:00
me
misc - Add myself. 2008-03-09 13:33:44 +00:00
mk Add support for MACHINE_ARCH == mips, plus a few generic CPU types that 2008-03-19 12:20:44 +00:00
mklocale "NONE" -> "ASCII" encoding 2008-01-23 04:25:10 +00:00
monetdef International code for Russian Ruble is changed from RUR to RUB 2007-02-28 16:28:49 +00:00
msgdef Update korean locale messages: 2008-02-01 20:15:21 +00:00
numericdef Add locales for nb_NO and nn_NO. 2006-11-09 18:10:34 +00:00
security
sendmail
skel Remove /usr/X11R6 from the path here too. 2007-05-29 22:07:57 +00:00
snmp Define a base OID for the FreeBSD version as returned in sysObjectID 2006-10-31 10:09:10 +00:00
syscons Add a Macbook/Macbook Pro compatible keyboard layout for French keyboards. 2007-07-13 08:29:24 +00:00
tabset
termcap - Remove kH and *6 from xterm. They are defined to the same key as @7 (kp_end). 2008-01-08 16:00:24 +00:00
timedef Comments fixing 2007-12-30 03:08:52 +00:00
zoneinfo MFV: tzdata2008a 2008-03-09 11:23:08 +00:00
Makefile Make zoneinfo optional so that a filesystem upgrade/update does not overwrite 2007-06-26 19:40:03 +00:00
Makefile.inc