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
22 utility provides scheduling and interrupt latency statistics.
23 It requires root privileges due to the kernel tracing facility it uses to
26 The arguments are as follows:
29 Set real time scheduling policy.
30 Default policy is timeshare.
34 option is specified, it takes a path to a
36 that contains the mappings for the system calls.
37 This option overrides the default location of the system call codefile which is
38 found in /usr/share/misc/trace.codes.
42 that is written to when either the interrupt or scheduling latency is exceeded.
44 Set the scheduler latency threshold in microseconds.
45 If latency exceeds this, and a logfile has been specified, a record of what
46 occurred during this time is recorded.
48 Set the interrupt latency threshold in microseconds.
49 If latency exceeds this, and a logfile has been specified, a record of what
50 occurred during this time is recorded.
54 option sets the timer.
55 It takes microseconds as an argument, the default timer is set to 1000
60 option sets the decrementer.
61 It takes microseconds as an argument.
62 The decrementer is set back to the system default on exit.
66 acts on the default /mach_kernel.
67 This option allows you to specify an alternate booted kernel.
70 The data columns displayed are as follows:
71 .Bl -tag -width LAST_PATHNAME_WAITED_FOR -compact
74 The number of context switches that fall within the described delay.
76 The number of interrupts that fall within the described delay.
81 utility is also SIGWINCH savvy, so adjusting your window geometry will change
82 the list of delay values displayed.
85 latency -rt -st 20000 -it 1000 -l /var/tmp/latency.log
89 utility will set the realtime scheduling policy.
90 The threshold for the scheduler is set to 20000 microseconds.
91 The threshold for interrupts is set to 1000 microseconds.
92 Latencies that exceed these thresholds will be logged in /var/tmp/latency.log.