/*
* rfsio.d - read FS I/O stats, with cache miss rate.
* Written using DTrace (Solaris 10 3/05)
*
* This script provides statistics on the number of reads and the bytes
* read from filesystems (logical), and the number of bytes read from
* disk (physical). A summary is printed every five seconds by filesystem.
*
* A total miss-rate is also provided for the file system cache.
*
* $Id: rfsio.d 3 2007-08-01 10:50:08Z brendan $
*
* USAGE: rfsio.d
*
* IDEA: Richard McDougall, Solaris Internals 2nd Ed, FS Chapter.
*
* COPYRIGHT: Copyright (c) 2006 Brendan Gregg.
*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* See the License for the specific language governing permissions
* and limitations under the License.
*
* CDDL HEADER END
*
* 19-Mar-2006 Brendan Gregg Created this.
* 23-Apr-2006 " " Last update.
*/
{
trace("Tracing...\n");
}
{
}
{
}
{
}
{
}
{
printf("\033[H\033[2J");
printf("\nRead IOPS (count)\n");
printf("\nRead Bandwidth (bytes)\n");
printf("\nTotal File System miss-rate: %d%%\n",
}