This is an RDMA program written in Python, based on the Pyverbs provided by the rdma-core(https://github.com/linux-rdma/rdma-core) repository.
-
Clone the rdma-core repository.
-
Follow README.md of rdma-core and then build the project, please make sure pyverbs is compliled successfully.
-
Set PYTHONPATH to let the Python interpreter find where Pyverbs is.
-
Run rdma_test.py.
- Show help
PYTHONPATH=../rdma-core/build/python/ ./rdma.py -h
- Run RDMA Write between two nodes with RC QP:
- Server
PYTHONPATH=../rdma-core/build/python/ ./rdma.py -d rxe_0 -o write
- Client
PYTHONPATH=../rdma-core/build/python/ ./rdma.py -d rxe_0 -o write 192.168.xx.xx