svn commit: r239769 - head/usr.sbin/watchdogd

Andrey Zonov zont at FreeBSD.org
Tue Aug 28 08:38:54 UTC 2012


Author: zont
Date: Tue Aug 28 08:38:53 2012
New Revision: 239769
URL: http://svn.freebsd.org/changeset/base/239769

Log:
  - 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.
  
  Approved by:	kib (mentor)
  MFC after:	1 week

Modified:
  head/usr.sbin/watchdogd/watchdogd.c

Modified: head/usr.sbin/watchdogd/watchdogd.c
==============================================================================
--- head/usr.sbin/watchdogd/watchdogd.c	Tue Aug 28 06:52:00 2012	(r239768)
+++ head/usr.sbin/watchdogd/watchdogd.c	Tue Aug 28 08:38:53 2012	(r239769)
@@ -118,6 +118,8 @@ main(int argc, char *argv[])
 		pidfile_write(pfh);
 		if (madvise(0, 0, MADV_PROTECT) != 0)
 			warn("madvise failed");
+		if (mlockall(MCL_FUTURE) != 0)
+			warn("mlockall failed");
 
 		watchdog_loop();
 


More information about the svn-src-all mailing list