Debian Codegraph @

src/cyclictest/cyclictest.8

raw
1 .\" Hey, EMACS: -*- nroff -*-
2 .TH CYCLICTEST 8 "April 22, 2016"
3 # SPDX-License-Identifier: GPL-2.0-only
4 .\" Please adjust this date whenever revising the manpage.
5 .\"
6 .\" Some roff macros, for reference:
7 .\" .nh disable hyphenation
8 .\" .hy enable hyphenation
9 .\" .ad l left justify
10 .\" .ad b justify to both left and right margins
11 .\" .nf disable filling
12 .\" .fi enable filling
13 .\" .br insert line break
14 .\" .sp <n> insert n+1 empty lines
15 .\" for manpage-specific macros, see man(7)
16 .SH NAME
17 cyclictest \- High resolution test program
18 .SH SYNOPSIS
19 .SY cyclictest
20 .RI "[ \-hfmnqrsvMS ] [\-a " proc " ] [\-A " aligned " ] [\-b " usec " ] [\-c " clock " ] [\-d " dist " ] \
21 [\-h " histogram " ] [\-i " intv " ] [\-\-json " filename " ] [\-l " loop " ] [\-o " red " ] \
22 [\-p " prio " ] [\-t " num " ] [\-D " time "] [\-w] [\-W] [\-y " policy " ] [ \-S | \-U ]"
23
24 .\" .SH DESCRIPTION
25 .\" This manual page documents briefly the
26 .\" .B cyclictest commands.
27 .\" .PP
28 .\" \fI<whatever>\fP escape sequences to invode bold face and italics, respectively.
29 .\" \fBcyclictest\fP is a program that...
30 .SH OPTIONS
31 These programs follow the usual GNU command line syntax, with long
32 options starting with two dashes ('\-\-').
33 .br
34 A summary of options is included below.
35 .\" For a complete description, see the Info files.
36 .TP
37 .B \-a, \-\-affinity[=PROC-SET]
38 Run threads on the set of processors given by PROC-SET. If PROC-SET is not
39 specified, all processors will be used. Threads will be assigned to processors
40 in the set in numeric order, in a round\-robin fashion.
41 .br
42 The set of processors can be specified as A,B,C, or A-C, or A-B,D-F, and so on*.
43 The ! character can be used to negate a set. For example, !B-D means to use all
44 available CPUs except B through D. The cpu numbers are the same as shown in the
45 .I processor
46 field in /proc/cpuinfo. See numa(3) for more information on specifying CPU sets.
47 * Support for CPU sets requires libnuma version >= 2. For libnuma v1, PROC-SET,
48 if specified, must be a single CPU number.
49 .TP
50 .B \-A, \-\-aligned=USEC
51 Align thread wakeups to a specific offset in microseconds
52 .TP
53 .B \-b, \-\-breaktrace=USEC
54 Send break trace command when latency > USEC
55 .TP
56 .B \-c, \-\-clock=CLOCK
57 select clock
58 .br
59 0 = CLOCK_MONOTONIC (default)
60 .br
61 1 = CLOCK_REALTIME
62 .TP
63 .B \-\-deepest\-idle\-state=n
64 Reduce exit from idle latency by limiting idle state up to n on used cpus (-1 disables all idle states). Power management is not suppresed on other cpus.
65 .TP
66 .B \-\-default\-system
67 Don't attempt to tune the system from cyclictest. Power management is not suppressed. This might give poorer results, but will allow you to discover if you need to tune the system.
68 .TP
69 .B \-d, \-\-distance=DIST
70 Distance of thread intervals in us, default = 500
71 .TP
72 .B \-D, \-\-duration=TIME
73 Specify a length for the test run.
74 .br
75 Append 'm', 'h', or 'd' to specify minutes, hours or days.
76 .TP
77 .B \-F, \-\-fifo=<path>
78 Create a named pipe at path and write stats to it
79 .TP
80 .B \-h, \-\-histogram=US
81 Dump latency histogram to stdout after the run. US is the max latency time to be be tracked in microseconds. This option runs all threads at the same priority.
82 .TP
83 .B \-H, \-\-histofall=MAXLATENCYINUS
84 Same as -h except that an additional histogram column is displayed at the right that contains summary data of all thread histograms. If cyclictest runs a single thread only, the -H option is equivalent to -h.
85 .TP
86 .B \-\-histfile=<path>
87 Dump the latency histogram to <path> instead of stdout.
88 .TP
89 .B \-i, \-\-interval=INTV
90 Set the base interval of the thread(s) in microseconds (default is 1000us). This sets the interval of the first thread. See also \-d.
91 .TP
92 .B \-\-json=FILENAME
93 Write final results into FILENAME, JSON formatted.
94 .TP
95 .B \-\-laptop
96 Save battery when running cyclictest. This will give you poorer realtime results, but will not drain your battery so quickly.
97 .TP
98 .B \-\-latency=PM_Q0S
99 power management latency target value. This value is written to /dev/cpu_dma_latency and affects c-states. The default is 0
100 .TP
101 .B \-l, \-\-loops=LOOPS
102 Set the number of loops. The default is 0 (endless). This option is useful for automated tests with a given number of test cycles. Cyclictest is stopped once the number of timer intervals has been reached.
103 .TP
104 .B \-\-mainaffinity=CPUSET
105 Run the main thread on CPU #N. This only affects the main thread and not the measurement threads
106 .TP
107 .B \-m, \-\-mlockall
108 Lock current and future memory allocations to prevent being paged out
109 .TP
110 .B \\-M, \-\-refresh_on_max
111 Delay updating the screen until a new max latency is hit. (useful for
112 running cyclictest on low-bandwidth connections)
113 .TP
114 .B \-N, \-\-nsecs
115 Show results in nanoseconds instead of microseconds, which is the default unit.
116 .TP
117 .B \-o, \-\-oscope=RED
118 Oscilloscope mode, reduce verbose output by RED.
119 .TP
120 .B \-p, \-\-prio=PRIO
121 Set the priority of the first thread. The given priority is set to the first test thread. Each further thread gets a lower priority:
122 Priority(Thread N) = max(Priority(Thread N\-1) \- 1, 0)
123 .TP
124 .B \-\-policy=NAME
125 set the scheduler policy of the measurement threads
126 where NAME is one of: other, normal, batch, idle, fifo, rr
127 .TP
128 .B \-\-priospread
129 spread priority levels starting at a specified value
130 .TP
131 .B \-q, \-\-quiet
132 Print a summary only on exit. Useful for automated tests, where only the summary output needs to be captured.
133 .TP
134 .B \-r, \-\-relative
135 Use relative timers instead of absolute. The default behaviour of the tests is to use absolute timers. This option is there for completeness and should not be used for reproducible tests.
136 .TP
137 .B \-R, \-\-resolution
138 Check clock resolution, calling clock_gettime() many times. List of lock_gettime() values will be reported with -X
139 .TP
140 .B \-\-secaligned [USEC]
141 align thread wakeups to the next full second and apply the optional offset.
142 .TP
143 .B \-s, \-\-system
144 Use sys_nanosleep and sys_setitimer instead of posix timers. Note, that \-s can only be used with one thread because itimers are per process and not per thread. \-s uses the nanosleep syscall and is not restricted to one thread.
145 .TP
146 .B \\-S, \-\-smp
147 Set options for standard testing on SMP systems. Equivalent to using
148 the options: "\-t \-a" as well keeping any specified priority
149 equal across all threads
150 .TP
151 .B \-\-spike=<trigger>
152 record all spikes > trigger
153 .TP
154 .B \-\-spike-nodes=[num of nodes]
155 These are the maximum number of spikes we can record.
156 .br
157 The default is 1024 if not specified.
158 .TP
159 .B \\-\-smi
160 Enable SMI count/detection on processors with SMI count support.
161 .TP
162 .B \-t, \-\-threads[=NUM]
163 Set the number of test threads (default is 1). Create NUM test threads. If NUM is not specified, NUM is set to
164 the number of available CPUs. See \-d, \-i and \-p for further information.
165 .TP
166 .B \-\-tracemark
167 write a trace mark when \-b latency is exceeded.
168 .TP
169 .B \-u, \-\-unbuffered
170 force unbuffered output for live processing
171 .TP
172 .B \-v, \-\-verbose
173 Output values on stdout for statistics. This option is used to gather statistical information about the latency distribution. The output is sent to stdout. The output format is:
174
175 n:c:v
176
177 where n=task number c=count v=latency value in us.
178 .TP
179 .B \-\-dbg_cyclictest
180 Print info userful for debugging cyclictest
181 .TP
182 .B \-x, \-\-posix_timers
183 Use POSIX timers instead of clock_nanosleep.
184
185 .SH SEE ALSO
186 .BR numa (3),
187 .BR numactl (8),
188 .\" .br
189 .\" The programs are documented fully by
190 .\" .IR "The Rise and Fall of a Fooish Bar" ,
191 .\" available via the Info system.
192 .SH AUTHOR
193 cyclictest was written by Thomas Gleixner <[email protected]>.
194 .PP
195 This manual page was written by Alessio Igor Bogani <[email protected]>,
196 for the Debian project (but may be used by others).
197 .br
198 Updated by John Kacur <[email protected]>