Re: CFS scheduler unfairly prefers pinned tasks

From: Mike Galbraith
Date: Tue Oct 06 2015 - 08:17:26 EST


On Tue, 2015-10-06 at 21:06 +1100, paul.szabo@xxxxxxxxxxxxx wrote:

> And further... the CFS is meant to be fair, using things like vruntime
> to preempt, and throttling. Why are those pinned tasks not preempted or
> throttled?

Imagine you own a 8192 CPU box for a moment, all CPUs having one pinned
task, plus one extra unpinned task, and ponder what would have to happen
in order to meet your utilization expectation. <time passes> Right.

What you're seeing is not a bug. No task can occupy more than one CPU
at a time, making space reservation on multiple CPUs a very bad idea.

-Mike

--
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/