freebsd-dev/sys/conf
rwatson 53da3b3d4e Add a new kernel option, MALLOC_MAKE_FAILURES, which compiles
in a debugging feature causing M_NOWAIT allocations to fail at
a specified rate.  This can be useful for detecting poor
handling of M_NOWAIT: the most frequent problems I've bumped
into are unconditional deference of the pointer even though
it's NULL, and hangs as a result of a lost event where memory
for the event couldn't be allocated.  Two sysctls are added:

debug.malloc.failure_rate

  How often to generate a failure: if set to 0 (default), this
  feature is disabled.  Otherwise, the frequency of failures --
  I've been using 10 (one in ten mallocs fails), but other
  popular settings might be much lower or much higher.

debug.malloc.failure_count

  Number of times a coerced malloc failure has occurred as a
  result of this feature.  Useful for tracking what might have
  happened and whether failures are being generated.

Useful possible additions: tying failure rate to malloc type,
printfs indicating the thread that experienced the coerced
failure.

Reviewed by:	jeffr, jhb
2003-03-26 20:18:40 +00:00
..
defines
files Missed in last commit: don't compile now non-existent geom_stats.c 2003-03-18 09:53:03 +00:00
files.alpha Standardize handling of locore.[sS] etc. files. 2003-02-28 21:59:14 +00:00
files.amd64 Standardize handling of locore.[sS] etc. files. 2003-02-28 21:59:14 +00:00
files.i386 - Consolidate smapi driver. 2003-03-24 19:40:54 +00:00
files.ia64 Standardize handling of locore.[sS] etc. files. 2003-02-28 21:59:14 +00:00
files.pc98 Merge PC98 support. 2003-03-25 05:19:18 +00:00
files.powerpc Standardize handling of locore.[sS] etc. files. 2003-02-28 21:59:14 +00:00
files.sparc64 - Remove unused cache flushing routines. These will not necessary work 2003-03-19 06:55:37 +00:00
kern.mk Sync with bsd.kern.mk. 2003-02-28 06:49:59 +00:00
kern.post.mk Leave the `clobber' target alone, it clobbers too much (including 2003-03-03 09:35:44 +00:00
kern.pre.mk Standardize handling of locore.[sS] etc. files. 2003-02-28 21:59:14 +00:00
kmod_syms.awk Our awk does not implement the ARGIND variable, so we were attempting 2002-08-06 19:31:04 +00:00
kmod.mk exists() is too aggressive when searching for files without a full path. 2003-03-03 22:51:22 +00:00
ldscript.alpha Use the new freebsd output format from Binutils 2.13.1. 2002-10-11 19:38:04 +00:00
ldscript.amd64 Add two symbols start_ctors and stop_ctors to allow us to find the 2003-01-06 07:37:15 +00:00
ldscript.i386 Add two symbols start_ctors and stop_ctors to allow us to find the 2003-01-06 07:37:15 +00:00
ldscript.ia64 Back out rev 1.7 -- I'm not sure we're ready for it and I can't test it. 2002-12-05 18:35:44 +00:00
ldscript.powerpc Page align the data segment. 2001-10-08 10:43:34 +00:00
ldscript.sparc64 Add kernbase symbol and use it instead of magic numbers in the 2001-09-21 05:43:38 +00:00
majors Note that MAJOR_AUTO is now the default if d_maj is not initialized. This 2003-03-09 11:03:45 +00:00
majors.awk Add necessary awk magic to create a table of major numbers allocated 2003-02-27 08:52:11 +00:00
Makefile.alpha Standardize handling of locore.[sS] etc. files. 2003-02-28 21:59:14 +00:00
Makefile.amd64 Standardize handling of locore.[sS] etc. files. 2003-02-28 21:59:14 +00:00
Makefile.i386 Standardize handling of locore.[sS] etc. files. 2003-02-28 21:59:14 +00:00
Makefile.ia64 Standardize handling of locore.[sS] etc. files. 2003-02-28 21:59:14 +00:00
Makefile.pc98 Standardize handling of locore.[sS] etc. files. 2003-02-28 21:59:14 +00:00
Makefile.powerpc Standardize handling of locore.[sS] etc. files. 2003-02-28 21:59:14 +00:00
Makefile.sparc64 Standardize handling of locore.[sS] etc. files. 2003-02-28 21:59:14 +00:00
makeLINT.mk Implemented "nooption" and "nomakeoption" config(8) tokens. 2003-02-26 23:36:59 +00:00
makeLINT.sed Implemented "nooption" and "nomakeoption" config(8) tokens. 2003-02-26 23:36:59 +00:00
newvers.sh HEAD reverts to 5.0-CURRENT 2002-12-13 08:47:15 +00:00
NOTES Remove bitrot associated with `maxusers'. 2003-03-22 14:18:23 +00:00
options Add a new kernel option, MALLOC_MAKE_FAILURES, which compiles 2003-03-26 20:18:40 +00:00
options.alpha Move SHOW_BUSYBUFS and PANIC_REBOOT_WAIT_TIME into the MI options file, since 2002-11-18 06:17:07 +00:00
options.amd64 Move SHOW_BUSYBUFS and PANIC_REBOOT_WAIT_TIME into the MI options file, since 2002-11-18 06:17:07 +00:00
options.i386 Nuke options HTT infavor of machdep.hlt_logical_cpus tunable/sysctl. 2003-03-26 19:49:34 +00:00
options.ia64 Add ITANIUM2 as a global option. 2002-11-24 19:50:15 +00:00
options.pc98 Nuke options HTT infavor of machdep.hlt_logical_cpus tunable/sysctl. 2003-03-26 19:49:34 +00:00
options.powerpc Not all cpus are MPC750s. Replace the MPC750 cpu option with OEA. This 2003-02-05 11:37:59 +00:00
options.sparc64 Move SHOW_BUSYBUFS and PANIC_REBOOT_WAIT_TIME into the MI options file, since 2002-11-18 06:17:07 +00:00
systags.sh $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00