Giter Site home page Giter Site logo

waynezmc / 1update Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ease-lab/1update

0.0 1.0 0.0 452 KB

This repository contains the TLA+ specification of the 1-Update cache coherence protocol that appeared in PACT'21.

License: Apache License 2.0

TLA 100.00%

1update's Introduction

1-Update Protocol

1-Update is a new cache coherence protocol that is based on traditional invalidate protocols and also adopts the advantages of updating protocols. It tracks the number of writes to a shared block, and sends at most one update to the reader cores after the observed number of writes. A brief description follows and more details can be found in the PACT'21 paper.

This is the publicly available artifact repository supporting 1-Update, which contains the formal protocol specification. The specification is written in TLA+ and can be used to verify 1-Update's correctness via model-checking.

TODO

File Structure

  • The 1-Update specification is decoupled into two modules folder for simplicity. OneUpdate.tla and OneUpdateMeta.tla.

Model checking

To model check 1-Update, you need to download and install the TLA+ Toolbox so that you can run the TLC model checker using the TLA+ specification. We next list the steps for model checking.

  • Prerequisites: Any OS with Java 1.8 or later, to accommodate the TLA+ Toolbox.
  • Download and install the TLA+ Toolbox.
  • Launch the TLA+ Toolbox.
  • Create a spec: File>Open Spec>Add New Spec...; Browse and use 1Update/OneUpdate.tla as root module to finish.
  • Create a new Model: Navigate to TLC Model Checker>New model...; and create a model with the name "one-update-model".
  • Setup Behavior: In Model Overview tab of the model, and under the "What is the behavior spec?" section, select "Temporal formula" and write "Spec".
  • Setup Constants: Then specify the values of declared constants (under "What is the model?" section). You may use low values for constants to check correctness without exploding the state space. An example configuration would be four cores, maximum writes of seven and an update prediction of 3. To accomplish that, you would need to click on each constant and select the "ordinary assignment" option. Then fill the box for write related constants (i.e., MAX_WRITES and WRITE_TO_UPDATE) with the desired number (e.g., with "7" and "5") and the core related constant (i.e., CORES) with a set of cores (e.g., "{1,2,3,4}" -- for four cores). Finally, to model check the variant of thepaper where the acknowledgments are gathered by the directory instead of the writer set the ENABLE_DIR_ACKS to TRUE.

License

This work is freely distributed under the Apache 2.0 License.

1update's People

Contributors

akatsarakis avatar waynezmc avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.