refactor sqthread cpu binding logic
Get series with b4
b4 am [email protected]Versions newest first
- v4 Latest0 of 2 patches 4 repliesIn review
Patches in v4 No applies recorded yet
None of the 2 patches the cover letter announces are in this archive.
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.
Cover letter [PATCH v4 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.
v3-->v4
- remove sqthread cpu binding helper since the logic is now very simple
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 | 11 ++++++----- include/linux/cpuset.h | 7 +++++++ kernel/cgroup/cpuset.c | 11 +++++++++++ 3 files changed, 24 insertions(+), 5 deletions(-)
Signature · 1 line
2.24.4