Re: [PATCH] sched/fair: change where we report sched stats

From: Mike Galbraith
Date: Wed Dec 10 2014 - 01:23:33 EST


On Tue, 2014-12-09 at 13:21 -0500, Josef Bacik wrote:

> This patch moves stat stuff to after the schedule, right as we are waking up,

But sleep/block ends when the task is awakened/enqueued, not when it
gets the CPU. You're adding scheduling latency, breaking accounting.

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