| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
Fix the watchdog/watchdog man pages.
The default timeout is 128 seconds.
|
|
|
|
|
| |
r253719 disallowed watchdog(8) from disabling the watchdog
by breaking the ability to pass 0 as a timeout arg. Fix this.
|
|
|
|
| |
Submitted by: dhw
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
The original API calls for pow2ns, however the new APIs from
Linux call for seconds.
We need to be able to convert to/from 2^Nns to seconds in both
userland and kernel to fix this and properly compare units.
|
|
|
|
|
|
|
| |
This table is only used within this source file and is only accessed
read-only.
MFC after: 1 week
|
|
|
|
|
|
|
|
|
|
| |
don't carp about the watchdog command taking too long until after the
watchdog has been patted, and don't carp via warnx(3) unless -S is set
since syslog(3) already logs to standard error otherwise.
Discussed with: alfred
Reviewed by: alfred
Approved by: emaste (co-mentor)
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The following support was added to watchdog(4):
- Support to query the outstanding timeout.
- Support to set a software pre-timeout function watchdog with an 'action'
- Support to set a software only watchdog with a configurable 'action'
'action' can be a mask specifying a single operation or a combination of:
log(9), printf(9), panic(9) and/or kdb_enter(9).
Support the following in watchdogged:
- Support to utilize the new additions to watchdog(4).
- Support to warn if a watchdog script runs for too long.
- Support for "dry run" where we do not actually arm the watchdog,
but only report on our timing.
Sponsored by: iXsystems, Inc.
MFC after: 1 month
|
|
|
|
| |
Approved by: cognet (mentor)
|
|
|
|
|
|
|
|
|
|
|
| |
This uses the recently-added jemalloc(3) feature of setting the lg_chunk
tuning option to zero to request that memory be allocated in the smallest
chunks possible. Without this option, the default is to initally map 8MB,
and then the mlockall() call wires that entire allocation even though the
program only uses a few Kbytes of it at runtime.
PR: bin/173332
Approved by: cognet (mentor)
|
|
|
|
| |
MFC after: 2 weeks
|
|
|
|
| |
MFC after: 2 weeks
|
|
|
|
|
| |
Approved by: kib (mentor)
MFC after: 1 week
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
SVN r199804 which added protection to sshd, cron, syslogd, and inetd.
|
|
|
|
|
|
|
|
| |
While I'm there also add a 'static' keyword for a function to make it
consistent with prototype.
Reviewed by: phk
MFC after: 3 months
|
| |
|
|
|
|
|
|
|
| |
I was considering committing all these patches one by one, but as
discussed with brooks@, there is no need to do this. If we ever
need/want to merge these changes back, it is still possible to do this
per application.
|
|
|
|
| |
within watchdogd(8) fails. This is also consistent with watchdog(8).
|
|
|
|
|
| |
That'll require -KILL. This avoids resetting your system on one of the
watchdogs that you cannot disable.
|
| |
|
| |
|
|
|
|
| |
Submitted by: Adrian Steinmann <ast@marabu.ch>
|
|
|
|
|
| |
Complain about extra arguments so people don't get surprised
if they type "watchdog 0"
|
|
|
|
|
|
|
| |
them for reading. When user can open file for reading, he can also
flock(2) it, which can lead to confusions.
Pointed out by: green
|
| |
|
|
|
|
|
|
|
| |
return value of the ioctl doesn't indicate that the command has failed
so don't let watchdog(8) return an error in this case.
MFC after: 3 days
|
| |
|
|
|
|
|
|
| |
if the swap subsystem failed.
Requested by: phk
|
|
|
|
| |
out of swap.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
<sys/sysctl.h>.
|
|
|
|
|
| |
- Sort SEE ALSO by section number.
- Remove redundant ','.
|
|
|
|
|
|
|
|
| |
- Remove EOL whitespace.
- Expand contracted words.
- Correct usage of .Fl macro.
- Use complete argument to -width.
- Remove redundant ','.
|
|
|
|
|
|
|
|
|
|
|
| |
generic watchdoc(9) interface.
Make watchdogd(8) perform as watchdog(8) as well, and make it
possible to specify a check command to run, timeout and sleep
periods.
Update watchdog(4) to talk about the generic interface and add
new watchdog(8) page.
|
|
|
|
| |
Use WARNS?= instead of WARNS=.
|
|
|
|
|
|
|
|
|
|
|
| |
- Reordered #includes
- Only include <sys/types.h>, not it and <sys/cdefs.h>
o style.Makefile(5) fixes
- No SRCS= line when only one src file with same name as program
o Use warn()/errx() instead of fprintf()
- Integrated patch from Philippe Charnier <charnier@xp11.frmug.org>
Approved by: jeff (mentor)
|
|
|
|
| |
Double pointy hat to me, or something.
|
|
|
|
| |
Submitted by: smkelly
|
|
This commit has two pieces. One half is the watchdog kernel code which lives
primarily in hardclock() in sys/kern/kern_clock.c. The other half is a userland
daemon which, when run, will keep the watchdog from firing while the userland
is intact and functioning.
Approved by: jeff (mentor)
|