lkml.org 
[lkml]   [2014]   [May]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH RFC/TEST] sched: make sync affine wakeups work
From
Date
On Fri, 2014-05-02 at 07:32 +0200, Mike Galbraith wrote: 
> On Fri, 2014-05-02 at 00:42 -0400, Rik van Riel wrote:
> > Currently sync wakeups from the wake_affine code cannot work as
> > designed, because the task doing the sync wakeup from the target
> > cpu will block its wakee from selecting that cpu.
> >
> > This is despite the fact that whether or not the wakeup is sync
> > determines whether or not we want to do an affine wakeup...
>
> If the sync hint really did mean we ARE going to schedule RSN, waking
> local would be a good thing. It is all too often a big fat lie.

One example of that is say pgbench. The mother of all work (server
thread) for that load wakes with sync hint. Let the server wake the
first of a small herd CPU affine, and that first wakee then preempt the
server (mother of all work) that drives the entire load.

Byebye throughput.

When there's only one wakee, and there's really not enough overlap to at
least break even, waking CPU affine is a great idea. Even when your
wakees only run for a short time, if you wake/get_preempted repeat, the
load will serialize.

-Mike



\
 
 \ /
  Last update: 2014-05-02 08:21    [W:0.135 / U:0.348 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site