3 ms·
Hey just a heads up -- you're setting the queue depth of the ring to the number of files discovered, that's typically not the way you'd want to size the ring.
by gavinray 4y ago
Hey just a heads up -- you're setting the queue depth of the ring to the number of files discovered, that's typically not the way you'd want to size the ring.
When you start to get up into higher queue depths, like 512-1,024, you benefit a lot from using flags like IORING_SETUP_SQPOLL.
If you're going to do a thread pool too, you may as well use IORING_WQ_ATTACH and put a ring on each thread that shares a single kernel poller, see the SO explanation I gave recently here:
https://stackoverflow.com/questions/73798651/how-to-create-a-single-sqpoll-thread-in-io-uring-for-multiple-rings-ioring-setu/74256951#74256951 https://stackoverflow.com/questions/73798651/how-to-create-a...