All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] sched/fair: ignore cache hotness for SMT migration
@ 2020-08-04  0:06 Josh Don
  2020-08-04 10:56 ` peterz
  0 siblings, 1 reply; 7+ messages in thread
From: Josh Don @ 2020-08-04  0:06 UTC (permalink / raw)
  To: Ingo Molnar, Peter Zijlstra, Juri Lelli, Vincent Guittot
  Cc: Dietmar Eggemann, Steven Rostedt, Ben Segall, Mel Gorman,
	linux-kernel, Josh Don

SMT siblings share caches, so cache hotness should be irrelevant for
cross-sibling migration.

Proposed-by: Venkatesh Pallipadi <venki@google.com>
Signed-off-by: Josh Don <joshdon@google.com>
---
 kernel/sched/fair.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c
index 2ba8f230feb9..5b203b55bcb2 100644
--- a/kernel/sched/fair.c
+++ b/kernel/sched/fair.c
@@ -7402,6 +7402,9 @@ static int task_hot(struct task_struct *p, struct lb_env *env)
 	if (unlikely(task_has_idle_policy(p)))
 		return 0;
 
+	if ((env->sd->flags & cpu_smt_flags()) == cpu_smt_flags())
+		return 0;
+
 	/*
 	 * Buddy candidates are cache hot:
 	 */
-- 
2.28.0.163.g6104cc2f0b6-goog


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-08-27  7:55 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-04  0:06 [PATCH] sched/fair: ignore cache hotness for SMT migration Josh Don
2020-08-04 10:56 ` peterz
2020-08-04 19:24   ` Josh Don
2020-08-04 19:34   ` [PATCH v2] " Josh Don
2020-08-10  6:14     ` Srikar Dronamraju
2020-08-10  8:55       ` Valentin Schneider
2020-08-27  7:54     ` [tip: sched/core] sched/fair: Ignore " tip-bot2 for Josh Don

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.