From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 102b75,d2ecc202c8d3da03 X-Google-Attributes: gid102b75,public X-Google-Thread: 1164f8,d2ecc202c8d3da03 X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1994-01-28 05:33:33 PST Xref: gmd.de comp.arch:19161 comp.sys.dec:13096 Path: gmd.de!xlink.net!howland.reston.ans.net!vixen.cso.uiuc.edu!sdd.hp.com!decwrl!pa.dec.com!crl.dec.com!utne.zk3.dec.com!magma.zk3.dec.com!duane From: duane@magma.zk3.dec.com (Andrew Duane USG/PE) Newsgroups: comp.arch,comp.sys.dec Subject: Re: DEC Alpha PAL invocation overhead Date: 27 Jan 1994 18:24:57 GMT Organization: Digital Equipment Corporation Distribution: world Message-ID: <2i90tp$9ot@utne.zk3.dec.com> References: NNTP-Posting-Host: magma.zk3.dec.com In article 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