Description of problem: 采用isolated cpus进行CPU隔离,但在SMT开启的情况下会存在从隔离域中逃离的情况发生,影响调度QoS Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. with boot parameter: "isolcpus=domain,2-31" (thread lists: 0,16 and 1,17) 2. cgcreate -g cpu:test; cgexec -g cpu:test "test_threads" 3. some threads will be migrated to the isolated cpu16~17. Actual results: Expected results: Additional info:
合入如下upstream fix: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/kernel/sched/fair.c?h=v5.18.3&id=df3cb4ea1fb63ff326488efd671ba3c39034255e
https://gitee.com/anolis/cloud-kernel/pulls/468