* DEC Alpha PAL invocation overhead
@ 1994-01-27 6:11 David Mosberger-Tang
1994-01-27 18:24 ` Andrew Duane USG/PE
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: David Mosberger-Tang @ 1994-01-27 6:11 UTC (permalink / raw)
According to the Alpha Architecture Ref. manual, a call_pal
instruction involves stalling "instruction issue until all prior
instructions are guaranteed to complete without incurring exceptions"
followed by a trap into PALcode.
What I would like to know is how many cycles it typically takes to
switch into PALmode and back into normal mode. For example, has
anybody data available on how long a no-operation PAL instruction
would take? I think the OSF/1 "read processor status" (rdps) pal
instruction could serve as a reasonable approximation for this as it
presumably does nothing but read a processor internal register.
Unfortunately, it is a privileged instruction so I don't see an easy
way to measure this without access to source for an Alpha operating
system.
Any help would be greatly appreciated.
--david
--
David Mosberger; Department of CS; The University of Arizona; Tucson, AZ 85721
davidm@cs.arizona.edu
--
David Mosberger; Department of CS; The University of Arizona; Tucson, AZ 85721
davidm@cs.arizona.edu
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: DEC Alpha PAL invocation overhead
1994-01-27 6:11 DEC Alpha PAL invocation overhead David Mosberger-Tang
@ 1994-01-27 18:24 ` Andrew Duane USG/PE
1994-01-27 19:43 ` Joseph Martin
1994-01-27 22:49 ` Dave Wagner
2 siblings, 0 replies; 4+ messages in thread
From: Andrew Duane USG/PE @ 1994-01-27 18:24 UTC (permalink / raw)
In article <DAVIDM.94Jan26231117@cage.cs.arizona.edu> davidm@cs.arizona.edu (David Mosberger-Tang) writes:
>According to the Alpha Architecture Ref. manual, a call_pal
>instruction involves stalling "instruction issue until all prior
>instructions are guaranteed to complete without incurring exceptions"
>followed by a trap into PALcode.
>
>What I would like to know is how many cycles it typically takes to
>switch into PALmode and back into normal mode. For example, has
>anybody data available on how long a no-operation PAL instruction
>would take? I think the OSF/1 "read processor status" (rdps) pal
>instruction could serve as a reasonable approximation for this as it
>presumably does nothing but read a processor internal register.
According to some earlier measurements with an internal PALcode monitor,
I show 36.9 average cycles to do a RDPS call.
I don't have the PALcode listings handy, but I seem to recall that a
RDPS just does a MFPR, which should be a two-cycle operation.
There are a few calls that complete faster (on average), typically
other MFPR's. I suspect the differences are due to the statistical
differences in context when they are called.
Hope this helps.
--
Andrew L. Duane DTN 381-1294 duane@zk3.dec.com
USG Kernel Scalability krisis::duane
ZKO3-3/U14
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: DEC Alpha PAL invocation overhead
1994-01-27 6:11 DEC Alpha PAL invocation overhead David Mosberger-Tang
1994-01-27 18:24 ` Andrew Duane USG/PE
@ 1994-01-27 19:43 ` Joseph Martin
1994-01-27 22:49 ` Dave Wagner
2 siblings, 0 replies; 4+ messages in thread
From: Joseph Martin @ 1994-01-27 19:43 UTC (permalink / raw)
call_pal rdunique is short, if not as short as call_pal rdps, and
you can call it from user mode. The instruction encoding is
0x0000009e.
\Joe Joseph A. Martin
jmartin@sousa.amt.ako.dec.com Digital Equipment Corporation
(508) 264-7891 50 Nagog Park AKO2-1/G3
Acton, MA 01720 U.S.A.
--
\Joe Joseph A. Martin
jmartin@sousa.amt.ako.dec.com Digital Equipment Corporation
(508) 264-7891 50 Nagog Park AKO2-1/G3
Acton, MA 01720 U.S.A.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: DEC Alpha PAL invocation overhead
1994-01-27 6:11 DEC Alpha PAL invocation overhead David Mosberger-Tang
1994-01-27 18:24 ` Andrew Duane USG/PE
1994-01-27 19:43 ` Joseph Martin
@ 1994-01-27 22:49 ` Dave Wagner
2 siblings, 0 replies; 4+ messages in thread
From: Dave Wagner @ 1994-01-27 22:49 UTC (permalink / raw)
davidm@cs.arizona.edu (David Mosberger-Tang) writes:
>According to the Alpha Architecture Ref. manual, a call_pal
>instruction involves stalling "instruction issue until all prior
>instructions are guaranteed to complete without incurring exceptions"
>followed by a trap into PALcode.
>
>What I would like to know is how many cycles it typically takes to
>switch into PALmode and back into normal mode. For example, has
>anybody data available on how long a no-operation PAL instruction
>would take? I think the OSF/1 "read processor status" (rdps) pal
>instruction could serve as a reasonable approximation for this as it
>presumably does nothing but read a processor internal register.
>Unfortunately, it is a privileged instruction so I don't see an easy
>way to measure this without access to source for an Alpha operating
>system.
>
>Any help would be greatly appreciated.
>
rdunique should be a reasonable unpriv'd nop.
--
Dave Wagner "My other computer is a T3D."
davew@cray.com , uunet!cray!davew "Ask me about PWC chapters near
(612) 683-5393 you (Parents Without Camcorders)"
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~1994-01-27 22:49 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-01-27 6:11 DEC Alpha PAL invocation overhead David Mosberger-Tang
1994-01-27 18:24 ` Andrew Duane USG/PE
1994-01-27 19:43 ` Joseph Martin
1994-01-27 22:49 ` Dave Wagner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox