[zfs-discuss] A simple script to measure SYNC writes

2009-02-10 Thread Sanjeev Bagewadi
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,

[zfs-discuss] A simple script to measure SYNC writes

2009-02-10 Thread Sanjeev
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,

Re: [zfs-discuss] A simple script to measure SYNC writes

2009-02-10 Thread Richard Elling
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.