From owner-freebsd-hackers Thu Apr 19 13: 3: 8 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from critter.freebsd.dk (fw2.aub.dk [195.24.1.195]) by hub.freebsd.org (Postfix) with ESMTP id B46C837B424 for ; Thu, 19 Apr 2001 13:03:04 -0700 (PDT) (envelope-from phk@critter.freebsd.dk) Received: from critter (localhost [127.0.0.1]) by critter.freebsd.dk (8.11.3/8.11.3) with ESMTP id f3JK2mU60868; Thu, 19 Apr 2001 22:02:48 +0200 (CEST) (envelope-from phk@critter.freebsd.dk) To: Warner Losh Cc: David Miller , freebsd-hackers@FreeBSD.ORG Subject: Re: [OT] parallel port for IO? In-Reply-To: Your message of "Thu, 19 Apr 2001 13:52:21 MDT." <200104191952.f3JJqL806575@harmony.village.org> Date: Thu, 19 Apr 2001 22:02:48 +0200 Message-ID: <60866.987710568@critter> From: Poul-Henning Kamp Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In message <200104191952.f3JJqL806575@harmony.village.org>, Warner Losh writes: >In message <60546.987709317@critter> Poul-Henning Kamp writes: >: Use the pps driver and you get microsecond jitter with nanosecond >: resolution. > >While I usually see microsecond jitter, I have seen it as high as a >few milliseconds when the interrupt load on the machine was high and >the cpu was slow. > >I setup a system for a user here for pps (pulse per second signal), >and he was quite upset to see the occasional spike in his data. Fast >interrupts reduced the occurance of spikes from a few an hour to one a >day. The BIOS misuse of SMM mode can give you jitter in the 1msec range and there is not much you can do about it. I found out when I clocked a motherboard with a 14.318 derived from a Rb, and timed 1Hz pulses derived from a Cs. Every 400 seconds I ran into the SMM interrupt for about 10 seconds, and all my measurements were late by 800-900 microseconds :-( Intel doesn't care much for precision timing... -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message