Date: Sat, 8 Sep 2012 18:06:18 +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-9@freebsd.org Subject: svn commit: r240242 - stable/9/usr.sbin/watchdogd Message-ID: <201209081806.q88I6I0M032336@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: zont Date: Sat Sep 8 18:06:18 2012 New Revision: 240242 URL: http://svn.freebsd.org/changeset/base/240242 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/9/usr.sbin/watchdogd/watchdogd.c Directory Properties: stable/9/usr.sbin/watchdogd/ (props changed) Modified: stable/9/usr.sbin/watchdogd/watchdogd.c ============================================================================== --- stable/9/usr.sbin/watchdogd/watchdogd.c Sat Sep 8 17:43:20 2012 (r240241) +++ stable/9/usr.sbin/watchdogd/watchdogd.c Sat Sep 8 18:06:18 2012 (r240242) @@ -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_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?201209081806.q88I6I0M032336>