Skip to contentSkip to conversation

clarify an edge case of IORING_SETUP_SQ_AFF

PATCH Applied Hao Xu 2 participants 2 messages Jun 1, 2021 io_uring

lore
Share & tools
lore

Hao Xu

author
#0 lore raw

PATCH 1/1 clarify an edge case of IORING_SETUP_SQ_AFF

A container may offen be migrated to different cpu set which causes the bounded cpu set of sqthread being changed as well. This may not be as users expected, clarify this situation in man page.

---
 man/io_uring_setup.2 | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
man/io_uring_setup.2 +4 -1
index 3122313a53fa..cb8eba930b84 100644
@@ -139,7 +139,10 @@ field of the
 .IR "struct io_uring_params" .
 This flag is only meaningful when
 .B IORING_SETUP_SQPOLL
-is specified.
+is specified. When cgroup setting
+.I cpuset.cpus
+changes (typically in container environment), the bounded cpu set may be
+changed as well.
 .TP
 .B IORING_SETUP_CQSIZE
 Create the completion queue with
Signature · 1 line
1.8.3.1
maintainer Applied
#1 lore raw
Quoted 3 lines · Hao Xu

A container may offen be migrated to different cpu set which causes the bounded cpu set of sqthread being changed as well. This may not be as users expected, clarify this situation in man page.

Applied, thanks.

Signature · 1 line
Jens Axboe