[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
ntp question
- To: misc@openbsd.org
- Subject: ntp question
- From: Lars Hecking <lhecking@nmrc.ucc.ie>
- Date: Thu, 27 Apr 2000 00:29:31 +0100
- Content-Disposition: inline
- Mail-Followup-To: misc@openbsd.org
- User-Agent: Mutt/1.1.12i
I have installed the xntp package from ports. To find out how much
the clock drifts, I'm using this short batch job found on Usenet:
# batch
tickadj -A
date ; ntpdate <server>
sleep 86400
date ; ntpdate <server>
^D
tickadj is
-r-xr-xr-x 1 root wheel 16384 Apr 24 18:29 /usr/local/sbin/tickadj*
and I get this output:
tickadj: open /dev/kmem: Operation not permitted
KERNEL tick = 10000 usec (from _tick kernel variable)
PRESET tick = 10000 usec
KERNEL tickadj = 40 usec (from _tickadj kernel variable)
PRESET tickadj = 5 usec
KERNEL hz = 100
calculated hz = 100.00 Hz
recommended value of tickadj = 5 us
Why can tickadj not open /dev/kmem? The job runs as root.
crw-r----- 1 root kmem 2, 1 Apr 24 20:09 /dev/kmem
# uname -a
OpenBSD localhost 2.6 RUSTY#4 amiga