From owner-freebsd-questions Wed May 23 9: 7: 5 2001 Delivered-To: freebsd-questions@freebsd.org Received: from lcmail2.lc.ca.gov (lcmail2.lc.ca.gov [165.107.12.11]) by hub.freebsd.org (Postfix) with ESMTP id 9F95837B423 for ; Wed, 23 May 2001 09:06:52 -0700 (PDT) (envelope-from drewt@writeme.com) Received: from CONVERSION-DAEMON by lcmail2.lc.ca.gov (PMDF V5.2-27 #40821) id <0GDS00201Q3PLL@lcmail2.lc.ca.gov> for questions@freebsd.org; Wed, 23 May 2001 09:07:04 -0700 (PDT) Received: from tagalong ([165.107.42.244]) by lcmail2.lc.ca.gov (PMDF V5.2-27 #40821) with SMTP id <0GDS00P63Q3N2A@lcmail2.lc.ca.gov> for questions@freebsd.org; Wed, 23 May 2001 09:06:59 -0700 (PDT) Date: Wed, 23 May 2001 09:06:39 -0700 From: Drew Tomlinson Subject: RE: how to improve a bad timekeeper In-reply-to: <15115.53325.566433.473253@onceler.kciLink.com> To: 'Vivek Khera' , questions@freebsd.org Message-id: MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 X-Mailer: Microsoft Outlook CWS, Build 9.0.2416 (9.0.2911.0) Content-type: text/plain; charset="us-ascii" Content-transfer-encoding: 7bit Importance: Normal X-Priority: 3 (Normal) X-MSMail-priority: Normal Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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 > 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: on motherboard > apm: found APM BIOS v1.1, connected at v1.1 > npx0: on motherboard > npx0: INT 16 interface > pcib0: on motherboard > pci0: on pcib0 > isab0: at device 7.0 on pci0 > isa0: on isab0 > pci0: at 7.1 > de0: 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: at 18.0 irq 9 > bt0: 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: port 0x6200-0x62ff mem > 0xe0802000-0xe0802fff irq 11 at device 20.0 on pci0 > sis0: Ethernet address: 00:02:e3:15:61:04 > miibus0: on sis0 > ukphy0: on miibus0 > ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto > fdc0: 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: at port 0x60,0x64 on isa0 > atkbd0: irq 1 on atkbdc0 > kbd0 at atkbd0 > vga0: at port 0x3b0-0x3df iomem > 0xa0000-0xbffff on isa0 > sc0: 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: 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: 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