Operating System - HP-UX
1834018 Members
2168 Online
110063 Solutions
New Discussion

how to see total time spent in ready queue and wait queue ?

 
Danisment Gazi
New Member

how to see total time spent in ready queue and wait queue ?

Hi,

we are finding time spent in single CPU by (single_CPU_usage_ratio) x (time_interval), then adding up all single CPU times to find all CPU usage. is there a method,utility to see total time spent in OS's ready queue and wait queue.

regards...
2 REPLIES 2
Sandor Horvath_2
Valued Contributor

Re: how to see total time spent in ready queue and wait queue ?

Hi !

What do You think about sar ?

Just run >
sar 5 12

regards, Saa
If no problem, don't fixed it.
Danisment Gazi
New Member

Re: how to see total time spent in ready queue and wait queue ?

I'm changing 'see total time' to 'calculate total time'.

I guess from "sar -q" output:

= (runq-sz) x (ready_queue_occupation_time_in_memory) + (swpq-sz) x (ready_queue_occupation_time_in_swap)
= (runq-sz) x (%runocc) x (time_interval) + (swpq-sz) x (%swpocc) x (time_interval)
= (time_interval) [ (runq-sz) x (%runocc) + (swpq-sz) x (%swpocc) ]

I'm not unix expert, do you confirm ?

and I need wait queue time.

regards...