Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Aug 2010 15:59:08 +0200
From:      Erik Trulsson <ertr1013@student.uu.se>
To:        Xin LI <delphij@gmail.com>
Cc:        freebsd-stable@freebsd.org, phk@freebsd.org, Jeremy Chadwick <freebsd@jdc.parodius.com>
Subject:   Re: Watchdog not being disabled while dumping core
Message-ID:  <20100823135908.GA5538@owl.midgard.homeip.net>
In-Reply-To: <AANLkTik=-iJ9b1YBvr7_Lcu%2BYkG=am9%2Boqx3_=J3uXrc@mail.gmail.com>
References:  <20100823103412.GA21044@icarus.home.lan> <AANLkTik=-iJ9b1YBvr7_Lcu%2BYkG=am9%2Boqx3_=J3uXrc@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Aug 23, 2010 at 04:07:47AM -0700, Xin LI wrote:
> On Mon, Aug 23, 2010 at 3:34 AM, Jeremy Chadwick
> <freebsd@jdc.parodius.com> wrote:
> > PR bin/145183, opened in 2010 (not sure if this is the same):
> > http://www.freebsd.org/cgi/query-pr.cgi?pr=bin/145183
> 
> Speaking for this I think we can do it by issuing an explicit
> watchdog(8) command on shutdown (like, set the timeout to several
> minutes) in /etc/rc.d/watchdog's shutdown section.  This would be
> trivial to implement.

No, it would not be trivial to implement (at least not if you want it
to actually work correctly.)  The reason for that is that at least some
(perhaps even most) hardware watchdog devices do not support so long
timeouts.

I know for example that the watchdog in the ixp425 CPU has a maximum
timeout of 65 seconds.  Reading the manpage for ichwd(4) it seems that
it has maximum timeout of about 37 seconds.

I suspect that other hardware watchdogs have similar limits, which
leads to the conclusion that one should not assume watchdog timeouts
longer than maybe 30 seconds to be supported.





-- 
<Insert your favourite quote here.>
Erik Trulsson
ertr1013@student.uu.se



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100823135908.GA5538>