diff options
author | LaMont Jones <lamont@mmjgroup.com> | 2007-08-14 07:28:14 -0600 |
---|---|---|
committer | Karel Zak <kzak@redhat.com> | 2007-08-15 12:03:51 +0200 |
commit | 5ebbcdf9c8f17762539c110922f29dbd1f2c0cb7 (patch) | |
tree | a8be41c6f7e50157e840be71ab3b8c6335342786 | |
parent | f8988ebf89c65b624ee19c685d15cab6c77fd9df (diff) | |
download | util-linux-5ebbcdf9c8f17762539c110922f29dbd1f2c0cb7.tar.gz |
man-pages: cleanup of chrt.1 and taskset.1
Signed-off-by: LaMont Jones <lamont@mmjgroup.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
-rw-r--r-- | schedutils/chrt.1 | 8 | ||||
-rw-r--r-- | schedutils/taskset.1 | 32 |
2 files changed, 28 insertions, 12 deletions
diff --git a/schedutils/chrt.1 b/schedutils/chrt.1 index 01f7650c..dbc29589 100644 --- a/schedutils/chrt.1 +++ b/schedutils/chrt.1 @@ -30,7 +30,13 @@ chrt \- manipulate real-time attributes of a process .SH SYNOPSIS .B chrt -[\fIoptions\fR] [\fIprio\fR] [\fIpid\fR | \fIcommand\fR [\fIarg\fR]...] +.RI [ options ]\ prio +.IR command\ [ arg ]... +.br +.B chrt +.RI [ options ] +.B \-p +.RI [ prio ]\ pid .SH DESCRIPTION .PP .BR chrt (1) diff --git a/schedutils/taskset.1 b/schedutils/taskset.1 index dbf92e39..af3dc4b0 100644 --- a/schedutils/taskset.1 +++ b/schedutils/taskset.1 @@ -27,10 +27,16 @@ .\" .TH TASKSET "1" "Apr 2003" "schedutils" "Linux User's Manual" .SH NAME -taskset \- retrieve or set a processes's CPU affinity +taskset \- retrieve or set a process's CPU affinity .SH SYNOPSIS .B taskset -[\fIoptions\fR] [\fImask\fR | \fIlist\fI ] [\fIpid\fR | \fIcommand\fR [\fIarg\fR]...] +.RI [ options ]\ mask +.IR command\ [ arg ]... +.br +.B taskset +.RI [ options ] +.B \-p +.RI [ mask ]\ pid .SH DESCRIPTION .PP .BR taskset @@ -66,32 +72,36 @@ returns, it is guaranteed that the given program has been scheduled to a legal CPU. .SH OPTIONS .TP -.B -p, --pid +.BR \-p ,\ \-\-pid operate on an existing PID and not launch a new task .TP -.B -c, --cpu-list -specifiy a numerical list of processors instead of a bitmask. The list may +.BR \-c ,\ \-\-cpu-list +specify a numerical list of processors instead of a bitmask. The list may contain multiple items, separated by comma, and ranges. For example, .BR 0,5,7,9-11 . .TP -.B -h, --help +.BR \-h ,\ \-\-help display usage information and exit .TP -.B -V, --version +.BR \-V ,\ \-\-version output version information and exit .SH USAGE .TP The default behavior is to run a new command with a given affinity mask: -taskset [mask] [command] [arguments] +.B taskset +.I mask +.IR command\ [ arguments ] .TP You can also retrieve the CPU affinity of an existing task: -taskset -p [pid] +.B taskset \-p +.I pid .TP Or set it: -taskset -p [mask] [pid] +.B taskset \-p +.I mask pid .SH PERMISSIONS A user must possess -.BR CAP_SYS_NICE +.B CAP_SYS_NICE to change the CPU affinity of a process. Any user can retrieve the affinity mask. .SH AUTHOR |