Date: Tue, 28 Aug 2012 08:38:53 +0000 (UTC) From: Andrey Zonov <zont@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r239769 - head/usr.sbin/watchdogd Message-ID: <201208280838.q7S8crqM038104@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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();
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201208280838.q7S8crqM038104>