Is the io_uring_sq thread in user mode or kernel mode, and is this a configurable option? #1148
-
The new version of io_uring_sq thread in library is in user mode, while the previous 0.7 version was in kernel mode. Is this a configurable option? Where is it configured? But the io_wQE_worker thread is still in kernel mode, right? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
How the sq thread operates has nothing to do with the liburing version, it's strictly a kernel property. Some earlier kernels had kthreads, anything worth running (5.10-stable and newer) will have them be actual threads. Shared for both is that they only run in the kernel, they never exit to userspace. This is not something you can configure. The sq thread and io-wq workers are the same kind of threads, again only depends on the kernel being used. |
Beta Was this translation helpful? Give feedback.
How the sq thread operates has nothing to do with the liburing version, it's strictly a kernel property. Some earlier kernels had kthreads, anything worth running (5.10-stable and newer) will have them be actual threads. Shared for both is that they only run in the kernel, they never exit to userspace. This is not something you can configure.
The sq thread and io-wq workers are the same kind of threads, again only depends on the kernel being used.