Re: wake_wide mechanism clarification

From: Mike Galbraith
Date: Thu Jun 29 2017 - 23:11:55 EST


On Thu, 2017-06-29 at 20:49 -0400, Josef Bacik wrote:
> On Thu, Jun 29, 2017 at 05:19:14PM -0700, Joel Fernandes wrote:
>
> > Why are wanting the master's flip frequency to be higher than the
> > slaves by the factor?
>
> (Responding from my personal email as my work email is outlook shit and
> impossible to use)
>
> Because we are trying to detect the case that the master is waking many
> different processes, and the 'slave' processes are only waking up the
> master/some other specific processes to determine if we don't care about cache
> locality.

Yes, the heuristic (large delta implies waker/wakee are NOT 1:1, ie
filter out high frequency communication where eating misses doesn't
merely sting, it hurts like hell) just became bidirectional.

> Actually I think both are wrong, but I need Mike to weigh in.

My weigh in is this: if you have ideas to improve or replace that
heuristic, by all means go for it, just make damn sure it's dirt cheap.
ÂHeuristics all suck one way or another, problem is that nasty old
"perfect is the enemy of good" adage. ÂMake it perfect, it'll hurt.

-Mike