提交 ec73240b 编写于 作者: J Josh Don 提交者: Peter Zijlstra

sched/fair: Ignore cache hotness for SMT migration

SMT siblings share caches, so cache hotness should be irrelevant for
cross-sibling migration.
Signed-off-by: NJosh Don <joshdon@google.com>
Proposed-by: NVenkatesh Pallipadi <venki@google.com>
Signed-off-by: NPeter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20200804193413.510651-1-joshdon@google.com
上级 5f4a1c4e
...@@ -7402,6 +7402,10 @@ static int task_hot(struct task_struct *p, struct lb_env *env) ...@@ -7402,6 +7402,10 @@ static int task_hot(struct task_struct *p, struct lb_env *env)
if (unlikely(task_has_idle_policy(p))) if (unlikely(task_has_idle_policy(p)))
return 0; return 0;
/* SMT siblings share cache */
if (env->sd->flags & SD_SHARE_CPUCAPACITY)
return 0;
/* /*
* Buddy candidates are cache hot: * Buddy candidates are cache hot:
*/ */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册