Hi, There was a requirement to measure all the OSYNC writes. Attached is a simple DTrace script which does this using the fsinfo provider and fbt::fop_write. I was wondering if this accurate enough or if I missed any other cases. I am sure this can be improved in many ways. Thanks and regards, Sanjeev
Sanjeev Bagewadi
2009-Feb-10 10:26 UTC
[zfs-discuss] A simple script to measure SYNC writes
Hi, There was a requirement to measure all the OSYNC writes. Attached is a simple DTrace script which does this using the fsinfo provider and fbt::fop_write. I was wondering if this accurate enough or if I missed any other cases. I am sure this can be improved in many ways. Thanks and regards, Sanjeev -------------- next part -------------- A non-text attachment was scrubbed... Name: sync-writes.d Type: text/x-dsrc Size: 1137 bytes Desc: not available URL: <http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20090210/8beed19a/attachment-0013.bin>
Sanjeev wrote:> Hi, > > There was a requirement to measure all the OSYNC writes. > Attached is a simple DTrace script which does this using the > fsinfo provider and fbt::fop_write. > > I was wondering if this accurate enough or if I missed any other cases. > I am sure this can be improved in many ways. >It would be nice to have this functionality added to fsstat. -- richard