From 65656807379d33e67e51ff0f18d85e3cfef3c363 Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Sun, 7 Apr 2013 14:23:00 +0200 Subject: [PATCH] sched_rr_get_interval.2: Document /proc/sys/kernel/sched_rr_timeslice_ms Signed-off-by: Michael Kerrisk --- man2/sched_rr_get_interval.2 | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/man2/sched_rr_get_interval.2 b/man2/sched_rr_get_interval.2 index 720af3654..760f54bdc 100644 --- a/man2/sched_rr_get_interval.2 +++ b/man2/sched_rr_get_interval.2 @@ -26,7 +26,7 @@ .\" 1996-04-10 Markus Kuhn .\" revision .\" -.TH SCHED_RR_GET_INTERVAL 2 2011-10-16 "Linux" "Linux Programmer's Manual" +.TH SCHED_RR_GET_INTERVAL 2 2013-03-18 "Linux" "Linux Programmer's Manual" .SH NAME sched_rr_get_interval \- get the SCHED_RR interval for the named process .SH SYNOPSIS @@ -111,11 +111,18 @@ assigning a positive (i.e., low) nice value results in a shorter quantum. The default quantum is 0.1 seconds; the degree to which changing the nice value affects the quantum has varied somewhat across kernel versions. -Since Linux 2.6.24, +This method of adjusting the quantum was removed .\" commit a4ec24b48ddef1e93f7578be53270f0b95ad666c -the +starting with Linux 2.6.24. + +Linux 3.9 added +.\" commit ce0dbbbb30aee6a835511d5be446462388ba9eee +a new mechanism for adjusting (and viewing) the .BR SCHED_RR -quantum cannot be modified. +quantum: the +.I /proc/sys/kernel/sched_rr_timeslice_ms +file exposes the quantum as a millisecond value, whose default is 100. +Writing 0 to this file resets the quantum to the default value. .\" .SH BUGS .\" As of Linux 1.3.81 .\" .BR sched_rr_get_interval ()