Thanks, Harlan, for the quick reply! On Feb 12, 2015, at 1:57 PM, Harlan Stenn <[email protected]> wrote:
> Rick Thomas writes: >> Hi All, >> >> I have a machine with a really bad clock. When I run NTP on it, the >> freq goes straight to 500.0 (over a period of a few days) and stays there, >> while the offset grows and grows. >> >> I recently switched this machine from Debian Linux to FreeBSD (wanting to >> learn more about FreeBSD). Under Linux, I used adjtimex to modify the TICK >> value and (once I had converged on the right value) NTP was able to >> stabilize the clock. >> >> Is there an equivalent hack for FreeBSD? > > Try 'tickadj'. > > H The tickadj command is in the net/ntp-rc package. When I try to compile that package I get: > [rbthomas@grey ~]$ portmaster net/ntp-rc > mkdir: /usr/ports/packages/portmaster-backup: Permission denied > > ===>>> Port directory: /usr/ports/net/ntp-rc > > ===>>> This port is marked FORBIDDEN > ===>>> CVE-2013-5211 / VU > > > ===>>> If you are sure you can build it, remove the > FORBIDDEN line in the Makefile and try again. > [rbthomas@grey ~]$ > And an excerpt from the Makefile shows: > COMMENT= The Network Time Protocol Distribution > IGNORE= RC branch not currently active > FORBIDDEN= CVE-2013-5211 / VU#348126 > BROKEN= Does not configure Also, googling around a bit seems to indicate that tickadj would not be appropriate for the “tickles” kernel in FreeBSD-10.1. If it makes a difference, the hardware is a PowerPC Mac G4 “quicksilver”. The only available timecounter is “timebase”. Can I do a sysctl to modify “timebase.frequency”. If so, what direction should I modify it in? > [rbthomas@grey /usr/ports/net/ntp-rc]$ sysctl kern.timecounter > kern.timecounter.fast_gettime: 1 > kern.timecounter.tick: 1 > kern.timecounter.choice: timebase(0) dummy(-1000000) > kern.timecounter.hardware: timebase > kern.timecounter.alloweddeviation: 5 > kern.timecounter.stepwarnings: 0 > kern.timecounter.tc.timebase.mask: 4294967295 > kern.timecounter.tc.timebase.counter: 593642255 > kern.timecounter.tc.timebase.frequency: 33290001 > kern.timecounter.tc.timebase.quality: 0 Thanks! Rick _______________________________________________ questions mailing list [email protected] http://lists.ntp.org/listinfo/questions
