Giter Club home page Giter Club logo

ix's Introduction

Overview

IX a protected dataplane operating system project from Stanford and EPFL. It provides event-driven applications with:

  • low-latency (including at the tail)
  • high-throughput
  • efficient use of resources (to support workload consolidation and energy proportionality)

IX is licensed under an MIT-style license. See LICENSE.

Requirements

IX requires Intel DPDK and a supported Intel NIC:

  • Intel 82599
  • Intel X520
  • Intel X540

For more details, check the requirements page

Setup Instructions

There is currently no binary distribution of IX. You will therefore have to compile it from source. Additionally, you will need to fetch and compile the source dependencies:

  1. fetch the dependencies:

    git submodule update --init
    
  2. build the dependecies:

    sudo chmod +r /boot/System.map-`uname -r`
    make -sj64 -C deps/dune
    make -sj64 -C deps/pcidma
    make -sj64 -C deps/dpdk config T=x86_64-native-linuxapp-gcc
    make -sj64 -C deps/dpdk
    
    
  3. build IX:

    sudo apt-get install libconfig-dev libnuma-dev
    make -sj64
    

The resulting executable files are cp/ixcp.py for the IX control plane and dp/ix for the IX dataplane kernel.

  1. Set up the environment:

    cp ix.conf.sample ix.conf
    # modify at least host_addr, gateway_addr, devices, and cpu
    sudo sh -c 'for i in /sys/devices/system/node/node*/hugepages/hugepages-2048kB/nr_hugepages; do echo 4096 > $i; done'
    sudo insmod deps/dune/kern/dune.ko
    sudo insmod deps/pcidma/pcidma.ko
    sudo modprobe uio
    sudo insmod deps/dpdk/build/kmod/igb_uio.ko
    sudo ifdown INTERFACE
    sudo deps/dpdk/tools/dpdk_nic_bind.py -b igb_uio PCI_ADDRESS
    
  2. run the IX TCP echo server and check that it works. Make sure that at least the "Device" field in ix.conf matches your network card PCI bus address (try lspci | grep -i eth and look for the virtual adapter):

sudo ./dp/ix -- ./apps/echoserver 4

Then, try from another Linux host:

echo 123 | nc -vv <IP> <PORT>

You should see the following output:

Connection to <IP> <PORT> port [tcp/*] succeeded!
123

ix's People

Contributors

bernardgut avatar kozyraki avatar marioskogias avatar mihaelamia avatar nderjung avatar prekageo 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.