scieee AI-readable full text Open interactive document viewer

Efficient built-in NoC support for gather operations in invalidation-based coherence protocols

Lodde, Mario

Abstract

[EN] A dedicated control network is used to transmit acknowledgement messages generated by the coherence protocol, thus reducing the traffic in the regular NoC and improving the overall system performance

Full text

Universitat Polit` ecnica de Val` encia Master Thesis Efficient Built-In NoC Support for Gather Operations in Invalidation-Based Coherence Protocols Author: Mario Lodde Advisor: Prof. Jos´e Flich Cardo A thesis submitted in partial fulfillment of the requirements for the degree of Master of Science in Computer Engineering February 2013 UNIVERSITAT POLIT` ECNICA DE VAL` ENCIA Escuela T`ecnica Superior de Ingenier´ıa Inform´atica Department of Computer Engineering Master of Science Efficient Built-In NoC Support for Gather Operations in Invalidation-Based Coherence Protocols by Mario Lodde Abstract Future chip multiprocessors (CMPs) will include tens and hundreds of cores organized in a tile-based design pattern. A built-in on-chip network (NoC) will be devoted to inter-tile communication. In these systems, a shared memory programming model is appealing since it simplifies programming efforts. However, a coherence protocol is needed to keep consistency in the data stored in the different levels of the cache hierarchy. Usually an invalidation-based protocol is used, where cached copies are invalidated before a processor writes on a memory block. In this work we propose a NoC re-organization in which a small and fast control network is dedicated only to messages related to the invalidation process. By doing this, application traffic is alleviated and traffic overhead is significantly reduced. We explore different coherency protocols to cope with an efficient mapping of network control messaging, thus optimizing the use of the control network. We address two design points in coherence protocols. The first one with a full map directory, where a precise list of the sharers of a block is recorded in the directory, and the second one without directory, where no list of sharers is maintained by the protocol, as it happens in Hammer protocol. Experimental evaluation shows significant gains in performance when using the additional control network. With a low area overhead (less than 2.5%), the control network reduces NoC traffic and miss latency, thus reducing execution time up to 16%. Simulation results show a reduction of network traffic up to 80% and a reduction of store and load miss latency up to 70% and 40% respectively. i Contents Abstract i List of Figures v List of Tables vii Acronyms ix 1 Introduction 1 2 Basic Coherence Protocols 5 2.1 Directory-based Protocol ............................ 6 2.2 Broadcast-based Protocol ........................... 7 2.3 Multiple Requests ............................... 9 3 Set-Aside Gather Network 11 3.1 Overview .................................... 11 3.2 Detailed Description of a Logic Block .................... 13 3.3 Control Signals Distribution .......................... 14 3.4 Sequential Implementation of the SAGN ................... 16 3.5 Modified Protocols ............................... 18 4 Evaluation 21 4.1 Implementation Analysis ............................ 21 4.1.1 Combinational SAGN ......................... 22 4.1.2 Sequential SAGN ............................ 23 4.2 Performance Evaluation ............................ 24 4.2.1 Combinational SAGN ......................... 24 4.2.2 Sequential SAGN ............................ 30 5 Related Work 33 6 Conclusions 37 6.1 Current and Future Work ........................... 37 6.2 Publications ................................... 38 References 41 iii List of Figures 2.1 Base 4 ×4 tiled CMP system ......................... 5 2.2 Requests for a private block (Directory protocol) .............. 6 2.3 Requests for a shared block (Directory protocol) .............. 6 2.4 Write request for a shared block (Hammer protocol) ............ 8 2.5 Read request for a private block (Hammer protocol) ............ 8 2.6 Write request for a private block (Hammer) ................. 8 3.1 Set-Aside Gather Network (tile 0) ...................... 11 3.2 Logic at the inputs of the AND gate ..................... 12 3.3 SAGN block at switch 5 ............................ 14 3.4 Control signals distribution for the gather network. YX layout ...... 15 3.5 Control wire distribution for mixed XY/YX mapping. Gather networks for odd destinations follow XX routing and gather networks for even destinations follow XX routing. ......................... 16 3.6 Sequential SAGN block at switches for a 4 ×4 mesh NoC ......... 16 3.7 First alternative: the L2 invalidates the sharers ............... 18 3.8 Second alternative: the L1 invalidates the sharers .............. 19 4.1 Different performance numbers. % of invalidation messages, average store and load miss latencies ............................. 25 4.2 Normalized injected messages (Hammer protocol) .............. 26 4.3 Normalized execution time (cycles) ...................... 27 4.4 Normalized number of injected messages (SAGN signals are not included) 27 4.5 Normalized store miss latency (Hammer) .................. 28 4.6 Normalized load miss latency (Hammer) ................... 28 4.7 Normalized execution time with different SAGN delays ........... 29 4.8 Normalized execution time compared to a NoC with an high priority VC for the ACKs .................................. 29 4.9 Normalized execution time with the two implementations of the SAGN . . 30 4.10 Number of conflicts per gather message received at destination node . . . 31 4.11 Average SAGN latency (sequential implementation) ............ 31 v List of Tables 4.1 Area and delay for the switch modules .................... 22 4.2 Control network critical path ......................... 22 vii Chapter 2 Basic Coherence Protocols In this section we shortly describe the basic directory-based and broadcast-based protocols. We assume as the base system a 16-tile CMP system organized in a 4 ×4 layout, each tile including a switch, a core, its private L1 cache and a shared L2 cache bank. All the cores share the distributed L2 cache, and each L2 bank acts as home for a subset of the shared memory address space, meaning that all the requests for blocks of that subset are sent to that bank. Figure 2.1 shows the organization of the CMP system we consider in this work. Figure 2.1: Base 4 ×4 tiled CMP system Whenever a processor issues a read or a write operation, the private L1 cache is accessed. In case of a miss, a request is sent to the L2 bank which is the home of the requested block, which also stores the directory information for that block. 5 Chapter 2. Basic Coherence Protocols 6 2.1 Directory-based Protocol The full map directory-based protocol uses a sharing code with a number of bits equal to the number of cores of the system, thus giving an exact information about which cores have a copy of the block in their private L1 caches. Figures 2.2 and 2.3 show the four basic cases of block requests. Figure 2.2: Requests for a private block (Directory protocol) Figure 2.3: Requests for a shared block (Directory protocol) Figure 2.2.a shows how a read miss is resolved if the requested block is private (only one processor has a copy of the block with permission to read and write). The involved L1 nodes are identified by the tile number (L1-0 is the L1 at tile 0) and the L2 bank is the home of the requested memory block. Figure 2.2.a also shows the state of each L1 entry (assuming a MOESI protocol). The requestor (L1-0) sends a GETS message to the home L2, which forwards the request to the L1 which owns the block (L1-1) and adds the requestor to the sharer list. The owner (L1-1) sends then a copy of the block back to the requestor (L1-0). The L1-0 entry is set to S (sharer) state and L1-1 entry is set to O (owner) state. In case of a write miss (Figure 2.2.b) to a private block, the requestor (L1-0) sends a GETX message to L2, which forwards the request to the owner (L1-1), which in turn invalidates its copy and sends the block back to the requestor. Chapter 2. Basic Coherence Protocols 7 Then, L1-1 entry state is set to M (modified) and L1-0 entry state is set to I (invalid). The L2 changes the Owner pointer of the directory entry from L1-1 to L1-0. Figure 2.3.c shows how a read miss is resolved if the requested block is shared by a set of processors (each sharer has a copy of the block in its private L1 with read only permission). The request is forwarded to the L2, which adds the requestor to the sharers list and sends him a copy of the block. The entry in L1-0 is set to S (shared). In case of a write miss, Figure 2.3.d, the directory sends the data to the requestor and issues invalidation messages to the sharers. The sharers, upon the reception of the invalidation message, send an acknowledgement (ack) message to the requestor, which blocks its write operation until all acks and the data block have been received. The message sent by the L2 bank specifies the number of acks the requestor has to wait for. At the end, the L1-0 entry is set to M (modified) while the sharers set their entry to I (invalid). Since the full-map directory indicates exactly which cores share or own a block, the minimum amount of traffic required by the coherence protocol is injected in the network. The size of each directory entry however grows linearly with the number of nodes, which makes this solution not suitable for large systems: a CMP with 256 nodes, for instance, requires a 32-byte directory entry. If we assume 64-byte cache lines, the directory would increase the overall L2 cache size by 50%. 2.2 Broadcast-based Protocol The broadcast-based protocol does not use the sharing code, so the directory area overhead is completely removed but each time an L2 cache bank has to forward a request or send invalidations to the sharers, it issues a broadcast message which is received by all cores. Each core in turn must answer to the broadcast message, with the copy of the block if it is going to send a copy of the requested block to the requestor or with an ack if it has received the message and performed the operations stated by the coherence protocol but will not send a copy of the block to the requestor. So the broadcast-based protocol behaves as the directory-based protocol in case of read request for a shared block (case c in Figure 2.3) while in all other cases a message is broadcasted to all cores and the requestor receives a response message from all other Chapter 2. Basic Coherence Protocols 8 Figure 2.4: Write request for a shared block (Hammer protocol) cores. The requestor is allowed to read or write the block once it receives the data and all the ACKs. The case of a write request for a shared block in a 4-core system is shown in Figure 2.4. The data block is provided by the L2 cache and the request is broadcasted to all the L1 caches of the system. All nodes reply to the broadcast by sending an ACK and invalidating the local copy, if any. L1-0 can write once it receives the data and all the ACKs. Figure 2.5: Read request for a private block (Hammer protocol) Figure 2.5 shows the case of the read request for a private block. This time the L2 cache just forwards the request to all the L1s without sending the data to the requestor. When Figure 2.6: Write request for a private block (Hammer) Chapter 2. Basic Coherence Protocols 9 the Owner receives the broadcast request, it sends the block to the requestor1. All other nodes just send an ack to the requestor. A similar behavior is shown in Figure 2.6 for a write request on a private block. 2.3 Multiple Requests The L2 home bank acts as synchronization point when multiple requests for the same block are issued at the same time by different tiles: the cores access the requested block following the order in which the requests are received at the home bank. Additional states and control messages must be added to the basic protocol to correctly address all the possible race conditions caused by the reception of a request while the requested block is in a transient state. Expecially the transition of a block from a shared to a private state and vice versa must be handled carefully. With these two coherence protocols in mind, the directory-based and the broadcastbased, in the next chapter we describe the NoC support for gathering messages. Notice that we will provide two different but similar solutions, one for each protocol. 1Additional traffic between the Owner and the L2 to manage the block state change from private to shared is not shown for simplicity reasons. Chapter 3 Set-Aside Gather Network 3.1 Overview To speedup the reception of ack messages we propose a configurable control network with dedicated logic at every router. In particular, we define a so-called Set-Aside Gather Network (SAGN) from every core to every core. Thus, in a 16-tile system with a core in each tile we define 16 SAGNs, each with 15 sources reaching a different and single destination. Each SAGN consists of a tiny one-bit network spread throughout the NoC with one AND logic gate on every switch. Figure 3.1: Set-Aside Gather Network (tile 0) Figure 3.1 shows a schematic view of the switch logic with the support for one SAGN network. In particular, SAGN for TILE 0 is shown. The network follows the Y-X routing algorithm, which follows the X-Y routing assumed for data messages through 11 Chapter 3. Set-Aside Gather Network 12 the regular NoC but in opposite direction. In each switch the AND gate combines the different input signals from neighboring switches and from the local L1 cache. Figure 3.2: Logic at the inputs of the AND gate Figure 3.2 shows the logic at the inputs of the AND gate. The input signals are configured by a Cxbit (x is the input port the signal is coming from), one per each input signal, which enables/disables that input signal. If the input signal is disabled (the associated configuration bit is set to zero), the logic sets the input to the AND gate to one. On the contrary, if the input signal is enabled, the input to the AND gate is the input signal. Notice that these bits are used to build a control tree network ready to allow all the sharers of a block to acknowledge the requestor. Notice also that these configuration bits are not needed for a Dir0B coherence protocol since a broadcast action reaches all the nodes, thus the AND tree does not need to be configured every time. All the nodes participate in the ACK stage with the requestor. With the directory-based protocol, however, the configuration bits enable only the inputs of the nodes which will actually receive the invalidation message and have to send an ack. In both cases, the SAGN is not flow controlled and does not implement any switching mechanism. Indeed, is a pure combinational block with no input clocks. Later we propose a synchronous version. An extra logic is necessary to reset the input signals each time a new invalidation message is multicasted (in case of directory-based protocol) or broadcasted (in case of hammer protocol). For the directory-based protocol, the multiplexer allows up to three entries, ”0”, ”1”, and the input signal. When the multicast message arrives to the switch, if the input port belongs to the AND tree, then the multiplexer is configured to the ”0” signal, to prevent a too-early notification due to acknowledgements for previous requests. As the multicast message travels down to the next switch, and configures the AND gate at that switch, the input signal will be set to zero and will reach the current switch. In that case, the logic detects the transition of the input signal (through the flip-flop) Chapter 3. Set-Aside Gather Network 13 and restores the multiplexer entry to the input signal, thus preventing the output of the AND gate being set to one too early. Notice that if a multicast message arrives and an input port is not part of the AND tree, then the multiplexer entry is set to the ”1” signal. For the broadcast solution, the ”1” input to the multiplexer is not required as all possible inputs always belong to the AND tree. Multicast invalidation messages are used to properly set the configuration bits for the directory-based protocol: when inv messages are sent through the NoC, every switch configures the SAGN network for the corresponding sender. If a multicast inv message is forwarded through several output ports, the corresponding SAGN configuration bits (Cx) for the input signal of the output ports are set. Thus, in a tree branch of the multicast operation of the inv message, several input signals will be enabled. The SAGN is a fast built-in network that enables a fast notification to the sender (TILE 0 in the figure) due to its simplicity. Indeed, when an inv message is received at a node, it simply needs to trigger the signal for the SAGN of the sender. Once all the sharer nodes receive the multicast message and trigger the SAGN signal, the sender will be notified through the SAGN within the delay of the AND tree network. 3.2 Detailed Description of a Logic Block The SAGN logic at each switch is connected to its neighbors’ control logic blocks with dedicated wires. Figure 3.3 shows the gather network logic at switch 5. Notice that each subnetwork is made of a single wire, coming from different input ports. The task of the logic block is simply to AND the corresponding input signals and to distribute the results through the proper output port, depending on the location of the switch in the mesh topology and the selected layout. The logic receives as input 15 control signals from the local core, each of which is addressed to a different destination node. XLindicates a control signal coming from the local port and addressed to destination X. Thus, we have from 0Lup to 15Lsignals (excluding the one with the ID of the local core). In addition, we have up to 20 control signals coming from either north (N) or south (S) input ports and up to 5 control signals from either east (E) or west (W) input ports. Switches at the boundaries of the mesh have a lower number of input control signals. These signals are then grouped depending Chapter 4 Evaluation In this chapter we provide evaluation results of the gather network. First we provide results for the implementation of the network. Then, we focus on cycle-accurate performance estimations using synthetic memory access traces and real applications. 4.1 Implementation Analysis In this section we provide an analysis of the overhead of the control network. We have designed a basic 4-stage pipelined 5-port switch with buffers at the input side and with wormhole switching. The output of the switch is registered. Each input port has one 4- flit-wide buffer. Later, we will use virtual channels to obtain performance numbers with applications. Virtual channels are used to separate different traffic classes (a message will be routed always through the same VC), thus avoiding the protocol deadlock problem induced by coherence protocols. Link width and flit size are set to 8 bytes. Stop&Go flow control protocol and XY routing have been implemented. A round-robin arbiter according to [6] is used. The switch has been implemented using the 45nm technology open source Nangate [7] library with Synopsys DC. Cadence Encounter has been used to perform the Place&Route. Table 4.1 summarizes the delay and area for each of the modules of the switch1. 1Area numbers in the table are for a single instance of each module, thus some of them are replicated in the complete switch. 21 Chapter 4. Evaluation 22 Notice that these values do not take into account the link delay neither the control logic needed to implement the communication between switches. Table 4.2 shows the whole network critical path considering the switch delay plus the link delay. module area (mm2) critical path (ns) Input port 3.08 ×10−30.58 Routing 8.91 ×10−50.30 Arbiter 1.09 ×10−30.74 Crossbar 4.47 ×10−30.43 Table 4.1: Area and delay for the switch modules 4.1.1 Combinational SAGN An extra module with the combinational SAGN circuit has been added to the switch we just described. The configuration bits are computed in the routing module. By using the switch, a 4 ×4 and 8 ×8 2D mesh networks have been implemented. Two scenarios are analyzed, a conventional 2D mesh without the control network, and the 2D mesh with the control network. Table 4.2 shows the critical path (end to end delay) of the control network analyzed independently of the rest of the network. To compute the combinational SAGN critical path, each block must be properly placed next to the switch it is connected to. Then, on the implementation process some constraints must be forced to the placement&route tools. First, the highest metallization layers must be used. By doing this, lower metallization layers get free, and hence, other logic as SRAMs could be placed under SAGN wires. Repeaters are inserted by the own tool in order to fulfil delay constraints imposed by the designer. The critical path of the control network is fixed by the SAGN logic that connects the two most physically separate nodes in a chip. Notice also that the latency of the control network depends on the mesh radix. The table also shows the delay of a single switch. Two link lengths are analyzed: 1.2 mm and 2.4 mm. Critical path (ns) 4x4 Network 8x8 Network link length (mm) 1.2 2.4 1.2 2.4 Control network 1.23 2.20 2.65 4.32 switch delay 1.35 1.75 1.35 1.75 Table 4.2: Control network critical path For a 4 ×4 network with a link length of 1.2 mm, the control network critical path is smaller than the delay of a single switch, and hence, the control network is able to Chapter 4. Evaluation 23 work at the same operating frequency than the switch (in a switch cycle the control network is able to notify all the nodes about possible ack messages). In contrast, if the link length is increased, the control network has a higher critical path. However, only two cycles are needed for the control network. For the 8×8 network, it can be seen that the control circuit does not scale as well as the point-to-point communication protocol of the NoC. However, it can be noticed that the worst case is for a control network with a delay of 4.32 ns (3 clock cycles when compared to the switch). The area of the switch is 20.418×10−3mm2, while the area of the control logic in each switch is 0.28 ×10−3 mm2, being a 1.3% overhead. Notice that when virtual channels will be added the area overhead will be much lower. 4.1.2 Sequential SAGN The sequential control logic described in Section 3.4 has also been implemented. This implementation has a higher area overhead than the combinational implementation, being basically the same circuit with decoders at the input ports and encoders at the output ports. The encoders at each output port also include an arbiter in case more than one ACK signal is generated at the AND logic block in the same cycle. Since the control logic area varies depending on the tile position, we considered the worst case, which in a 4 ×4 system with mixed XY/YX mapping is one of the switches located in the central tiles. These switches indeed are connected with another switch in each direction and are crossed by more signals than the switches located on the border. The area of the control logic in these tiles is 0.472×10−3mm2, which is 2.3 % the area of the switch. The critical path of the control logic in the worst case is 0.52 ns, which is lower than the critical path of the slower module of the router, which is 0.74 ns for the arbiter, as shown in Table 4.1. This means at each cycle the control logic can propagate up to 5 ACK signals (one per port). The control logic area is reduced to 0.153 ×10−3mm2 for the switches located at the corners of the 2D mesh, which are connected only in two directions. Chapter 4. Evaluation 24 4.2 Performance Evaluation 4.2.1 Combinational SAGN We have implemented and evaluated four versions of the directory-based protocol using the gNoCsim simulation platform. gNoCsim is composed by two main modules: the memory module which simulates the memory hierarchy and the coherence protocol, and the network module which performs a cycle-accurate simulation of the NoC. The simulator is fed by a set of memory access traces, that can be generated by a functional simulator connected to gNoCsim 2. The first two versions of the protocol use the basic protocol described in Chapter 2, but they differ at NoC level. The first version does not use the multicast support (labelled as basic), while the second version (labelled as mc) uses the multicast support when sending invalidation messages [8]. The third and fourth versions use the multicast support to configure the SAGN network for the acknowledgements, and at protocol level they behave as explained in Chapter 4: the first one invalidates memory copies from the L2 node (labeled as mc+g L2) and the second one invalidates memory copies from the L1 node (labeled as mc+g L1). We evaluated the last two versions considering a gather network capable of delivering the signal in 1 and 2 cycles. Each tile has two 64KB L1 banks (instruction and data) and a 512KB L2 bank. Tag access latency is set to 1 and 2 cycles respectively for L1 and L2 cache, while cache access latency is set to 2 and 4 cycles respectively for L1 and L2 cache. Four sets of synthetic memory access traces have been generated and fed into the simulator. Each set is made of 200,000 random accesses to 500 different addresses. The sets differ in the percentage of read and write operations (from 60% read operations to 90% read operations). Figure 4.1.a shows the execution time for each set, normalized to the case of the basic protocol. The multicast support alone (mc) slightly reduces the execution time as inv messages are sent with a single message and less contention is incurred in the network. 2In this work we have provided full support to the gNoCsim simulator for coherence protocol support and simple definition of the different protocol variants. This has been a large effort as the coherence protocols typically exhibit many race conditions that need to be solved with further refinements of the protocols. Chapter 4. Evaluation 25 (a) Normalized execution time (cycles) (c) Normalized store miss latency (b) % invalidation messages (d) Normalized load miss latency Figure 4.1: Different performance numbers. % of invalidation messages, average store and load miss latencies With the alternative protocols and the control network, execution time is further reduced up to 4%, depending on the set of traces. Figure 4.1.b shows the percentage of inv messages sent for each set (a multicast message sends multiple inv messages). As can be seen, the improvement in execution time is tightly coupled with the percentage of invalidations. The more invalidation messages are sent, the higher the benefits obtained by the control network. The percentage of invalidations grows with the percentage of read operations in the traces, since each write operation has to invalidate more sharers, so the performance improvement due to the gather network becomes more evident with traces with a high percentage of reads. Figure 4.1.c shows the average store miss latency normalized to the base case (basic protocol). Again, the multicast support combined with the control network helps in lowering the store miss latency up to 20%. In particular, when the L1 nodes send the invalidation messages (mc+g L1), up to 15% reduction in write miss latency is achieved. When the L2 nodes take care of invalidations (mc+g L2) an extra reduction is achieved obtaining up to 20%. Since the directory-based protocols only use the gather network to collect the acks in store misses, its effect on the load miss latency is negligible. This effect can be seen in Figure 4.1.d. When using the alternative protocols, the load miss latency is slightly Chapter 4. Evaluation 26 reduced (2%) with respect to the basic protocol. It should be noted also that the latency of the control network does not affect the results. Execution time, miss load latency, and miss store latency, are practically the same when the control network has a delay of one or two cycles. Optimizing only one case out of the four exposed in Figures 2.2 and 2.3, the impact of the SAGN in systems which support a directory-based protocol is quite applicationdependent: if the application generates a high percentage of write accesses on widely shared variables, the SAGN will be effective. To simulate actual applications on our system, we embedded gMemNoCsim in Graphite simulator [9] and launched various applications of the SPLASH-2 benchmark suite. Since all applications generated a very low percentage of write accesses on shared variables (0.4% of total L2 accesses on average), the effects of the SAGN were quite limited. The SAGN is more effective if the system implements a broadcast-based protocol, which generates a higher amount of acknowledgment messages. As explained in Section 2.2, a broadcast message is issued in all cases except for the case of a read miss on a shared data, and each node except for the owner of the block must send an acknowledgement to the requestor, so ack messages are much more common in broadcast-based protocols than in directory-based. Indeed, the results we obtained running the SPLASH-2 applications on Graphite with the broadcast-based protocol show that the percentage of acks (indicated as Coherence Res in Figure 4.2) over the total number of messages is 30% on average, reaching 43% on Barnes, FFT and Water-nsquared. Figure 4.2: Normalized injected messages (Hammer protocol) Chapter 4. Evaluation 27 We evaluated the broadcast-based protocol with three different configurations: a basic configuration with no broadcast support and no SAGN (labelled as Hammer), a configuration with NoC-level broadcast support (labelled as Hammer BC) and a configuration with broadcast support and the SAGN (labelled as Hammer BC GN) and compared the performance of these three configurations with the basic directory protocol. Figure 4.3: Normalized execution time (cycles) Figure 4.3 shows the normalized execution time of the SPLASH-2 applications with the three configurations of Hammer protocol and the basic directory protocol. Without further support at network level, Hammer performs worse than Directory due to the amount of traffic generated at each L2 cache access and the serialization of acks at the requestor node’s input ports. Adding broadcast support helps, but still the performance of Directory is better than those of Hammer BC. The SAGN further reduces the execution time, reaching an average execution time for Hammer BC GN which is 8% lower than Hammer and 3% lower than Directory. Figure 4.4: Normalized number of injected messages (SAGN signals are not included) Chapter 4. Evaluation 28 Network traffic is also drastically reduced. As shown in Figure 4.4, combining NoC broadcast support and the SAGN the number of injected messages in Hammer is reduced up to 60% on average and 80% for some applications. This means that Hammer BC GN reaches better performance than directory, clearing the area/traffic tradeoff: typically, directory-based protocols have a high area overhead (due to the sharing code) but generate low traffic, while broadcast-based protocols have a very low area overhead and generate much more traffic. The SAGN allows Hammer BC GN to overcome the performance of Directory with a lower chip area overhead an generating the same amount of traffic. Figure 4.5: Normalized store miss latency (Hammer) Figure 4.6: Normalized load miss latency (Hammer) The impact of the SAGN on store and load miss latency when using Hammer protocol is higher than what we saw in Figures 4.1 b) and c) for Directory protocol. As shown in Figure 4.5, the combined effect of broadcast support and SAGN reduces the store miss latency of Hammer protocol by 40% on average (and up to more than 60% for some applications). The impact on load miss latency is lower, although still noticeable: as shown in Figure 4.6, the load miss latency is reduced by 20% on average, due to the fact that some read requests are managed by the L2 cache without broadcasting any message to L1 caches, as explained in Chapter 2. Chapter 4. Evaluation 29 Figure 4.7: Normalized execution time with different SAGN delays Figure 4.7 shows the impact of the SAGN delay on the system performance. We ran the SPLASH-2 applications on a system with Hammer BC GN and SAGNs with a delay ranging from 2 to 128 cycles. As shown, the performance is not significantly affected with delays up to 64 cycles: the average execution time increases by 1% on average. So far we considered a SAGN with a delay of 2 cycles; as exposed in Chapter 3, this delay can be achieved with a combinational implementation, while the latency of a sequential SAGN would be higher (1 cycle per hop). As shown in Figure 4.7, this latency increment would not affect the performance, thus allowing to use a sequential SAGN. In Subsection 4.2.2 we provide a more detailed evaluation of ACK latencies when a sequential SAGN is used. Figure 4.8: Normalized execution time compared to a NoC with an high priority VC for the ACKs We conclude the evaluation of combinational SAGN comparing the performance of the SAGN with those of a system where a dedicated high-priority VC is used to transmit the ACKs. Figure 4.8 shows the normalized execution time when the SAGN and the Chapter 6 Conclusions In this work we presented a dedicated control network that allows fast recollecting of the acknowledgements to a multicast message sent on a CMP’s on-chip network. We used this network to optimize the invalidation process of a MOESI invalidation-based cache coherency protocol. Two variations of the basic protocol have been evaluated, which differ on the source node of the invalidation messages: the home L2 cache or the L1 cache that issued the write request. We implemented the control network, which result to have a low area overhead and to need 2 clock cycles for a 4×4 network. Then, we implemented and simulated the coherency protocols. Simulation results show that by using the gather network the average store miss latency is reduced up to 20%, thus reducing the overall execution time. In addition, we have proposed a sequential implementation of the logic to reduce wire requirements. The solutions have been adapted to a Hammer protocol where broadcast operations are needed. Results demonstrate performance benefits of 8% in execution time with a reduction of network traffic up to 80%. 6.1 Current and Future Work Current efforts aim to use the gather network to speedup the search phase of the home LLC bank in a system that employs dynamic mapping of the blocks to the LLC banks. In common systems this mapping is done statically, so when an access misses in the L1 cache the LLC bank to which a request has to be sent is known a priori. In case of dynamic mapping however, since the home bank may be any of the LLC banks, a search 37 Chapter 6. Conclusions 38 phase is needed. One way to implement this search phase is to broadcast the request to all LLC banks and wait for all banks to answer, both with an acknowledgement or with the requested data. In this case too, the SAGN can be used to speedup the collection of acknowledgment messages and reduce NoC traffic, enabling efficient implementation of mapping policies that reduce the hop distance between an L1 requestor and the LLC home bank. Other solutions that can be explored are the use of the SAGN to deliver unicast acknowledgements (e.g. writeback acknowledgements that are sent from the LLC to an L1 after a writeback) or to efficiently implement synchronization primitives (e.g. barriers) at hardware level. 6.2 Publications The following papers related with this work were submitted and accepted for publication in different international conferences and journals: •M. Lodde and J. Flich, ”Memory Hierarchy and Network Co-design through Trace- Driven Simulation”, Proc. of the 7th International Summer School on Advanced Computer Architecture and Compilation for High-Performance and Embedded Systems. July 2012. •M. Lodde, T. Roca, and J. Flich, Heterogeneous Network Design for Effective Support of Invalidation-Based Coherency Protocols, in Proc. of the 2012 Interconnection Network Architecture: On-Chip, Multi-Chip Workshop, January 2012. •M. Lodde, J. Flich, and M. Acacio, Heterogeneous noc design for efficient broadcastbased coherence protocol support, in Proc. of the 6th Intl, Symposium on Networks on Chip (NOCS), May 2012. •M. Lodde, T. Roca, and J. Flich, Built-In Fast Gather Control Network for Efficient Support of Coherence Protocols”, to appear in IET Computers and Digital Techniques INA-OCMC 2012 Special Issue. In addition, also in national conferences some related papers have been published: Chapter 6. Conclusions 39 •M. Lodde and J. Flich, ”Memory Hierarchy and Network Co-design through Trace- Driven Simulation”, XXII Jornadas de Paralelismo (pages 571-578). Tenerife, Spain. 7-9 September 2011. •M. Lodde, J. Flich, M.E. Acacio, ”A NoC-Level Support for Broadcast-Based Coherence Protocols”, XXIII Jornadas de Paralelismo (pages 440-454). Elche, Spain. 19-21 September 2012. References [1] Jose Flich and Davide Bertozzi. Designing Network On-Chip Architectures in the Nanoscale Era. Chapman & Hall, 2010. [2] D.J. Sorin, M.D. Hill, and D.A. Wood. A Primer on Memory Consistency and Cache Coherence. Morgan & Claypool Publishers, 2011. [3] M.M.K. Martin, M.D. Hill, and D.J. Sorin. Why on-chip cache coherence is here to stay. Duke University Department of ECE Technical Report TR-2011-1, August 2011. [4] P. Conway and B. Hughes. The amd opteron northbridge architecture. IEEE Micro, 27(2):10–21, March 2007. [5] J. M. Owen, M.D. Hummel, D.R. Meyer, and J.B. Keller. United states patent: 7069361 - system and method of maintaining coherency in a distributed communication system. June 2006. [6] E.S. Shin, III Mooney, V.J., and G.F. Riley. Round-robin arbiter design and generation. In System Synthesis, 2002. 15th International Symposium on, pages 243 –248, oct. 2002. [7] The nangate open cell library,45nm freepdk,available at https://www.si2.org/openeda.si2.org/projects/nangatelib/. [8] Samuel Rodrigo, Jose Flich, Jose Duato, and Mark Hummel. Efficient unicast and multicast support for cmps. In Proceedings of the 41st annual IEEE/ACM International Symposium on Microarchitecture, MICRO 41, pages 364–375, 2008. 41 References 42 [9] J.E. Miller, H. Kasture, G. Kurian, C. Gruenwald, N. Beckmann, C. Celio, J. Eastep, and A. Agarwal. Graphite: A distributed parallel simulator for multicores. In High Performance Computer Architecture (HPCA), 2010 IEEE 16th International Symposium on, pages 1 –12, jan. 2010. [10] Liqun Cheng, Naveen Muralimanohar, Karthik Ramani, Rajeev Balasubramonian, and John B. Carter. Interconnect-aware coherence protocols for chip multiprocessors. SIGARCH Comput. Archit. News, 34(2):339–351, May 2006. [11] A. Flores, J.L. Aragon, and M.E. Acacio. Heterogeneous interconnects for energyefficient message management in cmps. IEEE Transactions on Computers, 59(1): 16–28, January 2010. [12] Noel Eisley, Li-Shiuan Peh, and Li Shang. In-network cache coherence. In Proceedings of the 39th Annual IEEE/ACM International Symposium on Microarchitecture, MICRO 39, pages 321–332, 2006. [13] Evgeny Bolotin, Zvika Guz, Israel Cidon, Ran Ginosar, and Avinoam Kolodny. The power of priority: Noc based distributed cache coherency. In Proceedings of the First International Symposium on Networks-on-Chip, NOCS ’07, pages 117–126, 2007. [14] I. Walter, I. Cidon, and A. Kolodny. Benoc: A bus-enhanced network on-chip for a power efficient cmp. IEEE Computer Architecture Letters, 7(2):61–64, July-Dec .2008. [15] D. Vantrease, M. Lipasti, and N. Binkert. Atomic coherence: Leveraging nanophotonics to build race-free cache coherence protocols. In In Proc. of the 17th International Symposium on High Performance Computer Architecture, pages 132–143, February 2011. [16] P. Conway, N. Kalyanasundharam, G. Donley, K. Lepak, and B. Hughes. Cache hierarchy and memory subsystem of the amd opteron processor. IEEE Micro, 30 (2):16–29, March/April 2010. [17] R.A. Maddox, G. Singh, and R.J. Safranek. Weaving high performance multiprocessor fabric: Architecture insights into the intel quickpath interconnect. Intel Press, 2009. References 43 [18] A. Moshovos, G. Memik, B. Falsafi, and A. Choudhary. Jetty: filtering snoops for reduced energy consumption in smp servers. In High-Performance Computer Architecture, 2001. HPCA. The Seventh International Symposium on, pages 85 –96, 2001. [19] V. Salapura, M. Blumrich, and A. Gara. Design and implementation of the blue gene/p snoop filter. In High Performance Computer Architecture, 2008. HPCA 2008. IEEE 14th International Symposium on, pages 5 –14, feb. 2008. [20] Jason F. Cantin, Mikko H. Lipasti, and James E. Smith. Improving multiprocessor performance with coarse-grain coherence tracking. SIGARCH Comput. Archit. News, 33(2):246–257, May 2005. [21] A. Moshovos. Regionscout: exploiting coarse grain sharing in snoop-based coherence. In Computer Architecture, 2005. ISCA ’05. Proceedings. 32nd International Symposium on, pages 234 – 245, june 2005. [22] N. Agarwal, Li-Shiuan Peh, and N.K. Jha. In-network coherence filtering: Snoopy coherence without broadcasts. In Microarchitecture, 2009. MICRO-42. 42nd Annual IEEE/ACM International Symposium on, pages 232 –243, dec. 2009. [23] Samuel Rodrigo, Jose Flich, Jose Duato, and Mark Hummel. Efficient unicast and multicast support for cmps. In Proceedings of the 41st annual IEEE/ACM International Symposium on Microarchitecture, MICRO 41, pages 364–375, 2008. [24] A. Ros and M.E. Acacio. Evaluation of low-overhead organizations for the directory in future many-core cmps. In Proc. of the 4th Workshop on Highly Parallel Processing on a Chip, pages 87 – 97, September 2010. [25] Tushar Krishna, Li-Shiuan Peh, Bradford M. Beckmann, and Steven K. Reinhardt. Towards the ideal on-chip fabric for 1-to-many and many-to-1 communication. In Proceedings of the 44th Annual IEEE/ACM International Symposium on Microarchitecture, MICRO-44 ’11, pages 71–82, 2011.