Commit cdea7c1
committed
Merge: cgroup/cpuset: Improve CPU isolation in isolated partitions
MR: https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-9/-/merge_requests/3611
JIRA: https://issues.redhat.com/browse/RHEL-21798
MR: https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-9/-/merge_requests/3611
At present, cpuset isolated partition only disables load balancing for
the isolated CPUs within the partition. There are still other sources of
OS noises present that may adversely break the target latency limit. One
of those noises is the possibility that an isolated CPU may be used by
an unbound workqueue to process workqueue items.
Specifying the isolcpus (with default domain flag) boot command line will
prevent unbound workqueues to use those isolated CPUs for processing.
That is not currently the case for isolated cpuset partitions. To make
cpuset isolated partition as close to the isolcpus boot option as
possible, we need to remove those isolated CPUs from being used by an
unbound workqueue.
This MR backports the upstream workqueue and cpuset patches to make
isolated cpuset partitions more close to isolcpus boot command line
option in functionality. In addition, the isolated cpuset CPUs are now
also enabled in the cpu_is_isolated() helper which is used by vmstat
and memcg to reduce interference with isolated CPUs by not doing stat
flushing or scheduling works on those CPUs.
Signed-off-by: Waiman Long <longman@redhat.com>
Approved-by: Phil Auld <pauld@redhat.com>
Approved-by: John B. Wyatt IV <jwyatt@redhat.com>
Merged-by: Scott Weaver <scweaver@redhat.com>File tree
8 files changed
+550
-213
lines changed- Documentation/admin-guide
- include/linux
- sched
- kernel
- cgroup
- tools/testing/selftests/cgroup
8 files changed
+550
-213
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2258 | 2258 | | |
2259 | 2259 | | |
2260 | 2260 | | |
| 2261 | + | |
| 2262 | + | |
| 2263 | + | |
| 2264 | + | |
| 2265 | + | |
| 2266 | + | |
| 2267 | + | |
2261 | 2268 | | |
2262 | 2269 | | |
2263 | 2270 | | |
| |||
2300 | 2307 | | |
2301 | 2308 | | |
2302 | 2309 | | |
2303 | | - | |
2304 | | - | |
2305 | | - | |
2306 | | - | |
2307 | | - | |
| 2310 | + | |
| 2311 | + | |
| 2312 | + | |
| 2313 | + | |
| 2314 | + | |
2308 | 2315 | | |
2309 | 2316 | | |
2310 | 2317 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6822 | 6822 | | |
6823 | 6823 | | |
6824 | 6824 | | |
| 6825 | + | |
| 6826 | + | |
| 6827 | + | |
| 6828 | + | |
| 6829 | + | |
| 6830 | + | |
| 6831 | + | |
6825 | 6832 | | |
6826 | 6833 | | |
6827 | 6834 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| 80 | + | |
80 | 81 | | |
81 | 82 | | |
82 | 83 | | |
| |||
207 | 208 | | |
208 | 209 | | |
209 | 210 | | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
210 | 216 | | |
211 | 217 | | |
212 | 218 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
67 | 68 | | |
68 | 69 | | |
69 | 70 | | |
70 | | - | |
| 71 | + | |
| 72 | + | |
71 | 73 | | |
72 | 74 | | |
73 | 75 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
434 | 434 | | |
435 | 435 | | |
436 | 436 | | |
437 | | - | |
| 437 | + | |
438 | 438 | | |
439 | 439 | | |
440 | 440 | | |
| |||
0 commit comments