2 .\" Copyright (c) 2000, Apple Computer, Inc. All rights reserved.
9 .Nd reports system calls and page faults related to filesystem activity
12 .Nm fs_usage [-e] [-w] [ pid|cmd [pid|cmd] ...]
15 presents an ongoing display of system call usage
16 information pertaining to filesystem activity. By default
17 this includes all system processes. The information, however,
18 may be limited to include or exclude a specified list
21 The output presented by
23 is formatted according to the size of your window.
24 A narrow window will display fewer columns of data.
25 Use a wide window for maximum data display. You may
26 override the window formatting restrictions by
27 forcing a wide display with the
29 option. In this case, the data displayed will wrap
30 when the window is not wide enough.
32 The options are as follows:
37 option generates output that excludes sampling
38 of the running fs_usage tool. If a list of
39 process ids or commands is also given, then
40 those processes are also excluded from the sampled
45 option forces a wider, more detailed output,
46 regardless of the window size.
48 The sampled data can be limited to a list of process
49 ids or commands. When a command name is given, all
50 processes with that name will be sampled. Using the
52 option has the opposite effect, excluding sampled data
53 relating to the given list of process ids or commands.
56 If "/tmp/FileTracing" is present when a Carbon Application
57 is launched, then the high level Carbon FileManager
58 calls will be displayed bracketing the system calls that they
61 The data columns displayed are as follows:
62 .Bl -tag -width TIME_INTERVALWWWW -compact
65 TOD when call occurred. Wide mode will
66 have millesecond granularity.
68 the name of the filesystem call or page-in.
70 Of the form F=x, x is a file descriptor. Depending
71 on the type of system call, this will be either
72 an input value or a return value.
74 Of the form B=x, x is the number of bytes requested by the call.
76 On error, the errno is displayed in brackets.
78 Pathname of the file accessed (up to the last 28 bytes).
80 Of the form A=0xnnnnnnnn, where 0xnnnnnnnn is the
81 address being faulted.
83 The elapsed time spent in the system call.
84 A 'W' after the elapsed time indicates
85 the process was scheduled out during
86 this file activity. In this case, the elapsed
87 time includes the wait time.
89 The process that made the system call.
97 will report file system usage data for all
98 instances of processes named telnetd. Maximum
99 data output will be displayed in the window.