* Re: Alpha Timekeeping - Hardware Questions
@ 1999-05-14 9:48 Bruce Elliott
1999-05-14 10:56 ` Matti Aarnio
1999-05-14 18:41 ` Richard Henderson
0 siblings, 2 replies; 9+ messages in thread
From: Bruce Elliott @ 1999-05-14 9:48 UTC (permalink / raw)
To: linux-kernel; +Cc: linux-alpha, axp-list, Jay.Estabrook, davem, rth, tomh
On May 14, 12:15am, Jay.Estabrook@digital.com wrote:
>
> >>> "David S. Miller" said:
> > Date: Thu, 13 May 1999 09:16:56 -0700
> > From: Richard Henderson <rth@cygnus.com>
> >
> > I have no definitive answer, but I would strongly suspect we cannot
> > rely on tick mechanisms with SMP.
> >
> > Unless Alpha's support different clock rate cpus mixed into a single
> > machine, you can use something like Ingo's tick calibration code at
> > boot time to make sure all cpu's have synchronized tick values.
>
> I don't believe that any of our boxes support CPUs at different clocks
> at the same time... ;-}
>
> But that's a good idea, WRT those patches, as I have been seeing one
> effect of routing all interrupts to CPU #0: its tick-count (IRQ #8)
> lags behind the counts in the other CPUs... :-\
[ ... ]
I'm sorry to keep harping on this, but I still don't know the answer to
the original main question.
In late November I submitted a patch to arch/alpha/kernel/time.c to fix
some obvious problems and to try to stabilize timekeeping. A non-obvious
consequence of this patch was that timekeeping was now based on the
cycle counter, instead of the RTC or PIT. The RTC/PIT was still used as
a "wakeup", but not as the actual basis for kernel jiffies.
This patch was added to the kernel, but I missed it when scanning the
patch files, so I assumed it had been rejected. In the meantime I found
some cases I had overlooked (mostly in settimeofday()) and updated my
local patches to fix these.
At the end of December I rechecked and discovered that the original patch
had been accepted, so I submitted the second fix with a note that perhaps
it should wait until 2.3, as I thought 2.3 was imminent.
The second patch was rejected, leaving timekeeping still broken, although
perhaps not quite as badly as it had been.
Around the beginning of March I had correspondence with another Alpha user
who was quite dissatisfied with the timekeeping. The main symptom was
that time-of-day sometimes jumped backward. After much email I found
most of the remaining problems. I submitted another patch but included
the suggestion/request that the original patch be backed-out, as by then
I had read the claim that SMP Alpha CPUs have unsynchronized clocks.
This patch was also rejected or perhaps missed, as I sent it only to the
list in hope of clarification from someone.
Around the end of April someone else (Thorsten Kranzkowski) submitted a
patch fixing part of the lost-tick accounting, which was in patch three.
Someone else referred Thorsten to my earlier message, and he resubmitted
that patch with some changes.
The point of this long harangue is that Alpha kernels currently use the
cycle counter for timekeeping. If SMP Alpha clocks are unsynchronized,
this is a Bad Thing. Please note that "unsynchronized" refers to the
frequencies, and not phase differences. To restate this, as there may be
some confusion, a frequency difference implies that the offsets between
different CPU cycle counters *change* over time. For example, a frequency
difference of one part-per-million would cause a drift of one jiffy in
about fifteen minutes.
The only way frequency differences can be avoided is to use a common
clock source across CPUs. This could either be the actual clock used as
input to the CPU, or it could be a slower clock that is phase-locked to
the CPU input clock.
So the question remains: Do SMP Alpha CPUs have synchronized input clocks?
If they are not sychronized, this code must be replaced with something
else.
If they are synchronized, SMP timekeeping can be fixed by either resetting
the cycle counters via PalCode at boot time, or by measuring the offsets
at boot time.
Assuming synchronized clocks, the pros and cons for using the cycle counter
appear (to me) to be:
Con:
The underlying clock may be less stable than the RTC or PIT. Assuming
synchronized CPU clocks, I would expect the PIT to be derived from the
same source.
Pro:
The cycle counter provides two orders-of-magnitude better resolution than
the PIT. The PIT counter can be accessed, giving about one microsecond
resolution.
The cycle counter provides five orders-of-magnitude better resolution than
the RTC. The RTC offers no resolution beyond the fact that an interrupt
occurred.
--
B. D. Elliott bde@nwlink.com (Seattle)
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Alpha Timekeeping - Hardware Questions
1999-05-14 9:48 Alpha Timekeeping - Hardware Questions Bruce Elliott
@ 1999-05-14 10:56 ` Matti Aarnio
1999-05-14 12:48 ` Uncle George
1999-05-16 19:23 ` Chris Wedgwood
1999-05-14 18:41 ` Richard Henderson
1 sibling, 2 replies; 9+ messages in thread
From: Matti Aarnio @ 1999-05-14 10:56 UTC (permalink / raw)
To: axp-list
Cc: linux-kernel, linux-alpha, axp-list, Jay.Estabrook, davem, rth,
tomh
....
> The only way frequency differences can be avoided is to use a common
> clock source across CPUs. This could either be the actual clock used as
> input to the CPU, or it could be a slower clock that is phase-locked to
> the CPU input clock.
>
> So the question remains: Do SMP Alpha CPUs have synchronized input clocks?
At older Laser and TurboLaser multiprocessor systems
all CPUs seem to be running at same clock, or one which
is in PLL lock to some system wide distributed reference.
See DEC Technical Journal stories about 4100 system.
http://www.digital.com/DTJO00/
I have never heard of actual instances of multiprocessor systems
where processors run at different clock speeds, even if that were
technically possible by decoupling CPU internal operations, and
external system bus.
...
> B. D. Elliott bde@nwlink.com (Seattle)
/Matti Aarnio
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Alpha Timekeeping - Hardware Questions
1999-05-14 10:56 ` Matti Aarnio
@ 1999-05-14 12:48 ` Uncle George
1999-05-16 19:23 ` Chris Wedgwood
1 sibling, 0 replies; 9+ messages in thread
From: Uncle George @ 1999-05-14 12:48 UTC (permalink / raw)
To: axp-list
I dont think u mean at different clock rates, but at a (slightly) different
time when the timer hits the interval. Ie resolution of 1ns, cpu clock gets
ticked at 1.1 ns, cpu #2 get ticked at 1.3ns, cpu #3 at 1.5ns. This is to
prevent everyone from grabbing the Semmaphores/mutex's at the same time, where
only one will get the lock, and the other ( quite figurally ) spin whout doing
any usefull work. This was the strategy used on the SMP PDP-10's
gat
Matti Aarnio wrote:
> ....
> > The only way frequency differences can be avoided is to use a common
> > clock source across CPUs. This could either be the actual clock used as
> > input to the CPU, or it could be a slower clock that is phase-locked to
> > the CPU input clock.
> >
> > So the question remains: Do SMP Alpha CPUs have synchronized input clocks?
>
> At older Laser and TurboLaser multiprocessor systems
> all CPUs seem to be running at same clock, or one which
> is in PLL lock to some system wide distributed reference.
>
> See DEC Technical Journal stories about 4100 system.
>
> http://www.digital.com/DTJO00/
>
> I have never heard of actual instances of multiprocessor systems
> where processors run at different clock speeds, even if that were
> technically possible by decoupling CPU internal operations, and
> external system bus.
>
> ...
> > B. D. Elliott bde@nwlink.com (Seattle)
>
> /Matti Aarnio
>
> --
> To unsubscribe: send e-mail to axp-list-request@redhat.com with
> 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Alpha Timekeeping - Hardware Questions
1999-05-14 10:56 ` Matti Aarnio
1999-05-14 12:48 ` Uncle George
@ 1999-05-16 19:23 ` Chris Wedgwood
1999-05-16 20:05 ` Jeff DeMaagd
1 sibling, 1 reply; 9+ messages in thread
From: Chris Wedgwood @ 1999-05-16 19:23 UTC (permalink / raw)
To: Matti Aarnio
Cc: axp-list, linux-kernel, linux-alpha, Jay.Estabrook, davem, rth,
tomh
> At older Laser and TurboLaser multiprocessor systems
> all CPUs seem to be running at same clock, or one which
> is in PLL lock to some system wide distributed reference.
Could, in theory, a PLL skip? Thus resulting in smal differences
after long periods of uptime?
-cw
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Alpha Timekeeping - Hardware Questions
1999-05-16 19:23 ` Chris Wedgwood
@ 1999-05-16 20:05 ` Jeff DeMaagd
0 siblings, 0 replies; 9+ messages in thread
From: Jeff DeMaagd @ 1999-05-16 20:05 UTC (permalink / raw)
To: axp-list
On Mon, 17 May 1999, Chris Wedgwood wrote:
> > At older Laser and TurboLaser multiprocessor systems
> > all CPUs seem to be running at same clock, or one which
> > is in PLL lock to some system wide distributed reference.
>
> Could, in theory, a PLL skip? Thus resulting in smal differences
> after long periods of uptime?
It should be rare, but maybe possible. I didn't ask this question in my
EE clases. But, at least with all the PLLs using the same base clock
should re-synch on every input beat, so even if one was drifting, it'll
get corrected on the next pulse. But then, failures are possible, but
then if it skips, you may be having bigger problems down the road than
'just' clock skew.
Jeff DeMaagd
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Alpha Timekeeping - Hardware Questions
1999-05-14 9:48 Alpha Timekeeping - Hardware Questions Bruce Elliott
1999-05-14 10:56 ` Matti Aarnio
@ 1999-05-14 18:41 ` Richard Henderson
1999-05-14 20:05 ` Where to find libraries Peter Howell Jr
1 sibling, 1 reply; 9+ messages in thread
From: Richard Henderson @ 1999-05-14 18:41 UTC (permalink / raw)
To: axp-list, linux-kernel; +Cc: linux-alpha, Jay.Estabrook, davem, rth, tomh
On Fri, May 14, 1999 at 02:48:50AM -0700, Bruce Elliott wrote:
> The point of this long harangue is that Alpha kernels currently use the
> cycle counter for timekeeping. If SMP Alpha clocks are unsynchronized,
> this is a Bad Thing.
In the 2.2.8 patch I just posted, I included the settimeofday fix
forwarded from Thorsten, and for SMP am not including the rpcc bits
in the [sg]ettimeofday results.
I think I'm back to, for SMP, using the rpcc only for lost interrupt
estimation. Please look over what's there and send me any corrections
as necessary.
r~
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Where to find libraries.
@ 1999-05-17 16:40 designer seven
0 siblings, 0 replies; 9+ messages in thread
From: designer seven @ 1999-05-17 16:40 UTC (permalink / raw)
To: axp-list
are you having a hard time finding those files or do
you just need to know which package they came from?
To find the files, try this:
updatedb
locate libm.so (or whatever file)
To find which package they came from:
rpm -ql * | grep libm.so
D.
--- Albrecht Jacobs
<aj@klee.architektur.uni-stuttgart.de> wrote:
> On Fri, 14 May 1999, Peter Howell Jr wrote:
>
> > I'm having trouble finding the folowing libraries
> for my RH5.2
> > installation on my AS200
> >
> > libm.so.6
> > libc.so.6
> > ld.so.1
>
> These are in the glibc package, i.e.
>
> http://rufus.w3.org/linux/RPM/GByName.html
>
> or
>
>
http://rufus.w3.org/linux/RPM/rawhide/1.0/alpha/RedHat/RPMS/glibc-2.1.1-7.alpha.html
>
> Albrecht
>
>
+-------------------------------------------------------------------------+
> | cand. aer. Albrecht Jacobs
> CAAD-Labor des SI |
> | Systembetreuung
> Universit"at Stuttgart |
> |
> |
> | Liegeradgruppe Stuttgart
> |
> | O__
>
http://www.architektur.uni-stuttgart.de:1200/users/aj/lieger
> |
> | \\_/\-o
> |
> | (+) O
> Albrecht.Jacobs@klee.architektur.uni-stuttgart.de |
>
+-------------------------------------------------------------------------+
>
> --
> To unsubscribe: send e-mail to
> axp-list-request@redhat.com with
> 'unsubscribe' as the subject. Do not send it to
> axp-list@redhat.com
>
>
_____________________________________________________________
Do You Yahoo!?
Free instant messaging and more at http://messenger.yahoo.com
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~1999-05-17 17:18 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-05-14 9:48 Alpha Timekeeping - Hardware Questions Bruce Elliott
1999-05-14 10:56 ` Matti Aarnio
1999-05-14 12:48 ` Uncle George
1999-05-16 19:23 ` Chris Wedgwood
1999-05-16 20:05 ` Jeff DeMaagd
1999-05-14 18:41 ` Richard Henderson
1999-05-14 20:05 ` Where to find libraries Peter Howell Jr
1999-05-17 10:55 ` Albrecht Jacobs
-- strict thread matches above, loose matches on Subject: below --
1999-05-17 16:40 designer seven
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox