Operating System - HP-UX
1754378 Members
3072 Online
108813 Solutions
New Discussion

context_switch rate and pstat

 
John Mannion
Occasional Advisor

context_switch rate and pstat

Does anyone know if pstat API calls can
give me an accurate context switch rate ?

Is it the sum of pst_vminfo.psv_rswtch + pst_vminfo.psv_sswtch ?

Thanks
1 REPLY 1
Mike Stroyan
Honored Contributor

Re: context_switch rate and pstat

The pst_vminfo.psv_rswtch field is the context switch rate in events per second. The pst_vminfo.psv_sswtch field is the total number of context switches (until it rolls over.)