Debian Codegraph @

doc/cset.1

raw
1 '\" t
2 .\" Title: cset
3 .\" Author: Alex Tsariounov <[email protected]>
4 .\" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/>
5 .\" Date: March 2016
6 .\" Manual: \ \&
7 .\" Source: \ \& 1.5.8
8 .\" Language: English
9 .\"
10 .TH "CSET" "1" "March 2016" "\ \& 1\&.5\&.8" "\ \&"
11 .\" -----------------------------------------------------------------
12 .\" * Define some portability stuff
13 .\" -----------------------------------------------------------------
14 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15 .\" http://bugs.debian.org/507673
16 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
17 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18 .ie \n(.g .ds Aq \(aq
19 .el .ds Aq '
20 .\" -----------------------------------------------------------------
21 .\" * set default formatting
22 .\" -----------------------------------------------------------------
23 .\" disable hyphenation
24 .nh
25 .\" disable justification (adjust text to left margin only)
26 .ad l
27 .\" -----------------------------------------------------------------
28 .\" * MAIN CONTENT STARTS HERE *
29 .\" -----------------------------------------------------------------
30 .SH "NAME"
31 cset \- manage cpusets functions in the Linux kernel
32 .SH "SYNOPSIS"
33 .sp
34 .nf
35 \fIcset\fR [\-\-version | \-\-help | \-\-tohex]
36 \fIcset\fR [help <command> | <command> \-\-help]
37 \fIcset\fR [cset options] <command> [command options] [args]
38 .fi
39 .SH "DESCRIPTION"
40 .if n \{\
41 .sp
42 .\}
43 .RS 4
44 .it 1 an-trap
45 .nr an-no-space-flag 1
46 .nr an-break-flag 1
47 .br
48 .ps +1
49 \fBNote\fR
50 .ps -1
51 .br
52 In general, you need to have root permissions to run cset\&. The tool mounts the cpusets filesystem and manipulates it\&. Non\-root users do not have permission for these actions\&.
53 .sp .5v
54 .RE
55 Cset is a Python application to make using the cpusets facilities in the Linux kernel easier\&. The actual included command is called \fIcset\fR and it allows manipulation of cpusets on the system and provides higher level functions such as implementation and control of a basic cpu shielding setup\&.
56 .SS "Typical uses of cset include"
57 .PP
58 Setting up and managing a simple shielded CPU environment
59 .RS 4
60 The concept of \fIshielded\fR cpus is that a certain number of cpus are partitioned off on the system and only processes that are of interest are run on these cpus (i\&.e\&., inside the shield)\&.
61
62 For a simple shielded configuration, one typically uses three cpusets: the root set, a system set and a user set\&. \fICset\fR includes a super command that implements this strategy and lets you easily manage it\&. See \fIcset\-shield(1)\fR for more details\&.
63 .RE
64 .PP
65 Setting up and managing a complex shielding environment
66 .RS 4
67 Shielding can be more complex of course where concepts such as priority cpusets and intersecting cpuset can be used\&. You can use \fIcset\fR to help manage this type of shielding as well\&. You will need to use the \fIcset\-set(1)\fR and \fIcset\-proc(1)\fR subcommands directly to do that\&.
68 .RE
69 .PP
70 Managing cpusets on the system
71 .RS 4
72 The cset subcommand \fIcset\-set(1)\fR allows you to create and destroy arbitrary cpusets on the system and assign arbitrary cpus and memory nodes to them\&. The cpusets so created have to follow the Linux kernel cpuset rules\&. See the \fIcset\-set(1)\fR subcommand for more details\&.
73 .RE
74 .PP
75 Managing processes that run on various system cpusets
76 .RS 4
77 The cset subcommand \fIcset\-proc(1)\fR allows you to manage processes running on various cpusets created on the system\&. You can exec new processes in specific cpusets and move tasks around existing cpusets\&. See the \fIcset\-proc(1)\fR subcommand for more details\&.
78 .RE
79 .SH "OPTIONS"
80 The following generic option flags are available\&. Additional options are available per\-command, and documented in the command\-specific documentation\&.
81
82 .PP
83 \fIcset\fR \-\-version
84 .RS 4
85 Display version information and exits\&.
86 .RE
87 .PP
88 \fIcset\fR \-\-help
89 .RS 4
90 Prints the synopsis and a list of all commands\&.
91 .RE
92 .PP
93 \fIcset\fR \-\-log <filename>
94 .RS 4
95 Creates a log file for the current run\&. All manner of useful information is stored in this file\&. This is usually used to debug cset when things don\(cqt go as planned\&.
96 .RE
97 .PP
98 \fIcset\fR \-\-machine
99 .RS 4
100 Makes cset output information for all operations in a format that is machine readable (i\&.e\&. easy to parse)\&.
101 .RE
102 .PP
103 \fIcset\fR \-\-tohex <CPUSPEC>
104 .RS 4
105 Converts a CPUSPEC (see \fIcset\-set(1)\fR for definition) to a hexadecimal number and outputs it\&. Useful for setting IRQ stub affinity to a cpuset definition\&.
106 .RE
107 .SH "CSET COMMANDS"
108 The cset commands are divided into groups, according to the primary purpose of those commands\&. Following is a short description of each command\&. A more detailed description is available in individual command manpages\&. Those manpages are named \fIcset\-<command>(1)\fR\&. The first command, \fIhelp\fR, is especially useful as it prints out a long summary of what a particular command does\&.
109
110 .PP
111 \fIcset help command\fR
112 .RS 4
113 print out a lengthy summary of how the specified subcommand works
114 .RE
115 .PP
116 \fIcset command \-\-help\fR
117 .RS 4
118 print out an extended synopsis of the specified subcommand
119 .RE
120 .PP
121 \fIcset shield\fR
122 .RS 4
123 supercommand to set up and manage basic shielding (see \fIcset\-shield(1)\fR)
124 .RE
125 .PP
126 \fIcset set\fR
127 .RS 4
128 create, modify and destroy cpusets (see \fIcset\-set(1)\fR)
129 .RE
130 .PP
131 \fIcset proc\fR
132 .RS 4
133 create and manage processes within cpusets (see \fIcset\-proc(1)\fR)
134 .RE
135 .SH "PERSISTENT CPUSETS"
136 To create a persistent cpuset setup, i\&.e\&. one that survives a reboot, you need to create the file \fI/etc/init\&.d/cset\fR\&. This distribution of cset includes an example cset init\&.d file found in \fI/usr/share/doc/pacakges/cpuset\fR which is called \fIcset\&.init\&.d\fR\&. You will need to alter the file to your specifications and copy it to be the file \fI/etc/init\&.d/cset\fR\&. See the comments in that file for more details\&.
137 .SH "FILES"
138 If used, the init\&.d script \fI/etc/init\&.d/cset\fR starts and stops a cpuset configuration on boot and poweroff\&.
139
140 Cpuset uses a configuration file if present on the system\&. The file is \fI/etc/cset\&.conf\fR and may contain the following options\&.
141
142 .PP
143 mountpoint = <directory_name>
144 .RS 4
145 Specify the mountpoint where the cpuset filesystem is to be mounted\&. By default this is \fI/cpusets\fR; however, some people prefer to mount this in the more traditional \fI/dev/cpusets\fR\&.
146 .RE
147 .SH "LICENSE"
148 Cpuset is licensed under the GNU GPL V2 only\&.
149 .SH "COPYRIGHT"
150 Copyright (c) 2008\-2011 Novell Inc\&.
151 .SH "AUTHOR"
152 Written by Alex Tsariounov <tsariounov@gmail\&.com>
153
154 Some substrate code and ideas were taken from the excellent Stacked GIT (stgit) v0\&.13 (see http://gna\&.org/projects/stgit and http://www\&.procode\&.org/stgit)\&. Stacked GIT is under GPL V2 or later\&.
155 .SH "SEE ALSO"
156 cset\-set(1), cset\-proc(1), cset\-shield(1)
157
158 /usr/share/doc/packages/cpuset/html/tutorial\&.html
159
160 /usr/share/doc/packages/cpuset/cset\&.init\&.d
161
162 taskset(1), chrt(1)
163
164 /usr/src/linux/Documentation/cpusets\&.txt
165 .SH "AUTHOR"
166 .PP
167 \fBAlex Tsariounov\fR <\&tsariounov@gmail\&.com\&>
168 .RS 4
169 Author.
170 .RE