26.06.2015 Views

Computer Architecture and Organization Chapter 7 – Memory - IIUSA

Computer Architecture and Organization Chapter 7 – Memory - IIUSA

Computer Architecture and Organization Chapter 7 – Memory - IIUSA

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.

7-38 <strong>Chapter</strong> 7 - <strong>Memory</strong><br />

Cache Coherency<br />

• The goal of cache coherence is to ensure that every cache sees the<br />

same value for a referenced location, which means making sure that<br />

any shared oper<strong>and</strong> that is changed is updated throughout the system.<br />

• This brings us to the issue of false sharing, which reduces cache<br />

performance when two oper<strong>and</strong>s that are not shared between<br />

processes share the same cache line. The situation is shown below.<br />

The problem is that each process will invalidate the other’s cache line<br />

when writing data without a real need, unless the compiler prevents this.<br />

<strong>Computer</strong> <strong>Architecture</strong> <strong>and</strong> <strong>Organization</strong> by M. Murdocca <strong>and</strong> V. Heuring<br />

© 2007 M. Murdocca <strong>and</strong> V. Heuring

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

Saved successfully!

Ooh no, something went wrong!