On 10/30/20 6:50 AM, Pavel Begunkov wrote: > On 24/08/2020 02:49, Jiufei Xue wrote: >> ping... >> >> On 2020/8/4 下午5:28, Jiufei Xue wrote: >>> Now users who want to get woken when waiting for events should submit a >>> timeout command first. It is not safe for applications that split SQ and >>> CQ handling between two threads, such as mysql. Users should synchronize >>> the two threads explicitly to protect SQ and that will impact the >>> performance. >>> >>> This patch adds support for timeout to existing io_uring_enter(). To >>> avoid overloading arguments, it introduces a new parameter structure >>> which contains sigmask and timeout. >>> >>> I have tested the workloads with one thread submiting nop requests >>> while the other reaping the cqe with timeout. It shows 1.8~2x faster >>> when the iodepth is 16. > > What happened with this? I thought there were enough people wanting > such a thing. I think there are, feel free to run with it. The patch looks reasonable to me. Jiufei, I'm assuming you guys are already using something like this? -- Jens Axboe