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

Valdis Kl=?utf-8?Q?=c4=93?=tnieks valdis.kletnieks at vt.edu
Fri Apr 3 01:50:08 EDT 2020


On Thu, 02 Apr 2020 22:10:11 -0400, Evan T Mesterhazy said:

> I ran a test by starting five busy processes with a nice level of -10.
> Next, I launched ~40 busy processes with a nice level of 0 (all procs were
> set to use the same CPU). I expected CFS to expand the period and assign
> each process a slice equal to the min granularity. However, the 5 processes
> with nice = -10 still used considerably more CPU than the other processes.

Well, it's *expected* that if you set nice = -10 they'll get more CPU.

Do you have any evidence that CFS *didn't* give the nice==0 processes a
min_granularity slide once in a while?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20200403/a6842add/attachment.sig>


More information about the Kernelnewbies mailing list