mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-12-21 13:15:19 +00:00
57e331db0e
The ASYNC flag forces requests to go to worker threads. Worker threads are expensive. Let the kernel decide what to do. With this change, I no longer see an excessive amount of io_uring worker threads. Quote from the manual for io_uring_sqe_set_flags(3): ``` IOSQE_ASYNC Normal operation for io_uring is to try and issue an sqe as non-blocking first, and if that fails, execute it in an async manner. To support more efficient overlapped operation of requests that the application knows/assumes will always (or most of the time) block, the application can ask for an sqe to be issued async from the start. Note that this flag immediately causes the SQE to be offloaded to an async helper thread with no initial non-blocking attempt. This may be less efficient and should not be used liberally or without understanding the performance and efficiency tradeoffs. ``` Signed-off-by: Wei Liu <liuwe@microsoft.com> |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |