The problem is that sync tome is becoming longer and longer lately without obvious reasons (number of files to sync didn't have any huge raise nor network became any more saturated than before) - so I need to know which part of processes take most time in execution.

I've looked through io providers but am not sure how to make a dtrace script to get some useful data. If someone could give me pointers what to do - I would really appreciate it.


Hi Okie,

The first provider I suggest you bring to bear in the profile provider. You
can find the documentation here:

  http://wikis.sun.com/display/DTrace/profile+Provider

A very simple script might help you get started:

profile:::profile-1001
{
        @[ustack()] = count();
}

Alternatively, the sched provider can help you understand why a process is
giving up the CPU:

  http://wikis.sun.com/display/DTrace/sched+Provider

Some of the examples in that chapter will be instructional.

Adam

--
Adam Leventhal, Fishworks                        http://blogs.sun.com/ahl

_______________________________________________
dtrace-discuss mailing list
dtrace-discuss@opensolaris.org

Reply via email to