NAME
ffssuussaaggee - report system calls and page faults related to filesystem
activity in real-time
SYNOPSIS
ffssuussaaggee [[-ee]] [[-ww]] [[-ff mmooddee [[-ff mmooddee]] ......]] [ppiidd||ccmmdd [[ppiidd||ccmmdd]] ......]]
DESCRIPTION
The ffssuussaaggee utility presents an ongoing display of system call usageinformation pertaining to filesystem activity. It requires root privi-
leges due to the kernel tracing facility it uses to operate. By default the activity monitored includes all system processes except the running ffssuussaaggee process, Terminal, telnetd, sshd, rlogind, tcsh, csh and sh. These defaults can be overridden such that output is limited to include or exclude a list of processes specified by the user. The output presented by ffssuussaaggee is formatted according to the size of your window. A narrow window will display fewer columns of data. Use awide window for maximum data display. You may override the window for-
matting restrictions by forcing a wide display with the -ww option. In
this case, the data displayed will wrap when the window is not wide enough. The options are as follows:-ee Specifying the -ee option generates output that excludes sampling
of the running fsusage tool. If a list of process ids or com-
mands is also given, then those processes are also excluded from the sampled output.-ww Specifying the -ww option forces a wider, more detailed output,
regardless of the window size.-ff Specifying the -ff option turns on output filtering based on the
mode provided. Multiple filtering options can be specified. By default no output filtering occurs. The supported modes are: network Only network related output is displayed. filesys Only file system related output is displayed. cachehit In addition, display CACHEHIT output. pid | cmdThe sampled data can be limited to a list of process ids or com-
mands. When a command name is given, all processes with thatname will be sampled. Using the -ee option has the opposite
effect, excluding sampled data relating to the given list of process ids or commands. If you set the DYLDIMAGESUFFIX environment variable to ``debug'', then an application will use the debug version of all libraries including the Carbon FileManager. See dyld(1). When ffssuussaaggee is run against a Carbon Application launched in this environment, then the high level Carbon FileManager calls will be displayed bracketing the system calls that they are built on. The data columns displayed are as follows: TIMESTAMPTOD when call occurred. Wide mode will have millisecond granu-
larity.CALL The name of the network or filesystem related call, page-in,
page-out or physical disk access.
FILE DESCRIPTOR Of the form F=x, x is a file descriptor. Depending on the type of system call, this will be either an input value or a return value. BYTE COUNT Of the form B=x, x is the number of bytes requested by the call. [ERRNO] On error, the errno is displayed in brackets.PATHNAME
Pathname of the file accessed (up to the last 28 bytes). FAULT ADDRESS Of the form A=0xnnnnnnnn, where 0xnnnnnnnn is the address being faulted. DISK BLOCK NUMBER Of the form D=0xnnnnnnnn, where 0xnnnnnnnn is the block number of the physical disk block being read or written. OFFSET Of the form O=0xnnnnnnnn, where 0xnnnnnnnn is a file offset. SELECT RETURN Of the form S=x, x is the number of ready descriptors returned by the select() system call. If S=0, the time limit expired. TIME INTERVAL(W) The elapsed time spent in the system call. A `W' after the elapsed time indicates the process was scheduled out during this file activity. In this case, the elapsed time includes the wait time.PROCESS NAME
The process that made the system call. SSAAMMPPLLEE UUSSAAGGEEfsusage -w -f filesys Mail
ffssuussaaggee will display file system related data for all instances of pro-
cesses named Mail. Maximum data output will be displayed in the window.SEE ALSO
top(1), scusage(1), latency(1), dyld(1) Mac OS X November 7, 2002 Mac OS X