summaryrefslogtreecommitdiffstats
path: root/schedutils/ionice.1
diff options
context:
space:
mode:
authorMasatake YAMATO2014-01-30 15:52:38 +0100
committerKarel Zak2014-02-17 11:44:12 +0100
commitbd2ff3d2d952d75a6707846831623455647a9a8d (patch)
treedfe56a6a80ff14bbc7ba0b7d58a17b87e6a782f7 /schedutils/ionice.1
parentfallocate: improve --dig-holes (diff)
downloadkernel-qcow2-util-linux-bd2ff3d2d952d75a6707846831623455647a9a8d.tar.gz
kernel-qcow2-util-linux-bd2ff3d2d952d75a6707846831623455647a9a8d.tar.xz
kernel-qcow2-util-linux-bd2ff3d2d952d75a6707846831623455647a9a8d.zip
ionice: add the way to specify the target processes with pgid and uid
ioprio_get and ioprio_set system call accept not only process ID but also process group ID(pgid) and user ID(uid) to specify the target process(es). However, ionice command accepts only process ID. With this patch a user can specify the target processes with pgid(-P option) and uid(-u option). [kzak@redhat.com: - tiny cleanup in usage()] Signed-off-by: Masatake YAMATO <yamato@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'schedutils/ionice.1')
-rw-r--r--schedutils/ionice.126
1 files changed, 26 insertions, 0 deletions
diff --git a/schedutils/ionice.1 b/schedutils/ionice.1
index 8b9d6140a..3b8563549 100644
--- a/schedutils/ionice.1
+++ b/schedutils/ionice.1
@@ -17,6 +17,24 @@ ionice \- set or get process I/O scheduling class and priority
.RB [ \-n
.IR level ]
.RB [ \-t ]
+.B \-P
+.IR PGID ...
+.br
+.B ionice
+.RB [ \-c
+.IR class ]
+.RB [ \-n
+.IR level ]
+.RB [ \-t ]
+.B \-u
+.IR UID ...
+.br
+.B ionice
+.RB [ \-c
+.IR class ]
+.RB [ \-n
+.IR level ]
+.RB [ \-t ]
.IR "command " [ argument ...]
.SH DESCRIPTION
This program sets or gets the I/O scheduling class and priority for a program.
@@ -77,6 +95,10 @@ accepts an argument. For realtime and best-effort, \fI0-7\fR are valid data
Specify the process IDs of running processes for which to get or set the
scheduling parameters.
.TP
+.BR \-P , " \-\-pgid " \fIPGID\fR...
+Specify the process group IDs of running processes for which to get or set the
+scheduling parameters.
+.TP
.BR \-t , " \-\-ignore"
Ignore failure to set the requested priority. If \fIcommand\fR was specified,
run it even in case it was not possible to set the desired scheduling priority,
@@ -85,6 +107,10 @@ which can happen due to insufficient privileges or an old kernel version.
.BR \-h , " \-\-help"
Display help text and exit.
.TP
+.BR \-u , " \-\-uid " \fIUID\fR...
+Specify the user IDs of running processes for which to get or set the
+scheduling parameters.
+.TP
.BR \-V , " \-\-version"
Display version information and exit.
.SH EXAMPLES