refactor sqthread cpu binding logic
Get series with b4
b4 am [email protected]Versions newest first
- v3 Latest1 of 2 patches 1 replyIn review
1 of 2 patches is in this archive. The cover letter announces 2.
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 2/2 | io_uring: consider cgroup setting when binding sqpoll cpufs/ | +14 | 1 reply |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.
Cover letter [PATCH v3 0/2] refactor sqthread cpu binding logic
This patchset is to enhance sqthread cpu binding logic, we didn't consider cgroup setting before. In container environment, theoretically sqthread is in its container's task group, it shouldn't occupy cpu out of its container. Otherwise it may cause some problems, for example:
resource balancer may controll cpu resource allocation by a container's current cpu usage, here sqthread should be counted in.
v1-->v2
- add helper to do cpu in current-cpuset test
v2-->v3
- split it to 2 patches, first as prep one, second as comsumer
- remove warnning, since cpuset may change anytime, we cannot catch all cases, so make the behaviour consistent.
Hao Xu (2):
cpuset: add a helper to check if cpu in cpuset of current task
io_uring: consider cgroup setting when binding sqpoll cpu
fs/io_uring.c | 19 ++++++++++++++----- include/linux/cpuset.h | 7 +++++++ kernel/cgroup/cpuset.c | 11 +++++++++++ 3 files changed, 32 insertions(+), 5 deletions(-)
Signature · 1 line
2.24.4