freebsd-skq/sys
Kirk McKusick 74a87c3804 Limit the number of cylinder groups that will be searched when
trying to build a cluster. The limit is tunable using the sysctl
vfs.ffs.maxclustersearch. The current limit is 10 cylinder groups
per block allocation. It was previously limited to the number of
cylinder groups in the filesystem per block allocation. When there
were no clusters of the needed size left, it repeatedly searched
the whole filesystem for a non-existent cluster on every block
allocation. The result was very slow filesystem allocation with
100% CPU utilization. The old behavior can be had by setting
vfs.ffs.maxclustersearch to a huge number (1,000,000).

This change affects only the layout policy routines so is not able
to interfere with the integrity of the filesystem.

Reported by: Dmitry Sivachenko (demon@)
Tested by:   Dmitry Sivachenko (demon@)
MFC after:   2 weeks
2015-04-24 23:27:50 +00:00
..
amd64 Move common code from sys/i386/i386/mp_machdep.c and 2015-04-24 16:20:56 +00:00
arm Add the SOC_IMX51, SOC_IMX53, and SOC_IMX6 options. These are used to 2015-04-23 22:20:43 +00:00
arm64 Add the null implementation of stack_save and stack_save_td. 2015-04-22 12:24:38 +00:00
boot Fix the gpio-leds node to match the LEDs on RPI2. 2015-04-23 18:36:36 +00:00
bsm
cam Extend DA_Q_NO_RC16 to MXUB3* devices. 2015-04-21 22:55:52 +00:00
cddl Fix DTrace's panic() action. 2015-04-24 03:19:30 +00:00
compat Simplify linux_getcwd(), removing code that was longer used. 2015-04-23 08:41:50 +00:00
conf Move common code from sys/i386/i386/mp_machdep.c and 2015-04-24 16:20:56 +00:00
contrib Move ALTQ from contrib to net/altq. The ALTQ code is for many years 2015-04-16 20:22:40 +00:00
crypto In the version of gcc in the FreeBSD tree, this modification was made to 2015-04-16 17:42:52 +00:00
ddb
dev vt(4): Simplify mouse area detection 2015-04-24 17:36:26 +00:00
fs Prevent a double free. 2015-04-20 16:40:13 +00:00
gdb
geom Move zlib.c from net to libkern. 2015-04-22 14:38:58 +00:00
gnu The GNU Amlogic DTS files have some errors (e.g. bad register 2015-04-11 08:17:39 +00:00
i386 Move common code from sys/i386/i386/mp_machdep.c and 2015-04-24 16:20:56 +00:00
isa
kern Use correct length for sparse uiomove(). It must be the clipped to 2015-04-24 22:05:12 +00:00
kgssapi
libkern Move zlib.c from net to libkern. 2015-04-22 14:38:58 +00:00
mips Start enabling the available GPIO pins on the Carambola 2. 2015-04-12 00:02:32 +00:00
modules Rename the kld for oce(4) to if_oce.ko. ifconfig(8) has special knowledge 2015-04-24 14:47:53 +00:00
net Don't propagate SIOCSIFCAPS from a vlan(4) to its parent. This leads to 2015-04-23 13:19:00 +00:00
net80211 iwn, wlan: fix typos 2015-04-10 20:55:17 +00:00
netgraph Move zlib.c from net to libkern. 2015-04-22 14:38:58 +00:00
netinet Fix possible reference leak. 2015-04-24 21:05:29 +00:00
netinet6 Fix r281649: don't call in6_clearscope() twice. 2015-04-17 15:26:08 +00:00
netipsec Change ipsec_address() and ipsec_logsastr() functions to take two 2015-04-18 16:58:33 +00:00
netnatm
netpfil Move ALTQ from contrib to net/altq. The ALTQ code is for many years 2015-04-16 20:22:40 +00:00
netsmb
nfs Avoid closing unallocated socket in case socreate fails. 2015-02-28 20:30:29 +00:00
nfsclient Remove some oldnfs remnants. 2015-04-18 16:08:06 +00:00
nfsserver Use M_SIZE() instead of hand-crafted (and mostly correct) NFSMSIZ() macro 2015-01-07 17:22:56 +00:00
nlm
ofed fd: remove filedesc argument from fdclose 2015-04-11 15:40:28 +00:00
opencrypto Move zlib.c from net to libkern. 2015-04-22 14:38:58 +00:00
pc98 Fix kernel build ${MACHINE} path 2015-04-16 22:34:10 +00:00
powerpc Implement hwpmc(4) for Freescale e500 core. 2015-04-18 21:39:17 +00:00
rpc Remove hard limits on number of accepting NFS connections. 2015-04-07 10:25:27 +00:00
security cred: add proc_set_cred helper 2015-03-16 00:10:03 +00:00
sparc64 Update this driver to not save copies of registers that are no longer used 2015-04-24 13:12:04 +00:00
sys Add definition to support alloc_align attribute. 2015-04-24 18:07:34 +00:00
teken mdoc: improvements to SEE ALSO. 2014-12-27 07:07:37 +00:00
tools
ufs Limit the number of cylinder groups that will be searched when 2015-04-24 23:27:50 +00:00
vm Revert r281451. It causes a panic/hang early in boot for a number of 2015-04-24 17:03:53 +00:00
x86 Move common code from sys/i386/i386/mp_machdep.c and 2015-04-24 16:20:56 +00:00
xdr
xen Use SYSCTL_OUT_STR() to return strings. 2015-03-14 21:40:24 +00:00
Makefile