Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 8 Sep 2012 18:07:35 +0000 (UTC)
From:      Andrey Zonov <zont@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org
Subject:   svn commit: r240243 - stable/8/usr.sbin/watchdogd
Message-ID:  <201209081807.q88I7ZIF032508@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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();
 



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