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 except the running
19 Terminal, telnetd, sshd, rlogind, tcsh, csh and sh.
20 These defaluts can be overridden such that output is limited to
21 include or exclude a list of processes specified by the user.
23 The output presented by
25 is formatted according to the size of your window.
26 A narrow window will display fewer columns of data.
27 Use a wide window for maximum data display. You may
28 override the window formatting restrictions by
29 forcing a wide display with the
31 option. In this case, the data displayed will wrap
32 when the window is not wide enough.
34 The options are as follows:
39 option generates output that excludes sampling
40 of the running fs_usage tool. If a list of
41 process ids or commands is also given, then
42 those processes are also excluded from the sampled
47 option forces a wider, more detailed output,
48 regardless of the window size.
50 The sampled data can be limited to a list of process
51 ids or commands. When a command name is given, all
52 processes with that name will be sampled. Using the
54 option has the opposite effect, excluding sampled data
55 relating to the given list of process ids or commands.
58 If "/tmp/FileTracing" is present when a Carbon Application
59 is launched, then the high level Carbon FileManager
60 calls will be displayed bracketing the system calls that they
63 The data columns displayed are as follows:
64 .Bl -tag -width TIME_INTERVALWWWW -compact
67 TOD when call occurred. Wide mode will
68 have millesecond granularity.
70 the name of the filesystem call or page-in.
72 Of the form F=x, x is a file descriptor. Depending
73 on the type of system call, this will be either
74 an input value or a return value.
76 Of the form B=x, x is the number of bytes requested by the call.
78 On error, the errno is displayed in brackets.
80 Pathname of the file accessed (up to the last 28 bytes).
82 Of the form A=0xnnnnnnnn, where 0xnnnnnnnn is the
83 address being faulted.
85 The elapsed time spent in the system call.
86 A 'W' after the elapsed time indicates
87 the process was scheduled out during
88 this file activity. In this case, the elapsed
89 time includes the wait time.
91 The process that made the system call.
99 will report file system usage data for all
100 instances of processes named telnetd. Maximum
101 data output will be displayed in the window.