Software Solutions CACHE COHERENCE and the MESI PROTOCOL

Source: Internet
Author: User

Computer ORGANIZATION and ARCHITECTURE designing for performance ninth EDITION

Software cache coherence schemes attempt to avoid the need for additional hard-
Ware circuitry and logic by relying on the compiler and operating system to deal with
The problem. Software approaches is attractive because the overhead of detecting
Potential problems is transferred from run time to compile time, and the design
Complexity is transferred from hardware to software. On the other hand, compile-
Time software approaches generally must make conservative decisions, leading to
Inefficient cache utilization.
compiler-based coherence mechanisms perform an in the code to
Determine which data items may become unsafe for caching, and they mark those
Items accordingly. The operating system or hardware then prevents noncacheable
Items from being cached.
The simplest approach is to prevent any shared data variables from being
Cached. This is too conservative, because a shared data structure could be exclusively
Used during some periods and May is effectively read-only during other periods. It
is only during periods if at least one process could update the variable and at least
One other process, may access the variable, that cache coherence are an issue.

More efficient approaches analyze the code to determine safe periods for
Shared variables. The compiler then inserts instructions into the generated code
To enforce cache coherence during the critical periods. A Number of techniques
The been developed for performing, the analysis, and for enforcing the results; See
[LILJ93] and [STEN90] for surveys.

Software Solutions CACHE COHERENCE and the MESI PROTOCOL

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.