From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 114669,6a1f98c68a3bb63f,start X-Google-Attributes: gid114669,public X-Google-Thread: 1164f8,148db191ef7ef08a X-Google-Attributes: gid1164f8,public X-Google-Thread: 102b75,10f70e989313f8fc X-Google-Attributes: gid102b75,public X-Google-Thread: f57db,485835a5518527e1 X-Google-Attributes: gidf57db,public From: mccalpin@frakir.engr.sgi.com (John McCalpin) Subject: Re: We need a successor to the 8400 TL (was: Why the DS20 ...) Date: 1999/01/18 Message-ID: <77vksu$9ht$1@murrow.corp.sgi.com> X-Deja-AN: 434026122 Distribution: comp References: <3695FE68.B587EC5F@strategypartners.com> <77olil$jhi$1@murrow.corp.sgi.com> <36A29A93.D750A746@usNOSPAM.ibm.com> Organization: Silicon Graphics, Inc. Reply-To: mccalpin@engr.sgi.com Newsgroups: comp.arch,comp.sys.dec,comp.benchmarks,comp.sys.super In article <36A29A93.D750A746@usNOSPAM.ibm.com>, Greg Pfister wrote: >John McCalpin wrote: >> >> In article , >> Aaron Spink wrote: >> >mccalpin@frakir.engr.sgi.com (John McCalpin) writes: >[snip] >> >Which brings me to another topic that has been rolling around in my >> >head since reading Greg Pfister's In Search of Clusters, V2.0. In the >> >book Greg makes the distinction that NUMA is by nessesity less easier >> >to program for than an UMA. >> >> Although there are aspects of this statement that are true, I think >> that most people draw inappropriately broad conclusions from it. > >What I've seen much more often is NUMA salesdroids inappropriately >minimizing it. But that's a different story. But an easy story to believe.... Part of the issue is just salesdroids vs humans, but part of the issue is that we don't have any generally accepted benchmarks of "NUMAness". Although it seems sensible that one might be able to spec such a benchmark, the details can become overwhelming.... >> Does it take into account that the extra effort of programming the NUMA >> system may provide significantly higher performance than the UMA system >> of the same price? Consider that on the NUMA machine the local >> latencies are significantly lower, the local sustainable bandwidths are >> higher, the aggregate performance is less subject to contention, and >> the NUMA system has more cpus at the same price. >(a) I don't understand what the second sentence has to do with the >first. You may be right, but I'm missing the connection. Sorry about that -- let me try again. Unfortunately, we need to divide the workload into a number of categories, depending on the memory access requirements. (1) Extremely cache-friendly code will not care whether a system is NUMA or UMA, because it does not touch the memory often enough to make any difference. This is a remarkably large subset of scientific/engineering codes, including almost all molecular dynamics and quantum mechanics codes, many weather codes, most linear and nonlinear structural analysis codes, and interesting specialties like radar cross-section analysis. The LINPACK benchmark falls into this category. (2) High-Bandwidth codes will care about NUMA vs UMA to the extent that their memory references are non-local. There is a trade-off here: NUMA machines can easily have higher local memory bandwidth than the computing UMA system, but they may have lower remote memory bandwidth. In the case of the SGI Origin2000 vs the Sun UE10000, the NUMA machine has higher uncontented remote . bandwidth than the UMA machine does, but very slightly lower aggregate bisection bandwidth. The part of this space that is dominated by local references is modelled by benchmarks such as STREAM and several of the codes from SPECfp_rate95 (e.g., tomcatv, swim, mgrid). Many fluid dynamics codes fall into this space, which is how my interests focused here. The part of the high-BW space that is dominated by non-local references takes more work. The NUMA system is more likely to suffer from contention problems in the memory system than the UMA system, unless effort is made to spread the accesses evenly around the machine. There is no popular benchmark measure this effect directly. I will be adding a transpose benchmark to the STREAM suite to allow vendors to show off the best case, but my approach has no easy way to produce tunable, suboptimal traffic. Burton Smith and I discussed some ways to do this based on the NAS CG benchmark, and something may yet come out of this. (3) High-Memory-Demand, Latency-Sensitive codes are the most difficult for the NUMA machine. If they are dominated by local accesses, then the NUMA machine might be faster, but this often takes a lot of work. One typically expects the UMA machine to offer slightly superior performance in this space. I say only "slightly" because the mean latency of a large NUMA machine is actually not that much worse than the mean latency of a comparably priced UMA machine. Since no apps are *completely* latency dominated, the ratio of mean latencies typically overstates the performance ratio. The goal for these codes is to transform them into a more NUMA-friendly category. This can sometimes be a lot of work! Codes in the category include some lightweight transaction processing codes and some important crypto codes. >Then someone took the new clean code and ran it on the old machine -- >and found out that it ran N times faster than it did before. (Same N.) > >The moral of the story being, of course, that cleaning up grotty old >FORTRAN often makes it run better *everywhere*. > >I have no doubt whatsoever that cleaning up code along a new axis -- >making it run well on a NUMA machine -- would similarly make it run >better just about anywhere. Not necessarily. The work involved in making the code more cache-friendly is broadly helpful, but the work involved in making sure that memory accesses are spread even around the machine should not make any noticeable difference on an UMA machine. >> It is easy to get confused about the desirability of an UMA machine --- >> try pricing an Origin2000 against a Sun UE10000 sometime. The price per >> cpu difference is shocking -- a 16-cpu Sun UE10000 can easily be >2x >> the list price of a 16-cpu Origin2000. > >Interesting. Unfortunately, *price* bears only a vague relationship to >*cost* of producing a system. Sun is a hot, desirable box in many >commercial circumstances where customers don't normally expect big >discounts. So, like Honta, they probably price it higher, to. In this particular example, the *cost* of Sun's UMA machine is also very much higher than the *cost* of SGI's NUMA machine. This should be no surprise, since the UE10000 was designed by a division of Cray Research, and they don't have a reputation for low-cost designs. It is true that all the extra hardware that you have to buy with a UE10000 does buy you some nice features, but performance is not one of them. >> >But I see in the future the possibility of having a NUMA machine that >> >would have less MAX latency than a UMA machine of a given size. >> >> I think that it depends on how big the system is. Snoopy systems >> have latencies that are roughly proportional to machine size, while >> NUMA systems have latencies that are proportional to a root of >> the machine size (for grids) or the log of the machine size (for >> hypercubes), and it is inevitable that the snoopy systems will at >> some point pass the directory-based system in max latency. >> Whether someone would build such a large snoopy system is the >> real issue..... > >What about non-NUMA directory-based cache-coherence systems? Done with a >crossbar, it can be UMA. That snooping has problems doesn't necessarily >mean that UMA has problems. I am not sure what model you are proposing. Directory-based cache coherence is always going to be NUMA -- unless you add stall cycles to the cases where the directory was local!!! Hmmm.... I guess you could put all the directories together on the wrong side of the crossbar -- sort of a "worst of both worlds" approach? This would give you slow, uniform memory accesses and poor snooping performance. The Sun UE10000 is a different sort of hybrid architecture, with a data crossbar and four snoopy address buses. All data accesses are of uniform speed, even when the DRAM is on the same board as the cpu making the request. The system can't take advantage of locality because all addresses have to be broadcast over the whole machine, and you have to wait to be sure that no one responds to the snoop before delivering the data from memory. IBM had a different sort of hybrid about 10 years ago. It was a non-cache-coherent NUMA machine, using the IBM Power/RIOS segment model to access normal local memory and shared, incoherent memory. This approach has less latency penalty than a snoopy system as the machine size grows, but as I recall, it was dropped because (in addition to IBM's financial woes at the time) users found that program debugging was too hard. P.S. I left comp.sys.dec on the distribution, since Compaq/DEC is working on a NUMA machine, and I added comp.sys.super. It should be obvious that when I talk about NUMA machines, I am thinking mostly of the SGI Origin2000. The Origin overwhelmingly dominates NUMA installations worldwide. For large UMA machines, the only game in town appears to be the Sun Ultra10000, though the new HP V-2500 will scale to 32 processors in a UMA box. Both are governed by the same physics -- they have significantly higher latency and lower sustained bandwidth than smaller boxes using the same cpus. -- -- John D. McCalpin, Ph.D. Principal Scientist System Architecture Group http://reality.sgi.com/mccalpin/ Silicon Graphics, Inc. mccalpin@sgi.com 650-933-7407