freebsd kernel with SKQ
Go to file
smh e419fea8b4 Optimisation of TRIM processing.
Previously TRIM processing was very bursty. This was made worse by the fact
that TRIM requests on SSD's are typically much slower than reads or writes.
This often resulted in stalls while large numbers of TRIM's where processed.

In addition due to the way the TRIM thread was only woken by writes, deletes
could stall in the queue for extensive periods of time.

This patch adds a number of controls to how often the TRIM thread for each
SPA processes its outstanding delete requests.
vfs.zfs.trim.timeout: Delay TRIMs by up to this many seconds
vfs.zfs.trim.txg_delay: Delay TRIMs by up to this many TXGs (reduced to 32)
vfs.zfs.vdev.trim_max_bytes: Maximum pending TRIM bytes for a vdev
vfs.zfs.vdev.trim_max_pending: Maximum pending TRIM segments for a vdev
vfs.zfs.trim.max_interval: Maximum interval between TRIM queue processing
(seconds)

Given the most common TRIM implementation is ATA TRIM the current defaults
are targeted at that.

Reviewed by:	pjd (mentor)
Approved by:	pjd (mentor)
MFC after:	2 weeks
2013-03-21 11:02:08 +00:00
bin sh: Recognize "--" and explicitly reject options in wait builtin. 2013-03-15 20:29:31 +00:00
cddl Merge libzfs_core branch: 2013-03-21 08:38:03 +00:00
contrib Pull in r177252 from upstream clang trunk: 2013-03-20 08:34:30 +00:00
crypto Keep the default AuthorizedKeysFile setting. Although authorized_keys2 2013-03-18 10:50:50 +00:00
etc Fix typo in previous commit: Exit if */dev/dumpdev* does not exist, not if 2013-03-19 05:08:25 +00:00
games Remove fortunes-o from the base system. Debating what does or does not 2013-03-12 12:35:02 +00:00
gnu Link libgcc_s against compiler-rt on ARM EABI. This allows us to use all of 2013-03-17 01:03:41 +00:00
include Add an implementation of open_memstream() and open_wmemstream(). These 2013-02-27 19:50:46 +00:00
kerberos5 Add -lheimntlm to LDADD directly. 2013-02-11 09:45:24 +00:00
lib Implement SOCK_CLOEXEC, SOCK_NONBLOCK and MSG_CMSG_CLOEXEC. 2013-03-19 20:58:17 +00:00
libexec Map libraries linked with -Ttext-segment=base_addr at base_addr. 2013-02-27 09:34:09 +00:00
release the NO_PAM option has been finally removed in favor of WITHOUT_PAM. 2013-02-18 02:08:41 +00:00
rescue WiP merge of libzfs_core (MFV r238590, r238592) 2013-03-05 08:09:53 +00:00
sbin Remove unused variable. 2013-03-20 10:36:38 +00:00
secure Merge OpenSSL 1.0.1e. 2013-02-13 23:07:20 +00:00
share Merge libzfs_core branch: 2013-03-21 08:38:03 +00:00
sys Optimisation of TRIM processing. 2013-03-21 11:02:08 +00:00
tools Set WARNS=3 so this actually compiles. 2013-03-20 21:47:05 +00:00
usr.bin MFC 2013-03-17 23:39:52 +00:00
usr.sbin mdoc: remove superfluous paragraph macro. 2013-03-19 07:25:58 +00:00
COPYRIGHT
LOCKS
MAINTAINERS MAINTAINERS: Document my maintainership of sh(1). 2013-03-03 15:02:56 +00:00
Makefile Import OpenSSL 1.0.1e. 2013-02-13 22:15:56 +00:00
Makefile.inc1 libzfs_core depends on libnvpair, explicitly say this in Makefile.inc1. 2013-03-05 22:51:11 +00:00
ObsoleteFiles.inc Belatedly remove the vinum(4) manual page. The vinum 2013-03-16 08:51:47 +00:00
README Import OpenSSL 1.0.1e. 2013-02-13 22:15:56 +00:00
UPDATING Merge r247814 from x86 modulo whitespace bug: 2013-03-08 13:11:45 +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 ``world''
target should only be used in cases where the source tree has not
changed from the currently running version.  See:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/makeworld.html
for more information, including setting make(1) variables.

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.

cddl		Various commands and libraries under the Common Development
		and Distribution License.

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.

rescue		Build system for statically linked /rescue utilities.

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