G''Day,
On Sun, 9 Apr 2006, Sh wrote:
> Why when I do
> #./iosnoop -d /dev/stdout (or -d any_device)
> I see nothing?
> May be I should use another script that comes with Dtrace_Toolkit?
$ more iosnoop
#!/usr/bin/sh
#
# iosnoop - A program to print disk I/O events as they happen, with useful
# details such as UID, PID, filename, command, etc.
# Written using DTrace (Solaris 10 3/05).
#
# This is measuring disk events that have made it past system caches.
[...] ^^^^^^^^^^^
Disk events, not /dev/stdout events.
This is also noted in the manpage and in the Notes file,
$ more Docs/Notes/iosnoop_notes.txt
The following are additional notes on the iosnoop program,
* What does the output represent?
The output is disk events - I/O operations that cause the disk to physically
read or write the data.
The output is not application I/O events that are absorbed by the cache -
many of which will be. The output really is physical disk events.
[...]
You might want rwsnoop - to see application level I/O. Although it
will be quite verbose.
Brendan
[Sydney, Australia]