Debian Codegraph @

src/pi_tests/pi_stress.8

raw
1 .\" Process this file with
2 .\" groff -man -Tascii pi_stress.8
3 .\"
4 .\"{{{}}}
5 .\"{{{ Title
6 .TH pi_stress 8 "Nov 27, 2006" "" "Linux System Administrator's Manual"
7 # SPDX-License-Identifier: GPL-2.0-or-later
8 .\"}}}
9 .\"{{{ Name
10 .SH NAME
11 pi_stress \- a stress test for POSIX Priority Inheritance mutexes
12 .\"}}}
13 .\"{{{ Synopsis
14 .\" Usage: pi_stress [-d] [-D TIME] [-g N] [-h] [-i N ] [--json FILENAME ] [-m] [-p] [-q] [-r] [-s OPTS] [-u] [-v] [-V]
15 .SH SYNOPSIS
16 .B pi_stress
17 .RB [ \-d|\-\-debug]
18 .RB [ \-D|\-\-duration
19 .iR TIME ]
20 .RB [ \-g|\-\-groups
21 .IR N ]
22 .RB [ \-i|\-\-inversions
23 .IR INV ]
24 .RB [ \-\-json
25 .IR FILENAME ]
26 .RB [ \-m|\-\-mlockall ]
27 .RB [ \-p|\-\-prompt ]
28 .RB [ \-q|\-\-quiet ]
29 .RB [ \-r|\-\-rr ]
30 .RB [ \-s|\-\-sched
31 .IR OPTS ]
32 .RB [ \-u|\-\-uniprocessor ]
33 .RB [ \-v|\-\-verbose ]
34 .RB [ \-V|\-\-version ]
35 .br
36 .SH DESCRIPTION
37 .B pi_stress
38 is a program used to stress the
39 .IR priority-inheritance
40 code paths for POSIX mutexes, in both the Linux kernel and the C
41 library. It runs as a realtime-priority task and launches
42 .IR "inversion machine"
43 thread groups. Each inversion group causes a
44 .IR "priority inversion"
45 condition that will deadlock if
46 .IR "priority inheritance"
47 doesn't work.
48
49 .SH OPTIONS
50 .IP "\-d|\-\-debug"
51 Run in debug mode; lots of extra prints
52 .IP "\-D TIME, \-\-duration=TIME"
53 Specify a length for the test run.
54 .br
55 Append 'm', 'h', or 'd' to specify minutes, hours or days.
56 .IP "\-g N|\-\-groups=N"
57 The number of inversion groups to run. Defaults to 10.
58 .IP "\-h|\-\-help"
59 Display a short help message and options.
60 .IP "\-i N|\-\-inversions=N"
61 .I N
62 number of inversion conditions. This is the total number of inversions
63 for all inversion groups. Default is \-1 for infinite.
64 .IP "\-\-json=FILENAME"
65 Write final results into
66 .I FILENAME
67 , JSON formatted.
68 .IP "\-m|\-\-mlockall"
69 Call mlockall to lock current and future memory allocations and
70 prevent being paged out
71 .IP "\-p|\-\-prompt"
72 Prompt before actually starting the stress test
73 .IP "\-q|\-\-quiet"
74 Suppress running output
75 .IP "\-r|\-\-rr"
76 Run inversion group threads as SCHED_RR (round-robin). The default is
77 to run the inversion threads as SCHED_FIFO.
78 .IP "\-s OPTS|\-\-sched OPTS"
79 scheduling options per thread type:
80 .br
81 id=[high|med|low],
82 .br
83 policy=[fifo,rr],priority=N,
84 .br
85 policy=deadline,runtime=N,deadline=N,period=N
86 .IP "\-u|\-\-uniprocessor"
87 Run all threads on one processor. The default is to run all inversion
88 group threads on one processor and the admin threads (reporting
89 thread, keyboard reader, etc.) on a different processor.
90 .IP "\-v|\-\-verbose"
91 Run with verbose messages
92 .IP "\-V|\-\-version"
93 Print version number
94 .SH CAVEATS
95 The pi_stress test threads run as SCHED_FIFO or SCHED_RR threads,
96 which means that they can starve critical system threads. It is
97 advisable to change the scheduling policy of critical system threads
98 to be SCHED_FIFO prior to running pi_stress and use a priority of 10
99 or higher, to prevent those threads from being starved by the stress
100 test.
101 .SH BUGS
102 No documented bugs.
103 .SH AUTHOR
104 Clark Williams <[email protected]>