Giter VIP home page Giter VIP logo

sonnect's Introduction

SoConnect

SoConnect (SC) is a benchmark-oriented framework for fastly developping DPDK application, which integrate DOCA and CUDA support, one can use this framework for rapidly developping your own benchmark that can be tested on either x86 server or ARM SoC.

Preparation

  1. Install DPDK and setup DPDK environment (e.g. hugepage, etc.)

  2. (Optional) Install and setup DOCA and CUDA environment

  3. Install other dependencies

sudo apt-get install libgmp3-dev
python3 -m pip install meson
python3 -m pip install ninja

Usage

  1. Change the app within meson.build to build your desired application, full application list can be found under src/apps/.app_list;
  1. Run the following command to build your application
meson build && cd build
ninja
  1. Change the configurations under conf, these configuration files include:
File Description
dpdk.conf Configuration of DPDK including cores, port and queue, etc.
doca.conf Configuration of DOCA (if enabled)
app/*.conf Configuration of each applications
  1. To execute the application binary, run (p.s. assume echo_client was built):
sudo ./echo_client

Develop your own benchmark

Assume your new benchmark application's name is newapp:

  1. Add Configuration File: add custom configuration file newapp.conf to conf/apps

  2. Add Headers:

    • Duplicate include/apps/sc_template under include/apps as include/apps/sc_newapp;
    • Change filename of include/apps/sc_newapp/template.hpp to include/apps/sc_newapp/newapp.hpp;
    • Change the macro _SC_TEMPLATE_H_ within include/apps/sc_newapp/newapp.hpp to _SC_NEWAPP_;
  3. Add Headers:

    • Duplicate src/apps/sc_template under src/apps as src/apps/sc_newapp;
    • Change filename of src/apps/sc_newapp/template.cpp to include/apps/sc_newapp/newapp.cpp;
    • Change the macro include/apps/sc_newapp/newapp.cpp to include sc_newapp/newapp.h instead of sc_template/template.h;
  4. Add newapp into src/apps/.app_list;

    TODO: Develop a automatical script to finish above 1~4's logic

  5. Start develop your benchmark's logic;

  6. Change the selected application inside meson.build to build your benchmark

sonnect's People

Contributors

zobinhuang avatar cxx-bobo 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.