From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,1785eb81a7baedfa X-Google-Attributes: gid1164f8,public From: mogul@pa.dec.com (Jeffrey Mogul) Subject: Re: Cycles of enteig PALcode Date: 1995/12/14 Message-ID: <4anv0l$3jc@usenet.pa.dec.com>#1/1 X-Deja-AN: 121741372 distribution: world references: <4alru9$dtu@irz201.inf.tu-dresden.de> organization: DEC Western Research newsgroups: comp.sys.dec In article <4alru9$dtu@irz201.inf.tu-dresden.de> ss10@irz.inf.tu-dresden.de (Sebastian Schoenberg) writes: >Can somebody tell me, where can I find the timing-values and cycles for >Alpha 21064 instuctions, in especially entering PALcode and return back >to user / kernel mode ? It's not possible to provide reliable numbers for such timings, especially for PALcode calls, for several reasons: (1) The number of cache misses involved in running a PALcode routine is quite hard to predict. (2) Even if one could predict the number of cache misses, the cost in cycles depends on a lot of things (CPU speed in MHz, size of board cache, speed of board cache, speed of memory, activity of other CPUs or DMA devices sharing the memory system). (3) There are many different versions of the PALcode, and new versions come out all the time (to fix bugs, add features, or improve performance). (4) I believe there may even be slight differences between different revisions of the 21064 chip. (5) The number of instructions executed in a PALcode routine depends on various things such as input values, CPU state, whether a TLB miss occurs during the call, etc. If you want to know how expensive a PALcode call is, the best thing to do is to measure it directly (e.g., using the cycle-counter register) under the conditions that interest you: same computer, same PALcode version, and similar warm-cache or cold-cache status. -Jeff