Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Dec 2016 23:33:59 +0400 (AMT)
From:      Hrant Dadivanyan <hrant@dadivanyan.net>
To:        Konstantin Belousov <kostikbel@gmail.com>
Cc:        Ian Lepore <ian@freebsd.org>, freebsd-hackers@freebsd.org
Subject:   Re: system time instability
Message-ID:  <E1cGWMJ-000B5E-Mm@pandora.amnic.net>
In-Reply-To: <20161212191832.GN54029@kib.kiev.ua>

next in thread | previous in thread | raw e-mail | index | archive | help

--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<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
  Features2=0xe39d<SSE3,DTES64,MON,DS_CPL,EST,TM2,SSSE3,CX16,xTPR,PDCM>
  AMD Features=0x20100800<SYSCALL,NX,LM>
  AMD Features2=0x1<LAHF>
  TSC: P-state invariant, performance statistics
real memory  = 2147483648 (2048 MB)
avail memory = 2040201216 (1945 MB)
Event timer "LAPIC" quality 400
ACPI APIC Table: <INTELB R_WATERP>
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: <Software, Yarrow> initialized
ioapic0 <Version 2.0> irqs 0-23 on motherboard
kbd1 at kbdmux0
acpi0: <PTLTD   RSDT> on motherboard
acpi0: Power Button (fixed)
cpu0: <ACPI CPU> on acpi0
cpu1: <ACPI CPU> on acpi0
hpet0: <High Precision Event Timer> 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: <AT realtime clock> port 0x70-0x71 on acpi0
Event timer "RTC" frequency 32768 Hz quality 0
attimer0: <AT timer> 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: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
vgapci0: <VGA-compatible display> port 0x3030-0x3037 mem 0xd0000000-0xd00fffff,0xc0000000-0xcfffffff irq 16 at device 2.0 on pci0
agp0: <Intel 946GZ SVGA controller> on vgapci0
agp0: aperture size is 256M, detected 7676k stolen memory
vgapci0: Boot video device
pcib1: <ACPI PCI-PCI bridge> 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: <ACPI PCI bus> on pcib1
pcib2: <ACPI PCI-PCI bridge> irq 16 at device 28.4 on pci0
pci6: <ACPI PCI bus> on pcib2
em0: <Intel(R) PRO/1000 Network Connection 7.6.1-k> 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: <ACPI PCI-PCI bridge> irq 17 at device 28.5 on pci0
pci7: <ACPI PCI bus> on pcib3
em1: <Intel(R) PRO/1000 Network Connection 7.6.1-k> 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: <ACPI PCI-PCI bridge> at device 30.0 on pci0
pci8: <ACPI PCI bus> on pcib4
isab0: <PCI-ISA bridge> at device 31.0 on pci0
isa0: <ISA bus> on isab0
ahci0: <Intel ICH7 AHCI SATA controller> 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: <AHCI channel> at channel 0 on ahci0
ahcich1: <AHCI channel> at channel 1 on ahci0
ahcich2: <AHCI channel> at channel 2 on ahci0
ahcich3: <AHCI channel> at channel 3 on ahci0
acpi_button0: <Power Button> 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: <ISA Option ROMs> at iomem 0xc0000-0xcafff,0xcb000-0xcf7ff on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
ppc0: cannot reserve I/O port range
est0: <Enhanced SpeedStep Frequency Control> on cpu0
est: CPU supports Enhanced Speedstep, but is not recognized.
est: cpu_vendor GenuineIntel, msr b270b2706000b27
device_attach: est0 attach returned 6
est1: <Enhanced SpeedStep Frequency Control> 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: <WDC WD1600AAJS-60PSA0 21.12M22> 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: <WDC WD1600AAJS-60PSA0 21.12M22> 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_--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1cGWMJ-000B5E-Mm>