From owner-svn-src-stable-8@FreeBSD.ORG Sat Sep 8 18:07:35 2012 Return-Path: Delivered-To: svn-src-stable-8@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id AEFBA1065677; Sat, 8 Sep 2012 18:07:35 +0000 (UTC) (envelope-from zont@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 9A99E8FC15; Sat, 8 Sep 2012 18:07:35 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q88I7Zx0032510; Sat, 8 Sep 2012 18:07:35 GMT (envelope-from zont@svn.freebsd.org) Received: (from zont@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q88I7ZIF032508; Sat, 8 Sep 2012 18:07:35 GMT (envelope-from zont@svn.freebsd.org) Message-Id: <201209081807.q88I7ZIF032508@svn.freebsd.org> From: Andrey Zonov Date: Sat, 8 Sep 2012 18:07:35 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org X-SVN-Group: stable-8 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r240243 - stable/8/usr.sbin/watchdogd X-BeenThere: svn-src-stable-8@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for only the 8-stable src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Sep 2012 18:07:35 -0000 Author: zont Date: Sat Sep 8 18:07:35 2012 New Revision: 240243 URL: http://svn.freebsd.org/changeset/base/240243 Log: MFC r239769: - Don't allow watchdogd(8) to be swapped out. On machines with huge amount of swap and high IO activity, watchdogd(8) may wait for a swap memory longer than timeout and sometimes fires. MFC r239896: - It's also need to lock current memory. Modified: stable/8/usr.sbin/watchdogd/watchdogd.c Directory Properties: stable/8/usr.sbin/watchdogd/ (props changed) Modified: stable/8/usr.sbin/watchdogd/watchdogd.c ============================================================================== --- stable/8/usr.sbin/watchdogd/watchdogd.c Sat Sep 8 18:06:18 2012 (r240242) +++ stable/8/usr.sbin/watchdogd/watchdogd.c Sat Sep 8 18:07:35 2012 (r240243) @@ -120,6 +120,8 @@ main(int argc, char *argv[]) pidfile_write(pfh); if (madvise(0, 0, MADV_PROTECT) != 0) warn("madvise failed"); + if (mlockall(MCL_CURRENT | MCL_FUTURE) != 0) + warn("mlockall failed"); watchdog_loop();