Date: Wed, 23 May 2001 09:06:39 -0700 From: Drew Tomlinson <drewt@writeme.com> To: 'Vivek Khera' <khera@kcilink.com>, questions@freebsd.org Subject: RE: how to improve a bad timekeeper Message-ID: <BA5D0CE1CBB2D411B6AA00A0CC3F02390AFA0C@ldcmsx01.lc.ca.gov> In-Reply-To: <15115.53325.566433.473253@onceler.kciLink.com>
next in thread | previous in thread | raw e-mail | index | archive | help
I had a similar problem a while back. Dan Nelson helped me get things set up and suggested the following: Another thing you can try is changing your clock source. Add the following lines to your kernel config file and recompile: options CLK_USE_I8254_CALIBRATION options CLK_USE_TSC_CALIBRATION I don't understand what these do exactly and they're not documented in LINT as of the 4.2-RELEASE. But I did this and it worked for me. HTH, Drew > -----Original Message----- > From: Vivek Khera [mailto:khera@kcilink.com] > Sent: Wednesday, May 23, 2001 7:59 AM > To: questions@freebsd.org > Subject: how to improve a bad timekeeper > > > I have one 4.3-STABLE box that is a really bad timekeeper. ntpd has a > hard time keeping it in line. Often offset is high, and I see loss of > synchronization frequently. > > The system boot message is below. > > I've tried the following to work around the bad timekeeping: > > 1) set kern.timecounter.method=1 (didn't help) > 2) add apm0 to the kernel config (helps somewhat) > > Still, the time is offset about between 0.7 and 1.4 seconds from the > two ntp servers to which I synchronize (both on my network). Without > apm0 device, it was going as far as 30 seconds off. > > The machine only does backup mail and DNS, so I don't care that > microsecond timing is accurate (can I adjust the clock tick somehow)? > > Are there any other things I can try to get this machine to keep > better time? > > --cut here-- > Copyright (c) 1992-2001 The FreeBSD Project. > Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, > 1993, 1994 > The Regents of the University of California. All rights > reserved. > FreeBSD 4.3-STABLE #1: Tue May 22 22:35:18 EDT 2001 > > vivek@lorax.kciLink.com:/u/lorax1/usr/obj/u/lorax1/usr/src/sys/LORAX > Timecounter "i8254" frequency 1193182 Hz > CPU: Pentium/P54C (198.96-MHz 586-class CPU) > Origin = "GenuineIntel" Id = 0x52c Stepping = 12 > Features=0x1bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8> > real memory = 134217728 (131072K bytes) > avail memory = 127967232 (124968K bytes) > Preloaded elf kernel "kernel" at 0xc02bb000. > Intel Pentium detected, installing workaround for F00F bug > apm0: <APM BIOS> on motherboard > apm: found APM BIOS v1.1, connected at v1.1 > npx0: <math processor> on motherboard > npx0: INT 16 interface > pcib0: <Host to PCI bridge> on motherboard > pci0: <PCI bus> on pcib0 > isab0: <Intel 82371SB PCI to ISA bridge> at device 7.0 on pci0 > isa0: <ISA bus> on isab0 > pci0: <Intel PIIX3 ATA controller> at 7.1 > de0: <Digital 21140 Fast Ethernet> port 0x6000-0x607f mem > 0xe0800000-0xe080007f irq 5 at device 17.0 on pci0 > de0: DEC DE500-XA 21140 [10-100Mb/s] pass 1.2 > de0: address 00:00:f8:03:1e:19 > pci0: <S3 Trio graphics accelerator> at 18.0 irq 9 > bt0: <Buslogic Multi-Master SCSI Host Adapter> port > 0x6100-0x6103 mem 0xe0801000-0xe0801fff irq 10 at device 19.0 on pci0 > bt0: BT-948 FW Rev. 5.05R Ultra Narrow SCSI Host Adapter, > SCSI ID 7, 192 CCBs > sis0: <NatSemi DP83815 10/100BaseTX> port 0x6200-0x62ff mem > 0xe0802000-0xe0802fff irq 11 at device 20.0 on pci0 > sis0: Ethernet address: 00:02:e3:15:61:04 > miibus0: <MII bus> on sis0 > ukphy0: <Generic IEEE 802.3u media interface> on miibus0 > ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto > fdc0: <NEC 72065B or clone> at port 0x3f0-0x3f5,0x3f7 irq 6 > drq 2 on isa0 > fdc0: FIFO enabled, 8 bytes threshold > fd0: <1440-KB 3.5" drive> on fdc0 drive 0 > atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0 > atkbd0: <AT Keyboard> irq 1 on atkbdc0 > kbd0 at atkbd0 > vga0: <Generic ISA VGA> at port 0x3b0-0x3df iomem > 0xa0000-0xbffff on isa0 > sc0: <System console> at flags 0x100 on isa0 > sc0: VGA <16 virtual consoles, flags=0x100> > sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0 > sio0: type 16550A, console > sio1 at port 0x2f8-0x2ff irq 3 on isa0 > sio1: type 16550A > IP packet filtering initialized, divert disabled, rule-based > forwarding disabled, default to accept, unlimited logging > Waiting 5 seconds for SCSI devices to settle > de0: enabling 10baseT port > Mounting root from ufs:/dev/da0s1a > da0 at bt0 bus 0 target 0 lun 0 > da0: <SEAGATE ST31055N 0532> Fixed Direct Access SCSI-2 device > da0: 10.000MB/s transfers (10.000MHz, offset 15), Tagged > Queueing Enabled > da0: 1010MB (2069860 512 byte sectors: 64H 32S/T 1010C) > da1 at bt0 bus 0 target 1 lun 0 > da1: <SEAGATE ST32550N 0021> Fixed Direct Access SCSI-2 device > da1: 10.000MB/s transfers (10.000MHz, offset 15), Tagged > Queueing Enabled > da1: 2047MB (4194058 512 byte sectors: 128H 32S/T 1023C) > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BA5D0CE1CBB2D411B6AA00A0CC3F02390AFA0C>