liburing
liburing copied to clipboard
I'm trying out io_uring and am testing different ways of submitting requests. My test is a simple webserver-like application that accepts multiple sockets, and then alternatively reads and writes each...
When testing an io_uring implementation using a file read test that performs random reads of size 1 MB each (on a multi-node cluster), I'm running into high perf variability to...
What's the proper way to read all the PID stat files "/proc/[pid]/stat" in a io_uring friendly way?
Hi, As a fun exercise in IO performance optimization, I started playing with [btop](https://github.com/aristocratos/btop) to optimize it's IO usage. I got very far to about 1/10 of what it was...
Create an 8GB file initialized with 0xaa, punch a (8GB - page_size) hole using MADV_REMOVE, and check the contents. Requires support for FALLOC_FL_PUNCH_HOLE in the filesystem, which is checked for...
I have been working on implementing an io_uring-based execution context with support for timers where I manage a priority-queue of user-provided timers and compute the earliest due time at which...
After couple months of segfaults(over interpreter) narrowed the bug down to `io_uring_peek_batch_cqe` not populating `cqe` consistently. The first loop always runs fine after its anyone's guess as to when it...
If using a kernel version prior to 5.11 and thus IORING_ENTER_EXT_ARG is not available, the `io_uring_submit_and_wait_timeout()` function falls back to submitting an OP_TIMEOUT operation to manage the timeout instead. However,...
io_uring_wait_cqe_timeout() passes a __kernel_timespec to IORING_OP_TIMEOUT which takes a timespec64
The `io_uring_wait_cqe_timeout()` function takes a pointer to a `__kernel_timespec` which holds the value of the timeout. If `IORING_FEAT_EXT_ARG` feature is not set then this function falls back to being implemented...
I realize that the recommended way to use io_uring is to have one ring per thread. Unfortunately this is not something that we can easily do in our application architecture....