Skip to content

Is the io_uring_sq thread in user mode or kernel mode, and is this a configurable option? #1148

Answered by axboe
wwwwxxxxhhhh asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@wwwwxxxxhhhh
Comment options

@isilence
Comment options

@wwwwxxxxhhhh
Comment options

@axboe
Comment options

@wwwwxxxxhhhh
Comment options

Answer selected by axboe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants