mirror of https://github.com/mkerrisk/man-pages
sched_setaffinity.2: Mention the use of the 'isolcpus' kernel boot option
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
b0ce4533dc
commit
d726280aaf
|
@ -204,6 +204,24 @@ will set the attribute for the main thread of the thread group.
|
||||||
instead of
|
instead of
|
||||||
.BR sched_setaffinity ().)
|
.BR sched_setaffinity ().)
|
||||||
|
|
||||||
|
The
|
||||||
|
.I isolcpus
|
||||||
|
boot option can be used to isolate one or more CPUs at boot time,
|
||||||
|
so that no processes are scheduled onto those CPUs.
|
||||||
|
Following the use of this boot option,
|
||||||
|
the only way to schedule processes onto the isolated CPUs is via
|
||||||
|
.BR sched_setaffinity ()
|
||||||
|
or the
|
||||||
|
.BR cpuset (7)
|
||||||
|
mechanism.
|
||||||
|
For further information, see the kernel source file
|
||||||
|
.IR Documentation/kernel-parameters.txt .
|
||||||
|
As noted in that file,
|
||||||
|
.I isolcpus
|
||||||
|
is the preferred mechanism of isolating CPUs
|
||||||
|
(versus the alternative of manually setting the CPU affinity
|
||||||
|
of all processes on the system).
|
||||||
|
|
||||||
A child created via
|
A child created via
|
||||||
.BR fork (2)
|
.BR fork (2)
|
||||||
inherits its parent's CPU affinity mask.
|
inherits its parent's CPU affinity mask.
|
||||||
|
|
Loading…
Reference in New Issue