Git Product home page Git Product logo

lagopus-docker's Introduction

Lagopus on Docker

Dockerfile for Lagopus Switch

http://www.lagopus.org/

https://hub.docker.com/r/falcon8823/lagopus-docker/

How to run Lagopus on Docker?

  • Allocate hugetlbfs to each container on the host.
    • And mount hugetlbfs to each container with -v Docker option.
  • Set the -m EAL option to avoid allocating entire memory.
    • For sharing hugepages with each DPDK apps.
  • If you use a specific PCI device, set the -w or -b EAL option.
    • -w: Whitelist
    • -b: Blacklist
  • If you use igb_uio driver, mount the /dev/uio* with -v Docker option.
    • And --priviledged Docker option is required.

Example

  • Use 2 PCI devices (with ibg_uio driver) below
    • 0000:03:00.0
    • 0000:03:00.1
docker run -it \
  -v /dev/uio0:/dev/uio0 \
  -v /dev/uio1:/dev/uio1 \
  -v /mnt/huge_c0:/mnt/huge_c0 \
  falcon8823/lagopus-docker \
  lagopus -d -- -c 0xf -n 2 -m 1024 -w 03:00.0 -w 03:00.1

Tips: Multi NUMA node environment

If you use multi NUMA node environment, you suffers from this error.

EAL: WARNING: Master core has no memory on local socket!

It may be caused by Docker environment. To avoid this, set the --cpuset-mems=0 Docker option.

Tips: Container networking with virtio_user driver

Please refer to following links.

lagopus-docker's People

Contributors

falcon8823 avatar

Stargazers

Yoshihiro Nakajima  avatar

Watchers

James Cloos 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.