From owner-cvs-src@FreeBSD.ORG Wed Jul 28 22:13:47 2004 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from green.homeunix.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id D583216A4CE; Wed, 28 Jul 2004 22:13:46 +0000 (GMT) Received: from green.homeunix.org (green@localhost [127.0.0.1]) by green.homeunix.org (8.12.11/8.12.11) with ESMTP id i6SMDkqr020527; Wed, 28 Jul 2004 18:13:46 -0400 (EDT) (envelope-from green@green.homeunix.org) Received: (from green@localhost) by green.homeunix.org (8.12.11/8.12.11/Submit) id i6SMDk6Z020526; Wed, 28 Jul 2004 18:13:46 -0400 (EDT) (envelope-from green) Date: Wed, 28 Jul 2004 18:13:45 -0400 From: Brian Fundakowski Feldman To: Poul-Henning Kamp Message-ID: <20040728221345.GB19257@green.homeunix.org> References: <20040728233751.A31182@newtrinity.zeist.de> <47640.1091049381@critter.freebsd.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <47640.1091049381@critter.freebsd.dk> User-Agent: Mutt/1.5.6i cc: cvs-src@FreeBSD.org cc: src-committers@FreeBSD.org cc: cvs-all@FreeBSD.org cc: Marius Strobl Subject: Re: cvs commit: src/usr.sbin/watchdogd watchdogd.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Jul 2004 22:13:47 -0000 On Wed, Jul 28, 2004 at 11:16:21PM +0200, Poul-Henning Kamp wrote: > In message <20040728233751.A31182@newtrinity.zeist.de>, Marius Strobl writes: > >On Fri, Jul 23, 2004 at 03:24:58PM +0000, Brian Feldman wrote: > >> green 2004-07-23 15:24:58 UTC > >> > >> FreeBSD src repository > >> > >> Modified files: > >> usr.sbin/watchdogd watchdogd.c > >> Log: > >> Now that mlockall(2) is unbroken, use it to keep watchdogd(8) permanently > >> out of swap. > >> > > > >This broke watchdogd(8) on at least alpha and sparc64: > >omega# watchdogd > >watchdogd: mlockall: Resource temporarily unavailable > > > >Like I told you before, every call of mlockall(MCL_CURRENT) returns -1 > >and sets errno to EAGAIN on these platforms. > > Worse, if it had worked it would have prevented watchdogd from > detecting swap disk related issues. > > The only kind of special treatment you should give a watchdog daemons > is negative benefits so that it will be more sensitive to trouble. The usage of real-time priority isn't really much of a negative benefit, either, though. -- Brian Fundakowski Feldman \'[ FreeBSD ]''''''''''\ <> green@FreeBSD.org \ The Power to Serve! \ Opinions expressed are my own. \,,,,,,,,,,,,,,,,,,,,,,\