scieee AI-readable full text Open interactive document viewer

Characterization and modeling of multicast communication in cache-coherent manycore processors

Abadal Cavallé, Sergi,Martinez, Raul,Solé Pareta, Josep,Alarcón Cot, Eduardo José,Cabellos Aparicio, Alberto

Abstract

The scalability of Network-on-Chip (NoC) designs has become a rising concern as we enter the manycore era. Multicast support represents a particular yet relevant case within this context, mainly due to the poor performance of NoCs in the presence of this type of traffic. Multicast techniques are typically evaluated using synthetic traffic or within a full system, which is either simplistic or costly, given the lack of realistic traffic models that distinguish between unicast and multicast flows. To bridge this gap, this paper presents a trace-based multicast traffic characterization, which explores the scaling trends of aspects such as the multicast intensity or the spatiotemporal injection distribution for different coherence schemes. This analysis is the basis upon which the concept of multicast source prediction is proposed, and upon which a multicast traffic model is built. Both aspects pave the way for the development and accurate evaluation of advanced NoCs in the context of manycore computing.

Full text

ARTICLE IN PRESS JID: CAEE [m3Gsc;January 19, 2016;7:35] Computers and Electrical Engineering 000 (2016) 1–16 Contents lists available at ScienceDirect Computers and Electrical Engineering journal homepage: www.elsevier.com/locate/compeleceng Characterization and modeling of multicast communication in cache-coherent manycore processorsR Sergi Abadala,∗, Raúl Martínezb,1, Josep Solé-Paretaa,EduardAlarcón a, Albert Cabellos-Aparicioa aNaNoNetworking Center in Catalonia (N3Cat), Universitat Politècnica de Catalunya, Barcelona, Spain bOracle Labs, Oracle Corporation, Vancouver, BC, Canada article info Article history: Received 10 May 2015 Revised 23 December 2015 Accepted 23 December 2015 Available online xxx Keywords: Manycore processors Multicast Broadcast On-chip traffic analysis Network-on-chip Scalability abstract The scalability of Network-on-Chip (NoC) designs has become a rising concern as we enter the manycore era. Multicast support represents a particular yet relevant case within this context, mainly due to the poor performance of NoCs in the presence of this type of traffic. Multicast techniques are typically evaluated using synthetic traffic or within a full system, which is either simplistic or costly, given the lack of realistic traffic models that distinguish between unicast and multicast flows. To bridge this gap, this paper presents a trace-based multicast traffic characterization, which explores the scaling trends of aspects such as the multicast intensity or the spatiotemporal injection distribution for different coherence schemes. This analysis is the basis upon which the concept of multicast source prediction is proposed, and upon which a multicast traffic model is built. Both aspects pave the way for the development and accurate evaluation of advanced NoCs in the context of manycore computing. © 2015 Elsevier Ltd. All rights reserved. 1. Introduction In the ever-changing world of microprocessor design, multicore architectures are currently the dominant trend for both conventional and high-performance computing. Chip Multiprocessors (CMPs) resulting from the interconnection of several processing cores were conceived to overcome the complexity and power scalability hurdles of processors with a single CPU; however, the scalability concerns have now migrated to facets such as memory management, programmability or the limits of parallelism as the core count increases. Inherent parallelism limits aside, these scalability concerns are generally dependent on the architecture or programming model of choice. A long-running debate has brought up strong arguments for the adoption of two widely-known models in manycore CMPs: shared memory and message passing. Shared memory provides remarkable programmability and compatibility with legacy code. However, its scalability is arguably limited by performance and architectural complexity issues related to data consistency. On the contrary, message passing offers unique validation and hand-tuned performance benefits, which come at the cost of placing an increasingly heavy burden upon the programmer. The differences between these RReviews processed and recommended for publication to the Editor-in-Chief by Associate Editor Dr. M. Daneshtalab. ∗Corresponding author. Tel.: +34 662086489 . E-mail address: [email protected] (S. Abadal). 1Raúl Martínez was working for INTEL at the INTEL Barcelona Research Center when the main ideas of the paper were developed. http://dx.doi.org/10.1016/j.compeleceng.2015.12.018 0045-7906/© 2015 Elsevier Ltd. All rights reserved. Please cite this article as: S. Abadal et al., Characterization and modeling of multicast communication in cache-coherent manycore processors, Computers and Electrical Engineering (2016), http://dx.doi.org/10.1016/j.compeleceng.2015.12.018 © <2015>. This manuscript version is made available under the CC-BY-NC-ND 4.0 license http://creativecommons.org/licenses/by-nc-nd/4.0/ 2S. Abadal et al. /Computers and Electrical Engineering 000 (2016) 1–16 ARTICLE IN PRESS JID: CAEE [m3Gsc;January 19, 2016;7:35] Fig. 1. Simulation-based multicast traffic characterization and modeling. two extremes contrast with one common point: most of the scalability issues are tightly coupled to on-chip communication limitations. Due to this, the research focus in multiprocessors has gradually shifted from how cores compute to how cores communicate. The limited scalability of conventional Networks-on-Chip (NoCs) in the presence of global and multicast traffic represents an important constraint to multiprocessor architects and programmers. In shared-memory multiprocessors, cache coherence is the main source of on-chip communication and is generally maintained through directory-based protocols that limit the use of multicast to the invalidation of cache blocks on a shared write. This reduces the injection of multicast traffic, yet at the cost of non-scalable area and energy overheads required to track the sharers of the data. In message passing systems, where communication is explicitly set by the programmer, the use of collective communication routines such as MPI_Bcast or MPI_Allgather is often avoided. This, however, may lower the maximum achievable performance and increase the complexity of parallel programming over message passing even further. Also, the lack of proper multicast support hampers the development of novel programming models and manycore systems that may be multicast-intensive [1]. Given that multicast and broadcast may become a critical factor guiding the design of future manycore CMPs, there is a need to understand how the characteristics of such traffic will scale with the number of cores. Providing accurate multicast traffic characterization in different scenarios would be useful for the early-stage design and evaluation of NoCs in general and multicast mechanisms in particular. However, to the best of the authors’ knowledge, no tools are available for the analysis and modeling of multicast traffic. Different works have characterized or modeled inter-processor communication in moderately-sized shared memory processors (see [2] and references therein), as well as in message passing clusters or supercomputers [3–5]. However, none of them has analyzed how collective communication scales for a wide set of representative applications and architectures at the CMP scale. Also, existing traffic models do not differentiate between unicast and multicast flows and only offer data for a given system size. In this paper, we aim to address these issues in one of the contending programming models (shared memory) by performing a scalability-oriented multicast traffic characterization. Our contribution and methodology is summarized in Fig. 1. We first analyze traces of widely known SPLASH-2 and PARSEC benchmark applications running over a set of existing cache coherence alternatives and for different processor sizes. Since scarce data is available beyond 64 cores, we additionally perform an exploratory extension of the study up to 512 cores whenever possible. Although most of these applications were not build to scale to thousands of processors [6,7], the analysis of its multicast traffic patterns may be still useful to extrapolate the behavior of future scalable shared-memory applications. We later employ the results of the characterization process to (1) propose and evaluate the potential of multicast source prediction, and (2) create a synthetic traffic generator that faithfully models multicast communication and that can be used to generate realistic mixed traffic profiles. With this, we aim to trigger further research in the area of multicast support for manycore systems. The paper is a direct extension of previous work by the authors [2]. The original contribution is augmented as follows: •The analysis now includes results regarding Token Coherence [9], as well as directory-based coherence with imprecise tracking up to 512-core CMPs. •The concept of multicast source prediction is presented and evaluated, placing emphasis on its potential applicability at the NoC design level. •The characterization results are used to implement a multicast traffic model and propose an appropriate synthetic traffic generator. The remainder of this paper is as follows. In Section 2, we provide background on cache coherence and on-chip networking which may further motivate this work and be useful to understand its results. Within the same section, we present related work in NoC traffic analysis and modeling. Section 3 details the characterization methodology used to obtain multicast communication traces and to analyze them. The results of the multicast traffic characterization are presented in Section 4, which are later used in Section 6 to create and validate a multicast traffic model. Section 7 concludes the paper. 2. Background and related work This section seeks to further motivate this work by explaining why it is necessary to analyze unicast and multicast traffic separately (Section 2.1); by providing background on the relation between cache coherence and the characteristics of the Please cite this article as: S. Abadal et al., Characterization and modeling of multicast communication in cache-coherent manycore processors, Computers and Electrical Engineering (2016), http://dx.doi.org/10.1016/j.compeleceng.2015.12.018 S. Abadal et al. / Computers and Electrical Engineering 000 (2016) 1–16 3 ARTICLE IN PRESS JID: CAEE [m3Gsc;January 19, 2016;7:35] multicast traffic, in an attempt to both explain the importance of multicast in shared-memory manycore chips and justify the choice of protocols for analysis (Section 2.2); and by detailing in which aspects this paper differs from related work in multicast traffic analysis and modeling (Section 2.3). 2.1. Serving multicast traffic in NoCs The nature of on-chip interconnects has changed with the number of processors. Buses are feasible for a few cores and, therefore, all communications are inherently multicast (broadcast, in fact). As more cores are integrated within a single chip, though, the interconnect design shifts to the NoC paradigm which is point-to-point in nature. Due to this, NoCs require that multicast packets be replicated and delivered to each of the intended destinations. When dense multicasts and broadcasts go through this process, the performance of the network may suffer a severe drop due to both the delay incurred by the packet replication and the contention associated to these additional messages. The performance loss is generally proportional to the multicast intensity and to the number of destinations per message for a fixed network size. The way packets are treated in conventional NoC has been subject of different studies. The most simple approach is to generate and inject one unicast message per destination. This process is performed at the source network interface (NIF) and, besides being highly power-inefficient, implies a potentially large serialization delay and increases contention around the transmitting node. To alleviate these effects, two in-network multicast support techniques have been explored. On the one hand, path-based multicast [10] relies on the transmission of a number of messages which travel around distinct regions of the chip and are replicated and delivered at the NIF of each of the destinations. On the other hand, tree-based multicast [11] requires the injection of a single message, which is replicated at the intermediate routers following a virtual tree until it reaches the intended destinations. In general, path-based methods are more contention-aware, whereas tree-based methods incur into lower latency. Another way to reduce the impact of multicast communications is to improve the connectivity of the network or by using globally shared media. This can be done with traditional RC wires and buses [13] or with emerging interconnect technologies such as 3D stacking [10], nanophotonics [14] or wireless RF [1]. Regardless of the approach taken, multicast support proposals been tested either using synthetic traffic or within fullsystem simulations, generally assuming a fixed network size. Consequently, their impact upon the network performance is imprecise and their scalability remains largely unknown. In this paper, we aim to set the foundations of effective NoC testing for different network sizes and for a set of representative and realistic cases. 2.2. Cache coherence and multicast traffic The modest performance of conventional NoCs in the presence of dense multicast and broadcast communication has guided the design of shared memory multiprocessors through the years, encouraging the adoption of memory architectures and cache coherence protocols that avoid such type of traffic. As a result, traditional snoopy coherence schemes gave way to directory-based coherence. The former requires an ordered broadcast mechanism; whereas the latter relies in an entity (the directory), which serves as an ordering point and coordinates, through point-to-point messages, the memory transactions among the involved processors. As shown in Fig. 2, these represent the two extremes of cache coherence which trade off architectural cost against interconnect cost. In directory-based coherence, the use of multicast is generally limited to the invalidation of cache blocks on a shared write. To send invalidation messages only to the sharers of that block, the directory needs to provide precise sharer tracking. This implies having one bit per core per each cache block to store that information. Obviously, this scheme does not scale well as storage requirements skyrocket for hundreds of cores. To relax these constraints, one can limit the number of tracked sharers and send broadcasts to invalidate heavily shared blocks. An extreme case of imprecise tracking could be the protocol implemented by AMD HyperTransport [16], which is stateless and directly broadcasts all requests. However, broadcast delivery does not need to be ordered as in snoopy protocols, and responses are still unicast. Other alternatives such Fig. 2. Representation of the cache coherence design space, inspired by the work in [15]. Please cite this article as: S. Abadal et al., Characterization and modeling of multicast communication in cache-coherent manycore processors, Computers and Electrical Engineering (2016), http://dx.doi.org/10.1016/j.compeleceng.2015.12.018 4S. Abadal et al. /Computers and Electrical Engineering 000 (2016) 1–16 ARTICLE IN PRESS JID: CAEE [m3Gsc;January 19, 2016;7:35] as Token Coherence [9] or Destination Set Prediction [15] propose advance techniques to further limit their architectural or communication costs. As mentioned above, the adoption of multicast-demanding methods is hampered by the performance of NoCs and their lack of ordering. Performance penalties are significant already at 64 cores and are expected to dramatically increase with the core count [11], progressively cornering the coherence solution space far from the ideal area. This further motivates the pursue of improved multicast and broadcast support in NoCs, indirectly highlighting the importance of this work as a vehicle for the evaluation of future interconnect fabrics in realistic conditions. 2.3. Related work in traffic characterization and modeling The driving motivation behind traffic characterization is the need for a cost-effective (more than using real traces) but accurate (more than using synthetic traffic) way to evaluate networks. In NoCs, traffic characterization can be performed by analyzing communication traces obtained from full-system simulations. Multiprocessor benchmarks such as SPLASH-2 [6] and PARSEC [7] are commonly used to serve this purpose in shared memory architectures. Other benchmark suites such as NAS could be employed in message passing systems more oriented to supercomputing [3]. Traffic characterization: Shared memory – On-chip traffic generated by shared-memory architectures has been analyzed in a wide variety of settings. Our previous work in [2] contains a comprehensive view of such characterization efforts, including the seminal papers that explore the SPLASH-2 and PARSEC benchmarks [6–8]. Their main downturn, though, is that those works do not distinguish between unicast and multicast in most cases. In fact, the few existing explicit multicast analyses are thus far limited to very specific use cases. Here, instead, we perform a complete characterization of multicast traffic for different representative cases using a unified approach and, for the first time, up to 512 cores to inspect their scalability. Traffic characterization: Message passing – In message passing, simpler steps can be taken to analyze traffic due to the explicit nature of communication. One can obtain a traffic characterization by looking into the types of communication routines used within a given program and projecting them into a given target system. The communication routines can be point-to-point (e.g. MPI_Send) or collective (e.g. MPI_Allgather), which may directly involve multicast and broadcast patterns. By breaking down these operations into messages and aggregating all contributions, metrics such as the multicast intensity or the number of destinations per message could be obtained. In the literature, several works have analyzed the communication primitives of different parallel algorithms. In [4], collective communication patterns and their impact on scalability are analyzed. The communication characteristics of NAS benchmarks and other scientific applications have been also extensively evaluated in [3,5] including information on collective routines. Traffic modeling – As mentioned above, traffic analysis also enables the faithful yet simple modeling of traffic for NoC evaluation. First proposals in this regard consider that three dimensions are enough to model the injection of traffic in NoCs of different benchmarks and architectures [17]:thedegreeoftemporal burstiness resulting from the widely proven self-similarity of NoC traffic, the degree of concentration in the spatial injection distribution,andthehop distribution that models the probability of a packet going through a given number of hops as a function of the NoC topology or how a given application is mapped onto the processor. When modeling traffic using such methods, no distinction is made between unicast and multicast flows, and a unified model is used. This may be acceptable from a behavioral perspective only if the NoC treats each multicast as a set of independent unicast packets. In contrast, both types of traffic may have to be modeled separately and then interleaved in path-based or tree-based multicast schemes, since the network behavior changes with the type of packet. Such heterogeneous approach has been adopted in works like [10], which evaluates a path-based multicast routing method using mixed traffic profiles. Our work builds upon this premise, sustaining that the same model should not be used for both profiles as they may have fundamentally different sources and, therefore, different characteristics. Actually, we aim to improve the quality of existing models by focusing on the less-explored area of multicast characterization. An alternative traffic modeling methodology based upon full-system simulations is presented in [18]. Instead of relying blindly on the temporal and spatial information given by the traces, their approach uses additional information on the type of communication (e.g. purpose) to establish dependencies between messages and to determine its typology. Therefore, this method contemplates the possibility of distinguishing between multicast and the rest of traffic. 3. Methodology The main objective of this work is to perform a multicast traffic analysis targeting NoC scalability. To this end, we employ the methodology summarized in Fig. 1. Basically, we simulate different architectures running different benchmarks in order to obtain a set of communication traces. These traces are then parsed with the aim of extracting a set of statistics, which can further processed and graphically visualized. Such characterization can be later used to model realistic multicast traffic (see Section 6), allowing to evaluate multicast routing schemes in practical scenarios without having to resort again to full-system simulation. It is worth noting that, even though the methodology is used here to study shared-memory systems, a similar workflow could be used to obtain the multicast traffic characteristics of message-passing applications provided that the appropriate tools are available. Please cite this article as: S. Abadal et al., Characterization and modeling of multicast communication in cache-coherent manycore processors, Computers and Electrical Engineering (2016), http://dx.doi.org/10.1016/j.compeleceng.2015.12.018 S. Abadal et al. / Computers and Electrical Engineering 000 (2016) 1–16 5 ARTICLE IN PRESS JID: CAEE [m3Gsc;January 19, 2016;7:35] Table 1 Simulation parameters. Parameter GEM5 Graphite Number of cores 4–64 16–512 Coherence protocols MESI, HT, TokenB MSI Max sharers tracked 2–64 Benchmarks PARSEC, SPLASH-2 L1 cache (I&D) 32+32KB, 2-way, 2 cycles, 64B lines L2 cache 512KB/core, 8-way, 10 cycles, 64B lines NoC topology Fully connected 3.1. Simulation tools To capture traffic in a cache-coherent processor, a simulation of the whole memory hierarchy is required, since L1–L2 interactions are the main determinants of this traffic. Unlike in our previous work, we use two different tools to obtain the communication traces. On the one hand, we use GEM5, a widely used open-source framework for cycle-accurate full-system simulation [19]. Due to its depth and accuracy, GEM5 admits up to 64 cores with up to three levels of cache and, out of the box, includes different cache coherence schemes such as MESI, HyperTransport (HT) or TokenB (an implementation of Token Coherence). On the other hand, we used Graphite [12], an architectural simulator developed by MIT that employs more relaxed functional and performance models, allowing it to simulate large systems (hundreds and even thousands of cores) with reasonable accuracy. Currently, Graphite models MSI coherence with a variety of directory types. In order to obtain custom statistics and traces oriented to multicast traffic analysis, we slightly modified both simulators. In GEM5, the NIF modules now capture the time of arrival, original, destinations, type and size of each multicast packet that is to be injected to the NoC. This way, the results are independent to the multicast routing strategy. NIFs are not modeled as such in Graphite; therefore, we identify points where multicast packets are generated (i.e. invalidations) and register relevant information for each of them. Note that, due to differences in terms of simulated instruction set and internal models, we will not directly compare the output of both schemes. Instead, we will use the results from Graphite to complement the scalability analysis performed with GEM5. The main aim is to provide trends rather than exact figures beyond 64 cores; and, for that purpose, Graphite is an adequate tool despite the loss of accuracy with respect to GEM5. 3.2. Architecture under study Table 1 shows a summary of the simulation parameters used in the study. We assume a common tiled configuration, wherein each tile comprises a core, private instruction and data caches, and a slice of a shared L2 cache. The main variables of the study are the multiprocessor size, which ranges from 4 to 64 tiles in GEM5 and from 16 to 512 tiles in Graphite, and the coherence mechanism. We consider three main different protocols, namely, MSI/MESI, HT and TokenB mentioned in Section 2.2. In the first case, we take the number of maximum sharers per block as a variable in order to study the impact of imprecise tracking on the number of destinations per multicast. From the network perspective, it is important to note that we consider an ideal fully connected NoC where the delay introduced by the network is fixed and independent on the source and destination(s). This approach has been proposed in [18] to minimize the impact of a specific topology or routing algorithm upon the traffic characteristics, which essentially depend on the cache coherence scheme. The resulting characterization is a base upon which models can be later obtained for a wide range of NoC configurations. Additionally, this reduces the complexity of the large-scale simulations and the impact of inaccurate network models in Graphite. PARSEC and SPLASH-2 benchmarks are simulated on their entirety whenever possible, always using input sets large enough to scale the workload up to hundreds of cores. In all cases, statistics and traces are only collected within the region of interest, and results are only shown for those applications that were successfully executed both in GEM5 and Graphite. 4. Characterization results Next, we present the results of the multicast traffic analysis and discuss the possible implications of each explored characteristic on the NoC design. 4.1. Message type and size The architecture of a multiprocessor is the main factor that determines the methods that will trigger the transmission of multicasts. Therefore, the size of these messages can be easily inferred from it and, as further explained in [2], taken into account in the NoC design process. In the MESI coherence protocol, multicast messages are mostly invalidations which are generated upon a write to shared data and sent to the cores that are currently sharing it. Invalidations are short control messages and account for more than Please cite this article as: S. Abadal et al., Characterization and modeling of multicast communication in cache-coherent manycore processors, Computers and Electrical Engineering (2016), http://dx.doi.org/10.1016/j.compeleceng.2015.12.018 6S. Abadal et al. /Computers and Electrical Engineering 000 (2016) 1–16 ARTICLE IN PRESS JID: CAEE [m3Gsc;January 19, 2016;7:35] Fig. 3. Number of multicast messages per 106instructions with MESI, HT and TokenB protocols (GEM5 traces) and number of invalidations per 106instructions with the MSI protocol (Graphite traces) as a function of the processor size. Note the logarithmic scale. 99% of the multicasts in average regardless of the system size (rarely dropping below 96%). In the rest of cases, multicasts are long data responses sent to the main memory and to a set of caches after reading an invalidated block. These replies are less much frequent and their size corresponds to the cache line size plus a given overhead. In the HT protocol, the percentage of multicast long messages is expected be even lower since not only invalidations, but all control requests, are broadcast. Actual results, however, show a similar size distribution than for MESI. Finally, in the case of TokenB, short requests represent the totality of multicast messages. These are used to collect the tokens required to perform a shared write, to request a value from a remote cache, or to avoid starvation situations by means of persistent requests. 4.2. Multicast traffic intensity The number of multicast messages per instruction is a measure of the multicast intensity. It is loosely dependent on the choice of NoC, and basically determined by the multiprocessor architecture, as it defines the methods that generate multicast messages; and the application, which defines the sharing structures and memory intensity. Fig. 3 plots the number of injected multicast messages per one million instructions. It is observed that applications generally become more multicast intensive as the number of cores grows: note the steep increases of particular cases such as lu. In comparative terms, TokenB shows the largest multicast requirements, around one order of magnitude above the requirements of HT coherence and two orders of magnitude larger than MESI. Although such increase is application-dependent and does not follow a common scaling trend, fitting methods on the average values yield a somehow logarithmic relation between multicast intensity and number of cores. The scalability of the communication-to-computation ratio, which is generally a function of the square root of the number of processors [6],mayexplainsuchtendency. To provide hints on the evolution of this metric beyond 64 cores in directory-based settings, we used Graphite to obtain the number of multicast invalidations per instruction in MSI. The bottom plot of Fig. 3 shows that such metric keeps increasing beyond 64 cores and, even though results are not directly comparable with those obtained with GEM5 due to differences in the instruction set and protocol, this confirms the increasing importance of multicast in manycore processors. 4.3. Number of destinations The number of destinations per message is a metric that mainly depends upon the multiprocessor architecture. In cases such as HT or TokenB, the coherence protocol issues a broadcast in most of the transactions. Given that a very large percentage of the multicast messages are due to coherence, the average number of destinations is around N−1inaN-core system in those cases and regardless of the target application. In invalidation-based protocols such as MSI/MESI, the sharing structures of each specific application play an important role in determining the number of destinations per multicast message, as it defines the number of sharers to invalidate in each shared write. Left plot in Fig. 4 represents the number of destinations per multicast message assuming perfect tracking. It can be observed that the number of destinations increases linearly with the system size, and that some 64-threaded applications involve more than 16 destinations per multicast in average. Another aspect that defines the number of destinations is the maximum number of sharers that the directory can precisely track down. To evaluate this and to have a reference on how multicast traffic will scale beyond 64 cores, we used Graphite to obtain the number sharers per invalidation assuming different directory capacities. Results are shown in the right plot of Fig. 4 and show that the number of destinations not only keeps increasing with the system size, but also significantly grows as the number of tracked sharers per cache block decreases. This is because an increasing number of shared variables will have to be invalidated through broadcast. Please cite this article as: S. Abadal et al., Characterization and modeling of multicast communication in cache-coherent manycore processors, Computers and Electrical Engineering (2016), http://dx.doi.org/10.1016/j.compeleceng.2015.12.018 S. Abadal et al. / Computers and Electrical Engineering 000 (2016) 1–16 7 ARTICLE IN PRESS JID: CAEE [m3Gsc;January 19, 2016;7:35] Fig. 4. Number of destinations per multicast message in directory-based coherence. Left plot shows the minimum, average, and maximum of the perapplication average assuming precise tracking up to 64 cores, whereas the right plot projects the number of sharers per invalidation with imprecise tracking beyond 64 cores. (a) MESI (b) HT (c) TokenB Fig. 5. Percentage of delivered flits due to multicast communication. Labels indicate the percentage of communication transactions that are multicast. The importance of this metric lies within its impact on the overall bandwidth requirements. While the number of multicast transactions increases with the number of cores, they only represent a fraction of all the communication transactions (see labels in Fig. 5). Less than 0.5% of all the transactions are multicast in MESI; in HT, the ratio is higher but it decreases sharply with the number of cores (from 12% to 1.5%); finally, broadcasts increase up to around 24% in TokenB. In contrast, as shown in Fig. 5, the amount of delivered (ejected) flits belonging to multicast transactions consistently increases due to the in-network replication of each multicast message. This metric grows above 2% in MESI with perfect tracking, and would exceed 4% and 7% with 8 and 3 maximum sharers, respectively. In multicast-intensive schemes, the percentage of ejected flits due to multicast dramatically increases up to 50% in HT and goes beyond 85% in TokenB. This fact further encourages the employment of shared-medium NoCs, if feasible, to efficiently serve multicast traffic. 4.4. Spatial distribution An interesting aspect to investigate is the spatial distribution of the multicast traffic injection. Results in this regard may be useful for the identification of potential hotspots and could be employed to optimize the underlying NoC by, for instance, applying priority policies. To evaluate the spatial distribution, we calculated the coefficient of variation (CoV) as cv=σ/μ, where σand μare the standard deviation and mean of the multicasts injected by each node. We chose this metric in order to measure dispersion while filtering out the dependence of the standard deviation with the overall number of injected messages. A higher CoV means a higher concentration of the multicast injection over given cores. Fig. 6 plots the CoV of each application in the target systems, as well as the average over all the applications. The CoV grows steadily with the number of cores in an application-dependent manner: results have been in fact sorted in descending order based on the absolute growth of the imbalance. This implies that applications that appear first may yield more pronounced imbalance in manycore processors and would especially benefit from NoC designs that efficiently handle hotspot situations. From the average behavior, it is observed that MESI shows a higher imbalance in general terms. This is because applications heavily based on producer–consumer patterns rely on a few producers, which are the main sources of multicast traffic in MESI. The number of producers does not necessarily scale with the system size, aggravating the hotspot behavior. Such assumptions are not valid in HT or TokenB, since broadcast requests come from a wider base of cores. In such cases, the spatial distribution provides insight about the general memory activity of different processors: cores that frequently access to shared data will generate more broadcasts than those that do not. 4.5. Temporal distribution In order to accurately model any kind of traffic, it is crucial to have a complete knowledge on its temporal distribution. As shown in Section 2, related works have shown that on-chip traffic is self-similar given the long-range dependency between arrivals, i.e. the generation of new messages is dependent on the delivery of prior messages. This creates memory effects Please cite this article as: S. Abadal et al., Characterization and modeling of multicast communication in cache-coherent manycore processors, Computers and Electrical Engineering (2016), http://dx.doi.org/10.1016/j.compeleceng.2015.12.018 8S. Abadal et al. /Computers and Electrical Engineering 000 (2016) 1–16 ARTICLE IN PRESS JID: CAEE [m3Gsc;January 19, 2016;7:35] (a) MESI (b) HT (c) TokenB (d) Averages Fig. 6. Coefficient of Variation (CoV) of the spatial injection distribution of multicasts. Applications are sorted in descending order based on the difference between CoV(256)/CoV(64) and CoV(4). Table 2 Hurst exponents (geometric mean). Number of cores 4 16 64 MESI 0.8955 0.9152 0.9433 HT 0.9140 0.9254 0.9450 TokenB 0.8350 0.8788 0.9456 and implies a given burstiness at the transmitting end, property that is widely known to have a negative impact on network performance. Provided that multicast traffic is a subset of the on-chip traffic, it is reasonable to deduce that multicasts will also exhibit self-similarity albeit not necessarily with the same intensity. In order to confirm this fact, we calculated the Hurst exponent H(0.5 <H≤1) applying the RS plot method [17] on the temporal information of the full-system traces. In light of the results of Table 2 and given that an Hvalue close to 1 denotes strong self-similarity, it can be concluded that multicast traffic is self-similar and that burstiness generally increases with the core count. Also, note that the NoC has an impact upon the value of H, although similar results are expected for most NoC implementations since burstiness stems from memory effects inherent to the application level. For instance, our previous work assumes a mesh NoC and yields slightly lower Hurst exponents in almost all cases. We refer the reader to [2] for more details. 4.6. Spatiotemporal correlation Spatial and temporal analyses performed above yield two independent characterizations of the injection process: first, on the generic probability of any node transmitting and, second, on the probability of any node transmitting shortly after any other node. The potential correlation between both aspects could provide further insight on, for instance, how easy is to determine that a given node X will transmit shortly after a transmission of another given node Y. While correlation does not necessarily imply causality between both transmissions (the message from Y may not be triggered by the message from X), it is a highly valuable information when designing predictive strategies for NoC. We refer the reader to Section 5 for more details on NoC-related prediction. To evaluate spatiotemporal correlation, we consider transmissions separated less than a given time period τ.IfX=Y, we found a potential source of autocorrelation; whereas if X= Y,wearefacingacaseofcrosscorrelation. The choice of τ depends on several factors as further explained in [2]. Two interesting correlation metrics can be obtained from this analysis. First, we evaluate the degree of correlation of multicast transmissions. We obtain these values by marking the second transmitter of a correlated pair and, at the end of the execution, counting the number of marked transmissions. In MESI, results beyond 64 cores are approximate and given as a scalability reference. Fig. 7 shows the correlation distribution of multicast transmissions assuming two different τvalues. It is observed that the percentage of crosscorrelated transmissions grows with the number of cores, especially in the case of MESI and TokenB, and that autocorrelation levels are generally low. Note that these figures represent the geometric mean of all the applications and, therefore, the correlation percentages may take higher/lower values: radix and canneal, for instance, show crosscorrelation levels above the average; bodytrack yields lower correlation. Since a high percentage of correlated traffic could imply not only subpar NoC performance, but also a great Please cite this article as: S. Abadal et al., Characterization and modeling of multicast communication in cache-coherent manycore processors, Computers and Electrical Engineering (2016), http://dx.doi.org/10.1016/j.compeleceng.2015.12.018 S. Abadal et al. / Computers and Electrical Engineering 000 (2016) 1–16 9 ARTICLE IN PRESS JID: CAEE [m3Gsc;January 19, 2016;7:35] (a) MESI, τ=10TCLK (b) HT, τ=10TCLK (c) TokenB, τ=10TCLK (d) MESI, τ=50TCLK (e) HT, τ=50TCLK (f) TokenB, τ=50TCLK Fig. 7. Degree of correlation of multicast transmissions with different τvalues. (a) MESI, τ=10·TCLK (b) HT, τ=10·TCLK (c) TokenB, τ=10·TCLK (d) MESI, τ=50·TCLK (e) HT, τ=50·TCLK (f) TokenB, τ=50·TCLK Fig. 8. Factor of predictability and percentage of crosscorrelation with different τvalues. opportunity to improve it by means of predictive strategies, results suggest that such mechanisms will gain importance as the number of cores increases. Finally, it is observed that τimpacts upon the percentage of correlated transmissions, but not much upon its scalability with respect to multiprocessor size. Another interesting aspect to investigate is the strength of the crosscorrelation between any two pairs of nodes, in an attempt to quantify the predictability of the source of correlated transmissions. To this end, we define the predictability of each node X as: predX=maxiNXi iNXi i= X,(1) where NXY is the number of transmissions of Y correlated to X. This metric captures how predictable are the transmissions that happen shortly after a transmission by X, since a low value means that crosscorrelation is spread over a set of cores, therefore complicating the prediction (0 if transmissions are not correlated). A high value indicates a strong correlation with few cores (1 if correlation is deterministic). The factor of predictability between any two pairs is calculated as the weighted average of the predictability of each core: pred =i=XNXi ij=iNij predi=imaxj=iNij ij=iNij .(2) Fig. 8 shows the factors of predictability and correlation assuming two different τvalues. Results beyond 64 cores are approximate and given as a scalability reference. It is observed that both the crosscorrelation and predictability levels increase with the number of cores in MESI and HT. The results in these cases support the hypothesis that predictive strategies Please cite this article as: S. Abadal et al., Characterization and modeling of multicast communication in cache-coherent manycore processors, Computers and Electrical Engineering (2016), http://dx.doi.org/10.1016/j.compeleceng.2015.12.018 16 S. Abadal et al. /Computers and Electrical Engineering 000 (2016) 1–16 ARTICLE IN PRESS JID: CAEE [m3Gsc;January 19, 2016;7:35] Raúl Martínez is a consulting member of Technical Staff at Oracle Labs. Before that, he worked at the INTEL Barcelona Research Center. His research interests include high-performance interconnects, hardware/software co-design, dynamic binary optimizations, and network on chips. Martínez has a PhD (2007) from the University of Castilla-La Mancha. Josep Solé-Pareta is a full professor at the Computer Architecture Department at the UPC. He is co-founder of the CCABA and N3Cat groups also at UPC. His current research interests are in nanonetworking communications, traffic monitoring and analysis, high speed and optical networking, and energy efficient transport networks. Solé-Pareta has a PhD in computer science (1991) from the UPC. Eduard Alarcón is an associate professor at the N3Cat at UPC. He has co-authored more than 250 scientific publications, and has been involved in different R&D projects within his research interests including nanocommunications, energy harvesting, and wireless energy transfer. Alarcón has a PhD in electrical engineering (2000) from the UPC. Albert Cabellos-Aparicio is an associate professor at the N3Cat at UPC. He has given more than 10 invited talks and co-authored more than 70 papers within his research interests including graphene technology, nanocommunications, and software-defined networking. Cabellos-Aparicio has a PhD in computer science engineering (2008) from the UPC. Please cite this article as: S. Abadal et al., Characterization and modeling of multicast communication in cache-coherent manycore processors, Computers and Electrical Engineering (2016), http://dx.doi.org/10.1016/j.compeleceng.2015.12.018