Skip to content

gsol10/io_uring_benchmarks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IO_URING networking benchmarks

  • Be EXTRA caution when running this on machines, io_uring is not always stable. Namely, it can cause some kernel hangs (ie with 5.4.0-53-generic which is LTS Ubuntu kernel to this date)

Pre results

It appears that the performance is not specially impressive, but this is mostly due to the fact that AF_PACKET sockets are, by default, not built for performance.

Setup

  1. For iouring example (in ./src) Set up liburing

    1. git submodule init
    2. git submodule update
    3. ./configure to deps folder
    4. make install
  2. For xdp example (in ./xdp), set up libbpf

    1. cd libbpf/src
    2. make
    3. mkdir ../deps/include/bpf && cp *.h ../deps/include/bpf
    4. cp *.so ../deps/lib
    5. To run, use LC_LIBRARY_PATH=../deps/lib xdpsock
  3. make

  4. export LD_LIBRARY_PATH=/path/to/liburing

  5. run

Troubleshooting

  • Check kernel version. 5.7 needed for IORING_FEAT_FAST_POLL.
  • Check interfaces are promiscuous (ip link set dev <interface name> promisc on)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published