- 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
This commit is contained in:
Andrey Zonov 2012-08-28 08:38:53 +00:00
parent f678730318
commit e489ac6c53

View File

@ -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();