Docsity

Ultra Port Architecture: A High-Performance Interconnect for Sun Fire Servers - Prof. Alan, Study notes of Computer Science

Partial preview of the text

Download Ultra Port Architecture: A High-Performance Interconnect for Sun Fire Servers - Prof. Alan and more Study notes Computer Science in PDF only on Docsity!

Shared Memory

Architecture

Michael Schatz

CMSC 714

October 4, 2007 Thursday, October 4, 2007 1

Taxonomy of Computer Architectures

MIMD

Multiprocessors

Single Address space

Shared Memory

Multicomputers

Multiple Address spaces

UMA

Central Memory

NUMA

distributed memory

NORMA

no-remote memory access

PVP (SGI/Cray T90)

SMP

(Intel SHV, SUN E10000, DEC 8400 SGI Power Challenge, IBM R60, etc.)

COMA (KSR-1, DDM)

CC-NUMA

( SGI Origin2000, Origin3000 , Cray T3E, HP Exemplar, Sequent NUMA-Q, Data General)

NCC-NUMA (Cray T3D, IBM SP3)

Cluster

(IBM SP2, DEC TruCluster, Microsoft Wolfpack, “ Beowolf” , etc.) loosely coupled, multiple OS

“MPP” (Intel TFLOPS,TM-5)

tightly coupled & single OS MIMD Multiple Instruction s Multiple Data PVP Parallel Vector Processor UMA Uniform Memory Access SMP Symmetric Multi-Processor NUMA Non-Uniform Memory Access COMA Cache Only Memory Architecture NORMA No-Remote Memory Access CC-NUMA Cache-Coherent NUMA MPP Massively Parallel Processor NCC-NUMA Non-Cache Coherent NUMA (c) SGI 2001 Thursday, October 4, 2007 2

The SGI Origin: A ccNUMA highly scalable server J. Laudon and D. Lenoski Proceedings of the 1997 International Symposium on Computer Architecture, May 1997 Thursday, October 4, 2007 4

Background

SGI Power Challenge systems (~1993)

36x R10000 Processor

cache-coherent, global address space

Design Goals for Origin (~1996)

1. Scale beyond 36 processors

2. Retain cache-coherent, global address space

3. Low entry and incremental cost

Thursday, October 4, 2007 5

Node Architecture

  • Basic Desktop Module
    • 4 node boards, 2 router boards, 12 XIO boards
    • larger systems built by combining modules
  • Node Board:
    • 2x R10000 Processors
    • 64 MB to 4 GB Memory
    • 4 MB Cache / processor
    • Central Hub connects processors, IO, memory, network 5. At the bottom of the board are two R10000 processors with their secondary caches. The R 10000 is a four-way out-of-order super- scalar processor[ 14 ]. Current Origin systems run the processor at 195 MHz and contain 4 MB secondary caches. Each processor and its secondary cache is mounted on a horizontal in-line memory module (HIMM) daughter card. The HIMM is parallel to the main n t t t a Front View Side View LEDS Bulk! head 300-pin! compression! connector Power/! ground Power/! ground Compression! mounting! knob Compression! mounting! knob R10000 processor and! secondary cache (HIMM)! with heat sink Main memory! DIMM slots (16)! (includes standard! directory memory) Extended! directory! memory! DIMM slots (8) DIMM! release! tab DIMM! release! tab HUB chip! with heat sink

Figure 5 An Origin node board

Thursday, October 4, 2007 7

Hub Architecture

node’s memory bandwidth. It also implements the IO re- quest tracking portion of the cache coherence protocol via the IO request buffers (IRB) and the IO protocol table. The IRB tracks both full and partial cache line DMA requests by IO devices as well as full cache line requests by the BTEs. The network interface takes messages from the II, PI, and MD and sends them out on the Craylink network. It 780 MB/s SSD/SSR LLP Crossbar Figure 5 Hub ASIC block diagram 01 23 Msg IRB Protocol Table BTE A BTE B CRB A Protocol Table II PI (^) Protocol Table MD NI Inval Multicast FandOp Cache SysAD 780 MB/s Craylink 1.56 GB/s XIO 1.56 GB/s Mem Dir Tables IO Transl SSD/SSR LLP 01 2 3 Msg CRB B

Full 4-way crossbar (XB) between

PI : processor interface

MD : memory & directory

II : I/O interface

NI : network interface

PI tracks read and write requests

Stored in Coherent Request Buffer ( CRB )

MD implements cache coherency via

