diff options
author | rwatson <rwatson@FreeBSD.org> | 2004-08-15 18:02:09 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2004-08-15 18:02:09 +0000 |
commit | abf6ea297348d3b946d7a2bb67a376b155599a71 (patch) | |
tree | 4a5b0f6eb8290162c38228dca38f26a2f97060d2 /sys/conf/options.i386 | |
parent | 437ee5545ce83bd132c962ff366e5a270d27f972 (diff) | |
download | FreeBSD-src-abf6ea297348d3b946d7a2bb67a376b155599a71.zip FreeBSD-src-abf6ea297348d3b946d7a2bb67a376b155599a71.tar.gz |
Add an "options MP_WATCHDOG" to i386. This option allows one of the
logical CPUs on a system to be used as a dedicated watchdog to cause a
drop to the debugger and/or generate an NMI to the boot processor if
the kernel ceases to respond. A sysctl enables the watchdog running
out of the processor's idle thread; a callout is launched to reset a
timer in the watchdog. If the callout fails to reset the timer for ten
seconds, the watchdog will fire. The sysctl allows you to select which
CPU will run the watchdog.
A sample "debug.leak_schedlock" is included, which causes a sysctl to
spin holding sched_lock in order to trigger the watchdog. On my Xeons,
the watchdog is able to detect this failure mode and break into the
debugger, which cannot otherwise be done without an NMI button.
This option does not currently work with sched_ule due to ule's push
notion of scheduling, similar to machdep.hlt_logical_cpus failing to
work with that scheduler.
On face value, this might seem somewhat inefficient, but there are a
lot of dual-processor Xeons with HTT around, so using one as a watchdog
for testing is not as inefficient as one might fear.
Diffstat (limited to 'sys/conf/options.i386')
-rw-r--r-- | sys/conf/options.i386 | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/conf/options.i386 b/sys/conf/options.i386 index 24a6584..0ecfd46 100644 --- a/sys/conf/options.i386 +++ b/sys/conf/options.i386 @@ -15,6 +15,7 @@ PMAP_SHPGPERPROC opt_pmap.h POWERFAIL_NMI opt_trap.h PPC_DEBUG opt_ppc.h PPC_PROBE_CHIPSET opt_ppc.h +MP_WATCHDOG opt_mp_watchdog.h # Options for emulators. These should only be used at config time, so # they are handled like options for static filesystems |