From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Thread: 1164f8,272806539bf7cbe5 X-Google-Attributes: gid1164f8,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!news.germany.com!newsfeed.cw.net!cw.net!news-FFM2.ecrc.de!news.net.uni-c.dk!munin.diku.dk!ask.diku.dk!firefly From: "Peter \"Firefly\" Lund" Newsgroups: comp.sys.dec Subject: Re: VAX floating-point instruction timing? Date: Tue, 5 Sep 2006 22:15:59 +0200 Organization: Department of Computer Science, University of Copenhagen Message-ID: References: NNTP-Posting-Host: ask.diku.dk Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Trace: munin.diku.dk 1157487360 94558 130.225.96.225 (5 Sep 2006 20:16:00 GMT) X-Complaints-To: news@diku.dk NNTP-Posting-Date: Tue, 5 Sep 2006 20:16:00 +0000 (UTC) In-Reply-To: Xref: g2news2.google.com comp.sys.dec:1211 On Tue, 5 Sep 2006, Bob Koehler wrote: > DEC never published counts for any of the VAX instructions. A trivial I have the cycle counts for the VLSI VAXen's integer instructions (except for mul/div in most cases). Depending on the chip, they might or might not include the time it takes to decode the operand specifiers and fetch the operands. > program will demonstrate how much it depends on instruction cache hits, > data cache hits, interupts (some of the more complex instructions can be > interupted partially executed), page faults (can cause all or part of an > instruction to be re-executed), software implemented subsets, FPA options, > and in many cases data. I find it hard not to read this as "you are stupid or naive, kid, let me tell you how it works". I hope that was not the intent :) > About all you can count on is that a NOP in the instruction cache > should be one cycle. On a microcoded machine? Not necessarily ;) (Yes, it was one cycle on the VLSI VAXen -- was it on VAX 11/780, too? I know next to nothing about its cycle times, unfortunately.) > Cycle counts are about as usefull as Marketing Instructions Per > Second, which have the same and a few more issues. They are very useful if you are trying to understand the various microarchitectures used. They are also very useful for optimization purposes, particularly if the microarchitecture is simple. "Pairing"/multiple issue rules (Pentium, 68060, Alpha 21064, Alpha 21164) make it harder. Out-of-order execution makes it almost impossible -- but cycle counts and issue rates are still very useful hints, you just need to profile more carefully. -Peter