Hey Vish,

Do you have a single CPU core?

Adam

On May 4, 2010, at 4:47 PM, vhiz wrote:

> Hi All,
> 
> I used the following script from the dtrace manual to measure how long a 
> particular process runs on the cpu. Modified it to look at the exact 
> timestamps:
> [i]
> sched:::on-cpu
> {
> self->ts = timestamp;
> printf("on=%d\n", self->ts)
> }
> sched:::off-cpu
> /self->ts/
> {
> 
> printf("off=%d\n", timestamp)
> self->ts = 0;
> }
> [/i]
> The output looks like this:
> [i]on=24591
> off=24603
> on=24609
> on=24670
> off=24676[/i]
> 
> This pattern of two 'on' timestamps between the 'off' timestamps repeats 
> throughout. Should it not just have 1 'on', then 1 'off', and so on. Can 
> someone please explain.
> 
> Thanks,
> Vish
> -- 
> This message posted from opensolaris.org
> _______________________________________________
> dtrace-discuss mailing list
> dtrace-discuss@opensolaris.org


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

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

Reply via email to