Giter Club home page Giter Club logo

-a-pull-based-cache-invalidation's Introduction

-A-Pull-based-Cache-Invalidation

Introduction

To simulate a simple IR-based cache invalidation model using CSIM.

Getting Started

Prerequisites

System Parameters

Number of clients 100
Database size 1000 items
Data item size 1024 bytes
Broadcast interval (L) 20 seconds
Broadcast bandwidth 10000 bits/s
Cache size 50 to 300 items
Mean query generate time (T_query) 25s to 300s
Mean update arrival time (T_update) 20s to 10000s
Hot data items 1 to 50
Cold data items remainder of DB
Hot data access probability 0.8
Hot data update probability 0.33

Simulation Model and Functions

Main Functions Utility Functions
Server void update_data_items() int is_duplicated()
void invalidation_report() int get_list_size()
void receive_request() void clear_list()
int get_list_size()
Client void generate_query() int is_cached()
void receive_ir() lnt get_oldest_valid()
int is_cache_full()
int get_oldest_invalid()

Compilation & Run

csim64.gcc project.c -o project
./project

To show the simulation is running correctly in the below section, I simplify the parameters according to:

  • Number of clients is 3
  • Mean update arrival time (T_update) is 20s
  • Mean query generate time (T_query) is 100s
  • Simulation time is 50000
  • Cache size is 100 items

Run Simulation

  • Specify T_update and T_query.
Enter Mean update arrival time (T_update) in seconds:
20
You've entered T_update: 20
Enter Mean query generate time (T_query) in seconds:
100
You've entered T_query: 100

References

-a-pull-based-cache-invalidation's People

Contributors

himaja930 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.