Re: [zfs-discuss] how to measure in kernel how much time one operation takes

2008-04-22 Thread Henry Pepper
could you perhaps use dtrace? I think it is a nanoseconds time you have there. Henry On Sat, Apr 19, 2008 at 1:50 AM, shri <[EMAIL PROTECTED]> wrote: > what call to be used in kernel to measure time taken for a operation if > time quantum i s smaller than tick(frequency). > i tried using ddi_

Re: [zfs-discuss] how to measure in kernel how much time one operation takes

2008-04-19 Thread Richard Elling
shri wrote: > what call to be used in kernel to measure time taken for a operation if time > quantum i s smaller than tick(frequency). > i tried using ddi_get_lbolt at time t1 and t2.(at time t1 operation started > and t2 it finished) but it always gives me zero(t2-t1). > > Try get hi-res

[zfs-discuss] how to measure in kernel how much time one operation takes

2008-04-18 Thread shri
what call to be used in kernel to measure time taken for a operation if time quantum i s smaller than tick(frequency). i tried using ddi_get_lbolt at time t1 and t2.(at time t1 operation started and t2 it finished) but it always gives me zero(t2-t1). This message posted from opensolaris.org