Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 05 Feb 2002 17:39:27 +0100
From:      Poul-Henning Kamp <phk@critter.freebsd.dk>
To:        "M. Warner Losh" <imp@village.org>
Cc:        jdp@polstra.com, hackers@FreeBSD.ORG, msmith@hub.freebsd.org
Subject:   Re: A question about timecounters 
Message-ID:  <89796.1012927167@critter.freebsd.dk>
In-Reply-To: Your message of "Tue, 05 Feb 2002 09:35:35 MST." <20020205.093535.103565337.imp@village.org> 

next in thread | previous in thread | raw e-mail | index | archive | help
In message <20020205.093535.103565337.imp@village.org>, "M. Warner Losh" writes:
>In message: <86051.1012909502@critter.freebsd.dk>
>            Poul-Henning Kamp <phk@critter.freebsd.dk> writes:
>: But the i8254 is a piece of shit in this context, and due to
>: circumstances (apm being enabled0 most machines end up using the
>: i8254 by default.
>: 
>: My (and I belive Bruce's) diagnosis so far is that most problems
>: come from the i8254 timecounter.
>
>We measured pps interrupts with the i8254 timecounter in a fast
>interrupt handler via the parallel port (yes, we hacked it to give us
>a fast interrupt).  We found lots of outliers on the order of a few
>milliseconds in the data that we had to discard because they were
>obviously bogus.  We don't know if this is because of interrupt
>latency or because of bugs in the 8254 timecounter code/hardware.  At
>the time, it wasn't important enough to do a detailed numerology on to
>see if more data couldn't be mined from it or not.  And the data that
>we saw the outliers in was somewhat processed from the original
>data...

I have not tried to measure the i8254 against my hardware solution,
but by now I belive that certain bogus chipsets may have bummed
the 'latch' command or more than that maybe.

Anyway, some, but not all of the i8254 issues could be eased up a
bit if we lost the pcaudio crap and used the RTC's 128 Hz signal
for Hz and let the i8254 run at a 65536 count all the time.

-- 
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




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