Thanks. I also found that I can similarly analyze the run queue in this way. When a thread getting blocked, how many threads are runnable at that time? Assume a process has 16 threads. On a block, if the run queue is 15 then that means others are ok for run. However if the number of runnable threads in the run queue is 2, then that means nearly all threads are blocked and waiting for something (I/O).
I will try to write a script for that Regards, Mahmood On Thursday, March 20, 2014 3:03 AM, Khushil Dep (Personal) <khushil....@gmail.com> wrote: Also a good place to visit to get a good general idea of performance diagnostics - http://www.brendangregg.com/USEmethod/use-solaris.html On 19 Mar 2014, at 22:29, Mohamed Khalfella <khalfe...@gmail.com> wrote: Hi Mahmood, > > >I would suggest you try flamegraphs >http://www.brendangregg.com/flamegraphs.html > > >--- >BR, >Mohamed A. Khalfella > > > >On Tue, Mar 18, 2014 at 4:21 PM, Mahmood Naderan <nt_mahm...@yahoo.com> wrote: > >Hi, >>I want to attach DTrace to a multi-threaded process and see >>a breakdown of stalled reason. For example, the fraction of >>stalls due to I/O or communications, ... >> >> >>I see some scripts in the DTrace book such as uoffcpu.d, >>threaded.d, ... I got some outputsbut don't know which one >> >>is close to my needs. >> >>Regards, >>Mahmood >>dtrace-discuss | Archives | Modify Your Subscription > > > >-- > >BR, >Mohamed A. Khalfella >dtrace-discuss | Archives | Modify Your Subscription dtrace-discuss | Archives | Modify Your Subscription ------------------------------------------- dtrace-discuss Archives: https://www.listbox.com/member/archive/184261/=now RSS Feed: https://www.listbox.com/member/archive/rss/184261/25769126-e243886f Modify Your Subscription: https://www.listbox.com/member/?member_id=25769126&id_secret=25769126-8d47a7b2 Powered by Listbox: http://www.listbox.com