Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
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	[thread overview]
Message-ID: <77vksu$9ht$1@murrow.corp.sgi.com> (raw)
In-Reply-To: 36A29A93.D750A746@usNOSPAM.ibm.com

In article <36A29A93.D750A746@usNOSPAM.ibm.com>,
Greg Pfister  <pfister@usNOSPAM.ibm.com> wrote:
>John McCalpin wrote:
>> 
>> In article <sfq90f49yoo.fsf@kraftwerk.pa.dec.com>,
>> Aaron Spink  <spink@kraftwerk.pa.dec.com> 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



  reply	other threads:[~1999-01-18  5:00 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <3695FE68.B587EC5F@strategypartners.com>
     [not found] ` <x667aauvbu.fsf@tmbbwmt.bbn.hp.com>
1999-01-14  5:00   ` Why the CPQ AlphaServer DS20 Flies on FP (was Re: HP PA-8500 fp performance: Ugh!) Terry C. Shannon
1999-01-14  5:00     ` Toon Moene
1999-01-15  5:00       ` Greg Lindahl
1999-01-15  5:00         ` Terry C. Shannon
1999-01-15  5:00         ` John Henning
1999-01-15  5:00           ` H.W. Stockman
1999-01-16  5:00             ` John Henning
1999-01-16  5:00         ` Toon Moene
1999-01-17  5:00           ` Patrick F. McGehearty
1999-01-18  5:00           ` Jeffrey J. Potoff
1999-01-18  5:00             ` Toon Moene
1999-01-14  5:00     ` John Henning
1999-01-14  5:00       ` We need a successor to the 8400 TL (was: Why the DS20 ...) Henrik Klagges
1999-01-14  5:00         ` Glenn C. Everhart
1999-01-14  5:00         ` Terry C. Shannon
1999-01-16  5:00           ` Steve Thompson
1999-01-17  5:00             ` Terry C. Shannon
1999-01-17  5:00               ` Bob Kaplow
1999-01-17  5:00               ` Steve Thompson
1999-01-18  5:00                 ` 8400 TL config tips (was: We need; was: Why the DS20) John Henning
1999-01-15  5:00         ` We need a successor to the 8400 TL (was: Why the DS20 ...) John McCalpin
1999-01-15  5:00           ` Aaron Spink
1999-01-15  5:00             ` John McCalpin
1999-01-15  5:00               ` Aaron Spink
1999-01-16  5:00                 ` John McCalpin
1999-01-17  5:00                   ` jeffreyb
1999-01-19  5:00                     ` Chris Morgan
1999-01-20  5:00                       ` John McCalpin
1999-01-17  5:00                   ` Greg Pfister
1999-01-18  5:00                     ` John McCalpin [this message]
1999-01-18  5:00                     ` Aaron Spink
1999-01-19  5:00                       ` Rob Young
1999-01-19  5:00                         ` Del Cecchi
1999-01-20  5:00                           ` Aaron Spink
1999-01-15  5:00               ` John Henning
1999-01-15  5:00                 ` Greg Lindahl
1999-01-15  5:00                 ` John McCalpin
1999-01-16  5:00                   ` Greg Pfister
1999-01-17  5:00                     ` John McCalpin
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox