summaryrefslogtreecommitdiffstats
path: root/schedutils/chrt.1
diff options
context:
space:
mode:
authorKarel Zak2010-02-02 21:24:52 +0100
committerKarel Zak2010-02-02 21:28:45 +0100
commitcdfb1e88228c10c28f8bfe0f4b0ff1b3b06d1ed4 (patch)
treedcd67c6a427dd972919823af79e5b81ecfbaa7e5 /schedutils/chrt.1
parentchrt: add support for SCHED_RESET_ON_FORK (diff)
downloadkernel-qcow2-util-linux-cdfb1e88228c10c28f8bfe0f4b0ff1b3b06d1ed4.tar.gz
kernel-qcow2-util-linux-cdfb1e88228c10c28f8bfe0f4b0ff1b3b06d1ed4.tar.xz
kernel-qcow2-util-linux-cdfb1e88228c10c28f8bfe0f4b0ff1b3b06d1ed4.zip
chrt: add --reset-on-fork
This new option allows to set SCHED_RESET_ON_FORK flag for FIFO and RR policies. Example: $ chrt --fifo --reset-on-fork 1 /bin/bash $ schedutils/chrt --pid $$ pid 31579's current scheduling policy: SCHED_FIFO|SCHED_RESET_ON_FORK pid 31579's current scheduling priority: 1 Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'schedutils/chrt.1')
-rw-r--r--schedutils/chrt.114
1 files changed, 14 insertions, 0 deletions
diff --git a/schedutils/chrt.1 b/schedutils/chrt.1
index 06c58b479..9016cfef0 100644
--- a/schedutils/chrt.1
+++ b/schedutils/chrt.1
@@ -55,6 +55,11 @@ The
policy is supported since Linux 2.6.16. The
.BR SCHED_IDLE
policy is supported since Linux 2.6.23.
+.PP
+The
+.BR SCHED_RESET_ON_FORK
+flag for policies SCHED_RR and SCHED_FIFO is supported
+since Linux 2.6.31.
.SH OPTIONS
.TP
.B -p, --pid
@@ -69,6 +74,15 @@ set scheduling policy to
set scheduling policy to
.BR SCHED_FIFO
.TP
+.B -R, --reset-on-fork
+add
+.B SCHED_RESET_ON_FORK
+flag to the
+.B SCHED_FIFO
+or
+.B SCHED_RR
+scheduling policy (Linux specific)
+.TP
.B -i, --idle
set schedulng policy to
.BR SCHED_IDLE