Electrical Engineering
      and Computer Sciences

Electrical Engineering and Computer Sciences

COLLEGE OF ENGINEERING

UC Berkeley

A Characterization of Sharing In Parallel Programs And Its Applicability to Coherency Protocol Evaluation

Susan J. Eggers and Randy H. Katz

EECS Department
University of California, Berkeley
Technical Report No. UCB/CSD-87-387
December 1987

http://www.eecs.berkeley.edu/Pubs/TechRpts/1987/CSD-87-387.pdf

In this paper we use trace-driven simulation to analyze the memory reference patterns of write shared data in several parallel applications. We first develop a characterization of write sharing (based on the notion of a write run), and then examine the traces, using metrics derived from the characterization. The results indicate that the amount of write sharing in all programs is small; and that it is characterized by short sequences of per processor references, with little contention for either data or locks.

We determine to what extent this analysis can be used to predict the coherency overhead of write-invalidate and write-broadcast protocols. We develop a simple model of write sharing from the write run characterization. By applying the results of the sharing analysis to the model, weighted by machine-specific cycle costs for carrying out coherency-related bus operations, we can approximate relative protocol performance. We compare these results to those from accurate architectural simulations. The model is a good predictor of protocol performance when the unit of the coherency operations mathces that in the sharing analysis. This is the case for the write-broadcast protocols, in which one word is broadcast for each write to shared data. However, in Berkeley Ownership, a write-invalidate protocol, the unit of coherency is an entire cache block. When the block size is large, performance for this protocol is quite sensitive to the memory reference patterns within the block.


BibTeX citation:

@techreport{Eggers:CSD-87-387,
    Author = {Eggers, Susan J. and Katz, Randy H.},
    Title = {A Characterization of Sharing In Parallel Programs And Its Applicability to Coherency Protocol Evaluation},
    Institution = {EECS Department, University of California, Berkeley},
    Year = {1987},
    Month = {Dec},
    URL = {http://www.eecs.berkeley.edu/Pubs/TechRpts/1987/5290.html},
    Number = {UCB/CSD-87-387},
    Abstract = {In this paper we use trace-driven simulation to analyze the memory reference patterns of write shared data in several parallel applications. We first develop a characterization of write sharing (based on the notion of a write run), and then examine the traces, using metrics derived from the characterization. The results indicate that the amount of write sharing in all programs is small; and that it is characterized by short sequences of per processor references, with little contention for either data or locks.   <p>We determine to what extent this analysis can be used to predict the coherency overhead of write-invalidate and write-broadcast protocols. We develop a simple model of write sharing from the write run characterization. By applying the results of the sharing analysis to the model, weighted by machine-specific cycle costs for carrying out coherency-related bus operations, we can approximate relative protocol performance. We compare these results to those from accurate architectural simulations. The model is a good predictor of protocol performance when the unit of the coherency operations mathces that in the sharing analysis. This is the case for the write-broadcast protocols, in which one word is broadcast for each write to shared data. However, in Berkeley Ownership, a write-invalidate protocol, the unit of coherency is an entire cache block. When the block size is large, performance for this protocol is quite sensitive to the memory reference patterns within the block.}
}

EndNote citation:

%0 Report
%A Eggers, Susan J.
%A Katz, Randy H.
%T A Characterization of Sharing In Parallel Programs And Its Applicability to Coherency Protocol Evaluation
%I EECS Department, University of California, Berkeley
%D 1987
%@ UCB/CSD-87-387
%U http://www.eecs.berkeley.edu/Pubs/TechRpts/1987/5290.html
%F Eggers:CSD-87-387