GithubHelp home page GithubHelp logo

berghetti / concord Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dslab-epfl/concord

0.0 0.0 0.0 38 KB

License: MIT License

Shell 7.97% C++ 24.99% Python 2.64% C 56.70% Makefile 6.85% CMake 0.85%

concord's Introduction

Concord: An efficient runtime for microsecond-scale applications

This repository contains the source code for Concord, which was published at SOSP'23. In particular, it contains a) the two LLVM passes used by Concord to automatically instrument applications and b) the implementation of the Concord runtime on the Shinjuku dataplane OS.

Organization

Subdirectories have their own README files.

  • benchmarks - The different applications we tested Concord on and overhead measurements.
  • concord-shinjuku - The Concord runtime integrated into the Shinjuku dataplane OS.
  • figures - Scripts to generate the figures in the paper
  • scripts - General scripts to run concord
  • schedsim - Our queueing simulator
  • src - LLVM passes and the Concord runtime library

Getting started

Clone the repository, please make sure you have cloned via ssh, otherwise the submodules will not be cloned.

git clone --recurse-submodules [email protected]:dslab-epfl/concord.git
cd concord

Then setup Concord, this script will build concord-cache-line, concord-rdtsc pass, and install the required dependencies.

./setup.sh

Simple Examples

First run the basic examples to see cache-line and rdtsc based instrumentation in action.

cd benchmarks/basics
make

See the instrumentation outputs:

> Module Name: <stdin>
> Enable instrumentation: 1
> Modified subloops: 200
> Disable bounded loops: 0
Instrumenting loop in function: hello
Instrumenting loop in function: main
> This is declaration, skip atoi
> This is declaration, skip puts
> Unique loops: 0

After run the programs, first run cache-line based instrumentation:

./hello.out

# Program Modified !! 
# Hello, world!

Then run rdtsc based instrumentation, it will print the number of cycles between two concord_rdtsc_func calls.

./hello_rdtsc.out
# 16070
# 16054
# 16060
# 16056
# 16060
# 16056
# 16060
# 16056
# 16060
# ...

To run more complex examples, including the entire runtime on Shinjuku, please refer to the README within the concord-shinjuku directory.

concord's People

Contributors

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