protocol table.

II includes Block Transfer Engines ( BTE )

Memory-to-Memory copies at near the

node’s peak memory bandwidth

NI high speed interface to other nodes

Thursday, October 4, 2007 8

IO Architecture

emory bandwidth. It also implements the IO re- cking portion of the cache coherence protocol via the memory. This fetch-and-op cache allows fetch-and-op variables that hit in the cache to be updated at the mini- mum network serialization rate of 41 ns instead of at the much slower SDRAM read-modify-write timing. 3.4 IO subsystem 780 MB/s SSD/SSR LLP Crossbar 5 Hub ASIC block diagram 01 23 Msg IRB Protocol Table E E CRB A Protocol Table PI Protocol Table MD NI Inval Multicast FandOp Cache SysAD 780 MB/s Craylink s 1.56 GB/s Mem Dir Tables IO Transl SSD/SSR LLP 01 23 Msg CRB B Node 1 Node 2 XBOW 16 16 16 I/O Subsystem Graphics KONA Graphics KONA 16 16 16 16 16 Bridge SCSI SCSI IOC3 SIO PCI IO6 (Ethernet, SCSI, Serial Bridge ATM, Fibre C,HIPPI-Serial LINC CTRL PCI Bridge Other XTALK Bridge Other XTALK To SN0Net To SN0Net Hub R10000 R Main Memory/ Directory Hub R10000 R Main Memory/ Directory Figure 6 Example IO subsystem block diagram

• IO Subsystem has

crossbar (XBOW) for 2 compute nodes and 6 additional XIO cards:

• Ultra SCSI

• Fast Ethernet • Serial • Fibre Channel • ATM OC • Infinite Reality Gfx • PCI Cage • VME Adapter

Thursday, October 4, 2007 10

Cache Coherence Protocol

  • Similar to Stanford DASH protocol

Non-blocking: satisfy any memory request immediately

Requests handled through state machines

Read, Read-Exclusive, Upgrade, Writeback

Directory on home machine processes requests and ensures cache coherency is maintained

  • Origin Enhancements

Clean-Exclusive ( CEX ) Processor State:

Efficient read-modify-write accesses

Upgrade requests from shared to exclusive state

Sophisticated network deadlock avoidance scheme

Insensitive to network ordering

Scalable directory scheme

dynamically select between full or coarse bit vectors - Directory poisoning Thursday, October 4, 2007 11

Memory Performance

date all the translations to the old page cached in processor’s TLBs and then update the translation for the migrated page to point to the new page. The block transfer engine allows a 16 KB page to be copied from one node’s memory to another in under 30 microseconds. Unfortu- nately, in a very large Origin system, the cost to invalidate all the TLBs and update the translation using a conventional TLB shoot- down algorithm can be 100 microseconds or more, removing much of the benefit of providing a fast memory to memory copy. Recent page migration research has also identified TLB shootdown as a significant cost of page migration[11]. To solve the TLB update problem, the directory supports a block transfer copy mode known as directory poisoning, which works as follows. During the read phase of the poisoning block copy, in addition to reading the data, the directory protocol makes sure the latest copy of the data is written back to memory, and the directory is placed in the POISON state. Any access by a processor to a poisoned direc- tory entry during the copy will result in a synchronous bus error. The bus error handler is able to quickly determine that the bus er- ror was due to page migration, and the handler invalidates the pro- cessor’s TLB entry for the page, and then has the process wait for the new translation to be produced. Once the poisoning block copy has completed, the new translation is updated and all processors that took the poison bus error will load their TLB with the new translation. The poisoned page is now placed on a poisoned list to “age”. The operating system invali- dates one sequential TLB entry per scheduler tick, so after a time equal to the number of per-processor TLB entries times the period 4.1 Microbenchmarks The first microbenchmarks examine the latency and bandwidth of the Origin memory system. Table 4 shows the latency measured for a memory reference in isolation. This is the time from when the L1 cache is accessed until the instruction associated with the cache miss can graduate. The remote latency numbers for 16 and 32 pro- cessors assume that express links are employed. The STREAM benchmark is the standard memory bandwidth benchmark for the high performance computing industry. STREAM measures the performance of four simple long vector kernels, which are sized to eliminate cache re-use, and reports the results in terms of sustained memory bandwidth. On parallel sys- tems, STREAM is essentially completely parallel; the only com-

16P avg. remote memory 726

32P avg. remote memory 773

64P avg. remote memory 867

128P avg. remote memory 945

Table 4 Origin 2000 latencies

Figure 11 STREAM results - one thread per

node

0 500 1 4 8 16 Number of Processors

Figure 12 STREAM results - two threads per

node

0 1000 2000 3000 4000 5000 6000 7000 2 4 6 8 16 24 32 MB/s Number of Processors STREAM - Two Threads per Node COPY SCALE ADD TRIAD

Figure 11 STREAM results - one thread per

node

0 500 1000 1500 2000 2500 3000 3500 4000 4500 5000 1 4 8 16 MB/s Number of Processors STREAM - One Thread per Node COPY SCALE ADD TRIAD 1000 2000 3000 4000 5000 6000 7000 MB/s STREAM - Two Threads per Node COPY SCALE ADD TRIAD

STREAM benchmark measures the performance of 4 simple

vector kernels and reports sustained memory bandwidth.

Thursday, October 4, 2007 13

Application Speedup

Figure 14 NAS Parallel V2.2 Speedups 0 5 10 15 20 25 30 35 40 1 2 4 8 16 32 Speedup Number of Processors NAS V2.2 Class A Speedups Perfect speedup APPLU APPSP APPBT EP MG FT IS Application Command Line livers only 4.0 million increments/sec. As more processors are added, however, the number of increments on the fetch-and-incre- ment variable is able to increase to near the fetch-and-op cache throughput limit of 24.4 million/sec (one every 41 ns), while the number of increments on the LL/SC variable falls off dramatically, to under 100 thousand increments/second with 32 processors. Also note the drop off in fetch-and-op increments/second between two and four processors. With a small number of processors, the num- ber of fetch-and-increments achievable per second is limited by the fetch-and-increment latency, since each R10000 processor can only have a single uncached read outstanding. Therefore with two processors, the fetch-and-increment can be allocated locally, whereas with four processors, only two of the processors can ac- cess the fetch-and-increment variable from local memory, and the other two processors must pay the longer remote latency. Figure 13 shows the advantages of using fetch-and-op for barrier implementation. The graph shows the time to execute a null FOR- TRAN doacross statement. In addition to the barrier time, the null doacross includes the time to perform the work dispatch to the SPLASH2 suite. Application and operating system tuning is ongo- ing, so these results are a snapshot as of late February, 1997. w /o F O P w / F O P Processors 0.00 4.00 8.00 12.00 16.00 20.00 24.00 28.00 32.00 36. T im e^ in m ic ro se cs

igure 13 Comparison of LL/SC and fetch-and-

op for a null doacross loop

Application Command Line

radiosity -batch -room

raytrace balls4.env

lu -n2048 -b

ocean -n 1026

barnes < input.

Table 6 SPLASH2 Applications

Figure 15 SPLASH2 Speedups

0 5 10 15 20 25 30 35 1 2 4 8 16 32 Speedup Number of Processors SPLASH2 Speedups Perfect speedup Barnes Ocean Raytrace Radiosity LU livers only 4.0 million increments/sec. As more processors are added, however, the number of increments on the fetch-and-incre- ment variable is able to increase to near the fetch-and-op cache throughput limit of 24.4 million/sec (one every 41 ns), while the number of increments on the LL/SC variable falls off dramatically, to under 100 thousand increments/second with 32 processors. Also note the drop off in fetch-and-op increments/second between two and four processors. With a small number of processors, the num- ber of fetch-and-increments achievable per second is limited by the fetch-and-increment latency, since each R10000 processor can only have a single uncached read outstanding. Therefore with two processors, the fetch-and-increment can be allocated locally, whereas with four processors, only two of the processors can ac- cess the fetch-and-increment variable from local memory, and the other two processors must pay the longer remote latency. Figure 13 shows the advantages of using fetch-and-op for barrier implementation. The graph shows the time to execute a null FOR- TRAN doacross statement. In addition to the barrier time, the null doacross includes the time to perform the work dispatch to the slaves and the execution of one iteration of an empty do-loop. Therefore the graph actually understates the performance benefits of fetch-and-ops in implementing the barrier itself. SPLASH2 suite. Application and operating system tuning is ongo- ing, so these results are a snapshot as of late February, 1997. Figure 14 shows the performance of the NAS parallel benchmarks using the Class A datasets for up to 32 processors. Overall, speed- up on the NAS benchmarks is very good. For several of the bench- marks, superlinear speedups are achieved due to the larger total M op/s 1 P 2 P 4 P 8 P 16 P 32 P fch-inc 4.0 7.4 6.1 10.0 19.3 23. LL/SC 6.9 2.3 0.84 0.23 0.12 0. Table 5 Comparison of LL/SC and fetch-and-op for atomic increments w /o F O P w / F O P Processors 0.00 4.00 8.00 12.00 16.00 20.00 24.00 28.00 32.00 36. Ti me in m icr ose cs

Figure 13 Comparison of LL/SC and fetch-and- op for a null doacross loop Figure 14 NAS Parallel V2.2 Speedups 0 5 10 15 20 25 30 35 40 1 2 4 8 16 32 Speedup Number of Processors NAS V2.2 Class A Speedups Perfect speedup APPLU APPSP APPBT MG^ EP FT IS Application Command Line radiosity -batch -room raytrace balls4.env lu -n2048 -b ocean -n 1026 barnes < input. Table 6 SPLASH2 Applications Figure 15 SPLASH2 Speedups 0 5 10 15 20 25 30 35 1 2 4 8 16 32 Speedup Number of Processors SPLASH2 Speedups Perfect speedup Barnes Raytrace^ Ocean Radiosity LU

  • Superlinear speedup in NAS from larger total cache size and memory bandwidth.
  • Good speedup in SPLASH2 applications until 16 processors
    • Exact cause of rolloff unknown Thursday, October 4, 2007 14

The Sun Fireplane

Interconnect

Alan E. Charlesworth

IEEE Micro Jan - Feb 2002 Thursday, October 4, 2007 16

Sun System Interconnect Evolution FIREPLANE Table 1. Sun interconnect generation specifications. Ultra Port Characteristic MBus XDBus Architecture Fireplane First system shipment 1990 1993 1996 2000 Processor Cypress SPARC SuperSPARC UltraSPARC I or II UltraSPARC III Processor clock speed (MHz) 40 40 to 60 167 to 400 750 to 1, Interconnect clock speed (MHz) 40 50 to 55 80 to 100 150 Maximum system size (no. of CPUs) 4 64 64 106 Cache coherency mechanism Broadcast Broadcast Broadcast Broadcast and point to point Packet protocol Circuit switched Packet switched Packet switched Packet switched Address and data paths Multiplexed on Multiplexed on Separate wires Separate wires the same wire the same wire Cache coherency line size (bytes) 32 64 64 64 No. of system clocks for each address 16 11 2 1 Address rate per address bus (millions of addresses/s) 2.5 4.5 to 5 40 to 50 150 Data bandwidth per address bus (Gbytes/s) 0.08 0.29 to 0.32 2.5 to 3.2 9. Maximum no. of address buses 1 4 4 18 Maximum address-limited data bandwidth (Gbytes/s) 0.08 1.28 12.8 172 Data path width (bytes) 8 8 16 32 Electrical implementation Bused Bused Bused and switched Switched CPU XDbus 1993 1, 2, or 4 buses Snoopy coherency Mbus 1990 1 bus CPU Snoopy coherency Ultra Port Architecture 1996 Fireplane 2000 CPU 1 or 4 address buses Data bus or crossbar r CPU memory I/O Data crossbar Address crossbars Snoopy coherency Snoopy coherency ar One of the first implementations of cache coherency in a single ASIC. 38 IEEE^ MICRO Figure 2. Evolution of Sun interconnect generations. Data path width (bytes) 8 8 16 32 Electrical implementation Bused Bused Bused and switched Switche CPU I/O XDbus 1993 1, 2, or 4 buses 0.4 Gbytes/s per bus 3.2 Gbytes peak for four buses Snoopy coherency Mbus 1990 1 bus CPU I/O 0.8 Gbytes/s Snoopy coherency Ultra Port Architecture 1996 Fireplan 2000 CPU I/O 1 or 4 address buses Data crossbar or Data bus or crossbar Address crossbar CPU memory I/O CPU memory I/O CPU memory I/O Address crossbars Snoopy coherenc Snoopy coher Snoopy coher 3.2 Gbytes/s per address bus 12.8 Gbytes/s peak for four address buses 9.6 Gbytes/s per a 172 Gbytes/s for 18 address Snoopy coherency Directory coherency Memory Memory Memory Response crossbar Thursday, October 4, 2007 17

Sun System Interconnect Evolution FIREPLANE Table 1. Sun interconnect generation specifications. Ultra Port Characteristic MBus XDBus Architecture Fireplane First system shipment 1990 1993 1996 2000 Processor Cypress SPARC SuperSPARC UltraSPARC I or II UltraSPARC III Processor clock speed (MHz) 40 40 to 60 167 to 400 750 to 1, Interconnect clock speed (MHz) 40 50 to 55 80 to 100 150 Maximum system size (no. of CPUs) 4 64 64 106 Cache coherency mechanism Broadcast Broadcast Broadcast Broadcast and point to point Packet protocol Circuit switched Packet switched Packet switched Packet switched Address and data paths Multiplexed on Multiplexed on Separate wires Separate wires the same wire the same wire Cache coherency line size (bytes) 32 64 64 64 No. of system clocks for each address 16 11 2 1 Address rate per address bus (millions of addresses/s) 2.5 4.5 to 5 40 to 50 150 Data bandwidth per address bus (Gbytes/s) 0.08 0.29 to 0.32 2.5 to 3.2 9. Maximum no. of address buses 1 4 4 18 Maximum address-limited data bandwidth (Gbytes/s) 0.08 1.28 12.8 172 Data path width (bytes) 8 8 16 32 Electrical implementation Bused Bused Bused and switched Switched CPU XDbus 1993 1, 2, or 4 buses Snoopy coherency Mbus 1990 1 bus CPU Snoopy coherency Ultra Port Architecture 1996 Fireplane 2000 CPU 1 or 4 address buses Data bus or crossbar r CPU memory I/O Data crossbar Address crossbars Snoopy coherency Snoopy coherency ar Separate interconnects for data and addresses, point-to-point for fault tolerance. terconnect generations. 0.08 1.28 12.8 172 8 8 16 32 Bused Bused Bused and switched Switched CPU I/O XDbus 1993 4 ytes/s per bus bytes peak four buses Snoopy coherency Ultra Port Architecture 1996 Fireplane 2000 CPU I/O 1 or 4 address buses Data crossbar or Data bus or crossbar Address crossbar CPU memory I/O CPU memory I/O CPU memory I/O Data crossbar Data crossbar Address crossbars Snoopy coherency Snoopy coherency Snoopy coherency 3.2 Gbytes/s per address bus 12.8 Gbytes/s peak for four address buses 9.6 Gbytes/s per address bus 172 Gbytes/s peak for 18 address buses Snoopy coherency Directory coherency Memory Memory Response crossbar Thursday, October 4, 2007 19

Sun System Interconnect Evolution FIREPLANE Table 1. Sun interconnect generation specifications. Ultra Port Characteristic MBus XDBus Architecture Fireplane First system shipment 1990 1993 1996 2000 Processor Cypress SPARC SuperSPARC UltraSPARC I or II UltraSPARC III Processor clock speed (MHz) 40 40 to 60 167 to 400 750 to 1, Interconnect clock speed (MHz) 40 50 to 55 80 to 100 150 Maximum system size (no. of CPUs) 4 64 64 106 Cache coherency mechanism Broadcast Broadcast Broadcast Broadcast and point to point Packet protocol Circuit switched Packet switched Packet switched Packet switched Address and data paths Multiplexed on Multiplexed on Separate wires Separate wires the same wire the same wire Cache coherency line size (bytes) 32 64 64 64 No. of system clocks for each address 16 11 2 1 Address rate per address bus (millions of addresses/s) 2.5 4.5 to 5 40 to 50 150 Data bandwidth per address bus (Gbytes/s) 0.08 0.29 to 0.32 2.5 to 3.2 9. Maximum no. of address buses 1 4 4 18 Maximum address-limited data bandwidth (Gbytes/s) 0.08 1.28 12.8 172 Data path width (bytes) 8 8 16 32 Electrical implementation Bused Bused Bused and switched Switched CPU XDbus 1993 1, 2, or 4 buses Snoopy coherency Mbus 1990 1 bus CPU Snoopy coherency Ultra Port Architecture 1996 Fireplane 2000 CPU 1 or 4 address buses Data bus or crossbar r CPU memory I/O Data crossbar Address crossbars Snoopy coherency Snoopy coherency ar Multiple snooping coherency domains. 16 32 Bused and switched Switched Fireplane 2000 Address crossbar CPU memory I/O CPU memory I/O CPU memory I/O Data crossbar Data crossbar Address crossbars Snoopy coherency Snoopy coherency Snoopy coherency 9.6 Gbytes/s per address bus 172 Gbytes/s peak for 18 address buses Directory coherency Response crossbar Thursday, October 4, 2007 20