diff options
author | Andrey Zonov <zont@FreeBSD.org> | 2012-08-28 08:38:53 +0000 |
---|---|---|
committer | Andrey Zonov <zont@FreeBSD.org> | 2012-08-28 08:38:53 +0000 |
commit | e489ac6c53db8c961e3a9889d7afe8719b1bc627 (patch) | |
tree | 14b2380e5984ebd6c29b7800442a7826c9e272bd /usr.sbin/watchdogd | |
parent | f6787303188c6122e6484697ffe02ec2a7334b03 (diff) | |
download | src-e489ac6c53db8c961e3a9889d7afe8719b1bc627.tar.gz src-e489ac6c53db8c961e3a9889d7afe8719b1bc627.zip |
- 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
Notes
Notes:
svn path=/head/; revision=239769
Diffstat (limited to 'usr.sbin/watchdogd')
-rw-r--r-- | usr.sbin/watchdogd/watchdogd.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.sbin/watchdogd/watchdogd.c b/usr.sbin/watchdogd/watchdogd.c index 7bae4ffc3ee4..f0896a92f329 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(); |