From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa751,37327a7181268284 X-Google-Attributes: gidfa751,public X-Google-Thread: 114b0c,37327a7181268284 X-Google-Attributes: gid114b0c,public X-Google-Thread: 1164f8,37327a7181268284 X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1993-05-20 18:32:03 PST Xref: gmd.de comp.sys.hp:18057 comp.sys.dec:7797 comp.sys.sgi.hardware:1339 Path: gmd.de!newsserver.jvnc.net!howland.reston.ans.net!wupost!sdd.hp.com!decwrl!pa.dec.com!mogul From: mogul@pa.dec.com (Jeffrey Mogul) Newsgroups: comp.sys.hp,comp.sys.dec,comp.sys.sgi.hardware Subject: Re: 100MHz Indigo just as fast as HP/ALPHA? Date: 21 May 1993 01:28:57 GMT Organization: DEC Western Research Message-ID: <1thb8p$ruj@usenet.pa.dec.com> References: <1993May19.203842.3272@donau.et.tudelft.nl> <1tejns$2uf@sol.TIS.COM> NNTP-Posting-Host: jove.pa.dec.com In article buck@ra.nrl.navy.mil (Loren Buchanan) writes: >You also need to be aware of implementation details. One gotcha in the >Alpha architecture that I just found out, is that it is very poor at doing >context switches (there was a letter to editor in a recent issue of ACM >Communications that talked about this). If you are referring to the letter on page 15 of the May 1993 issue ... it's totally misinformed. The author writes "Every instance of specialized functions such as a context switch are handled in PAL code residing in main memory which operates orders of magnitude slower than the hundreds of MHz that Alpha's CPU runs. Performance of process intensive applications will then run closer to memory speeds than process speeds." I assume that he meant "processor speeds" in that last sentence. Anyway, this is quite confused. PAL code is no different from any other Alpha instructions, except that it runs with slightly different rules (interrupts turned off, no "I-stream memory management traps", and implementation- specific hardware functions are enabled). In particular, PAL instructions can be cached just like all other Alpha instructions. So, if they are executed frequently, they will run at cache-hit speeds, not cache-miss speeds. (And if they aren't executed frequently, then a few cache misses don't really matter.) Any machine (Alpha, Sparc, PA-RISC, RIOS, MIPS, Pentium, etc.) that relies on caching to get good performance will do poorly on "process-intensive" applications if the effective working set is larger than will fit into the caches. This has nothing to do with PAL code. I don't know how the Alpha architecture or implementions (two different things, remember) compare with other vendors' efforts on context-switch times, but I really doubt it is "very poor." You could measure it with a benchmark, except that you'd probably be measuring the operating system instead of the hardware. The letter makes some other debatable assertions. Don't believe everything you read (especially in CACM!) -Jeff