09.08.2013 Views

Design and Verification of Adaptive Cache Coherence Protocols ...

Design and Verification of Adaptive Cache Coherence Protocols ...

Design and Verification of Adaptive Cache Coherence Protocols ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Composite Rule Simulating Rules<br />

CP1 P22<br />

CVC1 VC4 + VC2<br />

CVC2 VC5 + VC3<br />

CVC3 VC6 + VC3<br />

CMC1 MC2 + MC9<br />

CMC2 MC3 + MC10<br />

CMC3 MC4 + MC11<br />

CMC4 MC5 + MC9<br />

CMC5 MC6 + MC9<br />

CMC6 MC15 + MC9<br />

CMC7 MC23 + MC16<br />

CMC8 MC24 + MC17<br />

CMC9 MC25 + MC18<br />

CMC10 MC26 + MC19<br />

CMC11 MC27 + MC18<br />

CMC12 MC28 + MC18<br />

CMC13 MC29 + MC20<br />

CMC14 MC30 + MC21<br />

CMC15 MC31 + MC22<br />

CVM1 VM1 + VM2<br />

CVM2 VM4 + VM5<br />

CMM1 MM21 + MM11<br />

CMM2 MM22 + MM12<br />

CMM3 MM23 + MM11<br />

CMM4 MM24 + MM11<br />

CMM5 MM24 + MM12<br />

CMM6 MM26 + MM21<br />

CMM7 MM27 + MM21<br />

CMM8 MM28 + MM22<br />

CMM9 MM29 + MM21<br />

CMM10 MM30 + MM21<br />

CMM11 MM31 + MM22<br />

CMM12 MM33 + VM2<br />

Figure 7.18: Simulation <strong>of</strong> Composite Rules <strong>of</strong> <strong>Cache</strong>t<br />

One reasonable strategy is to always supply a WP copy except when the directory is full, in<br />

which case a Base copy is supplied. Meanwhile, the memory can send a heuristic downgrade<br />

request message to a cache that the memory choosesasapotential victim. The intention <strong>of</strong> the<br />

heuristic message is to suggest that some cache cell be downgraded from WP to Base so that<br />

the resumed directory space can be used for other WP copies.<br />

It is worth emphasizing that the heuristic request message is just a hint to the cache<br />

the cache may or may not satisfy the request. When the cache receives the heuristic request<br />

message, it can invoke the appropriate voluntary rule to downgrade the cache cell, or ignore the<br />

heuristic message if it intends to retain the WP cell for later reference. This simple adaptivity<br />

will allow an address to be resident in more caches than the number <strong>of</strong> cache identi er slots in<br />

the directory.<br />

Since <strong>Cache</strong>t implements the CRF memory model, it is automatically a cache coherence<br />

protocol that implements all the memory models whose programs can be translated into CRF<br />

programs. The translation can be performed statically by the compiler or dynamically by<br />

the protocol engines. This implies that di erent memory models can be applied in di erent<br />

158

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!