Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 08 Feb 1999 18:24:42 -0600
From:      "William S. Duncanson" <caesar@starkreality.com>
To:        freebsd-smp@FreeBSD.ORG
Subject:   Problems keeping time
Message-ID:  <4.1.19990208181440.03d1d4c0@fire.starkreality.com>

next in thread | raw e-mail | index | archive | help
I just upgraded a FreeBSD box to a SMP system (basically, I swapped out the
MB and added a processor).  Now, I'm having horrendous problems with the
kernel clock drifting (it's running fast, about 7 seconds every 10
minutes).  So far, xntpd seems to be keeping everything relatively close,
but it's updating the clock every 10 minutes or so.  ntpq claims that all
of the configured peers are "insane".  I'm pretty sure that this is a SMP
issue, since it worked fine with a single processor (4.0-current).  So, the
question is, how do I fix this?

Here's my kernel config.  I added the "CLK_USE_I8254_CALIBRATION" after I
noticed the problem, but it doesn't appear to have fixed it:

machine         "i386"
ident           FIRE
maxusers        256
options         "MAXDSIZ=(256*1024*1024)"
options         "DFLDSIZ=(256*1024*1024)"
options         PQ_HUGECACHE            # color for 1024k/16k cache
options         INCLUDE_CONFIG_FILE     # Include this file in kernel
config          kernel  root on wd0s1a swap on wd0s1b
cpu             "I586_CPU"              # aka Pentium(tm)
options         "CPU_DISABLE_5X86_LSSER"
options         "CPU_FASTER_5X86_FPU"
options               SMP                     # Symmetric MultiProcessor Kernel
options               APIC_IO                 # Symmetric (APIC) I/O
options               NCPU=2                  # number of CPUs
options               NBUS=5                  # number of busses
options               NAPIC=2                 # number of IO APICs
options               NINTR=25                # number of INTs
options         "COMPAT_43"
options         SYSVSHM
options         SYSVSEM
options         SYSVMSG
options         "MD5"
options         KTRACE                  #kernel tracing
options         PERFMON
options         UCONSOLE
options         USERCONFIG              #boot -c editor
options         VISUAL_USERCONFIG       #visual boot -c editor
options         INET                    #Internet communications protocols
pseudo-device   ether                   #Generic Ethernet
pseudo-device   loop                    #Network loopback device
pseudo-device   bpfilter 4              #Berkeley packet filter
options PPP_BSDCOMP                     #PPP BSD-compress support
options PPP_DEFLATE                     #PPP zlib/deflate/gzip support
options PPP_FILTER                      #enable bpf filtering (needs bpfilter)
options         "ICMP_BANDLIM"
options         FFS                     #Fast filesystem
options         FFS_ROOT                #FFS usable as root device
options         SOFTUPDATES
options         NSWAPDEV=20
options         QUOTA                   #enable disk quotas
options         "NFS_MINATTRTIMO=3"     # VREG attrib cache timeout in sec
options         "NFS_MAXATTRTIMO=60"
options         "NFS_MINDIRATTRTIMO=30" # VDIR attrib cache timeout in sec
options         "NFS_MAXDIRATTRTIMO=60"
options         "NFS_GATHERDELAY=10"    # Default write gather delay (msec)
options         "NFS_UIDHASHSIZ=29"     # Tune the size of nfssvc_sock with
this
options         "NFS_WDELAYHASHSIZ=16"  # and with this
options         "NFS_MUIDHASHSIZ=63"    # Tune the size of nfsmount with this
options         NFS_DEBUG               # Enable NFS Debugging
options         "P1003_1B"
options         "_KPOSIX_PRIORITY_SCHEDULING"
options         "_KPOSIX_VERSION=199309L"
controller      scbus0  #base SCSI code
device          da0     #SCSI direct access devices (aka disks)
device          sa0     #SCSI tapes
device          cd0     #SCSI CD-ROMs
device          pass0   #CAM passthrough driver
options         "CAM_MAX_HIGHPOWER=4"
options         SCSI_NO_SENSE_STRINGS
options         SCSI_NO_OP_STRINGS
options         SCSI_REPORT_GEOMETRY
options         SCSI_DELAY=8000 # Be pessimistic about Joe SCSI device
options         "CHANGER_MIN_BUSY_SECONDS=2"
options         "CHANGER_MAX_BUSY_SECONDS=10"
options         "SA_SPACE_TIMEOUT=(60)"
options         "SA_REWIND_TIMEOUT=(2*60)"
options         "SA_ERASE_TIMEOUT=(4*60)"
pseudo-device   pty     256     #Pseudo ttys - can go as high as 256
pseudo-device   speaker         #Play IBM BASIC-style noises out your speaker
pseudo-device   gzip            #Exec gzipped a.out's
pseudo-device   vn              #Vnode driver (turns a file into a device)
pseudo-device   snp     4       #Snoop device - to look at pty/vty/etc..
options         "MSGBUF_SIZE=40960"
controller      isa0
options         "AUTO_EOI_1"
options         "AUTO_EOI_2"
options         "MAXMEM=(144*1024)"
controller      pnp0
controller      atkbdc0 at isa? port IO_KBD tty
device          atkbd0  at isa? tty irq 1
device          vga0    at isa? port ? conflicts
pseudo-device   splash
#device         vt0     at isa? tty
#options                XSERVER                 # support for running an X
serve
r.
#options                FAT_CURSOR              # start with block cursor
device          sc0     at isa? tty
options         MAXCONS=16              # number of virtual consoles
options         "STD8X16FONT"           # Compile font in
makeoptions     "STD8X16FONT"="cp850"
options         SC_HISTORY_SIZE=200     # number of history buffer lines
options         SC_DISABLE_REBOOT       # disable reboot key sequence
device          npx0    at isa? port IO_NPX iosiz 0x0 flags 0x0 irq 13
controller      wdc0    at isa? port "IO_WD1" bio irq 14 flags 0xa0ffa0ff
disk            wd0     at wdc0 drive 0
disk            wd1     at wdc0 drive 1
controller      wdc1    at isa? port "IO_WD2" bio irq 15 flags 0xa0ffa0ff
options         ATAPI   #Enable ATAPI support for IDE bus
options         ATAPI_STATIC    #Don't do it as an LKM
options         IDE_DELAY=8000  # Be optimistic about Joe IDE device
device          acd0
controller      fdc0    at isa? port "IO_FD1" bio irq 6 drq 2
disk            fd0     at fdc0 drive 0
device          lpt0    at isa? port? tty irq 7
device          sio0    at isa? port "IO_COM1" tty flags 0x10 irq 4
device          sio0    at isa? port "IO_COM2" tty flags 0x10 irq 3
device ed0 at isa? port 0x300 net irq 10 iomem 0xd8000
device pcm0 at isa? port ? tty irq 10 drq 1 flags 0x0
device pca0 at isa? port "IO_TIMER1" tty
controller      pci0
controller      ahc1
device          de0
device          xl0
options         HW_WDOG
options         COMPAT_LINUX
options         PANIC_REBOOT_WAIT_TIME=16
options         
options         SHOW_BUSYBUFS   # List buffers that prevent root unmount


William S. Duncanson                      caesar@starkreality.com
The driving force behind the NC is the belief that the companies who brought us
things like Unix, relational databases, and Windows can make an appliance that
is inexpensive and easy to use if they choose to do that.  -- Scott Adams 

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-smp" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4.1.19990208181440.03d1d4c0>