watchdog questions



I need some help understanding FreeBSD's kernel watchdog functionality. I've
been reading up, and here's what I think I understand (correct me if I'm wrong):

If a watchdog timer is set in the kernel and not reset or disabled within the
time given, the kernel reboots the system.

'watchdog -t <n>' starts a watchdog for n seconds. Runing watchdog(8) again in
<n seconds, resets the timer. If 'watchdog -t 0' is run, the kernel disables
the watchdog.

watchdogd(8) either runs stat(2) on /etc, or a user-defined cmd (with -e), and
resets the watchdog only on a zero exit code.

There's a few things that aren't clear, though:

How many watchdog timers can be enabled at a given time? If more than one,
does a single 'watchdog -t 0' disable all timers?

Upon timer expiration, can the kernel be configured to do anything OTHER than
rebooting?

Is it the general idea that watchdog(8) would be run in a script, making sure
the script doesn't hang? And that watchdogd(8) is run to ensure the entire
system doesn't hang?


_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: [RFC] x86,perf: Implement minimal P4 PMU driver v14
    ... NMI watchdog enabled, takes one hw-pmu counter. ... unable to handle kernel NULL pointer dereference at ... # AX.25 network device drivers ...
    (Linux-Kernel)
  • Re: [PATCH -tip/master] x86: nmi_watchdog - documentation fix
    ... Subject: x86: nmi_watchdog - documentation fix ... This can be used to debug hard kernel lockups. ... In order to use the NMI watchdog, you need to have APIC support in your ...
    (Linux-Kernel)
  • Re: PANIC (watchdog)
    ... set up a watchdog app to reset the watchdog timeout every ... it's not a panic (it's only a panic in a kernel without ... you into the kernel debugger _unless_ something resets the watchdog ...
    (freebsd-current)
  • Re: IPMI hardware watchdogs Re: dell r420/r320 stable/9
    ... |> the IPMI hardware watchdog once SCHEDULER_STOPPEDis true. ... |> how long the timeout was on the pet before the panic. ... I noticed that unlike most other watchdog drivers where watchdog ... We do that so we can put kernel back traces into the system event ...
    (freebsd-stable)
  • Re: [discuss] Re: [Perfctr-devel] Re: Enabling RDPMC in user space by default
    ... >> Disabling the NMI watchdog for that is out of question. ... >> debugging device and without it kernel bug reports are much worse. ... > to count elapsed cycles while executing a ring 0 and ring 3. ...
    (Linux-Kernel)