[Scheduler] CFS - What happens to each task's slice if nr_running * min_granularity > sched_latency?

Rik van Riel riel at surriel.com
Mon Apr 6 21:41:21 EDT 2020


On Thu, 2020-04-02 at 22:10 -0400, Evan T Mesterhazy wrote:

> Here's the code for calculating an individual process's slice. It
> looks like the weighting formula is used here regardless of whether
> the period has been expanded.
> If that's the case, doesn't that mean that some processes will still
> get a slice that's smaller than the min_granularity?

That is exactly what will happen. You figured out what
the code does.

Generally this behavior is not a real problem, since
people expect low priority tasks to run slower.

-- 
All Rights Reversed.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: This is a digitally signed message part
URL: <http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20200406/044fee6e/attachment.sig>


More information about the Kernelnewbies mailing list