Damon Register
2007-May-16 17:56 UTC
[dtrace-discuss] getting a process frequency and percent time on CPU
It looks like DTrace is a powerful tool and I still have a lot to learn about it. I want to use DTrace to show me the frequency with which a given process is switched onto a CPU and the percent time it has on the CPU. I am very new to DTrace and have been through several guides that I found at http://www.sun.com/bigadmin/content/dtrace/ in an effort to learn enough to accomplish what I want. The one document http://developers.sun.com/solaris/articles/power_of_dtrace.html I found to be quite helpful. I even downloaded the DTrace tool kit http://www.brendangregg.com/dtrace.html#DTraceToolkit and have been trying some of those but still haven''t found what I need. I am wondering if it would be sysinfo:::pswitch or sched:::on-cpu but I haven''t found enough to figure out what to do with either of them. Damon Register
Alexander Kolbasov
2007-May-16 19:06 UTC
[dtrace-discuss] getting a process frequency and percent time on CPU
> It looks like DTrace is a powerful tool and I still have a lot > to learn about it. I want to use DTrace to show me the frequency > with which a given process is switched onto a CPU and the percent > time it has on the CPU. > > I am very new to DTrace and have been through several guides that > I found at http://www.sun.com/bigadmin/content/dtrace/ in an effort > to learn enough to accomplish what I want. The one document > http://developers.sun.com/solaris/articles/power_of_dtrace.html > I found to be quite helpful. I even downloaded the DTrace tool kit > http://www.brendangregg.com/dtrace.html#DTraceToolkit > and have been trying some of those but still haven''t found what I > need. > > I am wondering if it would be sysinfo:::pswitch or sched:::on-cpu > but I haven''t found enough to figure out what to do with either > of them.sched::on-cpu/sched::off-cpu seems appropriate for what you are doing. - akolb