psrset.8 revision 1.1
$NetBSD: psrset.8,v 1.1 2008/06/22 13:53:59 ad Exp $

Copyright (c) 2008 The NetBSD Foundation, Inc.
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.

.Dd June 22, 2008 .Dt PSRSET 8 .Os .Sh NAME .Nm psrset .Nd control CPU sets .Sh SYNOPSIS .Nm .Op Ar setid ... .Nm .Fl a Ar setid Ar cpuid Ar ... .Nm .Fl b Ar setid Ar pid Ar ... .Nm .Fl c Op Ar cpuid Ar ... .Nm .Fl d Ar setid .Nm .Fl e Ar setid Ar command .Nm .Fl i Op Ar setid ... .Nm .Fl p .Nm .Fl r Ar cpuid Ar ... .Nm .Fl u Ar pid Ar ... .Sh DESCRIPTION The .Nm command can used to control and inspect CPU sets.

p The system always contains at least one CPU set: the default set. The default set must contain at least one CPU at all times.

p Available options: l -tag -width indent t Fl a Assign one or more CPUs to the set .Ar setid . t Fl b Bind one or more processes to the set .Ar setid . All LWPs within the processes will be affected. Bindings are inherited when new LWPs or processes are forked. However, setting a new binding on a parent process does not affect the bindings of its existing child processes. t Fl c Create a new CPU set. If successful, the ID of the new set will be printed. If a list of CPU IDs is provided, those CPUs will be assigned to the set upon creation. Otherwise, the set will be created empty. t Fl d Delete the CPU set specified by .Ar setid . Any LWPs bound to the set will be re-bound to the default CPU set. t Fl e Execute a command within the CPU set specified by .Ar setid . t Fl i List all CPU sets. For each set, print the member CPUs. If .Nm is run without any options, it behaves as if .Fl i were given. t Fl p List all CPUs. For each CPU, print the associated CPU set. t Fl r Remove a CPU from its current set, and return it back to the default CPU set. t Fl u Bind the specified processes to the system default CPU set. .El .Sh SEE ALSO .Xr cpuctl 8 , .Xr schedctl 8 .Sh HISTORY The .Nm command first appeared in .Nx 5.0 .