Re: [RFC patch 1/2] sched: dynamically adapt granularity withnr_running

From: Peter Zijlstra
Date: Mon Sep 13 2010 - 04:41:48 EST


On Mon, 2010-09-13 at 06:35 +0200, Mike Galbraith wrote:
> On Sun, 2010-09-12 at 11:06 +0200, Peter Zijlstra wrote:
> > On Sat, 2010-09-11 at 13:48 -0700, Linus Torvalds wrote:
>
> > > And I don't like how you dismissed the measured latency improvement.
> > > And yes, I do think latency matters. A _lot_.
> >
> > OK, we'll make it better and sacrifice some throughput, can do, no
> > problem.
>
> I'm not seeing high wakeup latencies, even under hefty load. Mathieu's
> testcase is bad, but apparently solely due to START_DEBIT placement.
> That's kind of a sticky wicket. I've shot it in the heart before, but
> regretted doing so when I looked at kbuild vs static load fairness.

Yeah, without it you can starve the already running task on massive
forks.

Still, I'm not quite sure why people really care about fork() on time
sensitive paths, its a very expensive thing to do, pre-fork() and wake
when you need it, is what I would say.


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/