1 .\" Copyright (c) 2000, Apple Computer, Inc. All rights reserved.
8 .Nd monitors scheduling and interrupt latency
14 .Op Fl st Ar threshold
15 .Op Fl it Ar threshold
16 .Op Fl s Ar sleep_in_usecs
17 .Op Fl d Ar decrementer_in_usecs
21 provides scheduling and interrupt latency statistics.
23 The arguments are as follows:
26 Set real time scheduling policy. Default policy is timeshare.
30 option is specified, it takes a path to a
33 contains the mappings for the system calls. This option
34 overrides the default location of the system call codefile
35 which is found in /usr/share/misc/trace.codes.
39 that is written to when either the interrupt or scheduling
42 Set the scheduler latency threshold in microseconds. If latency
43 exceeds this, and a logfile has been specified, a record
44 of what occurred during this time is recorded.
46 Set the interrupt latency threshold in microseconds. If latency
47 exceeds this, and a logfile has been specified, a record
48 of what occurred during this time is recorded.
52 option sets the timer. It takes microseconds as an argument,
53 the default timer is set to 1000 microseconds.
57 option sets the decrementer. It takes microseconds as an argument.
58 The decrementer is set back to the system default on exit.
62 acts on the default /mach_kernel. This option
63 allows you to specify an alternate booted kernel.
66 The data columns displayed are as follows:
67 .Bl -tag -width LAST_PATHNAME_WAITED_FOR -compact
70 The number of context switches that fall
71 within the described delay.
73 The number of interrupts that fall
74 within the described delay.
79 command is also SIGWINCH savvy, so adjusting your window geometry will change
80 the list of delay values displayed.
83 latency -rt -st 20000 -it 1000 -l /var/tmp/latency.log
86 will set the realtime scheduling policy. The threshold for the scheduler is set to
87 20000 microseconds. The threshold for interrupts is set to 1000
88 microseconds. Latencies that exceed these thresholds will be logged
89 in /var/tmp/latency.log.