]> git.ipfire.org Git - thirdparty/util-linux.git/blobdiff - schedutils/taskset.1
po: update es.po (from translationproject.org)
[thirdparty/util-linux.git] / schedutils / taskset.1
index 50cbe6be4c1c1ce02041f092d2cbc46e4f8bee76..6a329782afb829ba14e4db1c4bf79864275f9781 100644 (file)
@@ -51,21 +51,30 @@ to the last logical CPU.  Not all CPUs may exist on a given system but a mask
 may specify more CPUs than are present.  A retrieved mask will reflect only the
 bits that correspond to CPUs physically on the system.  If an invalid mask is
 given (i.e., one that corresponds to no valid CPUs on the current system) an
-error is returned.  The masks are typically given in hexadecimal.  For example,
+error is returned.  The masks may be specified in hexadecimal (with or without
+a leading "0x"), or as a CPU list with the
+.B \-\-cpu\-list
+option.  For example,
 .RS 4
 .TP 12
-.BR 0x00000001
+.B 0x00000001
 is processor #0,
 .TP
-.BR 0x00000003
+.B 0x00000003
 is processors #0 and #1,
 .TP
-.BR 0xFFFFFFFF
-is all processors (#0 through #31).
+.B 0xFFFFFFFF
+is processors #0 through #31,
+.TP
+.B 32
+is processors #1, #4, and #5,
+.TP
+.B \-\-cpu\-list\ 0-2,6
+is processors #0, #1, #2, and #6.
 .RE
 .PP
 When
-.BR taskset
+.B taskset
 returns, it is guaranteed that the given program has been scheduled to a legal
 CPU.
 .SH OPTIONS
@@ -73,9 +82,9 @@ CPU.
 .BR \-a ,\  \-\-all\-tasks
 Set or retrieve the CPU affinity of all the tasks (threads) for a given PID.
 .TP
-.BR \-c ,\  \-\-cpu\-list \ \fInumbers
-Specify a numerical list of processors instead of a bitmask.  The \fInumbers\fR
-are separated by commas and may include ranges.  For example:
+.BR \-c ,\  \-\-cpu\-list
+Interpret \fImask\fR as numerical list of processors instead of a bitmask.
+Numbers are separated by commas and may include ranges.  For example:
 .BR 0,5,8-11 .
 .TP
 .BR \-p ,\  \-\-pid
@@ -110,11 +119,11 @@ A user can retrieve the affinity mask of any process.
 .BR chrt (1),
 .BR nice (1),
 .BR renice (1),
-.BR sched_setaffinity (2),
-.BR sched_getaffinity (2)
+.BR sched_getaffinity (2),
+.BR sched_setaffinity (2)
 .sp
 See
-.BR sched_setscheduler (2)
+.BR sched (7)
 for a description of the Linux scheduling scheme.
 .SH AUTHOR
 Written by Robert M. Love.
@@ -124,4 +133,4 @@ This is free software; see the source for copying conditions.  There is NO
 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 .SH AVAILABILITY
 The taskset command is part of the util-linux package and is available from
-ftp://ftp.kernel.org/pub/linux/utils/util-linux/.
+https://www.kernel.org/pub/linux/utils/util-linux/.