G''Day,
On Sat, 5 Nov 2005, Dummy wrote:
> Hi,
> How to find out the cpu quanta by the dtrace. That is the time the
> process run on cpu in one shot.
The first example here almost does just that,
http://docs.sun.com/app/docs/doc/817-6223/6mlkidlla?a=view
Simply change @[cpu] to @[execname] or @[pid].
(ok, cpudists in the DTraceToolkit also does it, but you really want to
check out the DTrace Guide for this).
> And also how to find out which scheduling algorithm is used to schedule
> the process?
ps -efc
>From DTrace the class ID is in curthread->t_cid.
cheers,
Brendan