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-16 05:34:00 PST Path: archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!feed2.news.rcn.net!feed1.news.rcn.net!rcn!207-172-245-133 From: jmfbahciv@aol.com Newsgroups: comp.sys.dec,comp.arch Subject: Re: Compaq kills Alpha Date: Mon, 16 Jul 01 09:50:32 GMT Organization: UltraNet Communications, Inc. Message-ID: <9iumos$her$11@bob.news.rcn.net> References: <3B42376B.C151A023@us.ibm.com> <9i6ojn$1jt25$1@fido.engr.sgi.com> <9i7047$508$3@bob.news.rcn.net> <9itr36$3ovu0$1@fido.engr.sgi.com> X-Trace: UmFuZG9tSVZlMppGUyNJoG0kLCrRhgWrxHwAu2Lu08SN4x5LHvlRSICVjM+72ZKE X-Complaints-To: abuse@rcn.com NNTP-Posting-Date: 16 Jul 2001 12:30:20 GMT X-Newsreader: News Xpress Version 1.0 Beta #4 Xref: archiver1.google.com comp.sys.dec:5874 comp.arch:14055 In article <9itr36$3ovu0$1@fido.engr.sgi.com>, rpw3@rigden.engr.sgi.com (Rob Warnock) wrote: > 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! ;-} I know, but I was never known not to try. It looks like you provided quite a bit. I'm so glad I asked :-))). > ...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." Thanks. I'll look it up. > >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!]. I just did a write-up about why that happens in another newsgroup. There's no profit in it so it's always on your list of "things-to- do-when-I-get-some-time" list. > >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. Yup. This is talked about in, of all places, a gaming newsgroup. > >[And, yes, we use those techniques at SGI. And no, we don't often >talk about them very much publicly, either... ;-} ;-} ] It seems like we should be making some kind of procedural process similar to what all those science guys have. They even get credit for writing papers on what went wrong with an experiment. I know giving JMF and TW (TOPS-10 OS developers) time to write a paper was harder than pulling a hen's tooth out of a pissed-off lion's mouth. /BAH Subtract a hundred and four for e-mail.