README 1.1 KB

1234567891011121314151617181920212223242526272829
  1. This directory includes a few programs that demonstrate how to use io_uring
  2. in an application. The examples are:
  3. io_uring-cp
  4. A very basic io_uring implementation of cp(1). It takes two
  5. arguments, copies the first argument to the second. This example
  6. is part of liburing, and hence uses the simplified liburing API
  7. for setting up an io_uring instance, submitting IO, completing IO,
  8. etc. The support functions in queue.c and setup.c are straight
  9. out of liburing.
  10. io_uring-bench
  11. Benchmark program that does random reads on a number of files. This
  12. app demonstrates the various features of io_uring, like fixed files,
  13. fixed buffers, and polled IO. There are options in the program to
  14. control which features to use. Arguments is the file (or files) that
  15. io_uring-bench should operate on. This uses the raw io_uring
  16. interface.
  17. liburing can be cloned with git here:
  18. git://git.kernel.dk/liburing
  19. and contains a number of unit tests as well for testing io_uring. It also
  20. comes with man pages for the three system calls.
  21. Fio includes an io_uring engine, you can clone fio here:
  22. git://git.kernel.dk/fio