rwbypid.d 1m "$Date:: 2007-08-05 #$" "USER COMMANDS"
NAME
rwbypid.d - read/write calls by PID. Uses DTrace.
SYNOPSIS
rwbypid.d
DESCRIPTION
This script tracks the number of reads and writes at the syscall level by processes, printing the totals in a report. This matches reads and writes whether they succeed or not. Since this uses DTrace, only the root user or users with the dtrace_kernel privilege can run this command.
OS
Solaris
STABILITY
stable - needs the syscall provider.
EXAMPLES

This samples until Ctrl-C is hit. # rwbypid.d

FIELDS

PID process ID

CMD process name

DIR direction, Read or Write

COUNT total calls

DOCUMENTATION
See the DTraceToolkit for further documentation under the Docs directory. The DTraceToolkit docs may include full worked examples with verbose descriptions explaining the output.
EXIT
rwbypid.d will sample until Ctrl-C is hit.
AUTHOR
Brendan Gregg [Sydney, Australia]
SEE ALSO
rwbbypid.d(1M), dtrace(1M)