Giter VIP home page Giter VIP logo

sdnware's Introduction

预测代码

修改rdma-core中的libibverbs.so的源码/rdma-core/providers/mlx5/qp.c,修改的函数为_mlx5_post_send,实现work request的读取,从而预测RDMA的通信流量。

代码功能

  1. 读取发送数据大小,并添加包头,得到实际的预测流量
  2. 将目的IP和预测流量写入创建的共享内存表,以提供sync代码读取

编译

rdma-core目录下运行build代码,生成libibverbs.so:

bash build.sh

Linux系统中的/usr/lib/x86_64-linux-gnu/libibverbs.so.1是一个软链接,默认连接到动态链接库/usr/lib/x86_64-linux-gnu/libibverbs.so.1.14.37.0(这里的libibverbs是1.14.37版本,不同系统的版本可能不一样)。我们需要将这个软链接连接到我们修改后的动态链接库:(我修改的rdma-core版本为1.14.37.8)

sudo ln -sf /home/sdn/ybd/rdma-core-37.8/build/lib/libibverbs.so.1.14.37.8 /usr/lib/x86_64-linux-gnu/libibverbs.so.1

恢复这个软链接到默认库的指令:

sudo ln -sf /usr/lib/x86_64-linux-gnu/libibverbs.so.1.14.37.0 /usr/lib/x86_64-linux-gnu/libibverbs.so.1

sdnware's People

Contributors

donggboo avatar chengyang00 avatar akiehere avatar

Watchers

 avatar

Forkers

wslwy

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.