zvol latency
Hi,
I used to run zfsslower.d (dtrace is below) to get latency from ZFS FileSystem perspective.
Is there any way to get the latency when we are working with zvol (raw device) ?
Regards, Rafael.
----------------------------------------------------------------------------------------------------------------------------------------------
#!/usr/sbin/dtrace -s
#pragma D option quiet
#pragma D option defaultargs
#pragma D option switchrate=10hz
dtrace:::BEGIN
{
printf("%-20s %-16s %1s %4s %6s %s\n", "TIME", "PROCESS",
"D", "KB", "ms", "FILE");
min_ns = $1 * 1000000;
}
/* see uts/common/fs/zfs/zfs_vnops.c */
fbt::zfs_read:entry,
fbt::zfs_write:entry
{
self->path = args[0]->v_path;
self->kb = args[1]->uio_resid / 1024;