diff options
| author | Michael Kerrisk <mtk.manpages@gmail.com> | 2016-11-27 16:26:27 +0100 |
|---|---|---|
| committer | Michael Kerrisk <mtk.manpages@gmail.com> | 2016-11-27 18:57:48 +0100 |
| commit | 45fcd0e27fb4d4225c99267931c7e85b08a434ad (patch) | |
| tree | 00f7bef56f1437af86886a2b5f6a11e88ed20d42 /man7/sched.7 | |
| parent | 4107e5698fd6e842f399e05cd2f86fa5816e864f (diff) | |
| download | man-pages-45fcd0e27fb4d4225c99267931c7e85b08a434ad.tar.gz | |
getpriority.2, sched.7: Move nice value details from getpriority(2) to sched(7)
Centralizing these details in sched(7) is more logical.
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Diffstat (limited to 'man7/sched.7')
| -rw-r--r-- | man7/sched.7 | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/man7/sched.7 b/man7/sched.7 index 8eac1c2dbc..1077679144 100644 --- a/man7/sched.7 +++ b/man7/sched.7 @@ -379,6 +379,29 @@ and increased for each time quantum the thread is ready to run, but denied to run by the scheduler. This ensures fair progress among all \fBSCHED_OTHER\fP threads. .\" +.SS The nice value +The range of the nice value +varies across UNIX systems. +On modern Linux, the range is \-20 (high priority) to +19 (low priority). +On some other systems, the range is \-20..20. +Very early Linux kernels (Before Linux 2.0) had the range \-infinity..15. +.\" Linux before 1.3.36 had \-infinity..15. +.\" Since kernel 1.3.43, Linux has the range \-20..19. + +The degree to which the nice value affects the relative scheduling of +.BR SCHED_OTHER +processes likewise varies across UNIX systems and +across Linux kernel versions. + +With the advent of the CFS scheduler in kernel 2.6.23, +Linux adopted an algorithm that causes +relative differences in nice values to have a much stronger effect. +This causes very low nice values (+19) to truly provide little CPU +to a process whenever there is any other +higher priority load on the system, +and makes high nice values (\-20) deliver most of the CPU to applications +that require it (e.g., some audio applications). +.\" .SS SCHED_BATCH: Scheduling batch processes (Since Linux 2.6.16.) \fBSCHED_BATCH\fP can be used only at static priority 0. |
