| 1 |
.TH OSLAT 8 "August 17, 2020" |
| 2 |
# SPDX-License-Identifier: GPL-3.0-only |
| 3 |
.\" for manpage-specific macros, see man(7) |
| 4 |
.SH NAME |
| 5 |
oslat \- OS Latency Detector |
| 6 |
.SH SYNOPSIS |
| 7 |
.SY oslat |
| 8 |
.RI "[ \-shvz ] [ \-b " bucket-size " ] [ \-B " bias " ] [ \-c " cpu-list " ] \ |
| 9 |
[ \-C " cpu-main-thread " ] [ \-f " rt-prio " ] [ \-\-json " filename " ] \ |
| 10 |
[ \-m " workload-mem " ] [\-t " runtime " ] [ \-T " trace-threshold " ] \ |
| 11 |
[ \-w " workload " ] [ \-W " bucket-width " ]" |
| 12 |
.SH DESCRIPTION |
| 13 |
.B oslat |
| 14 |
is an open source userspace polling mode stress program to detect OS level |
| 15 |
latency. The program runs a busy loop with no or various workloads, collecting |
| 16 |
TSC information and measuring the time frequently during the process. |
| 17 |
.SH OPTIONS |
| 18 |
.TP |
| 19 |
.B \-b, \-\-bucket-size=N |
| 20 |
Specify the number of the buckets (4-1024). |
| 21 |
.TP |
| 22 |
.B \-B, \-\-bias |
| 23 |
Add a bias to all the buckets using the estimated mininum. |
| 24 |
.TP |
| 25 |
.B \-c, \-\-cpu-list=CPULIST |
| 26 |
Specify CPUs to run on. For example, '1,3,5,7-15'. |
| 27 |
.TP |
| 28 |
.B \-C, \-\-cpu-main-thread=CORE |
| 29 |
Specify which CPU the main thread runs on. Default is cpu0. |
| 30 |
.TP |
| 31 |
.B \-f, \-\-rtprio=PRIORITY |
| 32 |
Using specific SCHED_FIFO priority (1-99). Otherwise use the default |
| 33 |
priority, normally it will be SCHED_OTHER. |
| 34 |
.TP |
| 35 |
.B \-\-json=FILENAME |
| 36 |
Write final results into FILENAME, JSON formatted. |
| 37 |
.TP |
| 38 |
.B \-m, \-\-workload-mem=SIZE |
| 39 |
Size of the memory to use for the workload (e.g., 4K, 1M). |
| 40 |
Total memory usage will be this value multiplies 2*N, |
| 41 |
because there will be src/dst buffers for each thread, and |
| 42 |
N is the number of processors for testing. |
| 43 |
.TP |
| 44 |
.B \-D, \-\-duration=TIME |
| 45 |
Specify test duration, e.g., 60, 20m, 2H (m/M: minutes, h/H: hours, d/D: days). |
| 46 |
By default the unit is s/second. |
| 47 |
.TP |
| 48 |
.B \-T, \-\-trace-threshold=THRESHOLD |
| 49 |
Stop the test when threshold triggered (in USEC). At the meantime, print a |
| 50 |
marker in ftrace and stop ftrace too. |
| 51 |
.TP |
| 52 |
.B \-w, \-\-workload=WORKLOAD |
| 53 |
Specify a kind of workload, default is no workload. Options: "no", "memmove". |
| 54 |
.TP |
| 55 |
.B \-s, \-\-single-preheat |
| 56 |
Use a single thread when measuring latency at preheat stage |
| 57 |
NOTE: please make sure the CPU frequency on all testing cores |
| 58 |
are locked before using this parmater. If you don't know how |
| 59 |
to lock the freq then please don't use this parameter. |
| 60 |
.TP |
| 61 |
.B \-W, \-\-bucket-width |
| 62 |
Interval between buckets in nanoseconds |
| 63 |
|
| 64 |
NOTE: Widths not a multiple of 1000 cause ns-precision output |
| 65 |
You are responsible for considering the impact of measurement |
| 66 |
overhead at the nanosecond scale. |
| 67 |
.TP |
| 68 |
.B \-h, \-\-help |
| 69 |
Show the help message. |
| 70 |
.TP |
| 71 |
.B \-v, \-\-version |
| 72 |
Show the version of the program. |
| 73 |
.TP |
| 74 |
.B \-z, \-\-zero-omit |
| 75 |
Don't display buckets in the output histogram if all zeros. |
| 76 |
.SH AUTHOR |
| 77 |
.B oslat |
| 78 |
was written by Peter Xu <[email protected]>. |