From owner-freebsd-hackers@freebsd.org Mon Dec 12 19:34:02 2016 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 96D4EC741CD for ; Mon, 12 Dec 2016 19:34:02 +0000 (UTC) (envelope-from hrant@dadivanyan.net) Received: from pandora.amnic.net (pandora.amnic.net [IPv6:2001:67c:21c:a610::11]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4EAF5DB; Mon, 12 Dec 2016 19:34:02 +0000 (UTC) (envelope-from hrant@dadivanyan.net) Received: from ran by pandora.amnic.net with local (Exim 4.87 (FreeBSD)) (envelope-from ) id 1cGWMJ-000B5E-Mm; Mon, 12 Dec 2016 23:33:59 +0400 Subject: Re: system time instability In-Reply-To: <20161212191832.GN54029@kib.kiev.ua> To: Konstantin Belousov Date: Mon, 12 Dec 2016 23:33:59 +0400 (AMT) From: Hrant Dadivanyan CC: Ian Lepore , freebsd-hackers@freebsd.org X-PGP: https://amnic.net/pgpkeys/hrant.asc X-NCC-RegID: am.isoc X-Mailer: ELM [version 2.4ME+ PL127 (25)] MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="ELM1481571239-41986-0_" Content-Transfer-Encoding: 7bit Message-Id: X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Dec 2016 19:34:02 -0000 --ELM1481571239-41986-0_ Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="UTF-8" > On Mon, Dec 12, 2016 at 11:04:08PM +0400, Hrant Dadivanyan wrote: > > Now, when you ask, I start to suspect PPS delivery to uart again - cable > > and amplifier, but can't understand how the 100ppm error fits into that. > > If you disable PPS sync in ntp config, does the machine keep time adequately ? > Thanks for reminding - yes, I've tried this as well, the issue persists. So uart shouldn't be in charge. > There might be relatively long pauses when system management mode handlers > do something in response to hw events. E.g. if you have USB emulation of > AT keyboard enabled in BIOS, try to disable that. And update the BIOS. The USB is switched off in the BIOS. I've removed all changes in sysctl.conf and nice flag from ntpd, recompiled kernel as following: include GENERIC options PPS_SYNC device pf device pflog and started over. Dmesg is attached. Thank you, Hrant -- Hrant Dadivanyan (aka Ran d'Adi) hrant(at)dadivanyan.net /* "Feci quod potui, faciant meliora potentes." */ ran(at)psg.com --ELM1481571239-41986-0_ Content-Transfer-Encoding: 7bit Content-Type: text/plain Content-Disposition: attachment; filename=dmesg Content-Description: Copyright (c) 1992-2016 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 is a registered trademark of The FreeBSD Foundation. FreeBSD 10.3-RELEASE-p14 #0 r309851: Mon Dec 12 19:38:52 AMT 2016 ran@ntp.amnic.net:/usr/obj/usr/src/sys/NTP amd64 FreeBSD clang version 3.4.1 (tags/RELEASE_34/dot1-final 208032) 20140512 CPU: Intel(R) Core(TM)2 Duo CPU E4500 @ 2.20GHz (2194.55-MHz K8-class CPU) Origin="GenuineIntel" Id=0x6fd Family=0x6 Model=0xf Stepping=13 Features=0xbfebfbff Features2=0xe39d AMD Features=0x20100800 AMD Features2=0x1 TSC: P-state invariant, performance statistics real memory = 2147483648 (2048 MB) avail memory = 2040201216 (1945 MB) Event timer "LAPIC" quality 400 ACPI APIC Table: FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs FreeBSD/SMP: 1 package(s) x 2 core(s) cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 random: initialized ioapic0 irqs 0-23 on motherboard kbd1 at kbdmux0 acpi0: on motherboard acpi0: Power Button (fixed) cpu0: on acpi0 cpu1: on acpi0 hpet0: iomem 0xfed00000-0xfed003ff irq 0,8 on acpi0 Timecounter "HPET" frequency 14318180 Hz quality 950 Event timer "HPET" frequency 14318180 Hz quality 450 Event timer "HPET1" frequency 14318180 Hz quality 440 Event timer "HPET2" frequency 14318180 Hz quality 440 atrtc0: port 0x70-0x71 on acpi0 Event timer "RTC" frequency 32768 Hz quality 0 attimer0: port 0x40-0x43,0x50-0x53 on acpi0 Timecounter "i8254" frequency 1193182 Hz quality 0 Event timer "i8254" frequency 1193182 Hz quality 100 Timecounter "ACPI-fast" frequency 3579545 Hz quality 900 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x1008-0x100b on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 vgapci0: port 0x3030-0x3037 mem 0xd0000000-0xd00fffff,0xc0000000-0xcfffffff irq 16 at device 2.0 on pci0 agp0: on vgapci0 agp0: aperture size is 256M, detected 7676k stolen memory vgapci0: Boot video device pcib1: irq 16 at device 28.0 on pci0 pcib1: failed to allocate initial I/O port window: 0-0xfff pcib1: failed to allocate initial memory window: 0-0xfffff pcib1: failed to allocate initial prefetch window: 0-0xfffff pci2: on pcib1 pcib2: irq 16 at device 28.4 on pci0 pci6: on pcib2 em0: port 0x4000-0x401f mem 0xd0100000-0xd011ffff irq 16 at device 0.0 on pci6 em0: Using an MSI interrupt em0: Ethernet address: 00:30:48:93:70:34 pcib3: irq 17 at device 28.5 on pci0 pci7: on pcib3 em1: port 0x5000-0x501f mem 0xd0200000-0xd021ffff irq 17 at device 0.0 on pci7 em1: Using an MSI interrupt em1: Ethernet address: 00:30:48:93:70:35 pcib4: at device 30.0 on pci0 pci8: on pcib4 isab0: at device 31.0 on pci0 isa0: on isab0 ahci0: port 0x3048-0x304f,0x303c-0x303f,0x3040-0x3047,0x3038-0x303b,0x3020-0x302f mem 0xd0500000-0xd05003ff irq 17 at device 31.2 on pci0 ahci0: AHCI v1.10 with 4 3Gbps ports, Port Multiplier not supported ahcich0: at channel 0 on ahci0 ahcich1: at channel 1 on ahci0 ahcich2: at channel 2 on ahci0 ahcich3: at channel 3 on ahci0 acpi_button0: on acpi0 uart0: <16550 or compatible> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 uart1: <16550 or compatible> port 0x2f8-0x2ff irq 3 on acpi0 orm0: at iomem 0xc0000-0xcafff,0xcb000-0xcf7ff on isa0 sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 atkbdc0: at port 0x60,0x64 on isa0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] ppc0: cannot reserve I/O port range est0: on cpu0 est: CPU supports Enhanced Speedstep, but is not recognized. est: cpu_vendor GenuineIntel, msr b270b2706000b27 device_attach: est0 attach returned 6 est1: on cpu1 est: CPU supports Enhanced Speedstep, but is not recognized. est: cpu_vendor GenuineIntel, msr b270b2706000b27 device_attach: est1 attach returned 6 random: unblocking device. Timecounters tick every 1.000 msec ada0 at ahcich0 bus 0 scbus0 target 0 lun 0 ada0: ATA-7 SATA 2.x device ada0: Serial Number WD-WCAP94091954 ada0: 300.000MB/s transfers (SATA 2.x, UDMA5, PIO 8192bytes) ada0: Command Queueing enabled ada0: 152627MB (312581808 512 byte sectors) ada0: Previously was known as ad4 ada1 at ahcich1 bus 0 scbus1 target 0 lun 0 ada1: ATA-7 SATA 2.x device ada1: Serial Number WD-WCAP94085021 ada1: 300.000MB/s transfers (SATA 2.x, UDMA5, PIO 8192bytes) ada1: Command Queueing enabled ada1: 152627MB (312581808 512 byte sectors) ada1: Previously was known as ad6 GEOM_RAID: Intel-bbb292a3: Array Intel-bbb292a3 created. GEOM_RAID: Intel-bbb292a3: Disk ada0 state changed from NONE to ACTIVE. GEOM_RAID: Intel-bbb292a3: Subdisk Volume0:0-ada0 state changed from NONE to ACTIVE. GEOM_RAID: Intel-bbb292a3: Disk ada1 state changed from NONE to ACTIVE. GEOM_RAID: Intel-bbb292a3: Subdisk Volume0:1-ada1 state changed from NONE to ACTIVE. GEOM_RAID: Intel-bbb292a3: Array started. GEOM_RAID: Intel-bbb292a3: Volume Volume0 state changed from STARTING to OPTIMAL. GEOM_RAID: Intel-bbb292a3: Provider raid/r0 for volume Volume0 created. SMP: AP CPU #1 Launched! Timecounter "TSC-low" frequency 1097274299 Hz quality 1000 Trying to mount root from ufs:/dev/raid/r0p2 [rw]... em0: link state changed to UP pflog0: promiscuous mode enabled --ELM1481571239-41986-0_--