Re: sched_yield() call on Linux Kernel 2.6.39 is not behaving correct

From: Mike Galbraith
Date: Sat Jan 10 2015 - 02:38:20 EST


On Fri, 2015-01-09 at 11:24 -0800, Yogesh Ahire wrote:
> Thank you Mike. I didn't get what you mean by saying "its gona try to
> yield for one hell of a long time before it succeeds".

Look at vruntimes. Equalizing same is what the scheduler does for a
living, it does so by giving the CPU to the runnable task with the
lowest vruntime. Exec time is scaled by load to become vruntime, but
this vruntime delta is so large you may as well just call it infinity.

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