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 Due to the kernel tracing facility it uses to operate,
24 the command requires root privileges.
26 The arguments are as follows:
32 option is specified, it takes a path to a code file
33 that contains the mappings for the system calls.
34 This option overrides the default location of the system call code file,
35 which is found in /usr/share/misc/trace.codes.
37 .It Fl d Ar decrementer_in_usecs
38 Sets the decrementer, using a value expressed in microseconds.
39 On exit, the decrementer is set back to the system default value.
41 .It Fl it Ar threshold
42 Set the interrupt latency threshold,
43 expressed in microseconds.
44 If the latency exceeds this value,
45 and a log file has been specified,
46 a record of what occurred during this time is recorded.
49 Specifies a log file that is written to when
50 either the interrupt or scheduling latency is exceeded.
55 acts on the default /mach_kernel.
56 This option allows you to specify an alternate booted kernel.
59 Sets the real-time scheduling policy.
60 Default policy is timeshare.
62 .It Fl s Ar sleep_in_usecs
63 Sets the timer, taking an argument expressed in microseconds.
64 The default timer is set to 1000 microseconds.
66 .It Fl st Ar threshold
67 Set the scheduler latency threshold in microseconds.
68 If latency exceeds this, and a log file has been specified,
69 a record of what occurred during this time is recorded.
72 The data columns displayed are as follows:
73 .Bl -tag -width LAST_PATHNAME_WAITED_FOR
75 The number of context switches that fall within the described delay.
77 The number of interrupts that fall within the described delay.
82 utility is also SIGWINCH savvy, so adjusting your window geometry will change
83 the list of delay values displayed.
86 latency -rt -st 20000 -it 1000 -l /var/tmp/latency.log
90 utility will set the realtime scheduling policy.
91 The threshold for the scheduler is set to 20000 microseconds.
92 The threshold for interrupts is set to 1000 microseconds.
93 Latencies that exceed these thresholds will be logged in /var/tmp/latency.log.