Debian Codegraph @

numad.8

raw
1 .TH "numad" "8" "1.0.0" "Bill Gray" "Administration"
2 .SH "NAME"
3 .LP
4 numad \- A user\-level daemon that provides placement advice and process
5 management for efficient use of CPUs and memory on systems with NUMA topology.
6 .SH "SYNOPSIS"
7 .LP
8 numad [\fI\-dhvV\fP]
9 .br
10 .LP
11 numad [\fI\-C 0|1\fP]
12 .br
13 .LP
14 numad [\fI\-H THP_hugepage_scan_sleep_ms\fP]
15 .br
16 .LP
17 numad [\fI\-i [min_interval:]max_interval\fP]
18 .br
19 .LP
20 numad [\fI\-K 0|1\fP]
21 .br
22 .LP
23 numad [\fI\-l log_level\fP]
24 .br
25 .LP
26 numad [\fI\-m target_memory_locality\fP]
27 .br
28 .LP
29 numad [\fI\-p PID\fP]
30 .br
31 .LP
32 numad [\fI\-r PID\fP]
33 .br
34 .LP
35 numad [\fI\-R reserved-CPU-list\fP]
36 .br
37 .LP
38 numad [\fI\-S 0|1\fP]
39 .br
40 .LP
41 numad [\fI\-t logical_CPU_percent\fP]
42 .br
43 .LP
44 numad [\fI\-u target_utilization\fP]
45 .br
46 .LP
47 numad [\fI\-w NCPUS[:MB]\fP]
48 .br
49 .LP
50 numad [\fI\-x PID\fP]
51 .br
52 .SH "DESCRIPTION"
53 .LP
54 Numad is a system daemon that monitors NUMA topology and resource usage. It
55 will attempt to locate processes for efficient NUMA locality and affinity,
56 dynamically adjusting to changing system conditions. Numad also provides
57 guidance to assist management applications with initial manual binding of CPU
58 and memory resources for their processes. Note that numad is primarily
59 intended for server consolidation environments, where there might be multiple
60 applications or multiple virtual guests running on the same server system.
61 Numad is most likely to have a positive effect when processes can be localized
62 in a subset of the system's NUMA nodes. If the entire system is dedicated to a
63 large in-memory database application, for example -- especially if memory
64 accesses will likely remain unpredictable -- numad will probably not improve
65 performance.
66 .SH "OPTIONS"
67 .LP
68 .TP
69 \fB\-C\fR <\fI0|1\fP>
70 This option controls whether or not numad treats inactive file cache as
71 available memory. By default, numad assumes it can count inactive file cache as
72 "free" memory when considering resources to match with processes. Specify
73 \fI\-C 0\fP if numad should instead consider inactive file cache as a consumed
74 resource.
75 .TP
76 \fB\-d\fR
77 Debug output in log, sets the log level to LOG_DEBUG. Same effect as \fI\-l 7\fP.
78 .TP
79 \fB\-h\fR
80 Display usage help information and then exit.
81 .TP
82 \fB\-H\fR <\fITHP_scan_sleep_ms\fP>
83 Set the desired transparent hugepage scan interval in ms. The
84 .na
85 /sys/kernel/mm/tranparent_hugepage/khugepaged/scan_sleep_millisecs
86 .ad
87 tunable is usually set to 10000ms by the operating system. The default is
88 changed by numad to be 1000ms since it is helpful for the hugepage daemon to be
89 more aggressive when memory moves between nodes. Specifying (\fI\-H 0\fP) will
90 cause numad to retain the system default value. You can also make the hugepage
91 daemon more or less aggressive by specifying an alternate value with this
92 option. For example, setting this value to 100ms (\fI\-H 100\fP) might improve
93 the performance of workloads which use many transparent hugepages.
94 .TP
95 \fB\-i\fR <\fI[min_interval:]max_interval\fP>
96 Sets the time interval that numad waits between system scans, in seconds to
97 <\fImax_interval\fP>. Default <\fImax_interval\fP> is 15 seconds, default
98 <\fImin_interval\fP> is 5 seconds. Setting a <\fImax_interval\fP> of zero will
99 cause the daemon to exit. (This is the normal mechanism to terminate the
100 daemon.) A bigger <\fImax_interval\fP> will decrease numad overhead but also
101 decrease responsiveness to changing loads. The default numad max_interval can
102 be changed in the numad.conf file.
103 .TP
104 \fB\-K\fR <\fI0|1\fP>
105 This option controls whether numad keeps interleaved memory spread across NUMA
106 nodes, or attempts to merge interleaved memory to local NUMA nodes. The
107 default is to merge interleaved memory. This is the appropriate setting to
108 localize processes in a subset of the system's NUMA nodes. If you are running
109 a large, single-instance application that allocates interleaved memory because
110 the workload will have continuous unpredictable memory access patterns (e.g. a
111 large in-memory database), you might get better results by specifying \fI\-K
112 1\fP to instruct numad to keep interleaved memory distributed.
113 .TP
114 \fB\-l\fR <\fIlog_level\fP>
115 Sets the log level to <\fIlog_level\fP>. Reasonable choices are 5, 6, or 7.
116 The default value is 5. Note that CPU values are scaled by a factor of 100
117 internally and in the numad log files. Unfortunately, you don't actually have
118 that many CPUs.
119 .TP
120 \fB\-m\fR <\fItarget_memory_locality\fP>
121 Set the desired memory locality threshold to stop moving process memory. Numad
122 might stop retrying to coalesce process memory when more than this percentage
123 of the process's memory is already localized in the target node(s). The
124 default is 90%. Numad will frequently localize more than the localization
125 threshold percent, but it will not necessarily do so. Decrease the threshold
126 to allow numad to leave more process memory distributed on various nodes.
127 Increase the threshold to instruct numad to try to localize more memory.
128 Acceptable values are between 50 and 100 percent. Note that setting the target
129 memory locality to 100% might cause numad to continually retry to move memory
130 that the kernel will never successfully move.
131 .TP
132 \fB\-p\fR <\fIPID\fP>
133 Add PID to explicit inclusion list of processes to consider for managing, if
134 the process also uses significant resources. Multiple \fI\-p PID\fP options
135 can be specified at daemon start, but after daemon start, only one PID can be
136 added to the inclusion list per subsequent numad invocation. Use with \-S to
137 precisely control the scope of processes numad can manage. Note that the
138 specified process will not necessarily be actively managed unless it also meets
139 numad's significance threshold -- which is currently 300MB and half of a CPU.
140 .TP
141 \fB\-r\fR <\fIPID\fP>
142 Remove PID from both the explicit inclusion and the exclusion lists of
143 processes. After daemon start, only one PID can be removed from the explicit
144 process lists per subsequent numad invocation. Use with \-S and \-p and \-x to
145 precisely control the scope of processes numad can manage.
146 .TP
147 \fB\-R\fR <\fICPU_LIST\fP>
148 Specify a list of CPUs that numad should assume are reserved for non-numad use.
149 No processes will be bound to the specified CPUs by numad. This option is
150 effective only when starting numad. You cannot change reserved CPUs
151 dynamically while numad is already running.
152 .TP
153 \fB\-S\fR <\fI0|1\fP>
154 This option controls whether numad scans all system processes or only the
155 processes on the explicit inclusion PID list. The default is to scan all
156 processes. Use \fI\-S 0\fP to scan only the explicit inclusion PID list. Use
157 \fI\-S 1\fP to again scan all system processes (excepting those on the explicit
158 exclusion list). Starting numad as
159 .br
160 \fInumad \-S 0 \-p <PID-1> \-p <PID-2> \-p <PID-3>\fP
161 .br
162 will limit scanning, and thus also automatic NUMA management, to only those
163 three explicitly specified processes.
164 .TP
165 \fB\-t\fR <\fIlogical_CPU_percent\fP>
166 Specify the resource value of logical CPUs. Hardware threads typically share
167 most core resources, and so logical CPUs add only a fraction of CPU power for
168 many workloads. By default numad considers logical CPUs to be only 20 percent
169 of a dedicated hardware core.
170 .TP
171 \fB\-u\fR <\fItarget_utilization\fP>
172 Set the desired maximum consumption percentage of a node. Default is 85%.
173 Decrease the target value to maintain more available resource margin on each
174 node. Increase the target value to more exhaustively consume node resources.
175 If you have sized your workloads to precisely fit inside a NUMA node,
176 specifying (\fI\-u 100\fP) might improve system performance by telling numad to
177 go ahead and consume all the resources in each node. It is possible to specify
178 values up to 130 percent to oversubscribe CPUs in the nodes, but memory
179 utilization is always capped at 100%. Use oversubscription values very
180 carefully.
181 .TP
182 \fB\-v\fR
183 Verbose output in log, sets the log level to LOG_INFO. Same effect as \fI\-l 6\fP.
184 .TP
185 \fB\-V\fR
186 Display version information and exit.
187 .TP
188 \fB\-w\fR <\fINCPUS[:MB]\fP>
189 Queries numad for the best NUMA nodes to bind an entity that needs
190 <\fINCPUS\fP>. The amount of memory (in MBs) is optional, but should normally
191 be specified as well <\fI:MB\fP> so numad can recommend NUMA nodes with
192 available CPU capacity and adequate free memory. This query option can be used
193 regardless of whether numad is running as a daemon. (An invocation using this
194 option when numad is not running as a daemon, will not cause the daemon to
195 start.) Output of this option is a string that contains a NUMA node list. For
196 example: 2\-3,6. The recommended node list could be saved in a shell variable
197 (e.g., NODES) and then used as the node list parameter in a
198 .br
199 \fInumactl \-m $NODES \-N $NODES ... \fP
200 .br
201 command. See numactl(8).
202 .TP
203 \fB\-x\fR <\fIPID\fP>
204 Add PID to explicit exclusion list of processes to blacklist from managing.
205 Multiple \fI\-x PID\fP options can be specified at daemon start, but after
206 daemon start, only one PID can be added to the exclusion list per subsequent
207 numad invocation. Use with \-S to precisely control the scope of processes
208 numad can manage.
209 .SH "FILES"
210 .LP
211 \fI/usr/bin/numad\fP
212 .br
213 \fI/etc/numad.conf\fP
214 .br
215 \fI/var/log/numad.log\fP
216 .br
217 \fI/var/run/numad.pid\fP
218 .SH "ENVIRONMENT VARIABLES"
219 .LP
220 .TP
221 None.
222 .SH "EXAMPLES"
223 .LP
224 Numad can be run as a system daemon and can be managed by the
225 standard init mechanisms of the host.
226 .LP
227 If interactive (manual) control is desired, you can start the daemon manually by typing:
228 .LP
229 /usr/bin/numad
230 .LP
231 Subsequent numad invocations while the daemon is running can be used to dynamically change most run-time options.
232 .LP
233 You can terminate numad from running by typing:
234 .LP
235 /usr/bin/numad -i0
236 .SH "AUTHORS"
237 .LP
238 Bill Gray <[email protected]>
239 .SH "SEE ALSO"
240 .LP
241 numactl(8)