Back to search

Rice University

Cache coherence using local knowledge

Abstract

dc:description.abstract

Hiding memory latency is critical in modern machines. Typically, machines have used cache and addressed the ensuing cache coherence problem with hardware or VM-based strategies that rely on global inter-cache communication. However, global communication limits scalability. "Local knowledge" coherence strategies, which use compile-time information to avoid run-time global communication, offer better scalability, but suffer additional cache misses. We develop a framework for understanding the relation of coherence strategies, previous and newly proposed. Within this framework, it is possible to define, independent of implementation considerations, an "ideal" local strategy with respect to cache hit rate. No local strategy could ever do better. For Fortran programs with readily analyzable subscripts, ideal local strategies achieve the same hit rates as global strategies. We develop three new local coherence strategies, CTV, TS1, and TS$\sp\prime$, designed to exploit minimal, aggressive, and reasonable hardware support, respectively. CTV is suitable for machines with no hardware assistance for cache coherence except the bare minimum of an exposed invalidate instruction. TS1 implements the abstract theorems of ideal local coherence as a concrete algorithm. Though the implementation is probably too expensive for a real implementation, TS1 is a vehicle for studying the limits of local coherence. TS$\sp\prime$ treats coherence over array sections as a graph coloring problem. So long as there are sufficient colors (realized as bits per cache line), TS$\sp\prime$ is an ideal local strategy. We found that four colors are adequate for many programs. When more colors are needed, TS$\sp\prime$ degrades gracefully. Its execution overheads are negligible and its hardware implementation costs moderate. Our data shows that TS$\sp\prime$ has better hit rates than the best previous local strategy, time-stamping, for nearly all programs, and thus better expected performance. Our data also shows that TS$\sp\prime$ achieves hit rates equal to global strategies for analyzable programs, and nearly so for partially analyzable programs. We indirectly compared the performance of TS$\sp\prime$ and a particular VM-style global strategy. TS$\sp\prime$ has better expected performance on our test suite. For machines without global coherence hardware, local strategies are an effective approach for an important class of programs.

Degree

thesis:*
Name thesis:degree_name
Doctor of Philosophy
Level thesis:degree_level
Doctoral
Discipline thesis:degree_discipline
Engineering
Department thesis:degree_department
Computer Science
Grantor
Rice University
Year dc:date.issued
1997

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Darnell, Ervan

Subjects

dc:subject × 1

Rights

dc:rights
Statement dc:rights
  • Copyright is held by the author, unless otherwise indicated. Permission to reuse, publish, or reproduce the work beyond the bounds of fair use or other exemptions to copyright law must be obtained from the copyright holder.
Language dc:language.iso
eng

Identifiers

dc:identifier.*
Dc Identifier Callnumber
THESIS COMP.SCI. 1997 DARNELL
Dc Identifier Citation
Darnell, Ervan. "Cache coherence using local knowledge." (1997) Diss., Rice University. <a href="https://hdl.handle.net/1911/19146">https://hdl.handle.net/1911/19146</a>.

Chain of custody

source
Harvested from
Rice University
Base URL
repository.rice.edu/server/oai/request
Last updated
2026-11-19
Source record
OAI-PMH GetRecord
citation

Darnell, Ervan. Cache coherence using local knowledge. Doctoral thesis, Rice University, 1997. https://hdl.handle.net/1911/19146