andy-yang-1 / Paisley-Park

trace io uring calls and rets by using bpf

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Paisley-Park

佩斯利公园,可以引导人们去到该去的地方。有时候呈现为手机上的网络地图,有时候会呈现为某种印记,绝不能看漏了

Ubuntu

  • see doc

Feature

  • please use two terminals

  • terminal 1

    cd src
    make clean
    make build
    sudo python3 bpf_run.py
    # hint: when io_call finish, use CTRL+C to get the results
  • terminal 2

    ./io_call

Result & Analysis

In my experiments, I used eBPF as a tool to measure function call time. io uring at the time of writing the file, including the commit time of sqe and the time of harvesting cqe. Therefore, the time to add the two in the experiment is the time required for io uring writing. Compared with the general io method, the read and write speed of io uring is nearly ten times faster.

liburing average call time: 753.0306 ns
blockio average call time: 4481.6288 ns

About

trace io uring calls and rets by using bpf


Languages

Language:C 76.7%Language:Python 20.1%Language:Makefile 3.2%