sched.7: Add more precise details on CFS's treatment of the nice value

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2016-11-27 16:32:56 +01:00
parent 45fcd0e27f
commit 115366c6f3
1 changed files with 3 additions and 0 deletions

View File

@ -396,6 +396,9 @@ across Linux kernel versions.
With the advent of the CFS scheduler in kernel 2.6.23, With the advent of the CFS scheduler in kernel 2.6.23,
Linux adopted an algorithm that causes Linux adopted an algorithm that causes
relative differences in nice values to have a much stronger effect. relative differences in nice values to have a much stronger effect.
In the current implementation, each unit of difference in the
nice values of two processes results in a factor of 1.25
in the degree to which the scheduler favors the higher priority process.
This causes very low nice values (+19) to truly provide little CPU This causes very low nice values (+19) to truly provide little CPU
to a process whenever there is any other to a process whenever there is any other
higher priority load on the system, higher priority load on the system,