From aae8be3bc8c6ea786bc8ea8d8d628ef486b27304 Mon Sep 17 00:00:00 2001 From: zont Date: Tue, 28 Aug 2012 08:38:53 +0000 Subject: - 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 --- usr.sbin/watchdogd/watchdogd.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'usr.sbin/watchdogd') diff --git a/usr.sbin/watchdogd/watchdogd.c b/usr.sbin/watchdogd/watchdogd.c index 7bae4ff..f0896a9 100644 --- a/usr.sbin/watchdogd/watchdogd.c +++ b/usr.sbin/watchdogd/watchdogd.c @@ -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(); -- cgit v1.1