From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,5747331edea7cbab X-Google-Attributes: gid1164f8,public X-Google-Thread: 102b75,85404311f8041f7a X-Google-Attributes: gid102b75,public X-Google-ArrivalTime: 2001-07-15 21:37:58 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!paloalto-snf1.gtei.net!news.gtei.net!enews.sgi.com!fido.engr.sgi.com!rigden.engr.sgi.com!rpw3 From: rpw3@rigden.engr.sgi.com (Rob Warnock) Newsgroups: comp.sys.dec,comp.arch Subject: Re: Compaq kills Alpha Date: 16 Jul 2001 04:37:58 GMT Organization: Silicon Graphics Inc., Mountain View, CA Message-ID: <9itr36$3ovu0$1@fido.engr.sgi.com> References: <3B42376B.C151A023@us.ibm.com> <9i6ojn$1jt25$1@fido.engr.sgi.com> <9i7047$508$3@bob.news.rcn.net> NNTP-Posting-Host: rigden.engr.sgi.com X-Trace: fido.engr.sgi.com 995258278 3964864 163.154.34.115 (16 Jul 2001 04:37:58 GMT) X-Complaints-To: news@fido.engr.sgi.com NNTP-Posting-Date: 16 Jul 2001 04:37:58 GMT Xref: archiver1.google.com comp.sys.dec:5867 comp.arch:14040 wrote: +--------------- | rpw3@rigden.engr.sgi.com (Rob Warnock) wrote: | [a bunch of stuff on I/O in SGI's "Origin" ccNUMA systems] | >Of course there are still areas we can improve on... | | Of course. Can you talk about how you decide to implement | an improvement in hardware versus software without getting into the | local politics or delay scheduling and all that stuff. I know I'm | asking for the impossible... +--------------- Yes, actually, you are! ;-} It's the same as anywhere: tradeoffs, tradeoffs, tradeoffs. As far as the overall "style" of SGI's ccNUMA systems, the best public reference I know of is John Mashey's massive (~30pp) posting in this very group about a year ago, , which contains "...info on the architecture & especially on the design process that led there, and alternatives considered but not taken." If you haven't read it yet, I suspect you'll find it well worth the time. As far as the areas that I've been personally involved in -- mostly high-speed networking -- the best hardware/software tradeoffs have been mostly just judgment calls by very experienced folks. What I've noticed is that a *LOT* of "lessons learned" decades ago are still being re-learned by later generations, over and over again. We as an industry don't seem to have been doing a very good job of passing on the "secret sauce" to subsequent generations [in many cases, even *within* the same companies!]. For example, way back in the early 1970's at Digital Communications Assoc. (in Atlanta, made communications front-ends for DEC PDP-10's and IBM 360's using DEC PDP-8e's, successfully sold in *competition* with DEC's own PDP-11-based front-ends!], we made simple interrupt-per- character PIO-based terminal controllers that were -- in terms of host CPU cycles -- *more* efficient (and a lot cheaper!) than DEC's complex DMA-based controllers, partly because we used three simple techniques, two programming and one hardware: (1) interrupt "coalescing", (2) "dallying" before dismissing an interrupt, and (3) interrupt "holdoff". That is, (1) during a single interrupt, process *all* of the data that's available or that *becomes* available (looping to repeat the availability test as needed) during a single interrupt; (2) spin-wait/test a certain amount (which may even be context/data-dependent!) before dismissing an interrupt, so as to catch new data and process it without having to dismiss/interrupt again; and (3) once you finally *do* dismiss an interrupt, arrange the hardware so that you won't get another one until a certain (sometimes dynamically) chosen time interval has expired (also known as "interrupt rate-limiting", which, togetther with the other two, prevents "thrashing" in the interrupt service routine). [There's another variant of #2 that's worth mentioning: when doing PIO writes to a FIFO and hitting a FIFO-full condition, "dallying" (spin-waiting) a certain amount first rather than enabling a watermark interrupt and going away. If you pick the dally amount appropriately, by "wasting" a few cycles you actually can save *lots* of total CPU time, since you (hopefully) avoid a later heavy-weight interrupt/context-switch/dismiss.] These techniques were *NOT* unique to DCA!! In talking to other engineers at conferences & trade shows, we learned that such things were generally widely known among workers in the field (especially embedded systems, datacomm, and real-time folks), but were not often discussed openly, being considered somewhat "trade secrets". [That is, why tell your competitor why his performance sucks and yours doesn't?!?] In the 30+ years since then, I've been astounded how many times the techniques of coalescing/dallying/holdoff have been rediscovered, but I've been *more* astounded how many times they haven't been used *at all* in many places where they were definitely needed, or how they were reinvented badly. [E.g., if you're implementing hardware assistance for interrupt holdoff, it is *extremely* important that the holdoff period be effective only *after* the dismissing of an interrupt, and not delay the response to or processing of a "new" event that arives when the system has been idle for longer than the holdoff.] "Computer Science" courses don't seem to ever discuss such practicalities, either. [And, yes, we use those techniques at SGI. And no, we don't often talk about them very much publicly, either... ;-} ;-} ] -Rob ----- Rob Warnock, 31-2-510 SGI Network Engineering [until 8/15] 1600 Amphitheatre Pkwy. Phone: 650-933-1673 Mountain View, CA 94043 PP-ASEL-IA [Note: aaanalyst@sgi.com and zedwatch@sgi.com aren't for humans ]