This is my tutorial of io_uring.
The explanation of this repository is in my private slides.
OS: Ubuntu 20.04.1 LTS Kernel: Linux 5.11+
- Other tools
- liburing
- bpftrace
- Reads random bytes and writes it out as files.
- Submits multiple SQEs at once.
- Pre-register fds.
- Enabling the SQPOLL feature.
Executes make to build binaries.
$ make
gcc -Wall -o ./bin/part1 part1.c -luring
gcc -Wall -o ./bin/part2 part2.c -luring
gcc -Wall -o ./bin/part3 part3.c -luring
gcc -Wall -o ./bin/part4 part4.c -luring
Executes bpftrace program.
$ ./tools/uring_syscalls.bt
Executes binary.
$ ./bin/part1 -o /path/to/outdir -s 256 -c 10 # writes 10 files to /path/to/outdir (256 bytes per file)